Program: Distance Between A Point And A Line

This commit is contained in:
Out Of Ideas 2024-05-15 12:57:32 -05:00
parent 3a558bf015
commit afc3074587
1 changed files with 22 additions and 0 deletions

22
DBAPAAL.ti Normal file
View File

@ -0,0 +1,22 @@
PROGRAM:DPAAPAAL
Disp "DISTANCE BETWEEN A POINT"
Disp "AND A LINE"
Pause
Disp ""
Dips "LINE: AX+BY+C"
Disp "POINT: (X,Y)"
Disp "D=abs(AX+BY+C)/sqrt(A^2+B^2)"
Pause
Disp ""
Disp "A"
Input A
Disp "B"
Input B
Disp "C"
Input C
Disp "X"
Input X
Disp "Y"
Input Y
abs(AX+BY+C)/sqrt(A^2+B^2)->D
Disp "DISTANCE=",D