Computer Science, asked by Hloo143, 8 months ago

Sine series in c language algorithm

Answers

Answered by sdey4788
0

Answer:algorithm means to take some loan

Explanation:

Answered by Anonymous
0

Sine series in c language algorithm:

  • Sine series is used to find the value of sin(x), where x is degree which is converted into Radian.
  • Program in c:

             #include<stdio.h>

             void main()

             {

             int i,n;

             float x,sum,t;

             clrscr();

             printf("enter the value of  x");

             scanf("%f",&x);

             printf("enter the value of n");

             scanf("d",&n);

             x=x*3.14/180;

             t=x;

             sum=x;

             for(i=1;i<n;i++)

             {

              t=(t*(-1)*x*x)/(2*i*(2*i+1));

              sum=sum+t;

               }

              printf("The value of sin(%f)=%.4f",x,sum);

              }

Similar questions