HP Forums
plot of piecewise function - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: plot of piecewise function (/thread-1753.html)



plot of piecewise function - Angus - 06-30-2014 12:09 PM

How can I plot a piecewise function?

The prime can give spline interpolation for given data points. Of course I would like to plot the resulting spline. Something like PlotPiecewise( {piecewise funcs}, {Xs}).
I did not get a plotting app to do so.

thanks


RE: plot of piecewise function - Tim Wessman - 06-30-2014 02:49 PM

Perhaps the PIECEWISE function would be of help...

Go into the function app. Press the template key (the ALPHA C key). Select the piecewise function. Enter input. Plot.

You are limited to 16 inputs (8 statements and 8 conditions). Last argument, as shown by the template, is optional.


RE: plot of piecewise function - Angus - 07-01-2014 06:49 AM

Thank you. I would have preferred a way that lets me 'reuse' the x-values I just entered and used for the spline calculation in combination with the spline vector result.