Please help! Programming on the Ti-92


[Prev][Next][Index][Thread]

Please help! Programming on the Ti-92



I have, tried!, to program a "points to y=mx=b form"  Which I mean you
enter two coordinate points and it gives you the slope and y intercept.
I have been pretty succesful so far, except that it always shows b=on the
end.  I used solve to fine the y-intercept, with the variable b.  Can
anyone out there tell me if there is a way to eliminate the b= thanks.  my
program is below if it is of any help . Oh and another question.  Can
anyone tell me how, after it shows it into linear form,  to  graph the
equation with the prgram.
Thanks in Advance.


Interc()
Prgm
ClrIO
Local q,w,e,r,slope,inter
Dialog
Title "Coordinates For Two Slopes"
Request "X1",q
Request "Y1",w
Request "X2",e
Request "Y2",r
EndDlog
expr(q)»q
expr(w)»w
expr(e)»e
expr(r)»r
(e-q)/(r-w)»slope
solve(w=slope*q+b,b)»inter


Output 20,40,"y="
Output 20,70,slope
Output 20,90,"x+"
Output 20,120,inter


EndPrgm




Visit my webpage at
http://www.geocities.com/SiliconValley/Park/4297/
Remember to sign my guestbook!!!!!
Gary