How does trig work in JavaScript? [closed]
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . I have a value and its cosine as: -0.2567721374914637 Cosine: -0.04253775592822526 Compare what we get in Python: >>> import math >>> math.cos(-0.2567721374914637) 0.9672147629178562 Is there a way I can do trig in JavaScript that isn't out to lunch? Are there any math libraries or anything that