Let's say that I have the relation r ^ 2 = x ^ 2 + y ^ 2. Now suppose that after the calculation I get the complex output of x and y, but which can theoretically be simplified using the above relation. How can I tell Mathematica about this?
I mean situations where replacement rules x ^ 2 + y ^ 2 β r ^ 2 and using Simplify / FullSimplify with assumptions will not work, for example. if the output is x / y + y / x = (x ^ 2 + y ^ 2) / (xy) = r ^ 2 / (xy).
Simplification works very well with built-in functions, but not with certain functions! Therefore, I would like my functions to be treated as built-in functions!
source share