04-28-2021, 02:54 AM
Hello
My first HPcalc was a hp48gx and I used the [Var] key to access the variables in the HOME directory, this key is merged into my memory.
Now when I press the [VARS] key on the hp-prime, it doesn't show a menu for user functions, only vars functions (export) and CAS user variables and functions. I think there has to be a menu for this, my proposal is that when pressing the [HOME] menu, it is shown as option 8: the user variables, see attached image.
Similarly, in the [TOOLS] menu it shows only the functions variables of the HOME mode, the CAS menu must have as option 8: a menu to access the user variables.
Now if the program contains global variables, if the variables menu appears, but the name of the function cannot be accessed, it is necessary to press the [Tools] button, thne [User], the idea is that everything is unified, both the program variables and the functions of a file in a single menu, because otherwise it causes confusion.
My first HPcalc was a hp48gx and I used the [Var] key to access the variables in the HOME directory, this key is merged into my memory.
Now when I press the [VARS] key on the hp-prime, it doesn't show a menu for user functions, only vars functions (export) and CAS user variables and functions. I think there has to be a menu for this, my proposal is that when pressing the [HOME] menu, it is shown as option 8: the user variables, see attached image.
Similarly, in the [TOOLS] menu it shows only the functions variables of the HOME mode, the CAS menu must have as option 8: a menu to access the user variables.
Now if the program contains global variables, if the variables menu appears, but the name of the function cannot be accessed, it is necessary to press the [Tools] button, thne [User], the idea is that everything is unified, both the program variables and the functions of a file in a single menu, because otherwise it causes confusion.
PHP Code:
#cas
triangleArea_cas():=
begin
purge(const_t, area_t, base_t, height_t, answer_t);
print; PRINT()
const_t := '1/2';
area_t := const_t*'(base_t * height_t)';
print( 'area'=area_t );
print( "Please enter the BASE of the triangle " ); wait;
base_t := 3; print( ">" + base_t );
print( "Please enter the HEIGHT of the triangle " ); wait;
height_t := 4; print( ">" + height_t );
answer_t := eval(area_t);
print( "The AREA of the triangle is: " + answer_t );
return { 'base'=base_t, 'height'=height_t, 'area'=answer_t };
end;
PHP Code:
export area_t, base_t, height_t, answer_t;
//export area_t, base_t:=3, height_t:=4, answer_t;
const const_t:= '1/2';
export TriangleArea_home()
begin
// local area_t, base_t, height_t, answer_t;
print();
area_t := const_t*'base_t * height_t';
print2d( 'area'=area_t ); // FIRMWARE 2021
print( "Please enter the BASE of the triangle " ); wait;
input( base_t ); print( ">" + base_t );
print( "Please enter the HEIGHT of the triangle " ); wait;
input( height_t ); print( ">" + height_t );
answer_t := eval(area_t);
print( "The AREA of the triangle is: " + answer_t );
return { "base="+base_t, "height="+height_t, "area="+answer_t };
end;