Sharp EL-5230 User Manual

Page 98

Advertising
background image

96

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 -
; 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 -
; 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 + ( ;
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 (X

1

to X

3

, Y

1

to Y

3

) for the three points.

Result

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

Chapter 8: Application Examples

* Perform equation 1.

* Perform equation 2.

* Perform equation 3.

Advertising
This manual is related to the following products: