Hello Morovia,

in my understanding you do not need to use symbolic calculation, do you?
I mean, if your final result is a 3x3-Matrix with numerical values you
could carry out the whole calculation numerically, i.e. by applying
evalf already to R(a,b,c).


But maybe I missed some thing...

Regards,
Bastian.


morovia morovia wrote:
> Hello,
> 
>     I have just started to use sympy.
> 
> I am trying to use euler rotation matrix
> R(a, b, g) to transform a tensor (say, T_p
> 3x3 matrix) from its principal frame of
> reference to lab frame of reference.
> 
> http://en.wikipedia.org/wiki/Euler_angles
> 
> basically doing,
> 
> T_lf = R(a,b,g) * T_p * R(a,b,g).inv()
> 
> I need to simplify the resultant matrix
> T_lf using trignometry relations and
> also evaluate the elements.
> 
> When I just tried to do,
> 
> T_lf.evalf(),
> 
> it takes forever to carry out the operations.
> 
> I have tried converting the T_lf into a list
> and used a for loop to carry out,
> 
> trisimp(T_lf[i][j]).evalf()
> 
> But still it is very slow.
> 
> Kindly let me know the proper way to
> carry out the operations on individual
> matrix elements which needs to be
> simplified and evaluated.
> 
> Thanks in advance
> Morovia.
> 

-- 
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.

Reply via email to