splinj.f
29 lines · 1 definitions · on GitHub (7be4133)
Python version: splinj.py, 41 lines, on the right (switch to Python above the code).
Purpose
SPLINJ computes the second derivatives of a natural cubic spline through $(x_i, y_i)$, $i = 1, \dots, N$ ($y''_1 = y''_N = 0$), for interpolation with SPLINT. The algorithm, with its equations, is that of splinc.f; only the arrays differ: here they are sized N (adjustable arrays), not 5000, and the routine has no SAVE. The work array U(N) (line 10↗) is a local with an adjustable size, an automatic array: not allowed in Fortran 77, standard in Fortran 90, which YREC is (its modules, IMPLICIT NONE and the F90 spellings already in use: docs/archive/F90_CONVERSION_PLAN.md, line 38) (settled from the code, Nov 9, 2026).
How it fits
Definitions
subroutineSPLINJ
Natural cubic spline's second derivatives, with arrays sized N; the same algorithm as SPLINC.
Change log
The changes since rp_1
Changed since rp_1. Declarations only: IMPLICIT NONE.