logoalt Hacker News

fatih-erikli-cgyesterday at 1:44 PM3 repliesview on HN

It may be, especially when it comes to unnecessary cache. But I think `atan` is almost a brute force. Lookup is nothing comparing to that.

Sin/cos must be borders of sqrt(x²+y²). It is also cached indeed.


Replies

groundzeros2015yesterday at 2:42 PM

What do you mean brute force?

We can compute these things using iteration or polynomial approximations (sufficient for 64 bit).

show 1 reply
BigTTYGothGFyesterday at 5:29 PM

> Sin/cos must be borders of sqrt(x²+y²). It is also cached indeed

This doesn't make a ton of sense.

show 1 reply