HP Forums
CAS SETTINGS: full reserved variables - 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: CAS SETTINGS: full reserved variables (/thread-11554.html)



CAS SETTINGS: full reserved variables - compsystems - 10-08-2018 09:46 PM

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



RE: reserved variables - Joe Horn - 10-08-2018 11:17 PM

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).