Optimizing Maple programs generated by automatic differentiation

Stephen Tse



Maple optimizes programs only when they are sequences of computations.
By dividing them into basic blocks of sequences and optimizing each 
block individually, we extend the optimization to general programs 
consisting of for-loops and conditional-branches. We then apply the 
result to the gradient of energy functions from perturbation theory.