Issue 3402 in sympy: replace() should pass objects not strings to value function

2012-09-19 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 3402 by r.lup...@gmail.com: replace() should pass objects not strings to value function http://code.google.com/p/sympy/issues/detail?id=3402 I'm trying to use replace to apply trigonometric identities: In [4]: from sympy i

Re: Issue 3402 in sympy: replace() should pass objects not strings to value function

2012-09-20 Thread sympy
Comment #1 on issue 3402 by julien.r...@gmail.com: replace() should pass objects not strings to value function http://code.google.com/p/sympy/issues/detail?id=3402 For the trigonometric simplification, this works for me, although I'm not sure that it is fullproof: In [68]: expr.rewrite(ex

Re: Issue 3402 in sympy: replace() should pass objects not strings to value function

2013-02-08 Thread sympy
Updates: Status: Valid Labels: Matching Comment #2 on issue 3402 by asmeu...@gmail.com: replace() should pass objects not strings to value function http://code.google.com/p/sympy/issues/detail?id=3402 I didn't even know about this feature of replace (the function with the st