Skip to content

Instantly share code, notes, and snippets.

@Muhammad-Yunus
Created April 15, 2020 00:43
Show Gist options
  • Save Muhammad-Yunus/0e85705189fc620d94724e6de607f01b to your computer and use it in GitHub Desktop.
Save Muhammad-Yunus/0e85705189fc620d94724e6de607f01b to your computer and use it in GitHub Desktop.
Python scikit - Ordinary Differential Equation
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