Comment #18 on issue 1321 by asmeurer: trigonometric functions of floating-point numbers should return floating-point numbers
http://code.google.com/p/sympy/issues/detail?id=1321
Well, either that, or it should not evaluate the first cos, which would also reduce it to 1 (because they will cancel).
Like I said, this is a bug in match. Quite a bit of code in SymPy does not play nicely with unevaluated expressions, because they are not used very often and don't play by the rules that many things expect them to play by.
I would recommend using a debugger (pudb is nice) and stepping through the code and seeing if you can spot where it does it wrong. Maybe step through the same thing with cos(x)**2 and see how it differs for a symbolic argument and a numeric one, or step through it is master and in your branch and see where they diverge.
-- 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.
