Regula Falsi Solver Constructor
Definition
Namespace: Numerics.NET.EquationSolvers
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.4
Overload List
Regula | Constructs a new RegulaFalsiSolver>. |
Regula | Constructs a new RegulaFalsiSolver> for a specified target function over a given bracketing interval and tolerance. |
Regula | Constructs a new RegulaFalsiSolver for a specified target function over a given bracketing interval and tolerance. |
RegulaFalsiSolver
Constructs a new RegulaFalsiSolver>.
public RegulaFalsiSolver()
RegulaFalsiSolver(Func<Double, Double>, Double, Double, RegulaFalsiVariant)
Constructs a new RegulaFalsiSolver> for a specified
target function over a given bracketing interval and
tolerance.
public RegulaFalsiSolver(
Func<double, double> targetFunction,
double lowerBound,
double upperBound,
RegulaFalsiVariant variant = RegulaFalsiVariant.Pegasus
)
Parameters
- targetFunction Func<Double, Double>
- A delegate that represents a function of one variable delegate that specifies the target function.
- lowerBound Double
- The lower bound of the bracketing interval.
- upperBound Double
- The upper bound of the bracketing interval.
- variant RegulaFalsiVariant (Optional)
- Optional. The Regula Falsi variant to use. The default is the Pegasus algorithm.
Exceptions
Argument | The tolerance is less than zero. |
RegulaFalsiSolver(Func<Double, Double>, Double, Double, ConvergenceCriterion, Double, RegulaFalsiVariant)
Constructs a new RegulaFalsiSolver for a specified
target function over a given bracketing interval and
tolerance.
public RegulaFalsiSolver(
Func<double, double> targetFunction,
double lowerBound,
double upperBound,
ConvergenceCriterion convergenceCriterion,
double tolerance,
RegulaFalsiVariant variant = RegulaFalsiVariant.Pegasus
)
Parameters
- targetFunction Func<Double, Double>
- A delegate that represents a function of one variable delegate that specifies the target function.
- lowerBound Double
- The lower bound of the bracketing interval.
- upperBound Double
- The upper bound of the bracketing interval.
- convergenceCriterion ConvergenceCriterion
- One of the ConvergenceCriterion values that specifies the criterion that is to be used in the convergence test for the algorithm.
- tolerance Double
- The tolerance to use when approximating the roots of the target function.
- variant RegulaFalsiVariant (Optional)
- Optional. The Regula Falsi variant to use. The default is the Pegasus algorithm.
Exceptions
Argument | The tolerance is less than zero. |