go ahead... be a heretic | |
PerlMonks |
Re: How to get better exponentiation? (undefined)by LanX (Saint) |
on Jan 22, 2022 at 12:03 UTC ( [id://11140708]=note: print w/replies, xml ) | Need Help?? |
I had my doubts and did some quick research 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 °) https://de.wikipedia.org/wiki/Wurzel_(Mathematik)#Wurzeln_aus_negativen_Zahlen
updateHere the google translate for the laziest of lazy ...
In Section
Seekers of Perl Wisdom
|
|