Added new rationalization function

The new function is in charge of processing the equation so it can be easily read by the computer during various solving techniques. The goal is to cut down on code duplication.