CTAN Comprehensive TeX Archive Network

Direc­tory graphics/metapost/contrib/macros/splines

Splines -- version 0.2a

This package consists of a few macros useful for producing cubic splines
in MetaPost (or Metafont).

Given a sequence of N+1 points, a spline is a path $z = f(t)$, $0 \le t
\le N$, connecting them, which is a cubic function of $t$ between
points, and has continuous first and second derivatives.

Such a spline is two dimensional and can wander about anywhere in the
picture plane. Another type of spline is one dimensional: given a
sequence of $N$ locations $x_0 < x_1 < \dots < x_N$ on the $x$-axis and
corresponding values $y_j$, a cubic spline interpolant is a function $y
= f(x)$ satisfying $f(x_j) = y_j$, which is cubic between the $x_j$ and
which has continuous first and second derivatives.

With these macros one can draw two-dimensional cubic splines and the
graphs of cubic spline interpolants.

The files of this package consist of:
    splines.dtx         The documented source code.
    splines.ins         LaTeX this to produce the file splines.mp.
    splines.pdf         The documentation.
    testsplines.mp      Uses the macros to produce a few splines.
    README              The file you are reading

The files of this package are Copyright 2002--2005, Daniel H. Luecking

Splines.mp may be distributed and/or modified under the conditions of
the LaTeX Project Public License, either version 1.3 of this license or
(at your option) any later version. The latest version of this license
is in
and version 1.3 or later is part of all distributions of LaTeX version
2003/12/01 or later.

Splines has maintenance status "author-maintained". The Current
Maintainer is Daniel H. Luecking. The Base Interpreter is MetaPost
(or Metafont).

You may email problem reports to luecking {at} uark {dot} edu.

Dan Luecking

Down­load the con­tents of this pack­age in one zip archive (94.2k).

splines – macros for draw­ing cu­bic spline in­ter­polants

This is a small pack­age of macros for cre­at­ing cu­bic spline in­ter­polants in or . Given a list of points the macros can pro­duce a closed or a re­laxed spline join­ing them. Given a list of func­tion val­ues y_j at x_j, the re­sult would de­fine the graph of a cu­bic spline in­ter­po­lat­ing func­tion y=f(x), which is ei­ther pe­ri­odic or re­laxed.

Li­censesThe Project Public Li­cense 1.3
Copy­right2002–2005 Daniel H. Lueck­ing
Main­tainerDaniel H. Lueck­ing
Con­tained inTeX Live as splines
MiKTeX as splines
TopicsGraph­ics meta­post
Guest Book Sitemap Contact Contact Author