Q13 Write a C function to evaluate the sin(x) series.

Program: 134

Write a C function to evaluate the sin(x) series.

\sin(x) =x-\left (\frac{x^{3}}{3!} \right )+\left (\frac{x^{5}}{5!} \right )-\left (\frac{x^{7}}{7!} \right )+\cdot \cdot \cdot

(1) Using default sin() function
(2) Using functionality

Output:

Enter x: 45
Enter n: 5
Sin(45.00) Using Functionality: 0.707143
Sin(45.00) Using Math.h: 0.707106

Lokesh Kumar

Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.