LinearCombination.Subtract Method

Definition

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

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

ArgumentNullExceptioncombination 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

ArgumentNullExceptioncombination1 is null.

-or-

combination2 is null.

See Also