Sponsored links: Algebra eBooks
 

Related

showtime-solve-true

showtime:true;

solve(x^2+x+4=0,x);

Calculate

showtime-sqrt-true

showtime:true;

sqrt((x^3+x^(999/1000...

Calculate

showtime-true

showtime: true;

1/2;

desc(/* abc */ "abcde...

Calculate

showtime-sum-true

showtime:true;

sum(k,k,1,100);

Calculate

showtime

showtime:all;

for c thru 10^3 do fa...

Calculate

showtime-sum-true

showtime:true;

sum(k,k,1,10000);

Calculate

showtime-solve-true

showtime:true;

solve(x^2+x+4=0,x);

Calculate

showtime-sqrt-true

showtime:true;

sqrt((x^3+x^(999/1000...

Calculate

showtime

showtime:all;

for c thru 10^2 do fa...

Calculate

showtime

Run Example
(%i1)? showtime;

 -- Option variable: showtime
     Default value: `false'

     When `showtime' is `true', the computation time and elapsed time is
     printed with each output expression.

     The computation time is always recorded, so `time' and `playback'
     can display the computation time even when `showtime' is `false'.

     See also `timer'.


(%o1)                                true
(%i2) 
Run Example
(display2d:false,assume(t>
0));

(%o1) [t > 0]
(%i2) 
x (t) := ''(integrate (cos (s^2 * %pi/2), s, 0, t));

(%o2) x(t):=-((%i-1)*erf(sqrt(%pi)*(%i+1)*t/2)
             +(%i+1)*erf(sqrt(%pi)*(%i-1)*t/2))/4
(%i3) 
y (t) := ''(integrate (sin (s^2 * %pi/2), s, 0, t));

(%o3) y(t):=((%i+1)*erf(sqrt(%pi)*(%i+1)*t/2)
             +(%i-1)*erf(sqrt(%pi)*(%i-1)*t/2))/4
(%i4) 
showtime:true;
Evaluation took 0.0000 seconds (0.0000 elapsed)
(%o4) true
(%i5) 
Evaluation took 0.0000 seconds (0.0100 elapsed)
load(draw);
Evaluation took 0.0200 seconds (0.0300 elapsed)
(%o5) "/usr/share/maxima/5.21.1/share/draw/draw.lisp"
(%i6) 
Evaluation took 0.0000 seconds (0.0000 elapsed)
draw2d( explicit(x(t),t,0,3) );
plotdraw2d( explicit(x(t),t,0,3) );draw2d( explicit(y(t),t,0,3) );
plotdraw2d( explicit(y(t),t,0,3) );draw2d( parametric(x(t),y(t),t,0,5),nticks=1000);
plotdraw2d( parametric(x(t),y(t),t,0,5),nticks=1000);xfr(t) := realpart(float(x(t)));
Evaluation took 0.0000 seconds (0.0000 elapsed)
(%o9) xfr(t):=realpart(float(x(t)))
(%i10) 
Evaluation took 0.0000 seconds (0.0000 elapsed)
map('xfr,[1,2,3,4,5,6,7]);
Evaluation took 0.0100 seconds (0.0100 elapsed)
(%o10) [0.77989340037682,0.48825340607534,0.60572078929769,0.49842603303818,
        0.56363118870401,0.4995314678555,0.54546709254697]
(%i11) 
Evaluation took 0.0000 seconds (0.0000 elapsed)
xfi(t) := imagpart(float(x(t)));
Evaluation took 0.0000 seconds (0.0000 elapsed)
(%o11) xfi(t):=imagpart(float(x(t)))
(%i12) 
Evaluation took 0.0000 seconds (0.0000 elapsed)
map('xfi,[1,2,3,4,5,6,7]);
Evaluation took 0.0000 seconds (0.0000 elapsed)
(%o12) [-5.5511151231257827E-17,-1.1102230246251565E-16,
        -5.5511151231257827E-17,-2.7755575615628914E-16,
        2.7755575615628914E-17,-3.8857805861880479E-16,
        -2.7755575615628914E-17]
(%i13) 
Evaluation took 0.0000 seconds (0.0000 elapsed)
Run Example
showtime: true;
Evaluation took 0.0000 seconds (0.0000 elapsed)
(%o1)                                true
(%i2) Evaluation took 0.0000 seconds (0.0000 elapsed)
val: 10;
Evaluation took 0.0000 seconds (0.0000 elapsed)
(%o2)                                 10
(%i3) Evaluation took 0.0000 seconds (0.0000 elapsed)
slist: makelist(s[ii],ii,1,val);
Evaluation took 0.0000 seconds (0.0000 elapsed)
(%o3)              [s , s , s , s , s , s , s , s , s , s  ]
                     1   2   3   4   5   6   7   8   9   10
(%i4) Evaluation took 0.0000 seconds (0.0000 elapsed)
tlist: makelist(t[ii],ii,1,val);
Evaluation took 0.0000 seconds (0.0000 elapsed)
(%o4)              [t , t , t , t , t , t , t , t , t , t  ]
                     1   2   3   4   5   6   7   8   9   10
(%i5) Evaluation took 0.0000 seconds (0.0000 elapsed)
makelist(slist[ii]=tlist[ii],ii,1,val);
Evaluation took 0.0000 seconds (0.0000 elapsed)
(%o5) [s  = t , s  = t , s  = t , s  = t , s  = t , s  = t , s  = t , s  = t , 
        1    1   2    2   3    3   4    4   5    5   6    6   7    7   8    8
                                                            s  = t , s   = t  ]
                                                             9    9   10    10
(%i6) Evaluation took 0.0000 seconds (0.0000 elapsed)
map("=",slist,tlist);
Evaluation took 0.0000 seconds (0.0000 elapsed)
(%o6) [s  = t , s  = t , s  = t , s  = t , s  = t , s  = t , s  = t , s  = t , 
        1    1   2    2   3    3   4    4   5    5   6    6   7    7   8    8
                                                            s  = t , s   = t  ]
                                                             9    9   10    10
(%i7) Evaluation took 0.0000 seconds (0.0000 elapsed)

Related Help

Help for Showtime