psteitz 2004/02/16 20:33:16 Modified: math/src/test/org/apache/commons/math/analysis InterpolatorTest.java Log: Restored test code inadvertently deleted with last commit. Revision Changes Path 1.12 +26 -1 jakarta-commons/math/src/test/org/apache/commons/math/analysis/InterpolatorTest.java Index: InterpolatorTest.java =================================================================== RCS file: /home/cvs/jakarta-commons/math/src/test/org/apache/commons/math/analysis/InterpolatorTest.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- InterpolatorTest.java 16 Feb 2004 06:30:21 -0000 1.11 +++ InterpolatorTest.java 17 Feb 2004 04:33:16 -0000 1.12 @@ -47,7 +47,9 @@ double yval[] = { 0.0, 0.5, 1.0 }; UnivariateRealInterpolator i = new SplineInterpolator(); UnivariateRealFunction f = i.interpolate(xval, yval); + /* todo: rewrite using assertions + double x; x = 0.0; System.out.println( @@ -79,6 +81,29 @@ double yval[] = { 0.0, 0.5, 1.0, 1.5 }; UnivariateRealInterpolator i = new SplineInterpolator(); UnivariateRealFunction f = i.interpolate(xval, yval); + /* todo: rewrite with assertions + double x; + x = 0.0; + System.out.println( + "x=" + + x + + " y=" + + f.value(x)); + + x = 0.5; + System.out.println( + "x=" + + x + + " y=" + + f.value(x)); + + x = 1 - 1E-6; + System.out.println( + "x=" + + x + + " y=" + + f.value(x)); + */ }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]