Thanks! 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!
Now trigsimp has some further arguments, like deep, but they cannot be given with applyfunc? That should be possible? How? Kjetil On Mon, Jun 11, 2012 at 3:45 PM, Chris Smith <[email protected]> wrote: >> This must be very easy! > >>>> m=Matrix([x*(x+1)]) >>>> m.applyfunc(expand) > [x**2 + x] >>>> m > [x*(x + 1)] > > /c > > -- > 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. > -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- 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.
