|
我要用linkedlist写一个polynomial的class
但是刚开头就卡住了
因为不懂如何把power和coefficient包含进去
/* Constructs a new polynomial of degree zero */
public Polynomial() {
}
void setCoefficients(int coef, int power) {
}
double evaluate(double x) {
还要把一个polynomial加上另一个polynomial
各位大侠有没有办法给点提示啊 |
|