BigRational.Subtraction Operator

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

Subtraction(BigInteger, BigRational) Subtracts a rational number from a big integer.
Subtraction(BigRational, BigInteger) Subtracts a big integer from a rational number.
Subtraction(BigRational, BigRational) Subtracts a rational number from another and returns the result.
Subtraction(BigRational, Int32) Subtracts an integer from a rational number.
Subtraction(Int32, BigRational) Subtracts a rational number from an integer.

Subtraction(BigInteger, BigRational) Operator

Subtracts a rational number from a big integer.
C#
public static BigRational operator -(
	BigInteger left,
	BigRational right
)

Parameters

left  BigInteger
A BigInteger number.
right  BigRational
A rational number.

Return Value

BigRational
The sum of left and right.

Subtraction(BigRational, BigInteger) Operator

Subtracts a big integer from a rational number.
C#
public static BigRational operator -(
	BigRational left,
	BigInteger right
)

Parameters

left  BigRational
A rational number.
right  BigInteger
A BigInteger number.

Return Value

BigRational
The sum of left and right.

Subtraction(BigRational, BigRational) Operator

Subtracts a rational number from another and returns the result.
C#
public static BigRational operator -(
	BigRational left,
	BigRational right
)

Parameters

left  BigRational
A rational number.
right  BigRational
A rational number.

Return Value

BigRational
The result of subtracting right from left.

Implements

ISubtractionOperators<TSelf, TOther, TResult>.Subtraction(TSelf, TOther)

Subtraction(BigRational, Int32) Operator

Subtracts an integer from a rational number.
C#
public static BigRational operator -(
	BigRational left,
	int right
)

Parameters

left  BigRational
A rational number.
right  Int32
An integer.

Return Value

BigRational
The sum of left and right.

Subtraction(Int32, BigRational) Operator

Subtracts a rational number from an integer.
C#
public static BigRational operator -(
	int left,
	BigRational right
)

Parameters

left  Int32
An integer.
right  BigRational
A rational number.

Return Value

BigRational
The sum of left and right.

See Also