To do vector point / cross product multiplication with sympy , you need to import the base CoordSys3D vector object. The following is an example of working code:
from sympy.vector import CoordSys3D N = CoordSys3D('N') v1 = 2*N.i+3*Nj-Nk v2 = Ni-4*N.j+Nk v1.dot(v2) v1.cross(v2)
Please note that the last 2 lines are not recommended in the sympy documentation. It is better to use methods explicitly. Personally, I think this is a matter of preference, however.
user32882
source share