B
bryantd
Unregistered / Unconfirmed
GUEST, unregistred user!
public class Polynomial{
do
uble[] coeffs;
//用一个double数组来记录多项式的各个项的系数(从低到高排列)
//构造函数
public Polynomial(double[] coeffs){
this.coeffs=coeffs;
}
//多项式相除后取商
public Polynomial devide(Polynomial p){……};
//多项式相除后取模
public Polynomial mod(Polynomial p){……};
}
do
uble[] coeffs;
//用一个double数组来记录多项式的各个项的系数(从低到高排列)
//构造函数
public Polynomial(double[] coeffs){
this.coeffs=coeffs;
}
//多项式相除后取商
public Polynomial devide(Polynomial p){……};
//多项式相除后取模
public Polynomial mod(Polynomial p){……};
}