In [23]: a = (Abs(sin(w))/cos(w)) + Abs(w)
In [24]: S(str(a).replace('Abs', ''))Out[24]: w + sin(w)/cos(w)
a = Abs(sin(w))/cos(w) + Abs(w)--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/ca8e56be-e29f-48a4-bb57-06a30d7b957f%40googlegroups.com.
Wouldn't it be better to useAbs(sin(w))/cos(w) + Abs(w)
a =
a.replace(Abs, Id)rather than deal with strings?
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/6f59429d-d541-451e-aaf5-145606e0ba80%40googlegroups.com.