一个关于学校成绩计算统计方面的加载宏,可以极大的提高工作效率,添加了一些增强工具(过程),添加了一些自定义函数。如:以下为自定义函数 去首尾求平均:自动对选定单元格区域中的单元格求和,并计算平均数。a为唯一参数,为需指定的单元格区域。 去首尾求和:自动对选定单元格区域中的单元格求和,求和时自动去掉区域中的最大值与最小值。a为唯一参数,为需指定的单元格区域。 pass:计算指定区域b中,大于等于a的数值个数在全部b区域中的个数之比,常被用来计算优秀率、及格率等。其中A为常数,b为单元格区域。 s
# include # include #include # define n 3 int main () { int i,j,k,row,v,t; int M[n]; float m,r,max0,max1; float a[n][n],b[n],s[n],l[n][n],u[n][n],x[n],y[n]; a[0][0]=0.5,a[0][1]=1.1,a[0][2]=3.1; a[1][0]=5.0,a[1][1]=0.96,a[1][2]=6.5; a[2][0]=2.0,a[2][
An Introduction to Numerical Analysis Endre S¨uli and David F. Mayers University of Oxford Cambridge University Press Contents 1 Solution of equations by iteration 2 Solution of systems of linear equations 3 Special matrices 4 Simultaneous nonlinear