BesselJ implements UnivariateFunction { public BesselJ(double order) { this.order = order; } BesselJ(double order); double value(double x); static double value(double order, double x); static BesselJResult rjBesl(double x, double alpha, int nb);  }
@Test public void testBesselJ() { final double tol = 1e-15; for (int i = 0; i < BESSEL_J_REF.length; i++) { final double[] data = BESSEL_J_REF[i]; final double order = data[0]; final double x = data[1]; final double expected = data[2]; final double actual = BesselJ.value(order, x); String msg = "" + order + " @ " + x; Assert.assertEquals(msg, expected, actual, tol); } }