UNPKG

@holgerengels/compute-engine

Version:

Symbolic computing and numeric evaluations for JavaScript and Node.js

11 lines (10 loc) 459 B
/* 0.26.0-alpha2 */ export declare function gcd(a: bigint, b: bigint): bigint; export declare function lcm(a: bigint, b: bigint): bigint; /** Return `[factor, root]` such that * pow(n, 1/exponent) = factor * pow(root, 1/exponent) * * canonicalInteger(75, 2) -> [5, 3] = 5^2 * 3 * */ export declare function canonicalInteger(n: bigint, exponent: number): [factor: bigint, root: bigint]; export declare function reducedInteger(n: bigint): bigint | number;