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

Alcalyn • 3 months 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 months ago

Yes, sorry :) will change.