* Construct a polynomial function of degree n from given constants.
* @param ds coefficients in the order of highest degree to lowest
*/
public DegreeNFunction(double...ds) throws FunctionException{
if(ds==null || ds.length==0){
throw new FunctionException();
}else{
this.coeffs=ds;
}
}