[sage-devel] Re: Fwd: NaN = Not A Number ???

2012-03-29 Thread rjf
On Mar 28, 7:18 pm, Gonzalo Tornaria torna...@math.utexas.edu wrote: On Thu, Mar 22, 2012 at 4:14 PM, Robert Bradshaw rober...@math.washington.edu wrote: ... This is horrendous. Better to not have this constant (at least not in the global namespace) than behavior like this. The top

Re: [sage-devel] Re: Fwd: NaN = Not A Number ???

2012-03-28 Thread Gonzalo Tornaria
On Thu, Mar 22, 2012 at 4:14 PM, Robert Bradshaw rober...@math.washington.edu wrote: ... This is horrendous. Better to not have this constant (at least not in the global namespace) than behavior like this. The top level NaN, if we want one, could be in RR (precision doesn't really matter for

Re: [sage-devel] Re: Fwd: NaN = Not A Number ???

2012-03-22 Thread Robert Bradshaw
On Wed, Mar 21, 2012 at 7:39 PM, kcrisman kcris...@gmail.com wrote: On Mar 21, 10:00 pm, Gonzalo Tornaria torna...@math.utexas.edu wrote: In sage 4.8: sage: NaN - NaN sage: 0 sage: NaN + NaN 2*NaN sage: NaN * NaN NaN^2 Naturally!  Since NaN is a symbolic expression, apparently:

[sage-devel] Re: Fwd: NaN = Not A Number ???

2012-03-22 Thread rjf
I don't know where the NaN is being manipulated, there are lots of design issues that could be addressed using it. Note that there are huge numbers of NaNs -- a NaN has a reserved exponent; the fraction part can be used to encode info. You might also see how infinities are handled. A NaN can be

[sage-devel] Re: Fwd: NaN = Not A Number ???

2012-03-21 Thread kcrisman
On Mar 21, 10:00 pm, Gonzalo Tornaria torna...@math.utexas.edu wrote: In sage 4.8: sage: NaN - NaN sage: 0 sage: NaN + NaN 2*NaN sage: NaN * NaN NaN^2 Naturally! Since NaN is a symbolic expression, apparently: sage: type(NaN) type 'sage.symbolic.expression.Expression' See

[sage-devel] Re: Fwd: NaN = Not A Number ???

2012-03-21 Thread Dima Pasechnik
On Wednesday, 21 March 2012 22:39:25 UTC-4, kcrisman wrote: On Mar 21, 10:00 pm, Gonzalo Tornaria torna...@math.utexas.edu wrote: In sage 4.8: sage: NaN - NaN sage: 0 sage: NaN + NaN 2*NaN sage: NaN * NaN NaN^2 Naturally! Since NaN is a symbolic expression,

[sage-devel] Re: Fwd: NaN = Not A Number ???

2012-03-21 Thread kcrisman
On Mar 21, 11:25 pm, Dima Pasechnik dimp...@gmail.com wrote: On Wednesday, 21 March 2012 22:39:25 UTC-4, kcrisman wrote: On Mar 21, 10:00 pm, Gonzalo Tornaria torna...@math.utexas.edu wrote: In sage 4.8: sage: NaN - NaN sage: 0 sage: NaN + NaN 2*NaN sage: NaN * NaN