initial conditions in desolve

i like this post (click again to cancel)
1
i dont like this post (click again to cancel)

In desolve, it is possible to specify (for a second order ODE) two different types of initial conditions i.e.: y(x_0) = y_0, y(x_1) = y_1 and y(x_0) = y_0, y'(x_0) = s_0.

Is it also possible to specify initial conditions of the form y(x_0) = y_0, y'(x_1) = s_1?

Thanks!

asked Feb 21 '11

Chris gravatar image Chris
11 2
i like this answer (click again to cancel)
1
i dont like this answer (click again to cancel)

I believe that only Dirichlet and Neumann boundary conditions are implemented (but would happy to be proven wrong).

The relevant part of the docs is:

  • for a second-order equation, specify the initial x, y, and dy/dx, i.e. write [x_0, y(x_0), y'(x_0)]

  • for a second-order boundary solution, specify initial and final x and y boundary conditions, i.e. write [x_0, y(x_0), x_1, y(x_1)].

So the first to boundary conditions you gave are ok. But the mixed boundary conditions don't work - you'll have to get the general solution and enforce the boundary conditions semi-manually. Here's a sage notebook with examples.

link

posted Feb 21 '11

Simon gravatar image Simon flag of Australia
265 2 5 18
http://www.physics.uwa.ed...
Thanks a lot, Simon! Cheers, Chris Chris (Feb 22 '11)

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Tags:

Stats:

Asked: Feb 21 '11

Seen: 132 times

Last updated: Feb 21 '11

powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.