Hi there, I was working on an app and realised that if I did ∛ any negative number, eg ∛-27, it will return NaN. However, using nthroot(-27,3) returns the correct result (-3).
Searched through past closed issues and realised that you have fixed the issue on nthroot but may have missed out the same change on ∛/cuberoot. I did some minor changes to the ∛ code based on the nthroot and it seemed to be working fine.
Submitting a pull request to help everyone.
Also, would like to take the chance to thank you for the amazing library :)
Hi there, I was working on an app and realised that if I did ∛ any negative number, eg ∛-27, it will return NaN. However, using nthroot(-27,3) returns the correct result (-3).
Searched through past closed issues and realised that you have fixed the issue on nthroot but may have missed out the same change on ∛/cuberoot. I did some minor changes to the ∛ code based on the nthroot and it seemed to be working fine.
Submitting a pull request to help everyone.
Also, would like to take the chance to thank you for the amazing library :)