Program: Distance Between A Point And A Line
This commit is contained in:
parent
3a558bf015
commit
afc3074587
1 changed files with 22 additions and 0 deletions
22
DBAPAAL.ti
Normal file
22
DBAPAAL.ti
Normal 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
|
Loading…
Reference in a new issue