Plots of Periodic One-Dimensional Splines
How to plot a periodic one-dimensional spline.
Periodic One-Dimensional Spline Objects
The objects maintained by the class PeriodicSpline1D of the splinekit library are parametric mathematical functions that map a number to another number. The input number being mapped is called the argument of the mapping and lives in a functional space called its domain. Here, it is the set of real numbers, approximated by float values. The output number lives in a functional space called the image (a.k.a. the range) of the mapping. Here, the image is again the set of real numbers, again approximated by float values. Collecting everything together, one notates the function \(f,\) the domain \({\mathbb{R}},\) the image \({\mathbb{R}},\) and the argument \(x\) as
Plots
Very often, it is desired that such functions be represented as a plot that illustrates how the arguments within some finite interval of the domain are mapped to numbers in some finite interval of the image. We now propose a piece of code that creates and displays a spline, with all the bells and whistles afforded by the splinekit library.
Jupyter Lab notebook