odd roots

1 reply [Last post]
zabov
User offline. Last seen 11 years 2 weeks ago. Offline
Joined: 05/16/2010
Posts:

I found an issue trying to evaluate the cubic root of -8. The solution is obviously -2, still I got no answer. I've also tryed to evaluate some others easy odd roots of negative numbers still obtaining no answer but a charmful red question mark :P

Brad Larson
Brad Larson's picture
User offline. Last seen 4 years 22 weeks ago. Offline
Joined: 05/14/2008
Posts:

Yes, there is a flaw in the floating-point math libraries on the iPhone that I use to perform that calculation. I'm working on implementing my own calculations of this type so that I can work around these kinds of glitches. However, I'm in the later stages of finishing an update, so it may not make it into the next version of the application.

Syndicate content