Sharp EL-9900 Calculator User Manual


 
EL-9900 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.
Vector data entry
Enter x component and Y
component of each vector.
Entry repeated by no. of vectors.
Y
N
Angle calculated and displayed.
I = I + 1
Counter for calculation of angle.
I > M
Y
N
Calculation repeated by no.
of vectors.
Length component of vector
(scalar) calculated.
Calculation of
component of vector
Calculation of angle
and display of angle
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)
2
+mat B(2,1)
2
) B
mat A mat B mat C
For I, 1, M, 1
(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
NEXT
End
| a | | b |
Title : VECTOR
K
M
12