enhancedmath
Version:
This package contains some enhanced mathematical operations
18 lines (17 loc) • 679 B
TypeScript
/**
* Calculates the discriminator of a second degree equation
* @param {number} a The coefficient of x^2
* @param {number} b The coefficient of x
* @param {number} c The constant
* @returns {number} The discriminator
*/
declare const discriminator: (a: number, b: number, c: number) => number | undefined;
/**
* Calculates the intersection points of a second degree equation
* @param {number} a The coefficient of x^2
* @param {number} b The coefficient of x
* @param {number} c The constant
* @returns {[]} The intersection points
*/
export declare const intersection_points: (a: number, b: number, c: number) => number[] | undefined;
export default discriminator;