I noticed the following behavior:
In [9]: sin(x)
Out[9]: sin(x)
In [10]: sin(-x)
Out[10]: -sin(x)
In [11]: cos(x)
Out[11]: cos(x)
In [12]: cos(-x)
Out[12]: cos(x)
In [13]: tan(-x)
Out[13]: -tan(x)
In [14]: cot(-x)
Out[14]: -cot(x)
In [15]: sin(pi-x)
Out[15]: sin(x)
In [18]: sin(2*pi + x)
Out[18]: sin(x + 2⋅π)

This last command *could* just result in:
sin(x)

similarly for cos(2*pi+/-x), tan(2*pi +/- x).... etc.

So it seems that some simplification is being done within the trig
definitions themselves, but only for some of the cases.

More generally, should the trig functions be smart enough to recognize
arguments of the following form:
x+/- n*pi
and then return the correct result based upon some rule based lookup?

Or would it better to require the user to call trigsimp(sin(n*pi +/-
x)) to return the simplified result?

Thoughts?

~Luke

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

Reply via email to