Polynomial<T>.Divide Method

Definition

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

Overload List

Divide(Polynomial<T>, Polynomial<T>)

Divides one Polynomial<T> by another.
C#
public static Polynomial<T> Divide(
	Polynomial<T> polynomial1,
	Polynomial<T> polynomial2
)

Parameters

polynomial1  Polynomial<T>
The first polynomial.
polynomial2  Polynomial<T>
The second polynomial.

Return Value

Polynomial<T>
A polynomial that, when multiplied by polynomial2 results in a polynomial that differs from polynomial1 only in the coefficients of degree smaller than the degree of polynomial2.

Exceptions

ArgumentNullExceptionpolynomial1 is null.

-or-

polynomial2 is null.

Divide(Polynomial<T>, Polynomial<T>, Polynomial<T>)

Divides one Polynomial<T> by another.
C#
public static Polynomial<T> Divide(
	Polynomial<T> polynomial1,
	Polynomial<T> polynomial2,
	out Polynomial<T> remainder
)

Parameters

polynomial1  Polynomial<T>
The first polynomial.
polynomial2  Polynomial<T>
The second polynomial.
remainder  Polynomial<T>
On exit, a Polynomial<T> containing the remainder of the division.

Return Value

Polynomial<T>
A polynomial that, when multiplied by polynomial2 results in a polynomial that differs from polynomial1 only in the coefficients of degree smaller than the degree of polynomial2.

Exceptions

ArgumentNullExceptionpolynomial1 is null.

-or-

polynomial2 is null.

See Also