Alan, Did you drop a line when you cut and pasted the rotor.py code? v/r
Scott On sidux sympy 6.4 and 6.5 and Centos5.4 (sage 4.2 with sympy 6.4) i get the following errors: general output for sidux linux sympy 6.4: rotor.py sidux-irc.desktop sidux-manual.desktop s...@sidkde:~/Desktop$ python rotor.py Traceback (most recent call last): File "rotor.py", line 12, in <module> MV.setup('e',metric='[1,1,1]',coords=[x,y,z]) File "/usr/lib/pymodules/python2.5/sympy/galgebra/GA.py", line 833, in setup MV.define_metric(metric) File "/usr/lib/pymodules/python2.5/sympy/galgebra/GA.py", line 536, in define_metric gij = metric[i][j] IndexError: list index out of range s...@sidkde:~/Desktop$ Below is the code i copied out of my rotor.py file: #!/usr/bin/python import sys import os,sympy,time from sympy.galgebra.GA import * from sympy import cos,sin set_main(sys.modules[__name__]) if __name__ == '__main__': make_symbols('a x y z') MV.setup('e',metric='[1,1,1]',coords=[x,y,z]) MV.set_str_format(1) u = MV('u','vector') x = MV('x','vector') print u print x print MV.I*u R = cos(a)-MV.I*u*sin(a/2) Rrev = R.rev() print R print Rrev MV.set_str_format(2) rot_x = R*x*Rrev rot_x.simplify() print rot_x -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.