D. JacKaL's Distance Formula
This program uses the Distance Formula to find the distance between 2 points. You will
be prompted to enter the X value of the first point, the Y value of the first point, the X
value of the second point, and the Y value of the second point. The calc then takes over and
uses the Distance Formula to find the distance between the 2 points.
/START80/
/NAME=DSTFORM
:LBL 1
:CLRHOME
:INPUT "X1=",X
:INPUT "Y1=",Y
:INPUT "X2=",Z
:INPUT "Y2=",\@\ (this is the "theta" character)
:\sqrt\((Z-X)\^2\+(\@\-Y)\^2\)->D (these are the square root sign and the squared sign)
:DISP "","DISTANCE=",D
:PAUSE
:LBL Q
:CLRHOME
:DISP "ANOTHER?","1:YES","2:NO"
:INPUT Q
:IF Q=1
:GOTO 1
:IF Q-2
:GOTO Q
:CLRHOME
/STOP80/