how can I write the code of Sine?in cpp | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

how can I write the code of Sine?in cpp

I mean when you write sin(1) in calculator whith what equation it gives you the exact number

5th May 2017, 12:52 PM
TahaNM
TahaNM - avatar
7 Answers
5th May 2017, 2:29 PM
Karl T.
Karl T. - avatar
+ 5
http://www.cplusplus.com/reference/cmath/sin/
5th May 2017, 12:57 PM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar
5th May 2017, 1:33 PM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar
+ 1
I mean what is that math equation for it
5th May 2017, 1:21 PM
TahaNM
TahaNM - avatar
0
outputSin = sin (inputDeg * PI/180); - please include math.h
5th May 2017, 12:57 PM
Calviղ
Calviղ - avatar
0
One of the simple applications is to calculate the lengths or angles of a shape eg. triangle.
5th May 2017, 1:30 PM
Calviղ
Calviղ - avatar
0
thank U guys
5th May 2017, 2:36 PM
TahaNM
TahaNM - avatar