block by ResidentMario 6abf17a728e9891ebd1c07b8b2a141cf

Symbolic differenciation.

This is a short symbolic differenciation program. It works on single-variable polynomial expressions.

The main codebase is in sym.py. To run the tests execute:

python -m unittest tests.py

sym.py

tests.py