Polynomial.Add Method

Definition

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

Overload List

Add(LinearCombination) Adds another LinearCombination to this instance.
Add(Double, LinearCombination) Adds a multiple of another LinearCombination to this instance.
Add(Polynomial, Polynomial) Adds two polynomials.

Add(Double, LinearCombination)

Adds a multiple of another LinearCombination to this instance.
C#
public override LinearCombination Add(
	double factor,
	LinearCombination combination
)

Parameters

factor  Double
Multiplier for the second LinearCombination.
combination  LinearCombination
The LinearCombination to add to this instance. It must be of type Polynomial.

Return Value

LinearCombination
A LinearCombination that contains 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.
ArgumentExceptioncombination is not an instance of Polynomial.

-or-

The degree of combination is greater than the maximum degree of the polynomial.

Add(Polynomial, Polynomial)

Adds two polynomials.
C#
public static Polynomial Add(
	Polynomial polynomial1,
	Polynomial polynomial2
)

Parameters

polynomial1  Polynomial
The first Polynomial.
polynomial2  Polynomial
The second Polynomial.

Return Value

Polynomial
A Polynomial that is the sum of the two operands.

See Also