Fwd: Re(2): [Maxima] Vector product



Well, the following home made definition seems to work:

cross(X,Y):=transpose([X[2]*Y[3]-X[3]*Y[2],X[3]*Y[1]-X[1]*Y[3],X[1]*Y[2]-X[2]*Y[1]]);

gives:

(C31) cross(A,B);
				   [  [4]  ]
				   [	   ]
(D31) 				   [  [4]  ]
				   [	   ]
				   [ [- 4] ]

which is OK except that there are more brackets than necessary.

Still, there must be a built-in version!?!?

Yours,
Poul Riis