#5091: find_root should call fast_float
----------------------+-----------------------------------------------------
Reporter: robertwb | Owner: burcin
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.1
Component: calculus | Keywords:
Reviewer: | Author:
Merged: |
----------------------+-----------------------------------------------------
Comment(by wcauchois):
Incorporating the time it takes to call fast_float, the speedup is not
that radical:
{{{
sage: var('x')
x
sage: from sage.ext.fast_eval import fast_float
sage: timeit("find_root(sin(x)-cos(x), 0, pi)")
625 loops, best of 3: 441 µs per loop
sage: timeit("find_root(fast_float(sin(x)-cos(x), x), 0, pi)")
625 loops, best of 3: 393 µs per loop
}}}
Its better for clients to call fast_float themselves, if they're using
find_root inside a loop.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5091#comment:3>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---