Post Reply 
Existing CAS commands --> Prime discussion
08-03-2018, 10:29 PM
Post: #26
RE: Existing CAS commands --> Prime discussion
Please include the autosimplify(#) xcas command to set or not the simplification

In the following code the line,

autosimplify(2); // nop=none, 1=regroup, 2=simplify

is not yet interpreted on hp-prime

When changing the flag autosimplify(#), change the output please check the following code in xcas, varying the autosimplify(#) argument

PHP Code:
#cas
        
test_simplify_flag():=
    
BEGIN
        
        local  list0
,expr0;
        
local xy;
        
assumexsymbol ); // purge(x);
        
assumeysymbol ); // purge(y);
        
        
autosimplify(2); // nop=none, 1=regroup, 2=simplify

        
print;
        print(
"Solving a system of two equations.  
Solve the  following system  [ y=x², y=2x+3 ]"
);

        
list0 := [ x^22*]; print(list0);

        print(
""); print("> substitute y = x² in y = 2·x + 3");
        
expr0 := subst(list0(2),list0(1)); print(expr0);

        print(
""); print("> substract 2·x + 3");
        
expr0 := expr0-(2*3); print(expr0);
        Return 
expr0;
    
END;
#end 
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Existing CAS commands --> Prime discussion - compsystems - 08-03-2018 10:29 PM



User(s) browsing this thread: 1 Guest(s)