Euler method 초기치문제의 오일러 매소드
본 자료는 1페이지 의 미리보기를 제공합니다. 이미지를 클릭하여 주세요.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
해당 자료는 1페이지 까지만 미리보기를 제공합니다.
1페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

Euler method 초기치문제의 오일러 매소드에 대한 보고서 자료입니다.

목차

없음

본문내용

.0)*w[9]+(1.97-1.9)/(2.0-1.9)*w[10];
printf("w(1.97) = %f y(1.97) = %f error = %f\n",y3,y(1.97),y3-y(1.97));
}
float f(float w, float t){
return 2*w/t+t*t*exp(t);
}
float y(float t){
return t*t*(exp(t)-exp(1));
}
Result
/*
This program is Euler's Method for exercise 5.2.10
y' = exp(-0.06*pi*t)*(1.202377*cos(2*t-pi)-0.735745*sin(2*t-pi))
for 0<=t<=10 with y(0)=0 and h=0.1
*/
#include
#include
float f(float w, float t);
float pi = 3.141593;
main(){
int i, N = 100;
float t, h=0.1;
float w[101];
w[0] = 0;
for(i=0 ; i t = h*i +1;
w[i+1] = w[i]+ h*f(w[i],t);
}
for(i=0 ; i<=N ; i++){
t =h*i;
printf("w(%1.1f) = %f ",t,w[i]);
if((i%4)==3)printf("\n");
}
getchar();
}
float f(float w, float t){
return exp(-0.06*pi*t)*(1.202377*cos(2*t-pi)-0.735745*sin(2*t-pi));
}
Result

키워드

  • 가격800
  • 페이지수5페이지
  • 등록일2006.06.01
  • 저작시기2006.4
  • 파일형식한글(hwp)
  • 자료번호#352513
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니