> def TrigSimp(f): > """ > Recursive application of sympy.trigsimp(). Works in many applications > where simple application of sympy.trigsimp() does not. > """ > (w,g) = sympy.cse(f) > g = sympy.trigsimp(g[0]) > for sub in reversed(w): > g = g.subs(sub[0],sub[1]) > g = sympy.trigsimp(g) > return(g)
Thanks Alan! I implemented this in trigsimp, please review my patch so that it can get into the release: http://code.google.com/p/sympy/issues/detail?id=1344 Ondrej --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---