rationalize
rationalize(expr)
rationalize(expr, scope)
rationalize(expr, scope, detailed)
Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator.
Try it yourself:
$1 | rationalize("2x/y - y/(x+1)")
| |
$2 | rationalize("2x/y - y/(x+1)", true)
|
See also:
All functions