in reply to How to get better exponentiation?
German Wikipedia states that it's disputed, if the cube root of a negative real number was defined.°
I couldn't find it in English sources in the hurry, but I suppose it's the old problem of having functions which fulfill certain qualities like reversibility in order to play well with the whole mathematical model.
In the end you'll have to handle two definitions of odd roots.
Hence your approach to define your own sub cube_root() looks fine for me. :)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
°) https://de.wikipedia.org/wiki/Wurzel_(Mathematik)#Wurzeln_aus_negativen_Zahlen
Here the google translate for the laziest of lazy ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to get better exponentiation? (undefined)
by syphilis (Archbishop) on Jan 24, 2022 at 12:28 UTC | |
by LanX (Saint) on Jan 24, 2022 at 13:18 UTC | |
by syphilis (Archbishop) on Jan 25, 2022 at 06:37 UTC |