0
How can i make a code that can find the inverse value of sine in c programming language without using library function
#include<stdio.h> #include<conio.h> #include<stdlib.h> #include<math.h> int main() { float x; int i,j,k=0,s=0,m=1; printf("Enter X= "); scanf("%f",&x); if(x<-1||x>1) printf("Invalid Number"); else { for(i=1;i<10000;i=i+2) { for(j=1;j<=i;j=j+2) { if(j<i) m=m*(j/j+1); else m=m*(pow(x,j)/j); } if(m<(1/10000)) { break; } s=s+m; } printf("%d",s); } getch(); }
6 Antworten
+ 2
Shoan Ahmed Why do you want to avoid built-in functions.
When C have asin() method.
+ 1
You can use taylor series and maclaurin series for arcsin
0
College task bro... I can not use the built in function
0
i add my attempt here