Instantly share code, notes, and snippets.

Julia Neagu julianeagu

  • Aon
  • Boston, MA
View GitHub Profile
@julianeagu
julianeagu / ddeint.py
Last active Oct 31, 2016 — forked from Zulko/ddeint.py
(Fixed) A simple Delay Differential Equation solver written in Python, using the solving capabilities of the Scipy package.
View ddeint.py
# REQUIRES PACKAGES Numpy AND Scipy INSTALLED
import numpy as np
import scipy.integrate
import scipy.interpolate
class ddeVar:
""" special function-like variables for the integration of DDEs """
def __init__(self,g,tc=0):
""" g(t) = expression of Y(t) for t<tc """