From 4500105e12ae928f6683cf17dbcd1b662e8ad9d4 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Fri, 1 Jul 2011 12:44:26 +0000 Subject: [PATCH] renamed BracketedSolution into BracketedUnivariateRealSolver and make it extend UnivariateRealSolver. This will allow specifying directly a sub-category of solvers when needed. It will be used for example by the ODE events detection mechanism, as it will ensure the integrator can automatically go past the event time. JIRA: MATH-605 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141920 13f79535-47bb-0310-9956-ffa450edef68 --- .../analysis/solvers/BaseSecantSolverAbstractTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/commons/math/analysis/solvers/BaseSecantSolverAbstractTest.java b/src/test/java/org/apache/commons/math/analysis/solvers/BaseSecantSolverAbstractTest.java index 0c7fe64ad..3d2199f88 100644 --- a/src/test/java/org/apache/commons/math/analysis/solvers/BaseSecantSolverAbstractTest.java +++ b/src/test/java/org/apache/commons/math/analysis/solvers/BaseSecantSolverAbstractTest.java @@ -162,8 +162,8 @@ public abstract class BaseSecantSolverAbstractTest { public void testSolutionLeftSide() { UnivariateRealFunction f = new SinFunction(); UnivariateRealSolver solver = getSolver(); - if (!(solver instanceof BracketedSolution)) return; - ((BracketedSolution)solver).setAllowedSolutions(AllowedSolutions.LEFT_SIDE); + if (!(solver instanceof BracketedUnivariateRealSolver)) return; + ((BracketedUnivariateRealSolver)solver).setAllowedSolutions(AllowedSolutions.LEFT_SIDE); double left = -1.5; double right = 0.05; for(int i = 0; i < 10; i++) { @@ -181,8 +181,8 @@ public abstract class BaseSecantSolverAbstractTest { public void testSolutionRightSide() { UnivariateRealFunction f = new SinFunction(); UnivariateRealSolver solver = getSolver(); - if (!(solver instanceof BracketedSolution)) return; - ((BracketedSolution)solver).setAllowedSolutions(AllowedSolutions.RIGHT_SIDE); + if (!(solver instanceof BracketedUnivariateRealSolver)) return; + ((BracketedUnivariateRealSolver)solver).setAllowedSolutions(AllowedSolutions.RIGHT_SIDE); double left = -1.5; double right = 0.05; for(int i = 0; i < 10; i++) {