N
N
nevantain2021-03-24 20:08:58
Mathematics
nevantain, 2021-03-24 20:08:58

How can you calculate the sine knowing only the degree measure of an angle?

I need some algorithm for calculating the sine, knowing only its degree measure, but I didn’t find anything on the Internet, can you tell me how to do this?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
J
jcmvbkbc, 2021-03-24
@jcmvbkbc

- convert degrees to radians ( * pi / 180), use any standard method for calculating the sine, for example, a function sinfrom the standard library or a Taylor series
- use the Bradis table for degrees, interpolate if necessary

R
Rsa97, 2021-03-24
@Rsa97

I don't understand what a "degree measure" is.
If you are talking about the angle in degrees, then to convert to radians, it is enough to remember the proportions, class 4 or 5.
180 ° \u003d π rad
x ° \u003d? glad

F
freeExec, 2021-03-24
@freeExec

Well, I don’t even know, you were banned in Google?
https://ru.wikipedia.org/wiki/Search_table#Compute...

G
Grigory Boev, 2021-03-24
@ProgrammerForever

Taylor series for sine:

sin(x) = x - x³/(3!) + x⁵/(5!) - x⁷/(7!) + x⁹/(9!) - ...

Depending on what is more important, the speed of calculation or memory, you can use this method or tabular . For microcontrollers, this is more or less relevant, but for "large" systems - I don’t think it’s worth it to run away like that, only if you don’t write a demo, of course.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question