import java.applet.Applet; import java.awt.event.*; import java.awt.*; /*This class does the basic arithmetic of vectors up to length 20*/ public class Vector { double[] x=new double[20]; int size; public Vector(){} /*constructors*/ public Vector(Complex z) { size=3; x[0]=z.x; x[1]=z.y; x[2]=1.0; } public Vector(double a0,double a1,double a2) { size=3; x[0]=a0; x[1]=a1; x[2]=a2; } public Vector(double[] X) { size=X.length; for(int i=0;i