Cancel common factors of a fraction (cancel)
Cancel the common factors of a fraction.
With this function, the solver shows the steps whenever it finds them.
How to write it
cancel(expr)
- expr
- Any expression: a number, a formula, a list or a matrix. Takes an expression.
Examples
cancel((x^2 - 1)/(x - 1))In the solver,
Open in the solvercancel((x^2 - 1)/(x - 1))givesx + 1.
Related functions
- coefficients
List the coefficients of a polynomial, constant term first.
- apart
Split a rational expression into partial fractions.
- collect
Group the terms of an expression by powers of a variable.
- together
Combine fractions into one over a common denominator.
- complex_expand
Expand an expression assuming its variables are real.
- to_radicals
Write algebraic numbers, given as roots of polynomials, with radicals.