-
-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
desolve failed to solve an ODE whose solution implies integration limits #11653
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Changed keywords from none to maxima, at, desolve |
This comment has been minimized.
This comment has been minimized.
comment:5
Thanks, Jose! Just a few pointers:
|
Changed author from JGuzman to none |
comment:6
As to the ticket, see the sage-support thread in question. The essential problem is that in |
This comment has been minimized.
This comment has been minimized.
comment:7
I re-formatted the text according to kcrisman (thanks a lot for the suggestion!). I will have a look to the code soon. I am looking forward to implement it. If I understood correctly, the only thing to do is to make desolve_* take the answer from Maxima to SR. |
comment:8
I changed the summary to delimit the error more carefully. Additional, a more detailed explanation is given of cases in which Sage is able to interpret Maxima output. I guess, the problem is that Sage is not able to interpret the integration limits prompted by the maxima expression. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:9
Change owner to burcin (I do not know why it changed last time !), and change the typesetting of TypeError |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:12
There are several issues here, actually, so it may take a bit to solve this. We are apparently translating several things wrongly by not going through SR, but then there is also the 'general' variable |
When trying to solve a simple ODE whose rhs contains a function, Sage fails to interpret the Maxima output if this contains integration limits.
A minimal example
if we now define a custom square pulse function
now we create a pulse function
and define differential equation
To get the evolution of v we can use desolve
The error message is:
desolve_laplace leads to similar error:
According to Nils Bruin, the problem is that Maxima 'at' function. As described in Ticket #385, this can be a problem with the implementation of 'at' for SR.
Expressions that work
And adding the sign function to the differential function does not affect the solution.
However, adding initial conditions produces an output that Sage is not able to evaluate
The output is:
I guess Sage is not able to interpret the integrations limits prompted by Maxima (e.g [t=0,v(t)=0]).
Detailed information (and a more realistic example) can be found here: http://groups.google.com/group/sage-support/browse_thread/thread/8cc67d39510faca2
CC: @kcrisman @nbruin
Component: calculus
Keywords: maxima, at, desolve
Issue created by migration from https://trac.sagemath.org/ticket/11653
The text was updated successfully, but these errors were encountered: