HP Forums

Full Version: CAS SETTINGS: full reserved variables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, other variables that are not documented or do not appear in the hp-prime catalog. Please hpteam to include them in future updates

list of internal variables: {approx_mode, complex_variables, complex_mode, all_trig_solutions, angle_radian, with_sqrt, increasing_power, bisection_solver, newtonj_solver}, etc.

bisection_solver:="hello"; // do not allow, when trying to store a invalid object on the reserved variables, it should show an error message

approx_mode:=1;

approx_mode:="hello"; // do not allow

complex_variables:=0;

complex_mode:=0;

example of use of the flags (internal variables), to show in the history different results or forms, for this reason it is important to include (next firmware) these internal variables that in some cases act as commands

xcas
PHP Code:
with_sqrt(0):; factor((5*s^2+32*s+45)/(s^3+6*s^2+9*s)) 
returns 
"Done", (5*s^2+32*s+45)/(s*(s+3)^2)


with_sqrt(1):; factor((5*s^2+32*s+45)/(s^3+6*s^2+9*s)) returns 
"Done", (s+((31)+16)/5)*(5*s-((31))+16)/(s*(s+3)^2
If such a list were made, it would be very helpful to also distinguish between the ones which can only be used in CAS mode, as well as the built-in named constants (e.g. title which always seems to be equal to 15).
Reference URL's