Documentation moved.
This entry is documented with its primary interface. Open the documentation →
Function
src/index.ts:913nerdamer.cbrt
nerdamer.cbrt(x: ExpressionInput): ExpressionComputes the cube root of an expression.
For real numeric constants, the *real* cube root is returned (so negative reals stay real).
For complex constants, the principal cube root is used.
Nested cube roots are simplified (e.g. cbrt(cbrt(x)) becomes x^(1/9)).
Unlike sqrt, cbrt is preserved as a function node rather than rewritten to
x^(1/3) to avoid principal-branch issues during symbolic manipulation.
Parameters
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | The expression to take the cube root of. |
Returns
Expression — The cube root of x.
Examples
cbrt(8).text() // "2"
cbrt(-27).text() // "-3"
cbrt('x').text() // "cbrt(x)"