And here's a strange and perhaps related result. A tests that gave a
False at one point gives a True later:

C:\Documents and Settings\chris>\python26\python.exe
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from sympy import *
>>> from sympy.abc import *
>>> separatevars(y / pi * exp(-(z - x) / cos(n)))
y*exp((x - z)/cos(n))/pi
>>> separatevars(y / pi * exp(-(z - x) / cos(n))) == y*exp((x - z)/cos(n))/pi
False

OK, there was the False...now be patient...

>>> ans = separatevars(y / pi * exp(-(z - x) / cos(n)))
>>> ans == y*exp((x - z)/cos(n))/pi
True

It's True if the result is assigned to a variable, but keep
watching....

>>> separatevars(y / pi * exp(-(z - x) / cos(n)))
y*exp((x - z)/cos(n))/pi
>>> type(separatevars(y / pi * exp(-(z - x) / cos(n))))
<class 'sympy.core.mul.Mul'>
>>> (separatevars(y / pi * exp(-(z - x) / cos(n)))) == y*exp((x - z)/cos(n))/pi
False

It' still False but....

>>> repr(separatevars(y / pi * exp(-(z - x) / cos(n))))
'y*exp((x - z)/cos(n))/pi'
>>> repr(y*exp((x - z)/cos(n))/pi)
'y*exp((x - z)/cos(n))/pi'
>>> separatevars(y / pi * exp(-(z - x) / cos(n)))
y*exp((x - z)/cos(n))/pi
>>> separatevars(y / pi * exp(-(z - x) / cos(n))) == y*exp((x - z)/cos(n))/pi
True
>>>

NOW IT'S TRUE!?

Are the first occurance and this one the same:
A)separatevars(y / pi * exp(-(z - x) / cos(n))) == y*exp((x - z)/cos
(n))/pi
B)separatevars(y / pi * exp(-(z - x) / cos(n))) == y*exp((x - z)/cos
(n))/pi

Yes...why are they True for the latter occurance but not for the first?

--

You received this message because you are subscribed to the Google Groups 
"sympy-patches" group.
To post to this group, send email to sympy-patc...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-patches+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-patches?hl=en.


Reply via email to