Distance Formula

Program to solve the 2D distance formula [math]d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}[/math] on a TI-83/Plus:

 

 

 

Input "X1? ",A
Input "X2? ",B
Input "Y1? ",C
Input "Y2? ",D
sqrt((A-C)^2+(B-D)^2)->(THETA)
Disp "Distance is",(THETA)>FRAC

 

 

 

 

Leave a reply