LinearCombination<T>.Subtract Method

Definition

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

Overload List

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

Subtract(LinearCombination<T>)

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

Parameters

combination  LinearCombination<T>
The LinearCombination<T> to subtract from this instance.

Return Value

LinearCombination<T>
A reference to this instance.

Remarks

In order to add two linear combinations, they must have the same FunctionBasis<T>. If this is not the case, an ArgumentException is thrown.

Exceptions

ArgumentNullExceptioncombination is null.

Subtract(LinearCombination<T>, LinearCombination<T>)

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

Parameters

combination1  LinearCombination<T>
The first PolynomialBase.
combination2  LinearCombination<T>
The second PolynomialBase.

Return Value

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

Exceptions

ArgumentNullExceptioncombination1 is null.

-or-

combination2 is null.

See Also