Point-line distance calculator
by Daniel Wedge
27/10/2002
*** MORE GAMES AND PROGRAMS FOR CASIO CALCULATORS AT ***
******** http://www.student.uwa.edu.au/~wedgey *********
This program calculates the distance of a point (U,V)
to a line Ax + By + C = 0.
Symbols:
-> Assign (the arrow)
^2 square
sqrt square root
* multiply
/ divide
Size: 103 bytes.
'LINEDIST
"A"? -> A
"B"? -> B
"C"? -> C
"U"? -> U
"V"? -> V
(U-AC/(B^2)-AV/B)/(1+(A/B)^2) -> X
(AX+C)/-B -> Y
sqrt((X-Y)^2+(Y-V)^2)