# Directory `tex-archive/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 <http://www.latex-project.org/lppl.txt> 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

## Files

Name | Size | Date | Notes |
---|---|---|---|

README | 1847 | 2006-09-25 01:00 | |

splines.dtx | 14603 | 2006-09-25 01:00 | |

splines.ins | 1556 | 2005-02-07 01:00 | |

splines.pdf | 103753 | 2006-09-25 01:00 | |

testsplines.mp | 2853 | 2006-09-25 01:00 |

Download the contents of this package in one zip archive (94.2k).

## splines – METAPOST macros for drawing cubic spline interpolants

This is a small package of macros for creating cubic spline interpolants in METAPOST or METAFONT. Given a list of points the macros can produce a closed or a relaxed spline joining them. Given a list of function values y_j at x_j, the result would define the graph of a cubic spline interpolating function y=f(x), which is either periodic or relaxed.

Package Details | splines |

Version | 0.2 |

License | The LaTeX Project Public License 1.3 |

Copyright | 2002–2005 Daniel H. Luecking |

Maintainer | Daniel H. Luecking |

Contained in | TeXlive as splines |

MikTeX as splines | |

Topics |
graphics generated using METAPOST |