interp Function

public function interp(x, f, x_i)

Arguments

Type IntentOptional AttributesName
real(kind=8), , dimension(:):: x

the mesh on which the function points are provided

real(kind=8), , dimension(:):: f

the function points

real(kind=8) :: x_i

the point at which the function value is desired

Return Value real(kind=8)

the value at point x_i

Description

find a linearly interpolated value of a function \(f\left(x\right)\) at point \(x_{i}\) given values of the function in \(\vec{f}\) at points \(\vec{x}\)


Variables

TypeVisibility AttributesNameInitial
integer(kind=4), public :: i
integer(kind=4), public :: j