50g piecewise functions



#2

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.


#3

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


#4

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.


#5

Good :)

#6

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

SC

#7

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.


#8

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


Possibly Related Threads...
Thread Author Replies Views Last Post
  [41CL] New Extra Functions version Monte Dalrymple 0 149 11-08-2013, 04:32 PM
Last Post: Monte Dalrymple
  HP Prime: in need of help with defining functions Alberto Candel 14 656 10-27-2013, 10:48 AM
Last Post: Alberto Candel
  HP Prime spreadsheet functions SanS 0 334 10-04-2013, 04:23 AM
Last Post: SanS
  Stats functions on the HP34S Nicholas van Stigt 5 278 09-24-2013, 02:45 AM
Last Post: Nick_S
  Trig Functions Howard Owen 11 511 09-16-2013, 02:53 PM
Last Post: Fred Lusk
  Missing functions on the HP Prime!!!??? :-( Namir 6 326 08-22-2013, 08:40 AM
Last Post: Gilles Carpentier
  HP41 Functions Address Table (F.A.T.) Antoine M. Couëtte 6 298 07-21-2013, 02:48 AM
Last Post: Antoine M. Couëtte
  Trigonometric Functions (HP-17BII) Gerson W. Barbosa 2 232 04-09-2013, 11:57 PM
Last Post: Gerson W. Barbosa
  [41CL] Rescue from 'Lost Y Functions' Dan Grelinger 18 593 02-16-2013, 02:08 PM
Last Post: Diego Diaz
  Question about trig functions approximation Namir 8 348 01-10-2013, 06:49 AM
Last Post: Valentin Albillo

Forum Jump: