#13096: find_maximum_on_interval fails when used with a sage function
--------------------------+-------------------------------------------------
Reporter: aginiewicz | Owner: jason, jkantor
Type: defect | Status: new
Priority: minor | Milestone: sage-5.1
Component: numerical | Keywords:
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
--------------------------+-------------------------------------------------
The function find_maximum_on_interval fails when used with a sage function
that is passed as an argument:
{{{
sage: f(x) = sin(x)
sage: find_maximum_on_interval(f, 0, 2*pi)
Traceback (click to the left of this block for traceback)
...
RuntimeError: ECL says: THROW: The catch MACSYMA-QUIT is undefined.
}}}
while all of:
{{{
sage: find_minimum_on_interval(f, 0, 2*pi)
(-1.0, 4.7123889815323858)
sage: f.find_minimum_on_interval(0, 2*pi)
(-1.0, 4.7123889815323858)
sage: f.find_maximum_on_interval(0, 2*pi)
(1.0, 1.570796325647202)
}}}
works. This was kind of unexpected, esp that documentation says about
providing a function as an argument.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13096>
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.