1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.hipparchus.ode.nonstiff;
19
20 import org.junit.Test;
21
22 public class LutherIntegratorTest extends RungeKuttaIntegratorAbstractTest {
23
24 protected RungeKuttaIntegrator createIntegrator(double step) {
25 return new LutherIntegrator(step);
26 }
27
28 @Override
29 public void testMissedEndEvent() {
30 doTestMissedEndEvent(1.0e-15, 1.0e-15);
31 }
32
33 @Override
34 public void testSanityChecks() {
35 doTestSanityChecks();
36 }
37
38 @Override
39 public void testDecreasingSteps() {
40 doTestDecreasingSteps(3.6, 1.0, 1.0e-10);
41 }
42
43 @Override
44 public void testSmallStep() {
45 doTestSmallStep(8.7e-17, 3.6e-15, 1.0e-12, "Luther");
46 }
47
48 @Override
49 public void testBigStep() {
50 doTestBigStep(2.7e-5, 1.7e-3, 1.0e-12, "Luther");
51 }
52
53 @Override
54 public void testBackward() {
55 doTestBackward(2.4e-13, 4.3e-13, 1.0e-12, "Luther");
56 }
57
58 @Override
59 public void testKepler() {
60 doTestKepler(2.18e-7, 4.0e-10);
61 }
62
63 @Override
64 public void testStepSize() {
65 doTestStepSize(1.0e-22);
66 }
67
68 @Override
69 public void testSingleStep() {
70 doTestSingleStep(6.0e-12);
71 }
72
73 @Override
74 public void testTooLargeFirstStep() {
75 doTestTooLargeFirstStep();
76 }
77
78 @Override
79 public void testUnstableDerivative() {
80 doTestUnstableDerivative(4.0e-15);
81 }
82
83 @Override
84 public void testDerivativesConsistency() {
85 doTestDerivativesConsistency(1.0e-20);
86 }
87
88 @Override
89 public void testSerialization() {
90 doTestSerialization(1437963, 2.18e-7);
91 }
92
93 @Test
94 public void testSecondaryEquations() {
95 doTestSecondaryEquations(1.0e-12, 5.6e-13);
96 }
97
98 }