This could be greatly sped up by changing maxima.assume('...') to maxima.eval("assume(..)") in the calculus code...
sage: timeit("maxima.eval('assume(x>0)')") 5 loops, best of 3: 53.2 ms per loop sage: timeit("maxima.assume(x>0)") 5 loops, best of 3: 122 ms per loop I don't have time to do this... On Tue, Oct 14, 2008 at 7:32 AM, Stan Schymanski <[EMAIL PROTECTED]> wrote: > > Dear all, > > Is there a reason why the assume(...) command takes so much longer > than var(...)? > Example: > %time > var('av jbiom lwat p rwat veloc mort epot esv etv esb etb wv wb qbv > bv') > gives: > CPU time: 0.00 s, Wall time: 0.00 s > On the other hand, > %time > assume(p>0, veloc>0, > mort>0,lwat>0,jbiom>0,rwat>0,av>0,av<1,wv>0,wb>0,bv>0) > gives: > CPU time: 2.91 s, Wall time: 8.78 s > > This is with sage 3.1.2. on an Intel Mac with OS X 10.4.11. > > Thanks for your help! > > Stan > > > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---