polar_ode, a Python code which sets up and solves an ordinary differential equation (ODE) whose variable is complex, and whose solution should be viewed in a polar coordinate plot.

Mr Sourpuss says: converting this program from MATLAB to Python involved some peculiar features of Python that truly perplexed me. I gave up on the midpoint calculation, and concentrated on solve_ivp, and managed to get things to work. It wasn't great fun or illuminating, but I did want to get a complex ODE working.


The computer code and data files described and made available on this web page are distributed under the MIT license


polar_ode is available in a MATLAB version and an Octave version and a Python version.

Related Data and codes:


python_ode, Python codes which sets up various systems of ordinary differential equations (ODE).

Source Code:

Last revised on 01 June 2021.