/* * This class attempts to solve the * problem y'=-k*y */ public class Euler { static int k = 100; protected static double doOneStep(double y, double h) { return (1-h*k)*y;// that's Euler when y'=y } /* * solve y'=y from x0 to xend starting at x0,y0 using stepsize h */ public static double solve(double y0,double x0,double xend, double h) { // totally unsafe code while(x0