NuMFor 9f2ab49 (2024-04-08)
Numerical (Modern) Fortran. Library for Simple Numerical computing
csplines.f90 File Reference

implements several functions for simple use of cubic splines. More...

Data Types

interface  cubicspline
 Type used to keep all information on splines. More...
 
interface  csplev
 csplev Performs a spline interpolation in a point or in a table More...
 
interface  csplevder
 csplev Performs a spline interpolation in a point or in a table More...
 

Modules

module  csplines
 csplines implements interpolation using cubic splines Description: Submodule interpolate
 

Functions/Subroutines

subroutine, public csplrep (x, y, s1, sn, csp)
 cubic spline interpolation between tabulated data After calling this function the result may be used to evaluate the function as:
ynew= csplev(xnew, csp)

 
type(cubicspline) function, public csplder (csp, m)
 csplder Computes the derivative of the cubic spline
 
type(cubicspline) function, public csplantider (csp, m)
 Computes the antiderivative of the CubicSpline approximation.
 
subroutine, public cspl_clean (r)
 Clean-up a spline representation.
 
subroutine, public cspleps (x, y, err)
 cspleps Estimates the error produced by using a spline approximation
 
real(dp) function, public csplint (xl, xu, csp, extrapolate)
 Definite integral of a cubic spline function.
 
real(dp) function, public csplint_square (xl, xu, csp)
 Integral of the square of a function expressed as a cubic spline.
 
real(dp) function, dimension(:), allocatable, public csplroots (csp)
 csplroots Computes the roots of the Spline approximation
 

Detailed Description

implements several functions for simple use of cubic splines.

Author
Juan Fiol juanf.nosp@m.iol@.nosp@m.gmail.nosp@m..com
Date
"2024-02-21 14:40:56"
Note
Several sources were reused. All routines were modified from the original (and some heavily modified). See below for authors of original and earlier versions