/* CantileverBeam Calculation Routine * Methods Concentrated(double,double) PartialUniform(double w,double a,double b) PartialInc(double w,double a,double b) PartialDec(double w,double a,double b) Couple(double mo, int ia) */ class CantileverBeam { int noPoints=801; double E; // modulus of elasiticiy double I; // moment of intertia double L; // span length int numPoints; // number of points at which to compute values int i; // arrays to store distance, shear, moment and deflection double x[] = new double[noPoints]; // distance from the left end of the beam double v[] = new double[noPoints]; // shear force double m[] = new double[noPoints]; // moment double y[] = new double[noPoints]; // deflection double rr; // reaction at right (fixed) support double mr; // moment at right (fixed) supprot // CantileverBeam Constructor // (E, I, Length of the beam, Number of points) CantileverBeam(double E,double I,double L, int n) { this.E = E; this.I = I; this.L = L; this.numPoints=n; for (i=0;i