Sharp EL-9900 User Manual

Page 136

Advertising
background image

3

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 perform the bisection method for approximating

the root of a polynomial.

2.

Create a new program with the name BISECT. 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 A 3 ALPHA B ENTER

A

⇒X

ALPHA A STO X/

θ/T/n ENTER

If Y1>0

PRGM B 0

3 2ndF VARS

A ENTER

Goto A

A 1 MATH F

3 0 PRGM B 0

2 ALPHA A

ENTER

A

⇒N

ALPHA A STO ALPHA N ENTER

B

⇒P

ALPHA

B STO ALPHA P ENTER

Goto B

PRGM B 0 2 ALPHA B ENTER

Label A

PRGM B 0 1 ALPHA A ENTER

A

⇒P

ALPHA A STO

ALPHA P ENTER

B

⇒N

ALPHA B STO

ALPHA N ENTER

Label B

PRGM B 0 1 ALPHA B ENTER

(P+N)

÷

2

⇒X

(

ALPHA P + ALPHA N )

÷ 2

STO X/

θ/T/n ENTER

Print X

PRGM A 1 X/

θ/T/n ENTER

Wait

PRGM A 4 ENTER

If Y1>0

PRGM B 0 3 2ndF VARS A ENTER

Goto C

A 1 MATH F 3 0 PRGM B 0

2

ALPHA

C ENTER

X

⇒N

X/

θ/T/n STO ALPHA N ENTER

Goto D

PRGM B 0 2 ALPHA D ENTER

Label C

PRGM B 0 1 ALPHA C ENTER

X

⇒P

X/

θ/T/n STO ALPHA P ENTER

Label D

PRGM B 0 1 ALPHA D ENTER

THE BISECTION METHOD

Advertising