equivalence function
Decide whether two expressions or two equations are equivalent: a verdict and the kind of evidence.
How to write it
equivalence(a, b)
- a
- b
Examples
equivalence(x^2 - 1, (x - 1)(x + 1))In the solver,
Open in the solverequivalence(x^2 - 1, (x - 1)(x + 1))gives{verdict: "equivalent", evidence: "exact"}.equivalence(x^2 = 1, x^2 - 1 = 0)In the solver,
Open in the solverequivalence(x^2 = 1, x^2 - 1 = 0)gives{verdict: "equivalent", evidence: "equation"}.
Related functions
- expand
Multiply out products and powers into a sum.
- discriminant
Discriminant of a polynomial in a variable.
- factor
Factor a polynomial into irreducible factors.
- denominator
Denominator of a fraction.
- full_simplify
Search harder than simplify for a simpler form, under assumptions.
- degree
Degree of a polynomial in a variable.