Angle Of Vector - Sharp EL-9900 Handbook Vol. 2 Operation Manual

Graphing calculator programmes
Hide thumbs Also See for EL-9900 Handbook Vol. 2:
Table of Contents

Advertisement

Angle of Vector

Use the matrix operation feature to find the angle which forms the standard vector
and vector. The angle can be calculated at one time against the multiple vectors.
Calculation
Calculating vector inner product
Use the above expression to derive the following expression
= cos
-1
FLOWCHART
Start
Entry of number
of vectors
Definition of arrays
Vector data entry
K = K + 1
Y
K
M
Entry of standard
vector data
Calculation of
component of
standard vector
Calculation of
inner product
I = I + 1
Y
I > M
End
Calculation of
component of vector
Calculation of angle
and display of angle
12
a
a
b
| a | | b |
Enter no. of vectors for which
angles are calculated.
Arrays defined.
matA, matB, matC.
Counter for data entry.
Enter x component and Y
component of each vector.
Entry repeated by no. of vectors.
N
Enter x component and Y component
of standard vector.
Length component of standard
vector (scalar) calculated.
Product of matrices A and B
calculated.
Counter for calculation of angle.
Calculation repeated by no.
of vectors.
N
Length component of vector
(scalar) calculated.
Angle calculated and displayed.
EL-9900 Graphing Calculator
b = | a | | b | cos
PROGRAMME LIST
Title : VECTOR
Print " Input NUMBER
Input N
N M
{M,2} dim (mat A)
{2,1}
dim (mat B)
{M,1} dim (mat C)
For K, 1, M, 1
Print " Input VECTOR
Print K
Input X
X mat A(K,1)
Input Y
Y mat A(K,2)
NEXT
Print "Input FUNDAMENTAL VECTOR
Input X
X mat B(1,1)
Input Y
Y mat B(2,1)
(mat B(1,1)
mat A mat B mat C
For I, 1, M, 1
(mat A(I,1)
-1
cos
(mat C(I,1) / (A B))
Print "ANGLE OF VECTOR
Print I
Print " =
Print
Wait
NEXT
End
(MATRIX MODE)
2
2
+mat B(2,1)
) B
2
2
+mat A(I,2)
) A

Advertisement

Table of Contents
loading

Table of Contents