We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Alcalyn • 3 years ago

Nice, didn't knew this mathematical trick.

In your last snippet, you write the function "public double sin(double angle) {...}", but it returns the cosinus.

WINWINWIN • 3 years ago

Yes, sorry :) will change.