Maxima vector magnitude and cross product
https://math.stackexchange.com/questions/1029762/maxima-vector-magnitude-and-cross-product/1180712
http://www.scotchildress.com/wxmaxima/VectorArithmetic/VectorArithmetic.html
vector command in maxima
- a.b a.b;
- axb
load("vect" );
express(a~b);
- |a|
sqrt(a.a);
or
norm(x):=sqrt(x.x);
- a hat
a/sqrt(a.a) ;
or
hat(x):=x/norm(x);
- a proj b
proj(a,b):=a.b/norm(b)^2 *b ;
example:
kill(all);
load("vect" );
express(a~b);
norm(x):=sqrt(x.x);
hat(x):=x/norm(x);
proj(a,b):=a.b/norm(b)^2 *b ;
a:[1,2];
b:[3,4];
a.b;
express(a~b);
norm(a);
hat(a);
proj(a,b);