#10550: integration not working
------------------------+---------------------------------------------------
   Reporter:  mariah    |       Owner:  burcin    
       Type:  defect    |      Status:  new       
   Priority:  minor     |   Milestone:  sage-4.6.2
  Component:  calculus  |    Keywords:            
     Author:            |    Upstream:  N/A       
   Reviewer:            |      Merged:            
Work_issues:            |  
------------------------+---------------------------------------------------

Comment(by was):

 Be sure to use fast_callable:
 {{{

 sage: f(x) = cos(x)^10 - exp(x*sin(cos(x)))
 sage: g = fast_callable(f, RealField(200), [x])
 sage: timeit('f(10.0)')
 ^C625 loops, best of 3: 1.25 ms per loop
 sage: a = RealField(200)(10)
 sage: f(a)
 0.17239044387825963285967105367392659309547067375921972300438
 sage: g(a)
 0.17239044387825963285967105367392659309547067375921972300438
 sage: timeit('f(a)')
 625 loops, best of 3: 1.38 ms per loop
 sage: timeit('g(a)')
 625 loops, best of 3: 40.7 µs per loop
 sage: 1380/40.7
 33.9066339066339
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10550#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

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