On Tue, Jun 12, 2012 at 12:05 AM, Kjetil brinchmann Halvorsen <[email protected]> wrote: > > A follow-upQ : applyfunc seems to only take one argument, the function > to apply (It also seems to apply only for matrices, which is strange?) > Now, trigsimp do not seem to work (the call works, but the result is > unmodified, > although I know it is possible to apply rules for getteing > sin/cos(theta+/- psi) from difference/sum of product of form > sin(theta)cos(psi) etc, but they are not applied!
What are your expressions? It may happen that trigsimp does not know how to handle them. > Now trigsimp has some further arguments, like deep, but they cannot be > given with applyfunc? Use something like: M.applyfunc(lambda x: trigsimp(x, deep=True)) Just off the top of my head; I haven't tested it, but it should work. Sergiu -- 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.
