HP Forums
Is it possible to calculate a limit of a 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: Is it possible to calculate a limit of a piecewise function? (/thread-2274.html)



Is it possible to calculate a limit of a piecewise function? - Mickpc - 10-12-2014 01:06 AM

I tried to enter a piecewise function into the limit function but it returns:

Error: Bad Argument Value

is it possible to work around this?

Michael C


RE: Is it possible to calculate a limit of a piecewise function? - Helge Gabert - 10-12-2014 04:36 PM

Possibly . . . give an example, that would help.


RE: Is it possible to calculate a limit of a piecewise function? - Mickpc - 10-12-2014 09:46 PM

Sure:

limit(PIECEWISE(x<1,1,x>1,0),x,1)

However I entered it in using the templates.

Thank you

Michael C


RE: Is it possible to calculate a limit of a piecewise function? - Helge Gabert - 10-12-2014 11:53 PM

Doesn't work for me, either.

However, if you put in a default condition at the end, like

piecewise(x<1,1,x>1,0,9)

all limits get computed

from the left limit x ->1^-1 returns 1

from the right limit x ->1^1 returns 0

from both sides limit x -> 1^0 returns "unidirectional limits are distincts [sic]".


RE: Is it possible to calculate a limit of a piecewise function? - Mickpc - 10-13-2014 12:37 AM

Thank you Helge

Mick C