Skip to content

IEuclidean

Defined in: euclidean.ts:24

A Euclidean domain — an integral domain equipped with a degree function that admits division with remainder, which is what makes the Euclidean algorithm (and therefore GCD) applicable.

ℤ and the polynomial ring K[X] over a field K are Euclidean domains.

T extends IEuclidean<T>

The carrier set of the domain.

add(other): T

Defined in: additive.ts:11

The additive operation a + b.

T

T

IRing.add


degree(): number

Defined in: euclidean.ts:26

The Euclidean degree, used as the termination measure of the algorithm.

number


divmod(other): QuotientRemainder<T, T>

Defined in: euclidean.ts:35

Quotient and remainder computed in a single pass.

T

QuotientRemainder<T, T>


divTrunc(other): T

Defined in: euclidean.ts:29

Quotient of the Euclidean division a ÷ b.

T

T


mul(other): T

Defined in: multiplicative.ts:14

The operation a · b.

T

T

IRing.mul


neg(): T

Defined in: additive.ts:25

The additive inverse −a.

T

IRing.neg


rem(other): T

Defined in: euclidean.ts:32

Remainder of the Euclidean division a mod b.

T

T


sub(other): T

Defined in: additive.ts:28

Subtraction a − b, equivalent to a.add(b.neg()).

T

T

IRing.sub