Chapter 8: Application Examples
Program code
H=X√Œ+Y√Œ-X...Œ-Y...Œ
I=X≥-X√
J=X√-X...
K=Y≥-Y√
M=Y√-Y...
X=(GM-HK)©2(IM-JK)
* Perform equation 1.
Print X
Wait
Y=(GJ-HI)©2(KJ-MI)
* Perform equation 2.
Print Y
Wait
R=‰((X-X≥)Œ+(Y-Y≥)Œ)
* Perform equation 3.
Print R
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).
Press j to return to the PROG mode menu.
4.
Press 0, select the program 'CIRCLE' and press e.
5.
6.
Enter the coordinates (X
Result
The center is (4, 5) and radius is 5.
96
; 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 ; = @ v 0 -
@ v 2 e
; J ; = @ v 2 -
@ v 4 e
; K ; = @ v 1 -
@ v 3 e
; M ; = @ v 3 -
@ v 5 e
; X ; = ( ; G ; M -
; H ; K ) z 2 ( ; I
; M - ; J ; K ) e
i 0 ; X e
i 3 e
; Y ; = ( ; G ; J -
; H ; I ) z 2 ( ; K
; J - ; M ; I ) e
i 0 ; Y e
i 3 e
; R ; = @ * ( ( ; X
- @ v 0 ) A + ( ;
Y - @ v 1 ) A ) e
i 0 ; R e
to X
, Y
to Y
1
3
1
3
Key operations
) for the three points.