文件名称:assignment1
介绍说明--下载内容均来自于网络,请自行研究使用
【问题描述】
设计一个实现一元稀疏多项式相加运算的演示程序。
【基本要求】
(1)输入并建立两个多项式;
(2)多项式a与b相加,建立和多项式c;
(3)输出多项式a,b,c。输出格式:比如多项式a为:A(x)=c1xe1+c2xe2+…+ cmxem,其中,ci和ei分别为第i项的系数和指数,且各项按指数的升幂排列,即0≤e1<e2<…<em。多项式b,c类似输出。([descr iption of the problem]
Design a demonstration program to realize the addition operation of unary sparse polynomials.
[basic requirements]
(1) the input and establishment of two polynomials;
(2) polynomial A is added to B, and polynomial C is established.
(3) output polynomials a, B, C. Output format: for example, polynomial A is A (x) =c1xe1+c2xe2+... + cmxem, where Ci and EI are the coefficients and exponents of item I respectively, and each is arranged according to the exponent ascending power, that is, 0 or less E1 < E2 <... Em. Polynomial B, C is similar to output.)
设计一个实现一元稀疏多项式相加运算的演示程序。
【基本要求】
(1)输入并建立两个多项式;
(2)多项式a与b相加,建立和多项式c;
(3)输出多项式a,b,c。输出格式:比如多项式a为:A(x)=c1xe1+c2xe2+…+ cmxem,其中,ci和ei分别为第i项的系数和指数,且各项按指数的升幂排列,即0≤e1<e2<…<em。多项式b,c类似输出。([descr iption of the problem]
Design a demonstration program to realize the addition operation of unary sparse polynomials.
[basic requirements]
(1) the input and establishment of two polynomials;
(2) polynomial A is added to B, and polynomial C is established.
(3) output polynomials a, B, C. Output format: for example, polynomial A is A (x) =c1xe1+c2xe2+... + cmxem, where Ci and EI are the coefficients and exponents of item I respectively, and each is arranged according to the exponent ascending power, that is, 0 or less E1 < E2 <... Em. Polynomial B, C is similar to output.)
相关搜索: 一元稀疏多项式的加法运算
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
assignment1.cpp | 5608 | 2018-04-26 |