146147148149150151152153154155156
r0.add(state.getResult()); do { state.iterate(); n = state.getIterations(); r1.clear(); r1.add(state.getResult()); double d = 4.0; for (int i = 0; i < n; ++i) { r1.add(r1.get(i) + (r1.get(i) - r0.get(i)) / (d - 1.0)); d *= 4.0;