Simplification



Hello,

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)*sin(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. Would it reasable to expect Maxima to
further simplify such a matrix ? If so, do you have any tips for me ?

Thanks in advance,

Devrim.