Zy x, Yx z – HP 32SII User Manual
Page 228

15–2 Mathematics
Programs
File name 32sii-Manual-E-0424
Printed Date : 2003/4/24 Size : 17.7 x 25.2 cm
This program uses the following equations. Coordinate conversion:
X = R sin(P) cos(T)
R =
2
2
2
Z
Y
X
+
+
Y = R sin(P) sin(T)
T = arctan (Y/X)
Z = R cos(P)
P = arctan
2
2
Y
X
Z
+
Vector addition and subtraction:
v
1
+ v
2
= (X + U)i + (Y + V)j + (Z + W)k
v
2
– v
1
= (U – X)i + (V – Y)j + (W – Z)k
Cross product:
v
1
×
v
2
= (YW – ZV )i + (ZU – XW)j + (XV – YU)k
Dot Product:
D = XU + YV + ZW
Angle between vectors (
γ
):
G = arccos
2
1
R
R
D
×
where
v
1
= X i + Y j + Z k
and
v
2
=U i + V j + W k
The vector displayed by the input routines (LBL P and LBL R) is V
1
.
Program Listing: