How do I evaluate and compose Boolean functions in Boolean polynomial ring?

For example I have

R=BooleanPolynomialRing(3,x)
x=R.gens()
f=BooleanFunction(x[0]*x[1]+x[1]*x[2]+x[1]+1)

Now how do I find the function g=f(evaluated when x[0]=1)?

Also if g is another function defined similarly, how do I compute f(g()) 
composition?

Can someone help please?

Thanks in advance.
Virendra

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to