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(); }

14th Mar 2020, 8:00 AM
Shoan Ahmed
4 Respostas
+ 2
Shoan Ahmed Why do you want to avoid built-in functions. When C have asin() method.
14th Mar 2020, 8:04 AM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 1
You can use taylor series and maclaurin series for arcsin
14th Mar 2020, 8:06 AM
Kostia Gorbach
Kostia Gorbach - avatar
0
College task bro... I can not use the built in function
14th Mar 2020, 8:06 AM
Shoan Ahmed
0
i add my attempt here
15th Mar 2020, 3:21 PM
Shoan Ahmed