+ 3
How do I add trig functions like sine cosine and tangent to my JavaScript calculator
i am making a scientific calculator and I want to add trig functions to it
3 Antworten
+ 5
this may help you with the formulas you need: https://www.mathsisfun.com/algebra/trigonometry.html
+ 4
use Math.sin(), Math.cos() or Math.tan(). they accept arguments in radians btw so Math.sin(Math.PI/2) will return 1
+ 3
and maybe this code can help you
https://code.sololearn.com/Wb1TouYrn4qa/?ref=app