Updates:
Labels: -Priority-High Priority-Medium
Comment #3 on issue 3038 by [email protected]: sign change in evalf of
complex value as precision is increased
http://code.google.com/p/sympy/issues/detail?id=3038
Perhaps this is a problem that can't be fixed. Consider
The sign of the most insignificant part of the number (in this case, the
imaginary part) gives rise to a sign change in the most significant part of
the sqrt (and WolframAlpha behaves the same):
>>> sqrt(-100-I/100).n(2)
0.e-4 - 10.0*I
>>> sqrt(-100+I/100).n(2)
0.e-4 + 10.0*I
Whereas here the variation produces a small imaginary part that changes
sign:
>>> sqrt(100+I/100).n(2)
10.0 + 0.e-4*I
>>> sqrt(100-I/100).n(2)
10.0 - 0.e-4*I
--
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.