UNPKG

@fvictorio/newton-raphson-method

Version:

Find zeros of a function using the Newton-Raphson method

12 lines (11 loc) 355 B
import Big from 'big.js'; declare type Bignumberish = Big | number | string; interface Options { tolerance: Bignumberish; maxIterations: number; h: Bignumberish; verbose: boolean; } declare type F = (x: Big) => Big; export declare function newtonRaphson(f: F, x0: Bignumberish, options?: Partial<Options>, fp?: F): Big | false; export {};