04-17-2021, 09:09 AM
The last supported ROM 2.15 has a known bug when graphing an equation that includes IFTE. IFTE is very useful to plot piecewise functions, but the HP 50g throws an 'insufficient memory' message when plotting. There are several workarounds, like using the RPL version of IFTE in a program. But working with one or several IFTE nested commands inside an equation or algebraic object is very convenient.
I bet somebody else found this workaround, but I found interesting to report it: a simple solution is to embed the equation in a program that ends with →NUM and plot that program.
For example, to graph 'IFTE(X>0,X,-X)', create this RPL program:
Save it to a variable, e.g., FX1 and enter the graphing environment with the keys [LS+][Y=]. Then add the equation to be plotted as Y1(X)=FX1 and draw it.
Another way of doing roughly the same is by putting this on the stack:
Then press [STO][STO], go to the graphing environment, add the equation to be plotted as Y1(X)=FX1 and draw it.
This way is practical to create/edit the equation with the preferred editing tool (the equation writer or the basic editor). And to enter additional changes in the equation it is only required to edit the variable 'EQ1'.
I bet somebody else found this workaround, but I found interesting to report it: a simple solution is to embed the equation in a program that ends with →NUM and plot that program.
For example, to graph 'IFTE(X>0,X,-X)', create this RPL program:
Code:
« 'IFTE(X>0,X,-X)' →NUM »
Save it to a variable, e.g., FX1 and enter the graphing environment with the keys [LS+][Y=]. Then add the equation to be plotted as Y1(X)=FX1 and draw it.
Another way of doing roughly the same is by putting this on the stack:
Code:
4: 'IFTE(X>0,X,-X)'
3: 'EQ1'
2: « EQ1 →NUM »
1: 'FX1'
This way is practical to create/edit the equation with the preferred editing tool (the equation writer or the basic editor). And to enter additional changes in the equation it is only required to edit the variable 'EQ1'.