I need to test an n-variable Boolean Function f = f(x0,…,xn-1). I need to fix x0, then run some tests for the g1 = f(x1,…,xn-1), then fix x1 and so on. The problem is that I don’t really understand how to do it with Sage. At first, I tried to create a vector of values, […]

Categories

## Ways of using(assigning) variables in Sage

- Post author By Full Stack
- Post date November 21, 2020
- No Comments on Ways of using(assigning) variables in Sage

- Tags ..., 0] if v[0] != None: x0=v[0] if v[1] != None: x1=v[1] if v[2] != None: x2=v[2] if v[3] != None: x3=v[3] f = BooleanFunction(, 1, but in this case, but it doesn't fit my task because I want to be able to automate the fixing process. I want to replace the "if"s with a loop, I don't know how to address variables inside the loop using indexes. I'm new to Sage so I would appreciate any advice!, I need to test an n-variable Boolean Function f = f(x0, I tried to create a vector of values, None, that controls "fixing" of the variables R.<x0, then fix x1 and so on. The problem is that I don't really understand how to do it with Sage. At first, then run some tests for the g1 = f(x1, x1, x2, x3> = BooleanPolynomialRing() v = [None, xn-1), xn-1). I need to fix x0