Sharp EL-9600 Calculator User Manual


 
EL-9600 Graphing Calculator
A
ngle 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
FLOWCHART
PROGRAMME LIST
(MATRIX MODE)
Entry of number
of vectors
Definition of arrays
Start
End
K = K + 1
Calculation of
component of
standard vector
Calculation of
inner product
Entry of standard
vector data
Enter no. of vectors for which
angles are calculated.
Arrays defined.
Counter for data entry
Enter x component and Y component
of standard vector.
Product of matrices A and B
calculated.
Length component of standard
vector (scalar) calculated.
Calculating vector inner product a
b = | a | | b | cos θ
Use the above expression to derive the following expression
θ = cos
-1
a
b
matA, matB, matC.
DATA
Vector data entry
Enter x component and Y
component of each vector.
K < M
Entry repeated by no. of vectors.
Y
N
Angle calculated and displayed.
CALC
I = I + 1
Counter for calculation of angle
I > M
Y
N
Calculation repeated by no.
of vectors.
END
Length component of vector
(scalar) calculated.
Calculation of
component of vector
Calculation of angle
and display of angle
0 I
0 K
Print " Input NUMBER
Input N
N M
{M,2} dim (mat A)
{2,1} dim (mat B)
{M,1} dim (mat C)
Label DATA
K + 1 K
Print " Input VECTOR
Print K
Input X
X mat A(K,1)
Input Y
Y mat A(K,2)
If K<M Goto DATA
Print "Input FUNDAMENTAL VECTOR
Input X
X mat B(1,1)
Input Y
Y mat B(2,1)
(mat B(1,1)
2
+mat B(2,1)
2
) B
mat A mat B mat C
Label CALC
Ι + 1 Ι
If I>M Goto END
(mat A(I,1)
2
+mat A(I,2)
2
) A
cos
-1
(mat C(I,1)
/ (A B)) θ
Print "ANGLE OF VECTOR
Print I
Print "θ=
Print θ
Wait
Goto CALC
Label END
End
| a | | b |
Title : VECTOR
12
HB2.Doc02. 98.10.1, 0:26 PM12