代码说明:
1-2 实系数复变多项式问题« 编程任务:给定阶数分别为n和m的实系数复变多项式f(x) 和g(x),以及复数z,计算f (z) / g(z)的值。« 数据输入:由文件input.txt 给出输入数据。第一行有2 个正整数g(x) 的阶数。接下来的2行,每行分别有n和m个实数数。最后一行的2 个实数分别表示复数z 的实部和虚部。« 结果输出:将计算出的f (z) / g(z)的值输出到文件output.txt。文件的第一行是计算得到的复数,保留6 位有效数字。注意输出的结果应该符合数学中手写习惯。例如,当复数z 的实部和虚部分别为2 和1 时,应该输出2+i,而不是2+1i。输入文件示例 输出文件示例input.txt output.txt2 11 2 32 23.5 0.5-1-2 polynomial coefficients complex issues laquo; Programming tasks : to set the order of n and m is the coefficient of complex polynomials f (x) and g (x), and the plural z, calculated f (z)/g (z) values. Laquo; Data input : from the document input.txt given input data. The first trip had two positive integers g (x) of the Order. The next two firms, each trip respectively n and m really count. The last line of the two real plural z respectively, said the real and imaginary parts. Laquo; Results output : to calculate the f (z)/g (z) the value of the output to a file output.txt. The document is the first line of the complex calculat
下载说明:请别用迅雷下载,失败请重下,重下不扣分!