Linear Combination.Subtract Method
Definition
Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Subtract( | Subtracts another LinearCombination from this instance. |
Subtract( | Subtracts two linear combinations. |
Subtract(LinearCombination)
Subtracts another LinearCombination from this instance.
public LinearCombination Subtract(
LinearCombination combination
)
Parameters
- combination LinearCombination
- The LinearCombination to subtract from this instance.
Return Value
LinearCombinationA reference to this instance.
Remarks
In order to add two linear combinations, they must have the same FunctionBasis. If this is not the case, an ArgumentException is thrown.
Exceptions
Argument | combination is null. |
Subtract(LinearCombination, LinearCombination)
Subtracts two linear combinations.
public static LinearCombination Subtract(
LinearCombination combination1,
LinearCombination combination2
)
Parameters
- combination1 LinearCombination
- The first PolynomialBase.
- combination2 LinearCombination
- The second PolynomialBase.
Return Value
LinearCombinationA PolynomialBase that equals the second linear combination subtracted from the first.
Exceptions
Argument | combination1 is null. -or- combination2 is null. |