Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

full_simplify function

Search harder than simplify for a simpler form, under assumptions.

How to write it

full_simplify(expr)

expr
Any expression: a number, a formula, a list or a matrix. Takes an expression.

full_simplify(expr, assuming = value)

Search under an assumption about the variables.

expr
Any expression: a number, a formula, a list or a matrix. Takes an expression.
assuming = value
What to assume about the variables, such as x > 0. Takes a condition, true or false.

Examples

  • sin⁡2(x)+cos⁡2(x)=1\displaystyle \sin^{2}(x)+\cos^{2}(x) = 1
    full_simplify(sin(x)^2 + cos(x)^2)

    In the solver, full_simplify(sin(x)^2 + cos(x)^2) gives 1.

    Open in the solver
  • x2,x>0=x\displaystyle \sqrt{x^{2}},\quad x > 0 = x
    full_simplify(sqrt(x^2), assuming = x > 0)

    In the solver, full_simplify(sqrt(x^2), assuming = x > 0) gives x.

    Open in the solver

Functions its examples use

  • sin

    Sine of an angle in radians.

  • cos

    Cosine of an angle in radians.

  • sqrt

    Square root; sqrt(x) is the power x^(1/2).

  • simplify

    Simplify an expression, optionally under assumptions.

  • function_expand

    Rewrite special functions of shifted arguments in terms of simpler ones.

  • factor

    Factor a polynomial into irreducible factors.

  • groebner_basis

    Groebner basis of a list of polynomials.

  • expand

    Multiply out products and powers into a sum.

  • minimal_polynomial

    Minimal polynomial of an algebraic number over the rationals.