Answered You can hire a professional tutor to get the answer.

QUESTION

sin(x) = x - x3/ 6 + x5/ 120 - x7/ 5040 + x9/ 362880

. .--...v, .. .. Have you ever thought how a calculator computes some trigonometry parameters, like the sine of a given angle? It uses a programthat solves the Taylor Series. A simplification of such equation is shown below: sin(x) = x - x3/6 + x5 / 120 - x7/5040 + x9/362880with x an angle in Radians units (not in degrees), e.g., 180 degrees is equivalent to 3.14 radians. Using Java Math API, figure out what methods you can use to convert an angle from degrees to radians and one for compute x to thepower of a given number, such as x7. Use those methods to solve the equation above and test your program with the following angles Angle in Degrees Angle in Radians Sine Value180 3.1415 0.090 1.5709 1.045 0.785398 0.707130 0.523599 0.5 Your program should print a statement like the one below: 180 degrees is equivalent to 3.1415 radians. sin(180) = 0.0 Please don't stress if you get precise values (0.999243 instead of 1.0). We will fix this later on

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question