A89: Re: Re: Inequalities


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

A89: Re: Re: Inequalities




> z1(x,y) = test((4x^2+y)>=15)

This intrigues me.  The resulting graph will only display a 1 or a 0, am I
right?  I think this is what you intended:

z1(x,y)=test((4x^2+y)>=15)(4x^2+y)

-Miles Raymond      EML: m_rayman@bigfoot.com
ICQ: 13217756       IRC: Killer2        AIM: KilIer2 (kilier2)
http://www.bigfoot.com/~m_rayman/

----- Original Message -----
From: Niklas Brunlid <e96nbr@efd.lth.se>
To: <assembly-89@lists.ticalc.org>
Sent: Thursday, August 05, 1999 7:58 PM
Subject: 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)



References: