IFractionalOperations<T> Interface

Represents the contract for operations on an operand type that represents numbers with a fraction, like rational and real numbers.

Definition

Namespace: Extreme.Mathematics.Generic
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public interface IFractionalOperations<T> : IFieldOperations<T>, 
	IDivisionOperations<T, T>, IRingOperations<T>, IVectorSpaceOperations<T, T>, IGroupOperations<T>, 
	IComparer<T>, IEqualityComparer<T>
Implements
IDivisionOperations<T, T>, IFieldOperations<T>, IGroupOperations<T>, IRingOperations<T>, IVectorSpaceOperations<T, T>, IComparer<T>, IEqualityComparer<T>

Type Parameters

T
The type of the operands.

Properties

MaxValue Gets the largest possible value of the operand type.
(Inherited from IGroupOperations<T>)
MinValue Gets the smallest possible value of the operand type.
(Inherited from IGroupOperations<T>)
One Gets the value of one for the operand type T.
(Inherited from IRingOperations<T>)
Zero Gets the value of zero for the operand type T.
(Inherited from IGroupOperations<T>)

Methods

Abs Returns the absolute value of a value.
(Inherited from IGroupOperations<T>)
Add Adds one value to another.
(Inherited from IGroupOperations<T>)
Ceiling Returns the smallest integer greater than or equal to a value.
CompareCompares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
(Inherited from IComparer<T>)
Divide Divides a value by another.
(Inherited from IDivisionOperations<T, TClosure>)
EqualsDetermines whether the specified objects are equal.
(Inherited from IEqualityComparer<T>)
Floor Returns the largest integer less than or equal to a value.
FromInt32 Converts an integer to the operand type.
(Inherited from IRingOperations<T>)
GetHashCodeReturns a hash code for the specified object.
(Inherited from IEqualityComparer<T>)
Multiply Multiplies a vector by a scalar.
(Inherited from IVectorSpaceOperations<TScalar, TVector>)
Negate Negates a value.
(Inherited from IGroupOperations<T>)
Reciprocal Returns the reciprocal of a value.
(Inherited from IDivisionOperations<T, TClosure>)
Round Rounds a value to the specified number of decimal digits.
ScaleByPowerOfTwo Scales the specified number by the specified power of two.
(Inherited from IRingOperations<T>)
Subtract Subtracts one value from another.
(Inherited from IGroupOperations<T>)
ToInt32 Converts the operand type to an integer.
(Inherited from IRingOperations<T>)

Extension Methods

Max<T> Returns the larger of two numbers.
(Defined by GenericExtensions)
Max<T> Returns the largest of three numbers.
(Defined by GenericExtensions)
Min<T> Returns the smaller of two numbers.
(Defined by GenericExtensions)
Min<T> Returns the smallest of three numbers.
(Defined by GenericExtensions)
Pow<T> Raises a value to the specified power..
(Defined by GenericExtensions)
Pow<T> Raises a value to the specified power..
(Defined by GenericExtensions)

See Also