/** * BVector.java -- manipulate vectors * * By Bob Jenkins, October 1999 * Permission granted to use, reuse, rewrite this without notifying me. */ // A vector. // Assumes that all vectors are of the same length. public class BVector { double c[]; // array of coefficients of polynomial // make a vector of length "length" initialized to zero BVector(int length) {c = new double[length];} // scale a vector by x final public void scale(double x) { for (int i=0; i