Calculator Programs
You can program your calculator to calculate slope, distance, and midpoint for you. You can also get these programs by linking your calculator to another calculator that already has the programs.
SLOPE
:ClrHome
:Input "X COORD?",A
:Input "Y COORD?",B
:Input "X COORD?",C
:Input "Y COORD?",D
:"(B-D)/(A-C)->L
:Disp "SLOPE IS",L
:Disp "PERP SLOPE IS",-1/L
:Stop
Note: -> is the STO button on your calculator.
DISTANCE
:ClrHome
:Input "FIRST X VALUE?",A
:Input "FIRST Y VALUE?",B
:Input "SECOND X VALUE?",C
:Input "SECOND Y VALUE?",D
:square root((A-C)^2+(B-D)^2)->L
:Disp "DISTANCE IS",L
:Stop
Note: square root needs to be your square root button, not the words square root
MIDPOINT
:ClrHome
:Input "X COORD?",A
:Input "Y COORD?",B
:Input "X COORD?",C
:Input "Y COORD?",D
:(A+C)/2->X
:(B+D)/2->Y
:Disp "MIDPT COORDS"
:Disp "X VALUE",X
:Disp "Y VALUE",Y
:Stop
Note: -> means the STO button on your calc.
0 Comments:
Post a Comment
<< Home