Skip to content

Instantly share code, notes, and snippets.

View oakenduck's full-sized avatar
💭
lovin github

oakenduck

💭
lovin github
View GitHub Profile
@oakenduck
oakenduck / simple_pendulum.py
Last active January 14, 2020 02:17 — forked from AndrewWalker/simple_pendulum.py
simple pendulum
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import odeint
import glob
import os
def simple_pendulum_deriv(x, t, m, g, l):
"""The simple pendulum subject to zero damping and zero control input
Based on material from the MIT OCW subject "Underactuated Robotics"