Experimental tool to convert differential equations to DSP code
Change license to GPL3
Implement stability report; fix some bugs
Makefile: allow test target to fail


browse  log 



You can also use your local clone with git send-email.


ode2dsp is a Python library for generating ordinary differential equation (ODE) solvers in digital signal processing (DSP) languages. It automates the tedious and error-prone symbolic calculations involved in creating a DSP model of an ODE.


  • Support linear and nonlinear systems of ODEs
  • Support trapezoidal and backward Euler discrete-time integral approximations
  • Approximate solutions of implicit equations using Newton's method
  • Render finite difference equations (FDEs) to Faust code

#Planned features

  • Calculate stability of ODEs and FDEs at various operating conditions

#How it works

Specify your system of ODEs with a SymPy expression and select an integral approximation method. ode2dsp applies this integral approximation to the ODEs, creating FDEs. The solution variables of the FDEs are solved for. If no explicit solution can be calculated, the solution is approximated in terms of a finite number of iterations of Newton's method.



We welcome patches. We are open to rendering to DSP languages other than Faust, but our ability to support them is limited.