A cubic Hermite polynomial interpolates both function values and derivatives at two points. Suppose we know , , , and . Then the unique cubic passing through these constraints can be written using Hermite basis functions:
Here parameterizes the interval from to via . The four basis polynomials are
, , , . Substituting corresponding to the desired -value yields the interpolated point.
Hermite interpolation is widely used in computer graphics and numerical integration because controlling derivatives guarantees smooth transitions between segments. Cubic Hermite splines, for example, join multiple Hermite pieces with continuous first derivatives to create pleasant curves. In physics simulations, specifying derivatives lets you match both position and velocity data, producing more realistic motion.
This calculator focuses on the simplest case with two points. Enter the and values at each endpoint along with the slopes. Then choose an within the interval to evaluate the interpolant. The script computes the normalized parameter , evaluates the basis functions, and returns the interpolated . You can experiment with different slopes to see how they influence the shape of the curve while still matching the prescribed end values.
Compute Legendre polynomials of arbitrary degree and evaluate them at a point.
Apply the Gaussian elimination method to solve 2x2 or 3x3 linear systems.
Find the area of a superellipse described by |x/a|^n + |y/b|^n = 1.