正在加载图片...
8 1 Lagrange Polynomial Output(- represents a space) For each ai, you are supposed to print the function value at this point in the following format fprintf( outfile,"f(%6.3■=■%128en",a,f); The outputs of two test cases must be seperated by a blank line. Sample Input Sample Output 7 f(■0.740)■=■6.6873582le-001 0.5■0.7■09■1.1■1.3■1.5■1.7■1.9 f(■1600)■=■1.00341309e+000 0.48■0.64■0.78■0.89■0.96■1.00■0.99■0.95f(■0.550)■=■526938820e-001 5■0.74■1.6■0.55■1.2■1.85 f(■1.200)■=■929135742e001 f(■1850)■=■952078056001 0.0■10 0.0■1.0 f(■0.500)■=■5.0000001 1■0.5§1 Lagrange Polynomial Output ( represents a space) For each ai , you are supposed to print the function value at this point in the following format: fprintf(outfile, "f(%6.3f)=%12.8e\n" , a, f ); The outputs of two test cases must be seperated by a blank line. Sample Input 7 0.50.70.91.11.31.51.71.9 0.480.640.780.890.961.000.990.95 50.741.60.551.21.85 1 0.01.0 0.01.0 10.5 –1 Sample Output f(0.740) =6.68735821e–001 f(1.600) =1.00341309e+000 f(0.550) =5.26938820e–001 f(1.200) =9.29135742e–001 f(1.850) =9.52078056e–001 f(0.500) =5.00000000e–001
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有