欢迎来到天天文库
浏览记录
ID:42775880
大小:935.34 KB
页数:91页
时间:2019-09-21
《工业企业能效分析与评价系统软件代码》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Drawing;namespaceBll.CustomApp.UI{classMathHclpcr{publicstaticdoubledMultiLincCocfficicnt(doublc[larrX,doublcf]arrY,intlength,intdimension){intn=dimension+1;doublet,]Guass=newdouble[n,n+1];for(inti=0;i2、+){intj;for(j=0;jpoints,intdimension){intcount=points.Count;doublet]arrX=newdouble[count];double[JarrY=newdouble[count];for(inti=0;i3、4、5、n!=0)s=s+Math.Pow(arr[i],n);elses=s+1;}returns;}publ6、icstaticdoubleSumArr(double[]arrl,intnl,double[]arr2,intn2,intlength)doubles=0;for(inti=0;i7、8、n1匸0)&&(arr2[i]!=09、10、n2!=0))s=s+Math.Pow(arrl[i],nl)*Math.Pow(arr2[i],n2);elses=s+1;}returns;}publicstaticdoublcflComputGauss(double[JGuass,intn){inti,j;intk,m;doubletemp;doublema11、x;doubles;double[]x=newdouble[n];for(i=0;imax){max=Guass[i,j];k=i;if(k!=j){for(m=j;m12、m++)Guass[i,m]=Guass[i,mJ-GuassJ,mJ*s/(Guass13、jJJ);for(i=n-1;i>=0;i—){s=0;for(j=i+1;j14、nts.Length;i++){doublexishu=Math.Round(Coefficients[i],3);if(i==0)builder.Append(xishu.ToSti'ing());elseif(i==1)builder.Append(xishu.ToString()+"XI");else{builder.Append(xishu.ToString()++i++i);}if((i+1)
2、+){intj;for(j=0;jpoints,intdimension){intcount=points.Count;doublet]arrX=newdouble[count];double[JarrY=newdouble[count];for(inti=0;i
3、4、5、n!=0)s=s+Math.Pow(arr[i],n);elses=s+1;}returns;}publ6、icstaticdoubleSumArr(double[]arrl,intnl,double[]arr2,intn2,intlength)doubles=0;for(inti=0;i7、8、n1匸0)&&(arr2[i]!=09、10、n2!=0))s=s+Math.Pow(arrl[i],nl)*Math.Pow(arr2[i],n2);elses=s+1;}returns;}publicstaticdoublcflComputGauss(double[JGuass,intn){inti,j;intk,m;doubletemp;doublema11、x;doubles;double[]x=newdouble[n];for(i=0;imax){max=Guass[i,j];k=i;if(k!=j){for(m=j;m12、m++)Guass[i,m]=Guass[i,mJ-GuassJ,mJ*s/(Guass13、jJJ);for(i=n-1;i>=0;i—){s=0;for(j=i+1;j14、nts.Length;i++){doublexishu=Math.Round(Coefficients[i],3);if(i==0)builder.Append(xishu.ToSti'ing());elseif(i==1)builder.Append(xishu.ToString()+"XI");else{builder.Append(xishu.ToString()++i++i);}if((i+1)
4、
5、n!=0)s=s+Math.Pow(arr[i],n);elses=s+1;}returns;}publ
6、icstaticdoubleSumArr(double[]arrl,intnl,double[]arr2,intn2,intlength)doubles=0;for(inti=0;i7、8、n1匸0)&&(arr2[i]!=09、10、n2!=0))s=s+Math.Pow(arrl[i],nl)*Math.Pow(arr2[i],n2);elses=s+1;}returns;}publicstaticdoublcflComputGauss(double[JGuass,intn){inti,j;intk,m;doubletemp;doublema11、x;doubles;double[]x=newdouble[n];for(i=0;imax){max=Guass[i,j];k=i;if(k!=j){for(m=j;m12、m++)Guass[i,m]=Guass[i,mJ-GuassJ,mJ*s/(Guass13、jJJ);for(i=n-1;i>=0;i—){s=0;for(j=i+1;j14、nts.Length;i++){doublexishu=Math.Round(Coefficients[i],3);if(i==0)builder.Append(xishu.ToSti'ing());elseif(i==1)builder.Append(xishu.ToString()+"XI");else{builder.Append(xishu.ToString()++i++i);}if((i+1)
7、
8、n1匸0)&&(arr2[i]!=0
9、
10、n2!=0))s=s+Math.Pow(arrl[i],nl)*Math.Pow(arr2[i],n2);elses=s+1;}returns;}publicstaticdoublcflComputGauss(double[JGuass,intn){inti,j;intk,m;doubletemp;doublema
11、x;doubles;double[]x=newdouble[n];for(i=0;imax){max=Guass[i,j];k=i;if(k!=j){for(m=j;m12、m++)Guass[i,m]=Guass[i,mJ-GuassJ,mJ*s/(Guass13、jJJ);for(i=n-1;i>=0;i—){s=0;for(j=i+1;j14、nts.Length;i++){doublexishu=Math.Round(Coefficients[i],3);if(i==0)builder.Append(xishu.ToSti'ing());elseif(i==1)builder.Append(xishu.ToString()+"XI");else{builder.Append(xishu.ToString()++i++i);}if((i+1)
12、m++)Guass[i,m]=Guass[i,mJ-GuassJ,mJ*s/(Guass
13、jJJ);for(i=n-1;i>=0;i—){s=0;for(j=i+1;j14、nts.Length;i++){doublexishu=Math.Round(Coefficients[i],3);if(i==0)builder.Append(xishu.ToSti'ing());elseif(i==1)builder.Append(xishu.ToString()+"XI");else{builder.Append(xishu.ToString()++i++i);}if((i+1)
14、nts.Length;i++){doublexishu=Math.Round(Coefficients[i],3);if(i==0)builder.Append(xishu.ToSti'ing());elseif(i==1)builder.Append(xishu.ToString()+"XI");else{builder.Append(xishu.ToString()++i++i);}if((i+1)
此文档下载收益归作者所有