NumericField class

Inheritance

Constructors

NumericField()
const

Properties

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

Methods

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

Operators

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