X Vector Algebra and Space Geometry

FunctionsBrief Usage Descriptions and Examples
vec,lnt,ang The function "vec;f(i, j, k)" or "vec;f(u,v,w);u;uexpr;v;vexpr;w;wexpr" performs vector addition, subtractions, scalar multiplication, dot product, and cross product in R3. The function "vec;lnt(u);u;uexpr" calculates the length of u, and "vec;ang(u,v);u;uexpr;v;vexpr" returns the angle between vectors u and v.
Examples vec;i**k || vec;i-2*j+3*k || vec;x*i-3*j+k/y || vec;2*u-5*v;u;i-2*j;v;4*k-7*j || vec;u/lnt(u);u;sin(x)*i+cos(x)*j+k || vec;lnt(i+2*j-2*k) || vec;ang(i,j) ||.
prj,tnv The function "vec;prj(u,v)" returns the projection of vectors u onto v, and "vec;tnv(x(t)*i+y(t)*j+z(t)*k,t)" returns a tangent vector of f(t) with respect to "t".
Examples vec;prj(4*j-3*k,2*i+5*j) || vec;tnv(2*t*i+t**2*j-k/t,t) ||.
cul,dvg,csv The function "vec;cul(F(x,y,z),x,y,z)" returns the curl of a vector valued function (field) F(x,y,z) = f(x,y,z)*i+g(x,y,z)*j+h(x,y,z)*k, "vec;dvg(F(x,y,z),x,y,z)" returns the divergence of F(x,y,z), and "vec;csv(F(x,y,z),x,y,z)" determines if F(x,y,z) is conservative.
Examples vec;cul(y*j-x*i+z*k,x,y,z) || vec;csv(-x*i+y*j-z*k,x,y,z) || vec;dvg(x**2*i-y*k+3*j,x,y,z) || vec;cul((x*i+y*j)/(x**2+y**2)**(1/2),x,y) ||.

Back to top