#9824: improve desolve_system initial condition documentation
------------------------+---------------------------------------------------
Reporter: rhinton | Owner: burcin
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.7
Component: calculus | Keywords: calculus, maxima, symbolics
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Old description:
> desolve_system apparently ignores initial conditions. Notice the
> identical results in the two calls in the following example.
>
> {{{
> sage: t = var('t')
> sage: epsilon = var('epsilon')
> sage: x1 = function('x1', t)
> sage: x2 = function('x2', t)
> sage: de1 = diff(x1,t) == epsilon
> sage: de2 = diff(x2,t) == -2
> sage: desolve_system([de1, de2], [x1, x2], ivar=t)
> [x1(t) == epsilon*t + x1(0), x2(t) == -2*t + x2(0)]
> sage: desolve_system([de1, de2], [x1, x2], ics=[1,1], ivar=t)
> [x1(t) == epsilon*t + x1(0), x2(t) == -2*t + x2(0)]
> }}}
New description:
Edit: See comments for the actual issue.
----
desolve_system apparently ignores initial conditions. Notice the
identical results in the two calls in the following example.
{{{
sage: t = var('t')
sage: epsilon = var('epsilon')
sage: x1 = function('x1', t)
sage: x2 = function('x2', t)
sage: de1 = diff(x1,t) == epsilon
sage: de2 = diff(x2,t) == -2
sage: desolve_system([de1, de2], [x1, x2], ivar=t)
[x1(t) == epsilon*t + x1(0), x2(t) == -2*t + x2(0)]
sage: desolve_system([de1, de2], [x1, x2], ics=[1,1], ivar=t)
[x1(t) == epsilon*t + x1(0), x2(t) == -2*t + x2(0)]
}}}
--
Comment(by kcrisman):
I agree that we should be explicit here. There is no obvious default for
a diffeq; initial condition of zero is not the same as starting to count
at 0 or 1. Yes, updating the documentation would be great for this.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9824#comment:3>
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.