C에서 부비동의 근사값에 대한 재귀적 계산

재귀 함수 Approx_sin(x,n)=x - x^3/3! + x^5/5! - x^7/7! + ... (-1)^n * x^(2*n-1) / (2*n-1)! 누가 계산하는가  순서가 n.
n 차수의 사인 대략값의 재귀 계산

#include< stdio.h> 
#include< stdlib.h입니다>

unsigned long fact_recursive (unsigned short nombre)
{
if (number == 0)
return 1;
else
반환 번호 * fact_recursive(숫자 - 1);
}

unsigned int puiss(long int x, int n)
{
if(n == 0)
return 1;
if(n == 1)
반환 x;
int x2 = power(x,n/2);
if(n%2 == 0)
x2 * x2를 반환합니다.
반환 x2 * x2 * x;
}

float Approx_sin(float x, int n)
{
float 분수 = (float)puiss(x,2*n-1) / (float)fact_recursive(2*n-1);
//Display
if(n%2==1)
printf("n = %d --> %f\n",n,분수);
else
printf("n = %d --> -%f\n",n,분수);

//터미널 조건 n=1이면 Approx_sin=x;
if(n==1)
{
return x;
}
else{
//n이 홀수이면 부호는 양수입니다
if(n%2==1)
return calcul_formule(x, n-1)+분수;
//n이 홀수이면 부호는 음수입니다
else
return calcul_formule(x,n-1)-fraction;
}
}

int main(int argc, char *argv[])
{
int n;
float x;
printf("x 값 입력: ");
scanf("%d",& x);
printf("n 값 입력: ");
scanf("%d",& n);
//수식 계산
printf("Approx_sin(%f, %d ) = %f\n",x,Approx_sin(x,n) );
시스템("일시 중지");
}