Function reference · Math

cbrt

Returns the cube root of an expression.

The result stays as cbrt(...), so no approximation or choice of root is made. Call evaluate for a number: a negative real number gets its real cube root, and a complex number its principal cube root.

Notation

cbrt(x)

Write it in an expression: nerdamer('cbrt(8)'), or in the Playground.

nerdamer.cbrt

nerdamer.cbrt(x: ExpressionInput): Expression

A method on the default import. Arguments can be strings, as in Notation.

Examples

Stays exact.

cbrt(8)
// → cbrt(8)
Open in Playground

Stays exact, with the real cube root kept.

cbrt(-27)
// → cbrt(-27)
Open in Playground

A symbolic argument.

cbrt(x)
// → cbrt(x)
Open in Playground

Evaluate to a number.

evaluate(cbrt(8))
// → 2
Open in Playground

The real cube root of a negative number; compare nthroot.

evaluate(cbrt(-27))
// → -3
Open in Playground

← Back to Function reference