something like f(x) = x^2 |x<0
--
Micah
You can put it in a program << -> X << X 0. < 'X^2' 0. IFTE >> >> or under
the graph menu, you can specify the limits of the independant variable
aswell. Do you have any specific examples?
- Rob
"Siper" <nos...@yahoo.com> wrote in message
news:NG7y6.21681$ea6.2...@news1.frmt1.sfba.home.com...
f(x) = x, 0 < x < pi/2;
f(x) = (pi/2) sin(x), x > pi/2.
then what you can do is simply multiply each part by the given range and
then add them, so if you put this into the equation editor it would like so
Y1(X) = X*(0<X<pi/2) + (pi/2)*SIN(X)*(X>pi/2)
For your case, all you need to do is put down
Y1(X) = X^2*(X<0)
but I thought I'd include a larger example in case you run into more
complicated piecewise functions later on.
Cheers,
Alan Oquendo '03
aoqu...@princeton.edu
"Rob Atkinson" <z1...@unb.ca> wrote in message
news:%f9y6.134$im4....@sodalite.nbnet.nb.ca...
You can use the IFTE function (IFTE means IF Then Else):
'IFTE(condition, value_if_true,value_if_false)'
'F(X) = IFTE(X==0,0,SIN(X)/X)' DEFINE
or
'G(X) = IFTE(X<0,0,IFTE(X<1,X,X^2))' DEFINE
> There's an easier way than that, which I found back in my glory days of high
> school (man it's only been two years since then and already I feel I could
> attend my 10 year reunion). But anyway, let's say you wanted to make a
> piecewise function such as
>
> f(x) = x, 0 < x < pi/2;
> f(x) = (pi/2) sin(x), x > pi/2.
>
> then what you can do is simply multiply each part by the given range and
> then add them, so if you put this into the equation editor it would like so
>
> Y1(X) = X*(0<X<pi/2) + (pi/2)*SIN(X)*(X>pi/2)
The above will not work as expected on HPs, it needs to be
'Y1(X) = X*(0<X)*(X<pi/2) + (pi/2)*SIN(X)*(X>pi/2)'
Cheers,
Alan Oquendo '03
aoqu...@princeton.edu
"Virgil" <Vm...@frii.com> wrote in message
news:Vmhjr-2FAE5C....@news2.rdc2.tx.home.com...