package ecuacion4; public abstract class Ecuacion { protected static final double CERO=1e-10; protected static final double ERROR=0.0001; protected final int MAXITER=100; protected final int MAXRAICES=20; protected double raices[]=new double[MAXRAICES]; protected int iRaiz=0; protected double puntoMedio(double a, double b)throws RaizExcepcion{ double m, ym; int iter=0; do{ m=(a+b)/2; ym=f(m); if(Math.abs(ym)=0.0){ y1=y2; continue; } //hay una raíz en este intervalo if(iRaiz