資源簡介
數值分析算法設計 ,包括亞當姆斯、龍貝格、秦九韶、拉格朗日

代碼片段和文件信息
#?include
#?include
float?f(float?xfloat?y)
{
return?(y-2*x/y);
}
float?function(float?xmfloat?ymfloat?l)
{
float?xnyn;
float?K1K2K3K4;
xn=xm+l;
????K1=f(xmym);K2=f(xm+l/2ym+K1*l/2?);;
K3=f(xm+l/2ym+K2*l/2);K4=f(xnym+l*K3);
yn=ym+l*(K1+2*K2+2*K3+K4)/6;
cout<<“(“< return?yn;
}
void?main()
{
int?Nn;
float?abcd;
float?x1x2x3x4y1y2y3y4ypx0y0h;
cout<<“請輸入X0Y0及HN其中N為大于等于4的整數.“< cin>>x0>>y0>>h>>N;
x1=x0+h;x2=x0+2*h;x3=x0+3*h;
y1=function(x0x0h);
y2=function(x1y1h);
y3=function(x2y2h);
n=4;
while(n<=N)
{
x4=x3+h;
a=f(x3y3);b=f(x2y2);
c=f(x1y1);d=f(x0y0);
yp=y3+h*(55*a-59*b+37*c-9*d)/24;
y4=y3+h*(9*f(x4yp)+19*a-5*b+c)/24;
cout<<“(“< n++;
x3=x4;
y3=y4;
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????864??2005-06-22?17:52??數值分析算法程序\Adams亞當母斯.cpp
?????文件????????825??2005-06-22?17:59??數值分析算法程序\longbeige龍貝格.cpp
?????文件????????640??2005-06-28?16:36??數值分析算法程序\Project1.vbp
?????文件????????178??2005-06-19?16:06??數值分析算法程序\qingjiushao秦九韶算法.cpp
?????文件???????2361??2005-06-19?16:07??數值分析算法程序\拉格郎日largange.frm
?????文件????????176??2005-06-19?16:02??數值分析算法程序\秦九韶qinjiushao.cpp
?????目錄??????????0??2009-03-02?21:58??數值分析算法程序
-----------?---------??----------?-----??----
?????????????????5044????????????????????7
- 上一篇:銀行計算機專業筆試題目+答案
- 下一篇:超級瑪麗c++源碼win32Linux平臺
評論
共有 條評論