Re: programming a piecewise function on the 48 G Message #5 Posted by Arnold Steekelenburg on 1 July 2002, 9:29 a.m., in response to message #1 by Fernando Leyton
Hi Fernando,
Another way is this:
Type in:
'F(X)=IFTE(X<5,3*X,IFTE(X>5 AND X<0,X/25,EXP(X)))'
Then press leftshift STO (= Define)
Press VAR and you'll see the variable (function) F.
Type a value and press the softkey for F and this will be evaluated immediately.
Rightshift F will give you the program the HP48 has created as a result of the DEFinition.
IFTE = short IF THEN ELSE
Using this construction you can plot piecewise functions too.
Arnold
