>
> sage: x.subs(x==10)
>
> works ok.
>
>
That's because this is a symbolic expression, "x", so you can substitute.
> How to do a pair substitution ?
>
> sage: var("x,y")
> (x, y)
> sage: (x,y).subs([x==10,y==20])
>
>
That's because (x,y) is NOT a symbolic expression, but rather a Python
concept called a "tuple", which does not support this. Are you trying to
substitute into a vector? If so,
var('y')
vector([x,y]).subs(x=10,y=20)
should work.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.