Matlab을 이용한 bisection method and the incremental search method.
- 최초 등록일
- 2011.06.09
- 최종 저작일
- 2010.09
- 11페이지/ 한컴오피스
- 가격 5,000원
소개글
1. For the function given below, find roots using the bisection method and the incremental search method.
바이섹션과 인크리멘탈 서치 기법을 이용해 문제를 풀수있도록 짠코드입니다.
목차
없음
본문내용
1. For the function given below, find roots using the bisection method and the incremental search method.
(1-1) generate pseudo code
--------------------------------------------------------------------
Function incremSearch(xmin, xmax, n, itmax)
Nroot = 0
dx = (xmax - xmin) / (n - 1)
xL = xmin;
DO k = 1,2,3... n
fU = f(xL)
xU = xL + dx
fL = fU
fU = f(xU)
IF fL * fU < 0,
Nroot = Nroot + 1
CALL bisect(xL, xU, ITmax)
IF end
xL = xU;
END DO
END incremSearch
-------------------------------------------------------------------------------------
Function bisect(xL, xU, itmax)
%f(x) = sin(10 * x) + cos(3 * x) + 0.5
fL = f(xL)
fU = f(xU)
DO j = 1,2,3...itmax
xR = 0.5 * (xL + xU)
fR= f(xR)
fT = fL * fR
참고 자료
임종수의 MATLAB 7 (MATLAB 6.0부터 7.4버전까지)
임종수 저 높이깊이
공학도를 위한 수치해석
Canale, Chapra 저 이승배, 신동진 외 1명 역 MCGRAWHILL
이외의 코딩들은 본인제작