Sharp EL-5250, EL-5230 operation manual Program code, Key operations, Example, Result

Models: EL-5230 EL-5250

1 132
Download 132 pages 32.97 Kb
Page 98
Image 98
Manual background

Chapter 8: Application Examples

Program code

Key operations

H=X√Œ+Y√Œ-X…Œ-Y…Œ

; H ; = @ v 2 A

 

+ @ v 3 A - @ v

 

d d d d X3 e e A

 

- @ v d d d d d

 

Y3 e e A e

 

 

I=X≥-X√

; I ; = @ v 0 -

 

@ v 2 e

 

 

J=X√-X…

; J ; = @ v 2 -

 

@ v 4 e

 

 

K=Y≥-Y√

; K ; = @ v 1 -

 

@ v 3 e

 

 

M=Y√-Y…

; M ; = @ v 3 -

 

@ v 5 e

 

 

X=(GM-HK)©2(IM-JK)

; X ; = ( ; G ; M -

* Perform equation 1.

; H ; K ) z 2 ( ; I

; M - ; J ; K ) e

 

 

 

Print X

i 0 ; X e

 

 

Wait

i 3 e

 

 

Y=(GJ-HI)©2(KJ-MI)

; Y ; = ( ; G ; J -

* Perform equation 2.

; H ; I ) z 2 ( ; K

; J - ; M ; I ) e

 

 

Print Y

i 0 ; Y e

 

 

Wait

i 3 e

 

R=‰((X-X≥)Œ+(Y-Y≥)Œ) ; R ; = @ * ( ( ; X

-@ v 0 ) A + ( ;

*Perform equation 3. Y - @ v 1 ) A ) e

Print R

i 0 ; R e

Example

Obtain the center coordinates (X, Y) and radius R of the circle that passes through points P(1, 9), Q (7, 1) and S (0, 2).

4.Press j to return to the PROG mode menu.

5.Press 0, select the program ‘CIRCLE’ and press e.

6.Enter the coordinates (X1 to X3, Y1 to Y3) for the three points.

Result

Manual background The center is (4, 5) and radius is 5.

96

Page 98
Image 98
Sharp EL-5250, EL-5230 operation manual Program code, Key operations, Example, Result