LinearCombination.Subtract Method

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

Subtract(LinearCombination) Subtracts another LinearCombination from this instance.
Subtract(LinearCombination, LinearCombination) Subtracts two linear combinations.

Subtract(LinearCombination)

Subtracts another LinearCombination from this instance.
C#
public LinearCombination Subtract(
	LinearCombination combination
)

Parameters

combination  LinearCombination
The LinearCombination to subtract from this instance.

Return Value

LinearCombination
A 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

ArgumentNullException

combination is null.

Subtract(LinearCombination, LinearCombination)

Subtracts two linear combinations.
C#
public static LinearCombination Subtract(
	LinearCombination combination1,
	LinearCombination combination2
)

Parameters

combination1  LinearCombination
The first PolynomialBase.
combination2  LinearCombination
The second PolynomialBase.

Return Value

LinearCombination
A PolynomialBase that equals the second linear combination subtracted from the first.

Exceptions

ArgumentNullException

combination1 is null.

-or-

combination2 is null.

See Also