Skip to content
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

Solving second order delay differential equations #10

Open
Alexjamescooper opened this issue Mar 5, 2021 · 1 comment
Open

Solving second order delay differential equations #10

Alexjamescooper opened this issue Mar 5, 2021 · 1 comment

Comments

@Alexjamescooper
Copy link

Hi Zulko,

firstly, thank you for writing ddeint!. I am trying to solve an initial value problem for the case that x''(t) is known and depends on x(t-dt). In scipy without the delay I do this as following:

def function(z, t):
return np.array([x''(z[1]), z[0]])

then odeint returns an np.array of [x',x]

However in ddeint this seems difficult as I cannot index z. Any help would be appreciated.

Cheers!

@Alexjamescooper Alexjamescooper changed the title Solving double differential equations Solving second order differential equations Mar 5, 2021
@Alexjamescooper Alexjamescooper changed the title Solving second order differential equations Solving second order delay differential equations Mar 5, 2021
@phboett
Copy link

phboett commented Nov 2, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants