Machine Learning, Optimization, Differentiation, Neural Networks, Control.
SD. This would provide the flexibility to manipulate the elements in the data structure and thus dynamically modify the mathematical expression. Another method is to create a textual form of the mathematical expression and by means of parser, tokenizer, lexical analyzer, tree reduction etc.