For code I am writing, I have a goal to change an expression such that all values can be represented as a simple fraction where 1 is either the numerator or denominator -- and each fraction cannot be separated by division. Sounds crazy, I know - this is more of an exercise than anything.
Is this even possible? For example:
(a-1)/b --> ((a/1)*(1/b))-(1/b)
I have found I am able to do this with a lot of algebraic expressions. However, if a + or - exists in a denominator, I don't seem to be able to break it out. For example:
a/(b-1)
The best I can do is: (a/1)*(1/(b-1))
Just fyi, right now I am not seeking to solve for log, exp, etc, just +-/* operators...
Thanks!
Is this even possible? For example:
(a-1)/b --> ((a/1)*(1/b))-(1/b)
I have found I am able to do this with a lot of algebraic expressions. However, if a + or - exists in a denominator, I don't seem to be able to break it out. For example:
a/(b-1)
The best I can do is: (a/1)*(1/(b-1))
Just fyi, right now I am not seeking to solve for log, exp, etc, just +-/* operators...
Thanks!