Comment #17 on issue 1321 by [email protected]: trigonometric
functions of floating-point numbers should return floating-point numbers
http://code.google.com/p/sympy/issues/detail?id=1321
I am not sure I understand. We create
e = cos(0.12345, Evaluate=False)**2
and then match this against a*cos(b*x)**2.
Here r[b] becomes 0.12345, as expected. However a matches this:
r[a] == 1/cos(0.12345)**2 * cos(0.12345, evaluate=False)**2
True
[Note: the first cos is immediately evaluated to a number, whereas the
second is not]
The real question is: should match somehow evaluate the second cos and
simplify this to 1?
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
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-issues?hl=en.