Skip to content

Instantly share code, notes, and snippets.

View mbudisic's full-sized avatar

Marko Budisic mbudisic

View GitHub Profile
@mbudisic
mbudisic / rw_damping_inertia.py
Created September 19, 2022 16:12
Random walker with damping and inertia
import numpy as np
def xyindependent(x,b,c,dt,randomfun):
for idx in range(2,len(x)):
x[idx] =(2-b*dt)*x[idx-1] + (b*dt-c*dt*dt-1)*x[idx-2] + dt*dt*randomfun()
return x
import matplotlib.pyplot as plt
x0 = np.zeros(100,)
@mbudisic
mbudisic / wikipedia-lorenz.ipynb
Last active December 29, 2018 04:17
Lorenz systems simulation as seen on Wikipedia
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.