Solved by albanD in post #2 
              
              
                Hi, 
Unfortunately there is no way to do this, mainly because for most operation, inverting them is not easy to do or easily defined. 
You will need to write this by hand.