Simplification



-----Devrim Erdem  wrote: -----

>I am new to maxima and managed to get a
>transformation matrix with trigonometric terms
>(sin,cos) symbolically computed.
>
>
>The resulting T matrix is however too huge. One
>of the elements of this 3x3 matrix contains looks
>like :
>
>
>(cos(h)*cos(r)-sin(h)*sin(p)*sin(r))*(sin(h)*sin(
>p)*sin(r)+cos(h)*cos(r))+cos(p)*sin(r)*(cos(h)*si
>n(p)*sin(r)+sin(h)*cos(r))-cos(p)*sin(r)*(cos(h)*
>sin(p)*sin(r)-sin(h)*cos(r)),
>
>
>I need to get this transformation in a C
>application and so I would prefer to simplify it
>as much as possible.

Try the functions trigsimp, trigreduce, and trigexpand;
to read the user documentation for trigreduce, use:

(%i2) ? trigreduce;

Barton