ply_lagrange_define Function

public function ply_lagrange_define(nPoints, nodeset, values) result(me)

Define a new polynomial in the Lagrange basis.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nPoints

Number of points to define the polynomial.

procedure(ply_nodeset_coords) :: nodeset

The set of nodes where the function assumes the given values.

real(kind=rk), intent(in) :: values(nPoints)

Function values at all nPoints of the nodeset.

Return Value type(ply_lagrange_type)

The newly created Lagrange series describing the polynomial function.