Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3536 by [email protected]: float NaN is not resolved with other numbers
http://code.google.com/p/sympy/issues/detail?id=3536

from sympy.core.numbers import Float
from sympy.core.mul import Mul
flt_nan_obj = Float('nan')
i_obj = sympify('I')
res = Mul(flt_nan_obj, i_obj)
res
-nan*I
sympify(str(res))
nan

Actual: Results in float NaN multiplied by I
Expected: Results in NaN

Similar issues occur with other operators. This seems very unintuitive to me because the built-in (non-float) NaN and float NaN are treated differently.

Moreover, it seems like parts of sympy may not be equipped to handle the resulting unreduced expression (see http://code.google.com/p/sympy/issues/detail?id=3535).

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

Reply via email to