3. For a given x in radian, sin(x) can be calculated using the formula given below: (-1) (2n +…

Question:

Transcribed Image Text:

3. For a given x in radian, sin(x) can be calculated using the formula given below: (-1) (2n + 1)! sin a Write a program which finds the value of sin x (x and n will be entered by the user). To do that: First, write a user defined function which finds the factorial. Then, write another user defined function which finds the sin x using the formula (use the factorial function in this function). Finally, in main() function, get the input x from the user, call your sin x function and call the built-in sin(x) function to display the results for comparison. Example output: Enter x: 0.5 Enter n: 9 2n Calculated sin x: … Built-in sin(x): …

Expert Answer:

Answer rating: 100% (QA)

C Program include include Funct

View the full answer