SS.ExactMath 1.0.0
Budgeted arbitrary-size exact integers and canonical rationals
Language compatibility: >=1.0.0 <2.0.0
Runtime compatibility: >=1.0.0 <2.0.0
No package dependencies declared.
Public API
ExactMath.addExact
export function addExact(ExactInteger left, ExactInteger right, int budget)->ExactIntegerParameters: left: ExactInteger, right: ExactInteger, budget: int
ExactMath.addRational
export function addRational(ExactRational left, ExactRational right, int budget)->ExactRationalParameters: left: ExactRational, right: ExactRational, budget: int
ExactMath.compareExact
export function compareExact(ExactInteger left, ExactInteger right)->intParameters: left: ExactInteger, right: ExactInteger
ExactMath.divideExact
export function divideExact(ExactInteger dividend, ExactInteger divisor, int budget)->ExactDivisionParameters: dividend: ExactInteger, divisor: ExactInteger, budget: int
ExactMath.divideRational
export function divideRational(ExactRational left, ExactRational right, int budget)->ExactRationalParameters: left: ExactRational, right: ExactRational, budget: int
ExactMath.ExactDivision
export record ExactDivision(public ExactInteger quotient, public ExactInteger remainder)Parameters: quotient: ExactInteger, remainder: ExactInteger
ExactMath.exactInt
export function exactInt(long value, int budget)->ExactIntegerParameters: value: long, budget: int
ExactMath.exactInteger
export function exactInteger(string text, int budget)->ExactIntegerParameters: text: string, budget: int
ExactMath.ExactInteger
export record ExactInteger(public int sign, public long[] limbs)Parameters: sign: int, limbs: long[]
ExactMath.exactIntegerText
export function exactIntegerText(ExactInteger value)->stringParameters: value: ExactInteger
ExactMath.exactRational
export function exactRational(ExactInteger numerator, ExactInteger denominator, int budget)->ExactRationalParameters: numerator: ExactInteger, denominator: ExactInteger, budget: int
ExactMath.ExactRational
export record ExactRational(public ExactInteger numerator, public ExactInteger denominator)Parameters: numerator: ExactInteger, denominator: ExactInteger
ExactMath.exactRationalText
export function exactRationalText(ExactRational value)->stringParameters: value: ExactRational
ExactMath.gcdExact
export function gcdExact(ExactInteger left, ExactInteger right, int budget)->ExactIntegerParameters: left: ExactInteger, right: ExactInteger, budget: int
ExactMath.multiplyExact
export function multiplyExact(ExactInteger left, ExactInteger right, int budget)->ExactIntegerParameters: left: ExactInteger, right: ExactInteger, budget: int
ExactMath.multiplyRational
export function multiplyRational(ExactRational left, ExactRational right, int budget)->ExactRationalParameters: left: ExactRational, right: ExactRational, budget: int
ExactMath.negateExact
export function negateExact(ExactInteger value)->ExactIntegerParameters: value: ExactInteger
ExactMath.powerExact
export function powerExact(ExactInteger value, int exponent, int budget)->ExactIntegerParameters: value: ExactInteger, exponent: int, budget: int
ExactMath.rational
export function rational(long numerator, long denominator, int budget)->ExactRationalParameters: numerator: long, denominator: long, budget: int
ExactMath.subtractExact
export function subtractExact(ExactInteger left, ExactInteger right, int budget)->ExactIntegerParameters: left: ExactInteger, right: ExactInteger, budget: int
ExactMath.subtractRational
export function subtractRational(ExactRational left, ExactRational right, int budget)->ExactRationalParameters: left: ExactRational, right: ExactRational, budget: int
Documentation version
Language 1.0.0, compiler 1.0.0, runtime 1.0.0. This reference is generated from the official SS documentation so package and language details stay consistent with the release.