public double getValue(double x){
		double y = 0;
		for(int i=0; i<terms.length; i++){
			if(i==0){
				y += terms[0];
				continue;
			}
			if(terms[i]==0)continue;
			y += terms[i] * Math.pow(x, i);
		}
		return y;
	}