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:

See also:
All functions