On 11 lis, 07:31, YarDYar <[email protected]> wrote:
> Code:
> t = var('t')
> x = function('x',t)
> DE = diff(x, t) + x -1
> desolve(DE, [x,t])
> print x
> print DE
Hi, but you have different input than at
http://www.sagemath.org/doc/tutorial/tour_algebra.html#solving-differential-equations
Sou you get different output as well :)
You do not solve equation, you only print x and print the differential
equation. So you do not get a solution.
Note that support for differentail equations has been extended in
http://trac.sagemath.org/sage_trac/ticket/6479 which gt positive
review and perhaps appears in one of the next versions. But you can
also install this patch now into sage current 4.2. Look at the
examples at
http://trac.sagemath.org/sage_trac/attachment/ticket/6479/trac_6479_marik_revision3.patch
Robert
>
> Output:
> x(t)
> x(t) + D[0](x)(t) - 1
>
> According to the tutorial, the output for "print x" SHOULD be:
> (c + e^t)*e^(-t)
>
> Am I missing a library or something? Any clues/links on where to start
> would be much appreciated.
> Yar
----------------------------------------------------------------------
| Sage Version 4.2.1.alpha0, Release Date: 2009-11-09 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
**********************************************************************
* *
* Warning: this is a prerelease version, and it may be unstable. *
* *
**********************************************************************
sage: t = var('t')
sage: x = function('x',t)
sage: DE = diff(x, t) + x -1
sage: desolve(DE, [x,t])
(c + e^t)*e^(-t)
sage: print x
x(t)
sage: print DE
x(t) + D[0](x)(t) - 1
sage:
--~--~---------~--~----~------------~-------~--~----~
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-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---