PIECEWISE editing improvement suggestion - 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: PIECEWISE editing improvement suggestion ( /thread-62.html) |

PIECEWISE editing improvement suggestion - Alberto Candel - 12-13-2013 08:46 AM
One can define a piecewise function with the command PIECEWISE(cond1,expr1,cond2,expr2...) (BTW, is there a limit to the number of cond and expr?). Once entered, this transforms into the usual math notation {exp if cond ... If a piecewise function is entered in the function app, and later that definition needs to be updated, say by adding a new condition, the editor does not allow that. It would be nice to be able to do so as one does with matrices. Also, the math template key provides a menu where one finds the template for piecewise at the (2,5) entry, but it offers only two conditions. Could that be made to work like the matrix template that allows for adding rows (and columns)? RE: PIECEWISE editing improvement suggestion - Tim Wessman - 12-13-2013 03:22 PM
Put the cursor after the if in your last definition and press [ , ] . There you go. I'll investigate ways to make this more obvious. RE: PIECEWISE editing improvement suggestion - compsystems - 12-13-2013 04:15 PM
sorry for my bad English TIM >> I'll investigate ways to make this more obvious can be to place in the title bar a temp message, or create a temporary status bar "use [,] to include a new condition" Request: Please improve it in the next kernel upgrade, the following No pretty print for (x < -pi) is displayed as (-pi > x) UGLY same for x<0 Example F1(x):=PIECEWISE( X<0, PIECEWISE( X< -pi , 4*sin(X), 2*X+5 ), 5-X^2 ) [ENTER] => F1(x):=PIECEWISE( 0>x, PIECEWISE( -pi > x , 4*sin(x), 2*x+5 ), 5-x^2 ) RE: PIECEWISE editing improvement suggestion - Alberto Candel - 12-13-2013 04:51 PM
(12-13-2013 03:22 PM)Tim Wessman Wrote: Put the cursor after the if in your last definition and press [ , ] . There you go. Once you know how, it makes perfect sense. Thanks! RE: PIECEWISE editing improvement suggestion - cyrille de brĂ©bisson - 12-16-2013 06:52 AM
Hello, (12-13-2013 08:46 AM)Alberto Candel Wrote: One can define a piecewise function with the command PIECEWISE(cond1,expr1,cond2,expr2...) yes, the limit is either 7 or 8 groups. if my memory serves me well. Cyrille |