Removed development statement.

I'm really sorry for this...

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1458478 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2013-03-19 19:48:03 +00:00
parent 68a9dc050f
commit 59eb9a9bad
1 changed files with 0 additions and 10 deletions

View File

@ -16,9 +16,6 @@
*/
package org.apache.commons.math3.ode.events;
import java.io.IOException;
import java.io.PrintStream;
import org.apache.commons.math3.analysis.solvers.BracketingNthOrderBrentSolver;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.exception.MaxCountExceededException;
@ -119,23 +116,16 @@ public class EventFilterTest {
// verify old events are preserved, even if randomly accessed
RandomGenerator rng = new Well19937a(0xb0e7401265af8cd3l);
try {
PrintStream out = new PrintStream("/home/luc/x.dat");
for (int i = 0; i < 5000; i++) {
double t = t0 + (t1 - t0) * rng.nextDouble();
double g = eventFilter.g(t, new double[] { FastMath.sin(t), FastMath.cos(t) });
int turn = (int) FastMath.floor((t - refSwitch) / (2 * FastMath.PI));
out.println(t + " " + g);
if (turn % 2 == 0) {
Assert.assertEquals( signEven * FastMath.sin(t), g, 1.0e-10);
} else {
Assert.assertEquals(-signEven * FastMath.sin(t), g, 1.0e-10);
}
}
out.close();
} catch (IOException ioe) {
Assert.fail(ioe.getLocalizedMessage());
}
}