[레포트자료] 수치해석 Bisection Method
페이지 정보
작성일 19-05-24 14:15
본문
Download : [레포트자료] 수치해석 Bisection Method.hwp
[레포트자료] 수치해석 Bisection Method
![[레포트자료]%20수치해석%20Bisection%20Method_hwp_01.gif](http://www.allreport.co.kr/View/%5B%EB%A0%88%ED%8F%AC%ED%8A%B8%EC%9E%90%EB%A3%8C%5D%20%EC%88%98%EC%B9%98%ED%95%B4%EC%84%9D%20Bisection%20Method_hwp_01.gif)
![[레포트자료]%20수치해석%20Bisection%20Method_hwp_02.gif](http://www.allreport.co.kr/View/%5B%EB%A0%88%ED%8F%AC%ED%8A%B8%EC%9E%90%EB%A3%8C%5D%20%EC%88%98%EC%B9%98%ED%95%B4%EC%84%9D%20Bisection%20Method_hwp_02.gif)
![[레포트자료]%20수치해석%20Bisection%20Method_hwp_03.gif](http://www.allreport.co.kr/View/%5B%EB%A0%88%ED%8F%AC%ED%8A%B8%EC%9E%90%EB%A3%8C%5D%20%EC%88%98%EC%B9%98%ED%95%B4%EC%84%9D%20Bisection%20Method_hwp_03.gif)
순서
레포트자료,수치해석,Bisection,Method,공학기술,레포트
레포트/공학기술
설명
[레포트자료] 수치해석 Bisection Method , [레포트자료] 수치해석 Bisection Method공학기술레포트 , 레포트자료 수치해석 Bisection Method
Download : [레포트자료] 수치해석 Bisection Method.hwp( 76 )
#include `stdio.h`
#include `math.h`
int i, j;
int count = 0;
double arr[2][5];
double sum,a,b,c,fa,fb,fc;//변수 선언
double solve(double x)
{
int i = 0;
sum = 0;
for(i=0; i`count; i++)
sum = sum+pow(x, arr[1][i])arr[0][i];
return sum;
}
main()
{
/////////////////////////////지수 계수 입력 받는 루프//////////////////////////
while(1)
{
for(i=0; i`=4; i++)
{
printf(`계수와 지수를 하시오 : `);
scanf(`%lf %lf`, &arr[0][i], &arr[1][i]); //double 자료(資料)형 : %lf
if(arr[0][i] 0 && arr[1][i] 0)
{
break;
}
count++;
}
printf(`n`);
/////////////초기값을 입력받아 함수에 집어넣어 그에따른 변화를 보여주는 루프/////////////////
printf(`초기의 두점을 입력하세요.`);
scanf(`%lf %lf`, &a, &b);
while(1){
c= (a+b)/2;
fa = solve(a);
fb = solve(b);
fc = solve(c);
if(fafc`0)
{
b=c;
fb=fc;
}
if(fafc`0)
{
a=c;
fa=fc;
}
printf(`a = %lf, b = %lf, c = %lfn`, a,b,c); //abc 출력
prin…(To be continued )
[레포트자료] 수치해석 Bisection Method
다.