Vectors – Sharp EL-9900 User Manual

Page 152

Advertising
background image

19

Advanced Keyboard/PROGRAMMING USING THE SHARP EL-9900

Copyright © 2002, Sharp Electronics Corporation. Permission is granted to photocopy for educational use only.

1.

Program the calculator to find the length of a three-dimensional vector and

the unit vector in the direction of the vector.

2.

Create a new program with the name VECTOR. Enter the following program

and remember to press

ENTER at the end of each line. If you make a

mistake, use the calculator’s editing features to correct the error.

3.

Enter the following program:

Input A

PRGM A 3 ALPHA A ENTER

Input B

PRGM 3 ALPHA

B ENTER

Input C

PRGM 3 ALPHA

C ENTER

Print “THE

PRGM 1 PRGM 2

LENGTH IS

2ndF A-LOCK T H E

SPACE L

E

N G T H SPACE I S ENTER

√(A

2

+B

2

+C

2

)

⇒L

2ndF

(

ALPHA A x

2

+ ALPHA

B

x

2

+ ALPHA C x

2

)

STO

ALPHA L ENTER

Print L

PRGM 1

ALPHA L ENTER

Print “THE UNIT

PRGM 1

PRGM 2

VECTOR IS

2ndF A-LOCK T H E SPACE U N

I T SPACE V E C T O R

SPACE I S ENTER

Print A

÷L

PRGM 1

ALPHA

A

÷

ALPHA L ENTER

Print B

÷L

PRGM 1

ALPHA

B

÷

ALPHA L ENTER

Print C

÷L

PRGM 1

ALPHA

C

÷

ALPHA L ENTER

End

PRGM 6 ENTER

VECTORS

Advertising