Re: ti-syntax...


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

Re: ti-syntax...



An improvement to the method below is to DIVIDE by the conditions that specify the domain:
 
Y1 = (X^3 - 12X + 1) / ((X > -3) and (X < 3))
 
This way, instead of getting 0 when you are out of range, the function will be undefined (which seems to be the effect you were looking for).
 
On a related note, if you wanted to graph a piecewise defined function, you could do it as follows.
 
Y1 = (X^2)*(X <= 0) + (2X - 5) * (X > 0)
 
This way, when X <= 0, the right hand side of the addition will be 0, and when X > 0, the left hand side would be 0 instead.
 
Norm Krumpe
-----Original Message-----
From: Open discussion of TI Graphing Calculators [mailto:CALC-TI@LISTS.PPP.TI.COM]On Behalf Of Brian Rue
Sent: Sunday, January 21, 2001 12:25 AM
To: CALC-TI@LISTS.PPP.TI.COM
Subject: Re: ti-syntax...

One way:
 
Y1=(-3<x)(x<3)(x^3 - 12x + 1)
 
If -3<x, the test operation returns 1 (if not, it returns 0). This way, when the value for x is out of range, the value for y is 0. It's not ideal, but works.
 
You could also set the window...

References: