In sage 4.8:

sage: NaN - NaN
sage: 0
sage: NaN + NaN
2*NaN
sage: NaN * NaN
NaN^2

not what I expected...

RR(NaN) seems to work better

sage: RR(NaN) - RR(NaN)
NaN
sage: RR(NaN) + RR(NaN)
NaN
sage: RR(NaN) * RR(NaN)
NaN

Still some weirdness:

sage: RR(NaN) + x
x
sage: RR(NaN) * x
NaN*x



Gonzalo

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to