Function reference · Math
sqrt
Computes the principal square root of an expression.
Square roots are represented through a one-half power and simplified with Nerdamer's radical rules. Perfect squares and compatible radical products are reduced exactly.
For symbolic squares, sign information matters: without a sign assumption sqrt(x^2) simplifies to abs(x).
Examples
These examples use Nerdamer Notation.
Reduce a perfect square exactly.
sqrt(9) // → 3
Return the exact principal complex square root.
sqrt(-9) // → 3*i
Preserve the sign ambiguity of a symbolic square.
sqrt(x^2) // → abs(x)
Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
sqrt(arg1)
nerdamer.sqrt
Call the operation through the default nerdamer import.
nerdamer.sqrt(x: ExpressionInput): Expression
Parameters
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | The expression to take the square root of. |
Returns
Expression — The square root of `x`.
