수치해석 매트랩 레포트
- 최초 등록일
- 2020.05.12
- 최종 저작일
- 2020.05
- 4페이지/ 한컴오피스
- 가격 1,500원
소개글
"수치해석 매트랩 레포트"에 대한 내용입니다.
목차
없음
본문내용
clear,clc,close ALL
syms x
f=x^5-9*x^4+25*x^3-5*x^2-26*x+24;
r=9;
s=-25;
Ear=1;
Eas=1;
Err=0.005;
<중 략>
end
q_c(1)=0;
q_c(2)=0;
for i=1:1:q_n
q_c(i+2)=q_b(i+2)+q_r*q_c(i+1)+q_s*q_c(i);
end
q_C=[q_c(4) q_c(3);q_c(5) q_c(4)];
q_B=[-q_b(5);-q_b(6)];
q_delta=q_C\q_B;
q_r=q_r+q_delta(1);
q_s=q_s+q_delta(2);
q_Ear=abs(q_delta(1)/q_r);
q_Eas=abs(q_delta(2)/q_s);
fprintf( ' %2.4f %2.4f %2.4f %2.4f \n',q_r,q_s,q_Ear,q_Eas);
end
root3=(q_r+sqrt(q_r^2+4*q_s))/2;
root4=(q_r-sqrt(q_r^2+4*q_s))/2;
%위에서 구한 q_r값을 대입해 b1,b2...를 구하면
e(1)=d(1);
e(2)=d(2)+q_r*e(1);
p=e(1)*x+e(2);
root5=-e(2)/e(1);
x=[root1;root2;root3;root4;root5]
참고 자료
없음