The attached is a symbolic differentiation package for Tcl. It depends on the 'tclparser' module from TclPro.
Code for the symbolic differentiator
Test cases
Code for the symbolic differentiator
Test cases