Class ArithBisection<Parameter, Epsilon>

Within a given precision, an object of this class finds the parameter value at which a given function switches its boolean return value using interval splitting (bisection). Pass the type of the parameter and the type the precision is measured in.

Type Parameters

  • Parameter
  • Epsilon

Constructors

Properties

Methods

Constructors

Properties

left: Parameter

The left border of the interval found

leftValue: boolean

The function value at the left border of the interval found

right: Parameter

The right border of the interval found

rightValue: boolean

The function value at the right border of the interval found

Methods

  • Finds a solution with the given precision in the given interval using the functions this Solver was constructed with. After the method returns, find the data in this objects properties.

    Parameters

    • _left: Parameter

      The parameter on one side of the interval.

    • _right: Parameter

      The parameter on the other side, may be "smaller" than [[_left]].

    • _epsilon: Epsilon

      The desired precision of the solution.

    • _leftValue: boolean = undefined

      The value on the left side of the interval, omit if yet unknown or pass in if known for better performance.

    • _rightValue: boolean = undefined

      The value on the right side of the interval, omit if yet unknown or pass in if known for better performance.

    Returns void

    Throws

    Error if both sides of the interval return the same value.