A89: Re: Inequalities


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

A89: Re: Inequalities




> I know that this doesn't have much to do with assembly programming, but TI
> won't answer the question clearly, so I'm going to see if anyone here can
> figure it out. Is there a way to graph inequalities like 4X^2 + Y >= 15 (>=
> is greater than or equal to)?? If not, could an assembly program be written
> to do this? Thanks.

You need to create a function that returns 1 of it's input i "true" and 0 if it
is "false".
func test(x)
:if x then
: return 1
:else
: return 0
:endif

Then you can graph your function with
z1(x,y) = test((4x^2+y)>=15)

test() can also be used for piecewise graphing.

This is one of the things I dislike about my TI-92... whil it is mathematically
correct, it was so much easier on the 8x series (except the 89) where a test
actually returns 1 for true and 0 for false:
y1(x) = (x^2)(x<1)+(x^3)(x>=1)

*Much* nicer =)



 / Niklas Brunlid
Check out Prosit for the TI-89 / TI-92 Plus at http://c625.sparta.lu.se
Random PQF Quote follows:

Any town built by filling a mud hole with sawdust and proudly having a slug
as a sort of civic totem is a town, one feels, where Rincewind would feel
right at home.
        -- Terry looks forward to his visit to Seattle, USA.
           (Terry Pratchett, alt.fan.pratchett)




Follow-Ups: References: