My code work with math using the Python 'IDLE' IDE for normal coding and the Processing IDE for graphics intensive applications.
Based loosely on the examples in the book 'Math Adventures With Python' by Peter Farrell but I have made some modifications in places.