Nahid
2005-02-09 05:21:56 UTC
Polynomial x = new PolynomialAsArray( );
//given the above polynomial:
System.out.println(x.getCoefficient(5)); // should print out 0/1
//but how about the following case?
System.out.println(x.getCoefficient(-5));
// should it print out 0/1 or should it throw an exception?
//given the above polynomial:
System.out.println(x.getCoefficient(5)); // should print out 0/1
//but how about the following case?
System.out.println(x.getCoefficient(-5));
// should it print out 0/1 or should it throw an exception?