#6479: [with patch, needs work] desolve for 2nd order ODE with initial condition
gives wrong answer
-------------------------+--------------------------------------------------
Reporter: gmhossain | Owner: burcin
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.2.1
Component: calculus | Keywords:
Work_issues: | Author:
Reviewer: | Merged:
-------------------------+--------------------------------------------------
Comment(by robert.marik):
Replying to [comment:10 wdj]:
> The improvements are *fantastic*!
>
> However, some of the docstrings do not follow proper format.
> For example, in your desolve_rk4 function, you do not indent
> the Sage code in the EXAMPLES section correctly. Also, if a
> function can produce different types of output (eg, a plot or
> a list of points, depending on the optional parameters), both
> should be illustrated in the examples. I don't know if this
> improper formatting screws up the sage -test script or not.
> There is also some improper indentation in other sections,
> such as OUTPUT, for functions such as desolve_rk4, for example.
>
> I hope you can please fix these.
Thanks. I will try to fix it. Sorry, I am newbie in Python.
>
> A request: in your new functions desolve_rk4 and desolve_system_rk4
> there is an option called endpoint, with default value 10. I would
> prefer an option called endpoints with a default value of [0,10]
> (or something), so that a range can be plotted other than from
> ics[0] to endpoint. If it is too much hassle, fine (you can just add
> plots together to get that anyway...).
what about this:
endpoints=a .... integrate from ics[0] to a
endpoints=[a] .... integrate from ics[0] to a
endpoints=[a,b] .... integrate from ics[0] to b, then integrate back
from ics[0] to a, reverse the second list and join both lists together
/without repeating the point (ics[0],ics[1])/. If ics[0] is bigger than b
or smaller than a, raise error.
I think that this is possible and I can try within a week.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6479#comment:11>
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
-~----------~----~----~----~------~----~------~--~---