You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ps...@apache.org on 2004/02/17 05:33:16 UTC
cvs commit: jakarta-commons/math/src/test/org/apache/commons/math/analysis InterpolatorTest.java
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org