Ondrej and I have had some discussion about what the trigonometric
functions tan, cot, sec, csc should return at singular points.  It
seems there are a couple of options:
1)  Return S.ComplexInfinity for things like tan(pi/2), tan(-pi/2),
tanh(pi/2*I), tanh(-pi/2*I), etc.
2)  Raise an exception of some sort.

Mathematica returns ComplexInfinity for all the examples mentioned in
1) above.  What do people think about this?  I'd like to see what
people think would be the right choice.  An interesting subtlety of
this is that in sympy, currently things like S(1)/S(0) return oo
(Infinity).  By this rationale, tan(pi/2) = sin(pi/2)/cos(pi/2) = 1/0
= oo (Infinity), but this doesn't seem the right approach.

If an exception should be raised, what kind?  ZeroDivisionError?
PoleError (not sure what this really is, but Ondrej suggested it)?

Whatever the consensus, I just want to make the trig functions all consistent.

Thanks,
~Luke

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to