1. A method comprising: maintaining a table, the table mapping an operation to one or more equivalent formulas; identifying, via a processor, a plurality of operations within program code to generate a set of replaceable operations; selecting a respective formula from the table for each operation in the set of replaceable operations, the selecting based on an input level of complexity; and replacing in the program code each operation in the set of replaceable operations with the respective formula.