[수치해석] c로 짠 수치해석
- 최초 등록일
- 2004.10.10
- 최종 저작일
- 2004.10
- 9페이지/ 한컴오피스
- 가격 1,000원
소개글
수치해석과목 레포트
1.bisection method(이분법) 실행화면 및 소스코드
2.newton's method(뉴튼법) 실행화면 및 소스코드
3.secant method(할선법) 실행화면( 및 소스코드
을 C언어로 프로그래밍한 문서파일입니다.
더불어 고찰까지....
목차
1.bisection method(이분법) 실행화면 및 소스코드
2.newton's method(뉴튼법) 실행화면 및 소스코드
3.secant method(할선법) 실행화면( 및 소스코드
본문내용
#include <stdio.h>
#include <math.h>
double f(double n);
void main()
{
double a, b, c, Q0, Q1, error ;
int i, N;
printf("Name : xxx\n");
printf("I.D : 12000000\n");
printf("Subject :수치해석\n");
printf("Due date : 2004/10/8\n");
printf("Home work : No.2\n\n");
/* input a, b, N */
printf("initial approximation a : ");
scanf("%lf", &a);
printf("initial approximation b : ");
scanf("%lf", &b);
printf("maximun number of iterations N : ");
scanf("%d", &N);
printf("--------------------------------------------------\n");
printf(" n \t xn \t f(xn) \t error\n");
printf("--------------------------------------------------\n");
printf(" 0 \t 2 %f \n",f(2));
printf(" 1 \t 1 %f -1.0 \n",f(1));
i = 2;
Q0 = f(a);
Q1 = f(b);
참고 자료
없음