文件名称:030300726[1]
介绍说明--下载内容均来自于网络,请自行研究使用
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 calculation, the effective retention six figures. To output the results should be in line with mathematics handwritten habits. For example, when the plural z real an
(系统自动生成,下载前可以参看下载内容)
下载文件列表
030300726[1].cpp