科学与工程计算(science and engineering calculation)

科学与工程计算(science and engineering calculation)

ID:12126849

大小:62.00 KB

页数:21页

时间:2018-07-15

科学与工程计算(science and engineering calculation)_第1页
科学与工程计算(science and engineering calculation)_第2页
科学与工程计算(science and engineering calculation)_第3页
科学与工程计算(science and engineering calculation)_第4页
科学与工程计算(science and engineering calculation)_第5页
资源描述:

《科学与工程计算(science and engineering calculation)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、科学与工程计算(Scienceandengineeringcalculation)#includesstdio.h><#includeswindows.h><#includesstring.h><#includesconio.h>

2、dscyt(floatfloatdataydatax[],[],intindexx);voidzxecnh(floatfloatdataydatax[],[],intindexx);voidtrans(charstr[],floatdate[],int&n).voidsolve(floattable[][36],intindex);voidcreatetable(intindex,floatfloatur[],[],[],floatfloatg,f0,floatfn,floattable[][36]).voidcalcbase

3、b(floatdatax[],floatb[],intindexx,floatx)voidcalcbasea(floatdatax[],floata[],intindexx,floatx)hersumfloat(floatdate[],inti,intindex);voidmain(){floatdatax[32].floatdatay[32].charstr[150].intindex=0,indexx,indexy,the;loop1:igive{memset(datax,0,sizeof(datax));memset(d

4、atay,0,sizeof(datay));printf("输入源数据x");scanf("%s",str);trans(str,datax,indexx);printf("输入源数据y");scanf("%s",str);trans(str,datay,indexy);}while(!(indexx==indexy));loop:system("cls");printf(x->);for(i=0;i

5、").for(i=0;i

6、anf("%d"&index);switch(index){case1:largange(datax,datay,indexx);break;case2:newton(datax,datay,indexx);break;case3:scyt(datax,datay,indexx);break;case4:hermite(datax,datay,indexx);break;case5:zxecnh(datax,datay,indexx);break;case0:break;default:gotoloop.}system("pa

7、use");if(index)gotoloop1;}voidtrans(charstr[],floatdate[],int&n){unsigned.intj;data[0]=0.0.sscanf(str,"%f",&data[0]);for(i=1,j=0;i

8、inti=0,j=0;floatlk[32].for(i=0;i

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。