Defines polynomial assignment.
Assigns the contents of one polynomial to another.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polynomial), | intent(inout) | :: | x |
The assignee. |
||
| class(polynomial), | intent(in) | :: | y |
The item to copy. |
Assigns a number to each coefficient of the polynomial.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polynomial), | intent(inout) | :: | x |
The assignee. |
||
| real(kind=real64), | intent(in) | :: | y |
The value to assign. |
Assigns the contents of an array as polynomial coefficients.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polynomial), | intent(inout) | :: | x |
The assignee. |
||
| real(kind=real64), | intent(in), | dimension(:) | :: | y |
The coefficient array. |
Defines polynomial multiplication
Multiplies two polynomials.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polynomial), | intent(in) | :: | x |
The left-hand-side argument. |
||
| class(polynomial), | intent(in) | :: | y |
The right-hand-side argument. |
The resulting polynomial.
Multiplies a polynomial by a scalar value.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polynomial), | intent(in) | :: | x |
The left-hand-side argument. |
||
| real(kind=real64), | intent(in) | :: | y |
The right-hand-side argument. |
The resulting polynomial.
Multiplies a polynomial by a scalar value.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x |
The left-hand-side argument. |
||
| class(polynomial), | intent(in) | :: | y |
The right-hand-side argument. |
The resulting polynomial.
Defines polynomial addition.
Adds two polynomials.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polynomial), | intent(in) | :: | x |
The left-hand-side argument. |
||
| class(polynomial), | intent(in) | :: | y |
The right-hand-side argument. |
The resulting polynomial.
Defines polynomial subtraction.
Subtracts two polynomials.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polynomial), | intent(in) | :: | x |
The left-hand-side argument. |
||
| class(polynomial), | intent(in) | :: | y |
The right-hand-side argument. |
The resulting polynomial.
Defines a polynomial, and associated routines for performing polynomial operations.
| procedure , public :: companion_mtx => poly_companion_mtx Function | |
| generic, public :: evaluate => evaluate_real, evaluate_complex | |
| procedure , public :: fit => poly_fit Subroutine | |
| procedure , public :: fit_thru_zero => poly_fit_thru_zero Subroutine | |
| procedure , public :: get => get_poly_coefficient Function | |
| procedure , public :: get_all => get_poly_coefficients Function | |
| generic, public :: initialize => init_poly, init_poly_coeffs | |
| procedure , public :: order => get_poly_order Function | |
| procedure , public :: roots => poly_roots Function | |
| procedure , public :: set => set_poly_coefficient Subroutine |