How to display terminal on virtual calculator
04-14-2018, 02:49 PM
Post: #15
 compsystems Senior Member Posts: 1,382 Joined: Dec 2013
RE: How to display terminal on virtual calculator
the difference that PRINT() deletes the terminal view, loss of previous information =(

try the following scripts

Xcas
PHP Code:
DispG; printf(x^2); DispHome; DispG;

HP-Prime
PHP Code:
PRINT();print(x^2);PRINT() ;

we also need a command with printing with format, printf cmd of Xcas

I still can not execute the following code in the hp-prime = (, it will be required command management of auto-simplified flags and readable printing type of math book and not linear expressions

PHP Code:
sol_sys():={local y,x,list0,expr0,lsolx,y1,y2,sols,test1;purge(x,y);autosimplify(nop); autosimplify();approx_mode(0); approx_mode();DispG; ClrIO; printf("Solving a system of two equations"); printf("Solve the following system:");list0 := [ y = x^2, y = 2*x + 3 ]; printf(list0);printf("substitute y = x² in y = 2x + 3:");expr0 := subst(list0(2),list0(1)); printf(expr0);printf("substract 2x + 3:");expr0 := expr0-(2*x + 3); printf(expr0);printf("simplify:");expr0 := simplify(expr0); printf(expr0);printf("factor:");expr0 := factor(expr0); printf(expr0);printf("zero factor theorem:");lsolx := [ part(left(expr0),1)=0, part(left(expr0),2)=0 ]; printf(lsolx);printf("First factor plus 3, second minus 1:");lsolx := [lsolx(1)+3, lsolx(2)-1 ]; printf(eval(lsolx,1));printf("simplify"); printf("x values:");lsolx := simplify(lsolx); printf(lsolx);printf("y values:"); printf("Replace x values in the system, firts equation");y1 := subst(list0(1),lsolx(1)); printf(y1);printf("Replace x values in the system, second equation");y2 := subst(list0(1),lsolx(2)); printf(y2);printf("Solutions shaped as a array");sols:=[[lsolx(1),y1],[lsolx(2),y2]]; printf(sols);printf("Checking results:"); printf("Replace x and y values in the system, firts equation");test1 := subst(list0(1),[sols(1,1),sols(1,2)]); printf(test1);printf("Evaluate:");test1 := evalb(test1); printf(test1);printf("Replace x and y values in the system, second equation");test1 := subst(list0(1),[sols(2,1),sols(2,2)]); printf(test1);printf("Evaluate:");test1 := evalb(test1); printf(test1);sols := solve([ y = x^2, y = 2*x + 3 ],[x,y]); printf("Solutions:"); printf(sols);printf("Solutions shaped as a boolean expression:");sols := list2exp(sols,[x,y]); printf(eval(sols,1));printf("Graphing");plot([x^2,2*x+3],x);return("Done");}:;
 « Next Oldest | Next Newest »

 Messages In This Thread How to display terminal on virtual calculator - daryl178 - 12-13-2015, 12:08 AM RE: How to display terminal on virtual calculator - DrD - 12-13-2015, 05:28 AM RE: How to display terminal on virtual calculator - daryl178 - 12-13-2015, 08:10 AM RE: How to display terminal on virtual calculator - Tim Wessman - 12-13-2015, 04:18 PM RE: How to display terminal on virtual calculator - Marcus von Cube - 12-13-2015, 05:28 PM RE: How to display terminal on virtual calculator - fhub - 12-14-2015, 09:39 AM RE: How to display terminal on virtual calculator - Cristóbal De Jesús - 04-13-2018, 10:21 PM RE: How to display terminal on virtual calculator - daryl178 - 12-15-2015, 05:36 AM RE: How to display terminal on virtual calculator - DrD - 04-11-2018, 10:03 PM RE: How to display terminal on virtual calculator - daryl178 - 04-12-2018, 06:23 AM RE: How to display terminal on virtual calculator - Arno K - 04-12-2018, 07:01 AM RE: How to display terminal on virtual calculator - Brad Barton - 04-13-2018, 01:52 AM RE: How to display terminal on virtual calculator - compsystems - 04-14-2018, 01:40 PM RE: How to display terminal on virtual calculator - Giancarlo - 04-14-2018, 02:23 PM RE: How to display terminal on virtual calculator - compsystems - 04-14-2018 02:49 PM

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