24
15
The angle between two vectors
The angle between two vectors and , not equal to 0 for 0 being the origin, can be
obtained in the following way:
Program
?→ A:?→ B:?→ C:A → X:B → Y:C → M:?→ A:?→ B:?→ C:
(AX + BY
+CM)
÷√
(
(A
2
+B
2
+C
2
)
(X
2
+Y
2
+M
2
)
)
→D
:
cos
-1
D→D:D <
79 STEP
>
INPUT
<
1st
> A
,
B
,
C:
(
a
1
,
a
2
,
a
3
)
<
2nd
> A
,
B
,
C:
(
b
1
,
b
2
,
b
3
)
OUTPUT
D
: the angle between two vectors:
Execution Example:
Find the angle between the vectors (0,0,1) and (2,3,4).
To obtain the answer in radians, press
before
executing the program.
θ
a
→
b
→
a
b
θ
1
–
cos
a b
⋅
a b
------------
=
→
→
→
→
a
a
1
a
2
a
3
,
,
(
)
=
b
b
1
b
2
b
3
,
,
(
)
=
→
→
ON
MODE
MODE
MODE
1
PRGM
MODE
1
COMP
1
P1
θ
MODE
MODE
MODE
MODE
1
DEG
S A
D R
P1
P1 P2 P3 P4
G
Prog
1
0
EXE
M
S A
D
P1
P1 P2 P3 P4
G
D
0
EXE
1
EXE
M
S A
D R
P1
P1 P2 P3 P4
G
2
EXE
3
EXE
4
EXE
M
S A
D R
P1
P1 P2 P3 P4
G
MODE
MODE
MODE
MODE
2
関数電卓事例集
.book 24
ページ
2002年9月2日 月曜日 午後6時51分
Содержание 3950P
Страница 1: ......
Страница 46: ...MEMO MEMO MEMO MEMO...
Страница 47: ...Authors Dr Yuichi Takeda Research and Development Initiative Chuo University...
Страница 48: ......