Texas Instruments TI-89 Tip List page 36

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Define draw_all()=Prgm
PxlHorz main\±oy
PxlVert main\±ox
PxlHorz main\±ty
PxlVert main\±tx
PxlCrcl main\±oy,main\±ox,2
EndPrgm
© help()
© Display help dialog box
Define help()=Prgm
Dialog
Title "Ruler Help"
Text "[O] Set origin"
Text "[M] Measure"
Text "[STO▶] Copy measurement to Home"
Text "[H] Help"
Text "To quit:"
Text "[HOME], [ESC] or [QUIT]"
EndDlog
EndPrgm
© move_x(mode,distance)
© Move cursor (target or origin) in x-direction
Define move_x(m,i)=Prgm
If m=1 then
PxlVert main\±tx,0
mod(main\±tx+i,main\±x)→main\±tx
Else
PxlVert main\±ox,0
PxlCrcl main\±oy,main\±ox,2,0
mod(main\±ox+i,main\±x)→main\±ox
Endif
EndPrgm
© move_y(mode, distance)
© Move cursor (target or origin) in y-direction
Define move_y(m,i)=Prgm
If m=1 then
PxlHorz main\±ty,0
mod(main\±ty+i,main\±y)→main\±ty
Else
PxlHorz main\±oy,0
PxlCrcl main\±oy,main\±ox,2,0
mod(main\±oy+i,main\±y)→main\±oy
Endif
EndPrgm
© dist()
© Find distance and angle for current cursor locations
Define dist()=Func
local dd,dr,xd,yd
© dd
angle in degrees
© dr
angle in radians
© xd
x-axis distance between cursors
© yd
y-axis distance between cursors
(main\±tx-main\±ox)*±scl→xd
(main\±oy-main\±ty)*±scl→yd
If xd=0 and yd=0 Then
undef→dr:dr→dd
else
R▶Pθ(xd,yd)→dr
dr*180/Œ→dd
© Move target cursor
© ... erase old cursor line
© ... find new coordinate with wrap-around
© Move origin cursor
© ... erase old cursor line
© ... erase old origin circle
© ... find new coordinate with wrap-around
© Move target cursor
© ... erase old cursor line
© ... find new coordinate with wrap-around
© Move origin cursor
© ... erase old cursor line
© ... erase old origin circle
© ... find new coordinate with wrap-around
© Find x-axis distance
© Find y-axis distance
© Find angle
© ... angle is undef if x=0 and y=0
© ... else calculate angle in radians
© ... and degrees
1 - 25

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92+

Table of Contents