[수치해석] 수치해석레포트소스
- 최초 등록일
- 2003.12.18
- 최종 저작일
- 2003.12
- 34페이지/ 한컴오피스
- 가격 1,000원
소개글
한학기동한 수치해석시간에 한 레포트를
모은것입니다~ 한학기동안 문제 없을듯...^^
많은 이용 부탁 드려요~~
당근 모두 실행 가능!~~^^
목차
Solutions of Equations of One Variables
Numerical Integration and Differentiation
Numerical Solution of Initial-Value Problems
Direct Method for Solving Linear Systems
Approximation Theory
Boundary-Value Problems for Ordinary Differential Equations
ETC
본문내용
// Bisection Method
#include <stdio.h>
#include <math.h>
#define true 1
#define false 0
#define ZERO 1.0E-20
double func(double x);
void main()
{
int i=0, ok;
double fa, fb, c, p, fp;
double left_end = 0.1; // 왼쪽 경계치
double right_end = 1.0; // 오른쪽 경계치
double tolerance = 0.0001; // 오차의 한계
double num = 40; // 계산의 횟수
printf("This is the Bisection Method.\n");
printf(" i P Func(P)\n");
while((i < num) && ok) {
c = ( right_end - left_end ) / 2.;
p = left_end + c;
fp = func(p);
printf("%3d %15.8e
참고 자료
없음