@extra2001/compute-engine
Version:
Symbolic computing and numeric evaluations for JavaScript and Node.js
13 lines (12 loc) • 520 B
TypeScript
/* 0.28.0 */
import type { BoxedExpression } from '../global-types';
/** An interval is a continuous set of real numbers */
export type Interval = {
start: number;
openStart: boolean;
end: number;
openEnd: boolean;
};
export declare function interval(expr: BoxedExpression): Interval | undefined;
export declare function intervalContains(int: Interval, val: number): boolean;
/** Return true if int1 is a subset of int2 */
export declare function intervalSubset(int1: Interval, int2: Interval): boolean;