A SERVICE OF

logo

Mathematics Programs 15–1
15
Mathematics Programs
Vector Operations
This program performs the basic vector operations of addition, subtraction, cross
product, and dot (or scalar) product. The program uses three–dimensional vectors
and provides input and output in rectangular or polar form. Angles between
vectors can also be found.
Y
P
X
T
R
Z
This program uses the following equations. Coordinate conversion:
X = R sin(P) cos(T) R =
222
Z
Y
X
++
Y = R sin(P) sin(T) T = arctan (Y/X)
Z = R cos(P) P = arctan
22
YX
Z
+