cnum
Version:
Represent rational numbers in comfortably numeric way.
22 lines (21 loc) • 610 B
TypeScript
import { Rat } from './Rat';
export interface Coefficents {
[Key: string]: bigint;
}
export declare class Polyrat {
coefficents: Coefficents;
dimension: number;
latinSymbols: string;
greekSymbols: string;
constructor(coefficents?: Coefficents);
evaluate(parameters: Rat[]): Rat;
toString(): string;
toJSON(): string;
toHTMLFormula(): string;
toStandardAlphaFormHTML(): string;
toCalcFormula(): string;
toGLSLFormula(): string;
clone(): Polyrat;
}
export declare const stringToPolyrat: (s: string) => Polyrat;
export default Polyrat;