AutoMovie API
    Preparing search index...
    • The root of a monotone function over an interval.

      The function is called once more at the result, last, so a function that stores its argument (a landmark the construction reads back) is left holding the solution.

      Parameters

      • lo: number

        Lower end of the interval.

      • hi: number

        Upper end of the interval.

      • f: BisectF

        Function whose root is wanted, in the unit of its argument's course.

      • sign: -1 | 1

        1 when the function rises over the interval, -1 when it falls.

      Returns number

      The argument at which the function crosses zero, or an end of the interval when it does not.