Polynomial.Add Method
Definition
Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Add( | Adds another LinearCombination to this instance. |
Add( | Adds a multiple of another LinearCombination to this instance. |
Add( | Adds two polynomials. |
Add(Double, LinearCombination)
Adds a multiple of another LinearCombination to this instance.
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
LinearCombinationA 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
Argument | combination is null. |
Argument | combination 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.
public static Polynomial Add(
Polynomial polynomial1,
Polynomial polynomial2
)
Parameters
- polynomial1 Polynomial
- The first Polynomial.
- polynomial2 Polynomial
- The second Polynomial.
Return Value
PolynomialA Polynomial that is the sum of the two operands.