I’m writing some code that involves symbolic manipulation of 2x2 matrices of 3rd order bi-polynomials (which are fitted from 2D TProfiles). I’ve made a class to do most of this, which basically consists of a 2x2 array of TF2 objects and various methods to add, multiply, and invert these functional matrices. The problem is that TFormula inserts many of its own parentheses into algebraic expressions so it only has to interpret binary operations (e.g., it changes “x + y + 1” into “((x + y) + 1)”), and given the size of the polynomials I’m using, TFormula quickly becomes overloaded with operators and Root crashes.
It would be nice to find a way to implement Mathematica or some other software with better symbolic algebra capabilities through Root, although I don't know specifically how to go about doing this. Does anyone have any suggestions?