Polynomial.Modulus Method

Divides one Polynomial by another and returns the remainder.

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public static Polynomial Modulus(
	Polynomial polynomial1,
	Polynomial polynomial2
)

Parameters

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

Return Value

Polynomial
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

ArgumentNullException

polynomial1 is null.

-or-

polynomial2 is null.

See Also