Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3478 by [email protected]: Implement rewrite as Piecewise for
Abs(x) and others
http://code.google.com/p/sympy/issues/detail?id=3478
Implement Abs(x).rewrite(Piecewise) so that it returns Piecewise((x, x >=
0), (-x, True)) for x real.
Implement Heaviside(x).rewrite(Piecewise) so that it returns Piecewise((1,
x > 0), (S(1)/2, x == 0), (0, True)) for x real.
Implement sign(x).rewrite(Piecewise) so that it returns Piecewise((1, x >
0), (-1, x < 0), (0, True)) for x real.
And possibly others...
--
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.