Math.sin(Math.PI) strange result
Hi,
In my AE expression Math.sin(Math.PI) gives a result of 1.22E-16, in stead of the expected zero.
Does anyone know why?
Hi,
In my AE expression Math.sin(Math.PI) gives a result of 1.22E-16, in stead of the expected zero.
Does anyone know why?
Hi, Mylenium, thanks for your reply. I am using the latest version (who doesn't since CC... :-)
The current version number is 13.2.0.49
Can you confirm the issue?
Interesting background, you give. Thanks for that.
(Don't understand it completely, since Pi in decimal is not between 0 and 1, and 360º is 2π, so not in between 0 and 1 either.)
Still no reason to have such a strange deviation, in my opinion - every calculator will give 0 for the sine of π radians.
Fortunately the rotation tools and parameters work with degrees,
so it's clear that the software is able to convert the Radians to Degrees somewhere along ;-)
Sounds like it's JavaScript, not AE's implementation:
Javascript Math.cos and Math.sin are inaccurate. Is there any solution? - Stack Overflow
Dan
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.