Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And as a bonus, this would make sin and cos library functions easier to implement on computers. Typically, to compute sin or cos, one has approximation functions like Taylor series which work for small values, and then one reduces the input down to that small range by doing a modulus, since sin and cos are periodic. This modulus is very complex to get right in practice, and can be very slow, especially for large values. But, if we switched from radians to turns, it would be as trivial and fast as just taking the fractional part of the input, and dividing by 4 if needed.

And as a further bonus, working in turns would mean that many more common quantities can be represented exactly, rather than requiring rounding as most multiples of Pi or Tau do.



Tau is turns. They're the same thing.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: