Operator Addition
Addition(BigRational, BigRational)
Adds the values of two specified BigRational numbers.
Declaration
public static BigRational operator +(BigRational a, BigRational b)
Parameters
Type | Name | Description |
---|---|---|
BigRational | a | The first value to add. |
BigRational | b | The second value to add. |
Returns
Type | Description |
---|---|
BigRational | The sum of |
Addition(BigRational, Int64)
Adds the values of a specified BigRational and a System.Int64 number.
Declaration
public static BigRational operator +(BigRational a, long b)
Parameters
Type | Name | Description |
---|---|---|
BigRational | a | The first value to add. |
System.Int64 | b | The second value to add. |
Returns
Type | Description |
---|---|
BigRational | The sum of |
Remarks
Fast addition of common cases like: x + 1
.
Note that all smaller signed and unsigned integer types are automatically mapped to this operator, which is efficient on 64-bit systems.
Addition(Int64, BigRational)
Adds the values of a specified System.Int64 and a BigRational number.
Declaration
public static BigRational operator +(long a, BigRational b)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | a | The first value to add. |
BigRational | b | The second value to add. |
Returns
Type | Description |
---|---|
BigRational | The sum of |
Remarks
Fast addition of common cases like: 1 + x
.
Note that all smaller signed and unsigned integer types are automatically mapped to this operator, which is efficient on 64-bit systems.