
Saturday, December 06, 1997

To all HP users who need some symbolic vector programs.

These are probably not any different that any other vector programs 
on the net.  I just found it easier to write these programs than to 
learn to use other peoples programs.

These programs are free.  Please copy and distribute them.  Edit and 
incorporate them.  DO NOT SELL THEM!!!

I would like to thank all the people who take the time to write, 
improve, a freely distribute their programs.  Alg48, Erable, Qpi, and 
Java have been of particular use to me.  I have incorporated some of 
the commands of Qpi and Alg48 into my own versions of these programs 
and I encourage you to do the same.

The calculus programs assume that vectors are entered as lists and 
are of functions F(X, Y, Z) or f(X, Y, Z). 

Here they are:

Dot
	The dot product of two vectors of the same dimension.  F dot V.
	2: {x   y   z}
	1: {ax   by   cz}
	Dot
	1: ax^2 + by^2 +cz^2

Mag
	Gives the magnitude of any size vector.
	1:  {x   y   z}
	Mag
	1: (x^2 + y^2 + z^2)^(1/2)

Cross
	Gives the cross product of two vectors:  F X V.
	2:  {x   y   z}
	1:  {x   y   z}
	Cross
	1: {0   0   0}

YmXb
	Takes two points and returns a line in the form of m*X+b where 
	m is the slope, X is the horizontal variable and b is the 
	vertical intercept.  Not a vector function but certainly saves 
	me some time.

	2:  {x   y}
	1:  {x   y}
	YmXb
	Error undefined result because m = 0/0.  Only works if the 
	slope exists.

Div
	The divergence of a vector field.  Del dot F.  Assumes a three 
	space function F(X,Y,Z)
	Must be a three space vector, for two space set Z to zero F(X, Y, 0)
	1:{XYZ   XYZ   XYZ}
	Div
	1:YZ+XZ+XY

Curl
	The Curl of a vector field..  Del cross F.  Assumes a three 
	space function F(X,Y,Z).
	1:  {XYZ   XYZ   XYZ}
	Curl
	1:  {-XY+XZ   XY-YZ   -XZ+YZ}	
	
Grad
	Gives the gradient of a three space vector defined by F(X, Y, Z).
	This will also give a list of the first partials of f(X, Y, Z).
	1: {X   Y   Z}
	Grad
	1:  {1   1   1}

	and
	1: XYZ
	Grad
	1:  {YZ   XZ   XY}

Please post any comments or suggestions to the HP48 news group.

William Harper



