The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

50g piecewise functions
Message #1 Posted by Kurt Fankhauser on 15 Sept 2013, 3:20 a.m.

Is it possible to plot a piecewise function. I imagine that you would enter a separate Y= function for each segment, but how do you limit the domain of each function?

Also, how do you clear previous defined Y= functions? Every time I add a new one it increments the counter on it (so the latest one is displayed as Y11(x)=...). All previous functions are displayed in the CHOOS box. I want to clear them all. The CLEAR soft key only clears the functions listed in the PLOT-FUNCTION window, but not the CHOOS box.

      
Re: 50g piecewise functions
Message #2 Posted by Pier Aiello on 15 Sept 2013, 4:45 a.m.,
in response to message #1 by Kurt Fankhauser

For piecewise functions use IFTE (check best of on wiki4hp )

            
Re: 50g piecewise functions
Message #3 Posted by Kurt Fankhauser on 15 Sept 2013, 8:00 p.m.,
in response to message #2 by Pier Aiello

Thanks Pier. I could not get the IFTE to work correctly with the Y= definition and plotting. The 50g thought for a while then gave an out-of-memory error. I read of others having similar issues.

Instead I found this post which suggested to multiply each segment by a logical domain relational expression:

https://groups.google.com/forum/#!topic/comp.sys.hp48/ZIv5UDxWcHA/discussion

For example, Y=(X^2)*(X>-1)(X<0)+(x-3)*(X>=0)(X<3)

That worked for me on my 50g with version 50-c revision 2.15 ROM.

                  
Re: 50g piecewise functions
Message #4 Posted by Pier Aiello on 16 Sept 2013, 2:36 a.m.,
in response to message #3 by Kurt Fankhauser

Good :)

                  
Re: 50g piecewise functions
Message #5 Posted by Simone Cerica on 16 Sept 2013, 1:20 p.m.,
in response to message #3 by Kurt Fankhauser

IFTE BUG is present in ROM 2.15: https://groups.google.com/forum/#!topic/comp.sys.hp48/R3Pp62J_9SM

SC

      
Reset function number from the graph menu
Message #6 Posted by Pier Aiello on 15 Sept 2013, 8:42 a.m.,
in response to message #1 by Kurt Fankhauser

For the functions in the graph menu, i just found (during my mining task on discussion boards) a really similar question. I'll add it on the page previously linked :)

http://h30499.www3.hp.com/t5/Calculators/impossible-to-reset-functions-in-graph-menus/td-p/5892643

Edited: 15 Sept 2013, 9:13 a.m.

            
Re: Reset function number from the graph menu
Message #7 Posted by Kurt Fankhauser on 15 Sept 2013, 8:01 p.m.,
in response to message #6 by Pier Aiello

Thanks Pier. Boy, could they have made this any more difficult?


[ Return to Index | Top of Index ]

Go back to the main exhibit hall