UNPKG

@polkassembly/util

Version:

Set of utility functions for Polkassembly and more.

10 lines (9 loc) 295 B
import BN from 'bn.js'; /** * @name solveQuadraticEquation * @summary Returns the root of a polynomial function of degree 2, a*x^2 + b*x + c where a, b and c are BN from bn.js. * @param a * @param b * @param c **/ export declare function solveQuadraticEquation(a: BN, b: BN, c: BN): BN[];