import com.imsl.math.*; public class ZeroFunctionEx1 { public static void main(String args[]) { ZeroFunction.Function fcn = new ZeroFunction.Function() { public double f(double x) { return Math.sin(x); } }; ZeroFunction zf = new ZeroFunction(); double guess[] = {5, 18, -6}; double zeros[] = zf.computeZeros(fcn, guess); for (int k = 0; k < zeros.length; k++) { System.out.println(zeros[k]+" = "+(zeros[k]/Math.PI) + " pi"); } } }