Status: Accepted
Owner: asmeurer
Labels: Type-Enhancement Priority-Medium EasyToFix

New issue 2012 by asmeurer: rewrite should also be a function
http://code.google.com/p/sympy/issues/detail?id=2012

Basically, I think [2] should also work.

In [1]: sin(x).rewrite(tan)
       ⎛x⎞
  2⋅tan⎜─⎟
       ⎝2⎠
───────────
       2
        ⎛x⎞
1 + tan ⎜─⎟
        ⎝2⎠

In [2]: rewrite(sin(x), tan)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/Users/aaronmeurer/Documents/python/sympy/sympy/<ipython console> in <module>()

TypeError: 'module' object is not callable


--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to