cbrt
Computes the cube root of an expression.
Ordinary parsing preserves cbrt as a function node instead of forcing numerical evaluation, which avoids changing branch behavior or introducing unnecessary approximation.
Call evaluate() when a numeric value is required. Real numeric arguments then use the real cube root, so negative reals remain real; complex arguments use the principal cube root.
Examples
These examples use Nerdamer Notation.
Keep the cube root symbolic until evaluation is requested.
cbrt(8)Preserve the real negative cube-root expression during ordinary parsing.
cbrt(-27)Keep a symbolic cube root.
cbrt(x)Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
cbrt(arg1)
nerdamer.cbrt
Call the operation through the default nerdamer import.
nerdamer.cbrt(x: ExpressionInput): Expression
Parameters
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | The expression to take the cube root of. |
Returns
Expression — The cube root of `x`.
