mirror of
https://github.com/apache/commons-math.git
synced 2025-02-06 18:18:56 +00:00
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@1141905 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d78c757aa9
commit
77af8e9585
@ -33,7 +33,7 @@ package org.apache.commons.math.analysis.solvers;
|
||||
* may be necessary to guarantee that a solution is returned that does not
|
||||
* under-approximate the solution.</p>
|
||||
*
|
||||
* @see BracketedSolution
|
||||
* @see BracketedUnivariateRealSolver
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
|
@ -19,13 +19,13 @@ package org.apache.commons.math.analysis.solvers;
|
||||
|
||||
/**
|
||||
* Base class for <em>Secant</em> methods that guarantee convergence
|
||||
* by maintaining a {@link BracketedSolution bracketed solution}.
|
||||
* by maintaining a {@link BracketedUnivariateRealSolver bracketed solution}.
|
||||
*
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
public class BaseBracketedSecantSolver extends BaseSecantSolver
|
||||
implements BracketedSolution {
|
||||
implements BracketedUnivariateRealSolver {
|
||||
/**
|
||||
* Construct a solver with default accuracy (1e-6).
|
||||
*
|
||||
|
@ -41,7 +41,7 @@ package org.apache.commons.math.analysis.solvers;
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
public interface BracketedSolution {
|
||||
public interface BracketedUnivariateRealSolver extends UnivariateRealSolver {
|
||||
/** Returns the kind of solutions that the root-finding algorithm may
|
||||
* accept as solutions.
|
||||
*
|
@ -22,7 +22,7 @@ package org.apache.commons.math.analysis.solvers;
|
||||
* root-finding (approximating a zero of a univariate real function). It is a
|
||||
* modified {@link SecantSolver <em>Secant</em>} method. Unlike the
|
||||
* <em>Secant</em> method, convergence is guaranteed by maintaining a
|
||||
* {@link BracketedSolution bracketed solution}.
|
||||
* bracketed solution.
|
||||
*
|
||||
* <p>The <em>Regula Falsi</em> method assumes that the function is continuous,
|
||||
* but not necessarily smooth.</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user