#4566: speed up assume command (easy change)
----------------------+-----------------------------------------------------
 Reporter:  was       |       Owner:  burcin    
     Type:  defect    |      Status:  new       
 Priority:  minor     |   Milestone:  sage-3.2.1
Component:  calculus  |    Keywords:            
----------------------+-----------------------------------------------------
 {{{
 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...
 - Hide quoted text -

 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
 >
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4566>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to