[통계학레포트] 표준정규분포의 수치 적분 결과 비교
- 최초 등록일
- 2003.07.09
- 최종 저작일
- 2003.07
- 3페이지/ 한컴오피스
- 가격 1,000원
목차
1. 프로그램(Turbo C)
1) 직사각형 공식
2) 사다리꼴 공식
3) Simpson 1/3 공식
2. 적분 결과
3. 결과 분석
본문내용
1. 프로그램(Turbo C)
직사각형 공식 프로그램
# include <stdio.h>
# include <math.h>
# include <conio.h>
double rectangle(double , double, int);
double f(double);
main()
{
FILE *fout;
int n;
double a, b, Integral;
clrscr();
fout=fopen("a:result0.out", "w");
fprintf(fout, "\n < Rectangular rule > \n\n");
printf("Enter Lower Limit:"); scanf("%lf", &a);
printf("Enter Upper Limit:"); scanf("%lf", &b);
printf("Enter Interval # :"); scanf("%d ", &n);
fprintf(fout, "Enter Lower Limit: %lf \n" , a);
fprintf(fout, "Enter Upper Limit: %lf \n" , b);
fprintf(fout, "Enter Interval # : %d \n\n" , n);
Integral=rectangle(a, b, n);
fprintf(fout, "Integrate Resulet = %40.38lf", rectangle);
fclose(fout);
return 0;
}
참고 자료
없음