Skip to content

find_root should call fast_float #5091

Closed
@robertwb

Description

@robertwb
sage: f(x) = sin(x)-cos(x)
sage: g = f._fast_float_()

sage: timeit("find_root(f, 0, pi)")
625 loops, best of 3: 154 µs per loop

sage: timeit("find_root(g, 0, pi)")
625 loops, best of 3: 24 µs per loop

See also http://groups.google.com/group/sage-devel/browse_thread/thread/927319a4fa61ae3b/9fc80aa9c114e041

CC: @jasongrout

Component: calculus

Issue created by migration from https://trac.sagemath.org/ticket/5091

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions