-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return nan for tan and cot at infinity #2667
Conversation
Simple question, why? (And the answer should go to the commit message as well...) For example, Mathematica returns Interval[{-Infinity, Infinity}] for Tan[Infinity]. |
As of now
tan(x) and cot(x) also sin(x) are oscillating at infinity and Gruntz algorithm for limits evaluation doesn't handle then properly. I checked wolfram alpha's result before sending this pr, (I don't have access to Mathematica) and feel that returning Maybe I should just waited till we have interval arithmetics module but returning |
On Thu, Dec 12, 2013 at 01:21:02AM -0800, Harsh Gupta wrote:
It's a bug (in Mul.flatten), yes. But not an argument Perhaps, underlying problem is x*0 == 0.
I'm sure, it's just the same bug. And gruntz() returns a correct
Wrong fix is better then a wrong result? I don't think so. |
Hi,
Why do we want to do that? (Even in case other The nan is something that originates from Of course things like tan(oo) are not really The last option follows "garbage in, garbage out". I do not really have a strong opinion in that topic, |
We can't change this. This is core to how the flatten algorithm works. |
On Fri, Dec 13, 2013 at 12:19:14PM -0800, Aaron Meurer wrote:
What about slightly different defaults? For example,
|
It would need to be the default assumption. Also, performance is a big concern here. |
No description provided.