UNPKG

highcharts

Version:
40 lines (39 loc) 1.12 kB
/*!* * * Copyright (c) Highsoft AS. All rights reserved. * *!*/ import * as globals from "../globals.src"; import * as _Highcharts from "../highcharts.src"; declare module "../highcharts.src" { /** * Finds the root of a given function. The root is the input value needed * for a function to return 0. * * See https://en.wikipedia.org/wiki/Bisection_method#Algorithm * * TODO: Add unit tests. * * @param f * The function to find the root of. * * @param a * The lowest number in the search range. * * @param b * The highest number in the search range. * * @param tolerance * The allowed difference between the returned value and root. * * @param maxIterations * The maximum iterations allowed. * * @return Root number. */ function bisect(f: Function, a: number, b: number, tolerance?: number, maxIterations?: number): number; function isSet(): void; function isValidRelation(): void; function isValidSet(): void; } export default _Highcharts;