psychart
Version:
View air conditions on a psychrometric chart
13 lines (12 loc) • 403 B
TypeScript
/**
* Represents a mathematical function `y = f(x)`
*/
export type f = (x: number) => number;
/**
* Find the solution (zero) of a function.
*/
export declare function zero(func: f, left: number, right: number, epsilon?: number, maxIterations?: number): number;
/**
* Convert a raw function definition into a valid function.
*/
export declare function toFunction(raw: string, variable: string): f;