|
-2.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
|
- 페이지 5페이지
- 가격 800원
- 등록일 2006.06.01
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
f \\n\",j-1,X[i],j-1,e[i+1],j-1,E[i],j-1,DEF[i]);
j++;
i++;
}
}
//N=100 일때
#include <stdio.h>
#include <math.h>
#define e Euler_Y_Value
#define E EXACT_Euler_Value
#define X Euler_X_Value
main()
{
int i=0,j=1;
float X[101],x=1,y=1,h=0.01,e[102],E[102],c[102],DEF[102];//초기값 X=1,y=1 h
|
- 페이지 4페이지
- 가격 1,000원
- 등록일 2003.12.09
- 파일종류 한글(hwp)
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
초기값\\n 2 .지정함수에 다른 구간과 초기값 \\n\\n\');
start=input(\'번호를 입력하여 주십시오 (숫자만 입력하십시오) : \');
if start==1
fprintf(\'\\n 저의 구간은 [a,b]=[0,4] 이고 y0=1, h=1 입니다. \\n \');
a=0; b=4; y0=1; h=1;
else
fprintf(\'\\n 다음값을 차례로 입력
|
- 페이지 8페이지
- 가격 1,200원
- 등록일 2011.12.24
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|