Hi,

x(1), x(0) or y(0) can not be variable names. A valid variable name
can be x1 or x_1 or many variations but no parenthesis. Parenthesis
are reserved for function calls. Note that the error message you get
is relatively explicit.

You can do

sage: from polybori import *
sage: R = declare_ring([Block('x',177),Block('y',2)],globals())
sage: R.inject_variables()
Defining x0, x1, x2, ..., y0, y1
sage: x1 = x0*y0

But I am not sure to understand what you want to achieve...

Vincent

2015-01-03 9:59 UTC+01:00, Dibyendu Roy <dibyendu.roy1...@gmail.com>:
> I am learning sage for first time. I want to do iteration in boolean
> polynomial ring.
>
> sage: from polybori import *
> sage: declare_ring([Block('x',177),Block('y',2)],globals())
> sage: r
> sage: x(1)=x(0)*y(0)
>
> Its showing me following error
>
> ValueError: Argument names should be valid python identifiers.
>
> actually i want to update the variables x(1) by x(0)*y(0). please help me
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to