Comment #7 on issue 3006 by [email protected]: sign(Symbol('z',
zero=True)) -> sign(z)
http://code.google.com/p/sympy/issues/detail?id=3006
I think so, because
1) Using .is_zero would for example also handle Float('0') (once
Float('0').is_zero is fixed, see https://github.com/sympy/sympy/pull/1743):
In [3]: sign(Float('0'))
Out[3]: -1
2) Symbols can still be created that have is_zero=True:
In [4]: z = Symbol("z", nonnegative=True, nonpositive=True)
In [5]: z.is_zero
Out[5]: True
In [6]: sign(z)
Out[6]: sign(z)
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.