Ondrej Certik wrote: >> 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 > > > > > Patch looks fine to me. I should comment my code as well as you do!
I have a button from a Science-Fiction convention I went to years ago that says - "Good programmers don't document their code. If it was hard to write it should be hard to understand." Of course this was from the days when much more coding was done in assembly language! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" 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?hl=en -~----------~----~----~----~------~----~------~--~---
