正在加载图片...
Lab o1. Numerical Summation of a series Produce a table of the values of the series v(x)=∑ kal k(k+x) for the 3001 values ofx, x=0.0,0.1,0.2,., 300.00. All entries of the table must have an absolute error less than 1.e-10. This problem is based on a problem from Hamming(1962), when mainframes were very slow by today's microcomputerstandards Input There is no input Output The output is to be formatted as two columns with the values ofx and yx)printed as in the c fprintf: fprintf(outfile, 762f%16.12fin",x, psix);/* here a represents a spaceLab 01. Numerical Summation of a Series Produce a table of the values of the series (1) for the 3001 values of x, x = 0.0, 0.1, 0.2, …, 300.00. All entries of the table must have an absolute error less than 1.0e-10. This problem is based on a problem from Hamming (1962), when mainframes were very slow by today's microcomputerstandards. Input There is no input. Output The output is to be formatted as two columns with the values of x and (x) printed as in the C fprintf: fprintf(outfile,"%6.2f%16.12f\n",x,psix); /* hererepresents a space */   = + = 1 ( ) 1 ( ) k k k x  x
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有