Created
April 15, 2020 00:43
-
-
Save Muhammad-Yunus/0e85705189fc620d94724e6de607f01b to your computer and use it in GitHub Desktop.
Python scikit - Ordinary Differential Equation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def dy(y, t, zeta, w0): | |
x, p = y[0], y[1] | |
dx = p | |
dp = -2 * zeta * w0 * p - w0**2 * x | |
return [dx, dp] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment