mod_spline Module

Given arrays x(1:n) and y(1:n) containing a tabulated function, i.e., , with (x1


Uses

    • mod_datatypes

Subroutines

public subroutine spline_real(nmax, x, y, n, yp1, ypn, y2)

License
Creative Commons License
Category
numerical-tools, KKRhost

This routine returns an array y2(1:n) of length n which contains the second derivatives of the interpolating function at the tabulated points xi.

Read more…

Arguments

Type IntentOptional Attributes Name
integer :: nmax
real(kind=dp), dimension(nmax) :: x
real(kind=dp), dimension(nmax) :: y
integer :: n
real(kind=dp) :: yp1
real(kind=dp) :: ypn
real(kind=dp), dimension(nmax) :: y2

public subroutine spline_complex(nmax, x, y, n, yp1, ypn, y2)

License
Creative Commons License
Category
numerical-tools, KKRhost

This routine returns an array y2(1:n) of length n which contains the second derivatives of the interpolating function at the tabulated points xi.

Read more…

Arguments

Type IntentOptional Attributes Name
integer :: nmax
real(kind=dp), dimension(nmax) :: x
complex(kind=dp), dimension(nmax) :: y
integer :: n
complex(kind=dp) :: yp1
complex(kind=dp) :: ypn
complex(kind=dp), dimension(nmax) :: y2