Legendre_1D is a submodule used to generate arrays of coeffiecents used for developing finite element basis functions in 1D. Finite element basis functions are defined at internal nodes and used to iterpolate some value between those nodes.
calculate the coeffiecents associated with a univarate Lagrangian polynomial
In the end you end up with a group of basis functions similar to this:

| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | N | |||
| real(kind=wp), | intent(in) | :: | xi |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | N |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | N |
Generates the elements of an array associated with a univarate Lagrange polynomial.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | N | |||
| real(kind=wp), | intent(in) | :: | x |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | dimension(:) | :: | x | ||
| real(kind=wp), | intent(in), | dimension(:) | :: | alpha | ||
| integer, | intent(in) | :: | dx |