Field<T> class abstract

Encapsulates a mathematical field.

Implementers
Annotations
  • @immutable

Constructors

Field()
const

Properties

additiveIdentity → T
The additive neutral element.
no setter
hashCode int
The hash code for this object.
no setterinherited
infinity → T
Positive infinity.
no setter
multiplicativeIdentity → T
The multiplicative neutral element.
no setter
nan → T
Not a number.
no setter
negativeInfinity → T
Negative infinity.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(T a, T b) → T
Computes the addition: a + b.
div(T a, T b) → T
Computes the division: a / b.
division(T a, T b) → T
Computes a truncating division: a ~/ b.
gcd(T a, T b) → T
Computes the greatest common divisor: gcd(a, b).
inv(T a) → T
Computes the multiplicative inverse: 1 / a.
mod(T a, T b) → T
Computes the remainder of the Euclidean division a % b.
modInverse(T base, T modulus) → T
Computes the modular multiplicative inverse of base modulo modulus.
modPow(T base, T exponent, T modulus) → T
Computes base to the power of exponent modulo modulus.
mul(T a, T b) → T
Computes the multiplication: a * b.
neg(T a) → T
Computes the additive inverse: -a.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pow(T base, T exponent) → T
Computes base to the power of exponent.
remainder(T a, T b) → T
Computes the remainder of the truncating division.
scale(T a, num f) → T
Computes the multiplicative scaling: a * f.
sub(T a, T b) → T
Computes the subtraction: a - b.
toString() String
A string representation of this object.
inherited
unsupportedOperation(String operation) → T
Thrown when an operation is not supported.

Operators

operator ==(Object other) bool
The equality operator.
inherited