#9835: Make desolve more informative when solving BVP
----------------------------+-----------------------------------------------
Reporter: robert.marik | Owner: mhampton
Type: defect | Status: needs_review
Priority: minor | Milestone: sage-4.6.1
Component: calculus | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
----------------------------+-----------------------------------------------
Description changed by robert.marik:
Old description:
> From Sage Bugreports :
> confusing error message
>
> {{{
> Traceback (click to the left of this block for traceback)
> ...
> UnboundLocalError: local variable 'maxima_method' referenced before
> assignment
> }}}
> when trying
> {{{
> epsilon = 1e-2; vars = var('x'); y = function('y',x);
> de = epsilon*diff(y,x,2)+y*(1-y^2)==0;
> soln = desolve(de,y[0,-1,1,1]);
> }}}
>
> Explanation: Currently Sage allows to use BVP only if the result is
> symbolic expression. In this case the result is list of two expresions
> and Sage fails, as mentioned very briefly in documentation of desolve.
> However, we could try to improve desolve or make the error message more
> informative.
New description:
From Sage Bugreports :
confusing error message
{{{
Traceback (click to the left of this block for traceback)
...
UnboundLocalError: local variable 'maxima_method' referenced before
assignment
}}}
when trying
{{{
epsilon = 1e-2; vars = var('x'); y = function('y',x);
de = epsilon*diff(y,x,2)+y*(1-y^2)==0;
soln = desolve(de,y,[0,-1,1,1]);
}}}
Explanation: Currently Sage allows to use BVP only if the result is
symbolic expression. In this case the result is list of two expresions and
Sage fails, as mentioned very briefly in documentation of desolve.
However, we could try to improve desolve or make the error message more
informative.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9835#comment:8>
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.