CubeRoot
The real cube root of x.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
CubeRoot!CubeRoot(x)the real cube root of x.SageMath
real_nth_root(x, 3)SymPyreal_root(x, 3)Juliaenumeratio_cbrt(x)Rustcbrt(x)Typed signatures
| Type | Package | Applies |
|---|---|---|
(number) -> number | analytic | always |
Details
- Real-valued even at a negative x -- , not a complex principal root. The same real branch as Root; CubeRoot is the named special case.
- Threads over a list, element-wise.
- An exact non-perfect-cube argument (like ) stays symbolic under plain evaluation; a floating-point argument, or N(), gives a decimal.
- A concretely complex argument is outside CubeRoot's real domain and is left unevaluated.
Plot
Examples
Basic #
At a non-perfect cube, N() forces the numeric branch (plain evaluation stays exact and symbolic)
live ↗InOut
live ↗
InOut
Scope #
live ↗
InOut
live ↗
InOut
The coefficients about are ; Wolfram writes the same sequence as a DifferenceRoot recurrence
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
Properties #
About
| Examples | 25 |
|---|---|
| Checked against | Wolfram Language 19 agree6 differSageMath 12 agree4 differ3 unevaluated1 errorSymPy 14 agree5 differ1 unevaluatedmpmath 12 agreeJulia 10 agree2 errorRust 9 agree |
| Crosswalk | Wolfram LanguageSageMathSymPyJuliaRust |
Implementation
mapped
sympypackages/oracle/src/mappings.tsmapped
mpmathpackages/oracle/src/mappings.tsThe real cube root of a negative real, as ours; mpmath's cbrt is the principal root.
mapped
sagepackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.tsmapped
rustpackages/oracle/src/mappings.ts