They need to be positive. Even for integer x, sqrt(x**2) != x if x is negative.

Aaron Meurer

On Fri, Dec 5, 2014 at 3:34 PM, Francesco Bonazzi
<franz.bona...@gmail.com> wrote:
> newvars =symbols('x a b', integer=True)
> e.xreplace(dict(zip([x,a,b], newvars)))
>
> I did not test this.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sympy+unsubscr...@googlegroups.com.
> To post to this group, send email to sympy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/75aa630a-4b0e-46b0-ac20-0f4ffff34f28%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6JstUz-%2BkqnXifNHeOUVdD53eAuL6iaoXQE5VCWrcS0mQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to