• Graphics Commands in TI-NSpire CX II CAS?

    From Tom Lake@21:1/5 to All on Sun May 19 13:07:04 2019
    Does anyone know how to use the graphics commands (SetWindow, PlotXY, etc.) on the new Nspire CX II CAS? I have the latest online manuals and there's no mention of them there. I can get the syntax from the catalog function but it doesn't tell you what
    each parameter's limits are. I'm currently waiting for my calculator to arrive and am trying to get up to speed in the Student Software which has the new commands.

    Here's a program that's supposed to draw a 3-D hat but it looks like hell since I don't know the finer points of the new commands.

    Define hat()=
    Prgm
    :Local l170
    :Define l170()=Prgm
    : x1:=xx+zz+p
    : y1:=yy-zz+q
    : SetColor 0,0,0
    : PlotXY x1,y1,1
    : If y1≠0 Then
    : SetColor 255,255,255
    : DrawLine x1,y1-1,x1,0
    : EndIf
    :EndPrgm
    :SetWindow 0,319,0,199
    :p:=160: q:=100
    :xp:=144: xr:=1.5*3.1415927
    :yp:=56: yr:=1: zp:=64
    :xf:=((xr)/(xp)): yf:=((yp)/(yr)): zf:=((xr)/(zp))
    :For zi,−q,q-1
    : If zi≥−zp and zi≤zp Then
    : zt:=((zi*xp)/(zp)): zz:=zi
    : xl:=int(0.5*√(xp*xp-zt*zt))
    : For xi,−xl,xl
    : xt:=√(xi*xi+zt*zt)*xf: xx:=xi
    : yy:=(sin(xt)+0.4*sin(3*xt))*yf
    : l170()
    : EndFor
    : EndIf
    :EndFor
    :EndPrgm

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)