Divides one Polynomial by another and
returns the remainder.
Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function Modulus ( _ polynomial1 As Polynomial, _ polynomial2 As Polynomial _ ) As Polynomial |
| C# |
|---|
public static Polynomial Modulus ( Polynomial polynomial1, Polynomial polynomial2 ) |
| C++ |
|---|
public: static Polynomial^ Modulus ( Polynomial^ polynomial1, Polynomial^ polynomial2 ) |
Parameters
- polynomial1 (Extreme.Mathematics.Curves.Polynomial)
- The first polynomial.
- polynomial2 (Extreme.Mathematics.Curves.Polynomial)
- The second polynomial.
Return Value
A polynomial of degree smaller than the degree of polynomial2, so that when it is subtracted from polynomial1, the result is exactly divisible by polynomial2.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | polynomial1 is nullNothingnullptr.
-or- polynomial2 is nullNothingnullptr. |