> What if either argument is something like x - y or y - x?  Would those 
both be canonicalized to the same thing (with either choice)?

>
> I meant using expand_func with option b. 
>

Of course, my fault.

In [8]: legendre(n, y-x)
Out[8]: legendre(n, -x + y)

In [9]: expand_func(_)
Out[9]: (-1)**n*legendre(n, x - y)

The results is the same, but this is obvious, we use the very same 
expansion code,
just at different locations in the class.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sympy/-/NfyboDS_VaIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to