@skenvy/collatz
Version:
Functions related to the Collatz/Syracuse/3N+1 problem, implemented in JavaScript.
25 lines (24 loc) • 1.04 kB
JavaScript
import { KNOWN_CYCLES, VERIFIED_MAXIMUM, VERIFIED_MINIMUM, SequenceState } from './utilities.js';
import { SaneParameterErrMsg, FailedSaneParameterCheck, assertSaneParameterisation } from './FailedSaneParameterCheck.js';
import { collatzFunction, reverseFunction } from './function.js';
import { HailstoneSequence, hailstoneSequence } from './HailstoneSequence.js';
import { stoppingTime } from './stoppingTime.js';
import { TreeGraphNode } from './TreeGraphNode.js';
import { TreeGraph, treeGraph } from './TreeGraph.js';
export { KNOWN_CYCLES, VERIFIED_MAXIMUM, VERIFIED_MINIMUM, SequenceState };
export { SaneParameterErrMsg, FailedSaneParameterCheck, assertSaneParameterisation };
export { collatzFunction, reverseFunction };
export { HailstoneSequence, hailstoneSequence };
export { stoppingTime };
export { TreeGraphNode };
export { TreeGraph, treeGraph };
export default {
collatzFunction,
reverseFunction,
HailstoneSequence,
hailstoneSequence,
stoppingTime,
TreeGraphNode,
TreeGraph,
treeGraph,
};