Vectors program for Casio Calculators by Daniel Wedge.
More programs and games can be found at www.student.uwa.edu.au/~wedgey
Given two 3D vectors, the program will calculate:
i) the square of the magnitude of each vector
ii) the dot product of the two vectors
iii) the cross product of the two vectors.
The third item is what this is really useful for... since my 9700 is lacking in a
cross product function (unlike the HPs).
The form of the first vector is (A1,A2,A3) and for the second, (B1,B2,B3). Pretty
simple, really. The cross product output will give a vector (X,Y,Z).
Also check out my vector calculator on the web for as many dimensions as you like.
It's at www.student.uwa.edu.au/~wedgey/vectors
symbols used:
@ is the display symbol (the triangle in the prog menu on mine.)
-> is the assign key (the arrow key)
^2 is the square key
size: 166 bytes.
'VECTORS
"A1" -> I
"A2" -> J
"A3" -> K
"B1" -> X
"B2" -> Y
"B3" -> Z
"(MAG A)^2:"
I^2+J^2+K^2 -> A@
"(MAG B)^2:"
X^2+Y^2+Z^2 -> B@
"DOT:"
IX+JY+KZ -> D@
"CROSS X:"
JZ-KY@
"Y:"
XK-IZ@
"Z:"
IY-XJ@
"DONE"