Just ran into a complex number problem by taking t...
# stdlib
t
Just ran into a complex number problem by taking the cubed root of a negative number
(-4.0).pow(1.0/3.0)
, which returns
NaN
due to lack of support for imaginary numbers. However, Java has
Math.cbrt()
specifically for this purpose. Is this something Kotlin should explicitly support?
d
Something like that would probably be best in a separate library. Since it's fairly niche and isn't a general purpose thing.