HP Forums

Full Version: Condition on equation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi! I've just received my new HP Prime (latest model) and am very excited. I'm also new to this forum. But I'm not new to HP calculators, I have a HP 48 and a HP50g.

Anyway, fiddling around with it, I was wondering whether there is a way to specify a condition on a formula in CAS mode. For example, if I want to add the condition x<1 before solving for x. Is that possible?
With assume( ) and additionally( ) you can perform those actions
Hi!, EricR :
Try with CASE, per example ...
CASE IF A<0
THEN RETURN "negative";
END;
IF 0≤A≤1
THEN RETURN "small";
END;
DEFAULT RETURN "large";
END;

See, from User Guide ... http://h10032.www1.hp.com/ctg/Manual/c05332710
Thanks a lot! assume() was what I was looking for. I've got to study the manual...
How you would cancel an assume/additionally?
purge()
As far as I know the only way is "purge(var)".
Arno
Reference URL's