Algorithmadvanced
PH quintic Hermite interpolation
Also called Farouki-Neff PH interpolation.
Farouki and Neff's construction of planar PH quintics with given end points and end derivatives by complex arithmetic. It gives four solutions, of which one is usually fair.
- Solves
- Hermite interpolation
- Time
- Θ(N) worst · best
- Space
- Θ(1) extra
- Where
- N = the number of samples used to compare the four solutions
- Model
- Real RAM
- Properties
- deterministicofflineiterative
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Rida T. Farouki, C. Andrew Neff, 1995
PH quintic Hermite interpolation builds a quintic Pythagorean hodograph curve with given end points and given end derivatives. Farouki and Neff wrote the curve in the complex plane as for a complex quadratic , which turns the problem into three quadratic equations that can be solved one after the other with square roots. There are four solutions. One of them is usually a fair curve, and the other three turn too much or turn back and forth, so the algorithm ends with a measured choice among the four. The result has a polynomial speed, an exact arc length and rational offsets, which is what tool path and motion planning code needs.
The model is the real RAM, with exact complex arithmetic and exact square roots. The implementation uses Python complex numbers in floating point.
In plain words
You know where a path starts and ends, in which direction it leaves and arrives, and how fast. You want a smooth curve with these ends whose length you can compute exactly, so that a machine can move along it at a steady speed without approximations. Pythagorean hodograph curves have this property, and the simplest ones that can match all these end conditions have degree five. Their shape is fixed by three complex numbers. The start condition fixes the first, the end condition fixes the third up to a sign, and the end point fixes the middle one up to a second sign. Two signs give four curves through the same ends. Usually one of them is a calm arc, and the others swing out or wiggle. The method computes all four and keeps the calmest.
The problem
Points and vectors of the plane are complex numbers . The input is two end points and two nonzero end derivatives . A PH quintic here is a polynomial curve with
for complex . By the characterization on the PH curve page, with this is , , so the speed is a polynomial. The output is the PH quintics with
This is first order Hermite interpolation in the class of PH quintics. A cubic Hermite interpolant always exists and is unique, but it is a PH curve only for special data. The PH quintic has the same number of real degrees of freedom, three complex coefficients for and one for , but they enter quadratically. This page uses the left unit normal and the signed curvature , positive where the curve turns toward ; the mean curvature of surfaces does not appear.
The algorithm
The square roots are principal square roots of complex numbers.
PH-QUINTIC-HERMITE(p_0, p_5, d_0, d_1)- 1
Δ ← p_5 − p_0 - 2
w_0 ← √d_0 ▷ fixes the sign of w, which r' = w² does not see - 3
for ε in (+1, −1) do - 4
w_2 ← ε √d_1 - 5
c ← 120 Δ − 15 (d_0 + d_1) + 10 w_0 w_2 - 6
for η in (+1, −1) do - 7
w_1 ← (−3 (w_0 + w_2) + η √c) / 4 - 8
p_1, ..., p_5' ← p_0 + w_0²/5, p_1 + w_0 w_1/5, p_2 + (2 w_1² + w_0 w_2)/15, p_3 + w_1 w_2/5, p_4 + w_2²/5 - 9
add the curve with control points p_0, p_1, p_2, p_3, p_4, p_5' to S - 10
return S
The equations come from the end data. At the ends, and , which gives lines L2 and L4. The squares of the quadratic Bernstein polynomials are quartic Bernstein polynomials, so has the quartic Bernstein coefficients , , , , . Integrating gives the control points of line L8, and the end point condition becomes, after completing the square in ,
which line L7 solves. The last control point equals up to rounding.
Choosing one. Among the four curves, choose the one with the least absolute rotation index , the total turning of the tangent. Since the tangent angle of is , this is . The implementation measures it by summing the changes of over equal steps. The choice is a heuristic, supported by measurement and not by a theorem: it rejects curves whose tangent makes extra turns or turns back and forth, and Moon, Farouki and Choi use this measure to compare the four. Bending energy is another criterion and usually agrees.
The speed and the arc length. The speed has the quartic Bernstein coefficients
and the arc length is . The arc length function is the quintic with Bernstein coefficients .
Example
Take , , and : start at the origin going straight up, end at going straight down, with speed at both ends. Then , , and with ,
| , | arc length | |||||
|---|---|---|---|---|---|---|
| , | ||||||
| , | ||||||
| , | ||||||
| , |
All four have and , because these depend only on the end derivatives.
The first solution is an arch. Its is real, and its control points , , , , , are symmetric about . Its speed has the Bernstein coefficients , so its arc length is . At it is at the top point , with , , speed and curvature . Its tangent turns clockwise by half a turn and never back, so , the least possible for these end directions. The second solution has the same length, but its tangent makes a full extra turn: the curve swings out to the left, passes below the chord down to , and comes back up on the right, so . The third and fourth are mirror images of each other in the line and have inflections. The rule of least picks the arch.
As a check that is independent of the formula for , the tests compute from the control points by differencing and the de Casteljau algorithm, and integrate it by composite Gaussian quadrature. The values agree with to about , here and on random data.
Correctness
The proof file below proves the following, using only the product rule of Bernstein polynomials and the fact that has no zero divisors.
- Each of the four curves is a PH quintic with the given end points and end derivatives. The control points of line L8 integrate , and the three end conditions are equivalent to , and the squared equation of line L7.
- Every PH quintic with the given end data is one of the four. If , then or has , and the equations then fix up to the sign and up to the sign .
- The four are pairwise different when both radicands and are nonzero. Two quadratics with satisfy , and with the same nonzero this forces . If , the two solutions with this coincide.
The speed formula and follow from by the same product rule. The choice among the four is a measured heuristic and is not part of the proof.
Proof: The construction gives PH quintics with the given end data, there are exactly four when the radicands are nonzero, and there are no othersfull
We use the pseudocode of the page. Points and vectors of the plane are complex numbers. The data are and , and . Write . A PH quintic in the sense of this page is a polynomial curve with for a complex polynomial of degree at most , written .
Lemma 1 (the square of ). .
Proof. , since both sides equal . Collect the terms with . For the coefficient is . For it is . The cases are the same.
Lemma 2 (control points). Let be the coefficients of Lemma 1, and let and . Then the quintic Bézier curve with control points satisfies and . These are the points of line L8.
Proof. The derivative of a quintic Bézier curve is , and . Line L8 computes exactly .
Lemma 3 (the end conditions as equations). A PH quintic with satisfies , and if and only if
Proof. and , which gives the first two equations. Since , Lemma 1 gives , so if and only if
Multiply by and subtract . The terms in cancel and
Given the first two equations, , and the last equation of (1) follows. Each step can be reversed.
Lemma 4 (square roots in ). If and , then or .
Proof. , and has no zero divisors.
Theorem. Let , and for let , with the principal square roots.
- Each of the curves returned in line L10 is a PH quintic with , , , .
- Every PH quintic with these end data is one of them.
- If and , the four curves are pairwise different. If , the two curves with this coincide.
Proof. (1) Lines L2, L4 and L7 choose , and , and line L5 computes . So , , and , which is (1). By Lemma 2 the curve of line L8 is a PH quintic with , and by Lemma 3 it has the end data.
(2) Let be a PH quintic with the end data, . By Lemma 3, , so . Replacing by does not change , so we may assume . By Lemma 3 again, , which is for one , and is one of the two square roots of , which fixes as the of one . So has the coefficients of one of the four triples, and is its curve, since and .
(3) Let two of the triples have quadratics and with . By Lemma 4, . Both have , so , and the triples are equal. Triples with different differ in , because . Triples with the same and different differ in by , which is nonzero exactly when . Different triples give different , and so different curves, since all curves start at .
Lemma 5 (speed and arc length). For a PH quintic, , a polynomial of degree at most with Bernstein coefficients
and the arc length is .
Proof. , where for real . The product rule of Lemma 1 gives the coefficients , , , and , which are the real numbers above. The integral of each over is .
Complexity
Lines L1 to L10 use three complex square roots and a fixed number of complex additions and multiplications, so the four curves cost operations. The arc length costs more. The measured absolute rotation index costs for samples per curve, which dominates. A version that splits at the inflections, the zeros of the quadratic , and adds the exact changes of on the pieces costs . Extra space is .
Properties
- Exact arc length. The speed is a quartic polynomial and the arc length a quintic, with no quadrature. This is what real-time CNC interpolators use to move at a given feed rate along the curve.
- Rational offsets. As for every PH curve, the offset at distance is with , a rational curve of degree in the parameter; see offset curve.
- Invariant under similarities. If all data are mapped by with , the set of four solutions is mapped in the same way, and the lengths scale by . The individual labels can change, because the principal square root is not multiplicative. General affine maps do not preserve the PH property, so the method is not affine invariant.
- Not linear in the data. Doubling the end derivatives does not give a combination of earlier solutions. The shape depends on the magnitudes , , and not only on the directions.
- Polynomial degree. Five is the least degree for which PH curves can match general first order Hermite data. A PH cubic has a hodograph with linear, two complex coefficients, and cannot match two end points and two arbitrary end derivatives.
Variants and improvements
- Free tangent magnitudes. If only the end directions are given, the magnitudes and are free parameters. Choosing them, for example to make the curve close to a given curve or to minimize bending energy, gives interpolation.
- PH quintic splines. For interpolation of many points by PH quintics, the coefficients of neighbouring pieces are coupled by quadratic equations that no longer decouple. They are solved by Newton's method for systems from the cubic spline as a starting guess, and among exponentially many formal solutions the one near the cubic spline is kept.
- Spatial PH quintics. In space the hodograph is written with quaternions, for a quaternion quadratic , see unit quaternion rotation. The Hermite problem then has a two parameter family of solutions instead of four.
- Higher order Hermite data. Matching curvature at the ends as well needs PH curves of degree seven.
When to use it
Use it to build tool paths, robot paths or motion curves that a controller will follow at a given speed, when the path is given by points and tangents: each span becomes a PH quintic, and the controller computes the parameter for each arc length exactly. Use it also to convert a free form curve into a chain of PH quintics, sampling points and derivatives and interpolating each span. For curves that are only drawn or intersected, an ordinary cubic Hermite or B-spline curve is simpler, and the arc length can be computed by quadrature when needed.
Pitfalls
- Taking any one of the four. A fixed choice of the signs, such as , gives the good curve for the example above, but not in general. Compute all four and compare.
- Branches of the square root. The set of four does not depend on which square roots are taken, but the labels do. Code that remembers a solution by its labels can switch to a different curve after a small change of the data that crosses the branch cut of the principal root.
- Zero end derivatives. For , the normalization fixes nothing, and the curve has a cusp at the start. The construction requires .
- Merging solutions. When is near zero, two solutions are close to each other and sensitive to the data, through the square root.
- Magnitudes matter. End derivatives that are much longer or shorter than the chord can give a curve with a lot of turning even for the best choice of signs. Scale them in proportion to , for example to or a small multiple of it.
- Rounding of the end point. In floating point, the last control point differs from by rounding. Code that needs exact continuity between spans should copy into it.
Implementations
The Python file in this folder has ph_quintic_hermite(p0, p5, d0, d1), which returns the four solutions with their coefficients and control points, and helpers for the speed, the arc length, the measured absolute rotation index and the choice of the fairest solution. The tests check the end data, the hodograph against the control points, the polynomial speed and arc length against composite Gauss-Legendre quadrature of , the distinctness of the four solutions, the solutions against Newton's method on the raw equations from random starts, and the worked example.
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/ph-quintic-hermite-interpolation/. The authors are listed in prov/XD0FDH.jsonl.
"""Farouki and Neff's PH quintic Hermite interpolation in the complex plane.
Points and vectors of the plane are Python complex numbers x + iy. A PH
quintic is r(t) with r'(t) = w(t)^2, where w is the complex quadratic
w(t) = w0 (1 - t)^2 + w1 2 (1 - t) t + w2 t^2. Given the end points p0, p5
and the end derivatives d0, d1, there are four such quintics, found with
two complex square roots each. The speed |r'(t)| = |w(t)|^2 is a polynomial,
so the arc length is a finite sum.
"""
import cmath
from typing import NamedTuple
class PHQuintic(NamedTuple):
eps: int # sign of w2 relative to the principal root of d1
eta: int # sign of the square root in w1
w: tuple # (w0, w1, w2), Bernstein coefficients of the quadratic w(t)
points: tuple # the six control points p0, ..., p5 of the quintic
def control_points(p0: complex, w: tuple) -> tuple:
"""Return the Bezier control points of p0 + integral of w(t)^2."""
w0, w1, w2 = w
p1 = p0 + w0 * w0 / 5
p2 = p1 + w0 * w1 / 5
p3 = p2 + (2 * w1 * w1 + w0 * w2) / 15
p4 = p3 + w1 * w2 / 5
p5 = p4 + w2 * w2 / 5
return (p0, p1, p2, p3, p4, p5)
def ph_quintic_hermite(p0: complex, p5: complex, d0: complex, d1: complex) -> list:
"""Return the four PH quintics with r(0) = p0, r(1) = p5, r'(0) = d0, r'(1) = d1.
The end derivatives must be nonzero. The list has the order
(eps, eta) = (+1, +1), (+1, -1), (-1, +1), (-1, -1). Two entries
coincide only when the radicand c of their eps is zero.
"""
p0, p5, d0, d1 = complex(p0), complex(p5), complex(d0), complex(d1)
if d0 == 0 or d1 == 0:
raise ValueError("the end derivatives must be nonzero")
delta = p5 - p0 # @line L1
w0 = cmath.sqrt(d0) # @line L2
out = []
for eps in (1, -1): # @line L3
w2 = eps * cmath.sqrt(d1) # @line L4
c = 120 * delta - 15 * (d0 + d1) + 10 * w0 * w2 # @line L5
root = cmath.sqrt(c)
for eta in (1, -1): # @line L6
w1 = (-3 * (w0 + w2) + eta * root) / 4 # @line L7
pts = control_points(p0, (w0, w1, w2)) # @line L8
out.append(PHQuintic(eps, eta, (w0, w1, w2), pts)) # @line L9
return out # @line L10
def evaluate(points, t: float) -> complex:
"""Point of the Bezier curve with complex control points, by de Casteljau."""
b = list(points)
for r in range(1, len(b)):
for i in range(len(b) - r):
b[i] = (1 - t) * b[i] + t * b[i + 1]
return b[0]
def hodograph(w: tuple, t: float) -> complex:
"""Return w(t)^2, the derivative r'(t)."""
w0, w1, w2 = w
s = 1 - t
wt = w0 * s * s + 2 * w1 * s * t + w2 * t * t
return wt * wt
def speed_coefficients(w: tuple) -> tuple:
"""Bernstein coefficients of the degree 4 polynomial sigma(t) = |w(t)|^2."""
w0, w1, w2 = w
return (
abs(w0) ** 2,
(w0 * w1.conjugate()).real,
(2 * abs(w1) ** 2 + (w0 * w2.conjugate()).real) / 3,
(w1 * w2.conjugate()).real,
abs(w2) ** 2,
)
def speed(w: tuple, t: float) -> float:
"""Return sigma(t) = |r'(t)| from its Bernstein coefficients."""
s = speed_coefficients(w)
u = 1 - t
basis = (u**4, 4 * u**3 * t, 6 * u * u * t * t, 4 * u * t**3, t**4)
return sum(a * b for a, b in zip(s, basis))
def arc_length(w: tuple, t: float = 1.0) -> float:
"""Arc length from r(0) to r(t), the integral of sigma, in closed form."""
s = speed_coefficients(w)
cum = [0.0]
for a in s:
cum.append(cum[-1] + a / 5)
return evaluate([complex(c) for c in cum], t).real
def absolute_rotation_index(w: tuple, samples: int = 1024) -> float:
"""Measured total turning of the tangent, divided by 2 pi.
The tangent angle is 2 arg w(t). The sum of |change of 2 arg w| over
`samples` equal steps converges to the absolute rotation index as the
steps shrink, provided w has no zero on [0, 1].
"""
w0, w1, w2 = w
total = 0.0
prev = w0
for k in range(1, samples + 1):
t = k / samples
s = 1 - t
cur = w0 * s * s + 2 * w1 * s * t + w2 * t * t
total += abs(cmath.phase(cur / prev))
prev = cur
return total / cmath.pi
def fairest(solutions: list) -> PHQuintic:
"""The solution with the least absolute rotation index."""
return min(solutions, key=lambda q: absolute_rotation_index(q.w))
test_ph_quintic_hermite_interpolation.py 213 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/ph-quintic-hermite-interpolation/. The authors are listed in prov/XD0FDH.jsonl.
import cmath
import math
import random
from ph_quintic_hermite_interpolation import (
absolute_rotation_index,
arc_length,
evaluate,
fairest,
hodograph,
ph_quintic_hermite,
speed,
)
def legendre_nodes(n):
"""Gauss-Legendre nodes and weights on [-1, 1], by Newton's method on P_n."""
nodes, weights = [], []
for i in range(1, n + 1):
x = math.cos(math.pi * (i - 0.25) / (n + 0.5))
for _ in range(100):
p0, p1 = 1.0, x
for k in range(2, n + 1):
p0, p1 = p1, ((2 * k - 1) * x * p1 - (k - 1) * p0) / k
dp = n * (x * p1 - p0) / (x * x - 1)
dx = p1 / dp
x -= dx
if abs(dx) < 1e-16:
break
p0, p1 = 1.0, x
for k in range(2, n + 1):
p0, p1 = p1, ((2 * k - 1) * x * p1 - (k - 1) * p0) / k
dp = n * (x * p1 - p0) / (x * x - 1)
nodes.append(x)
weights.append(2 / ((1 - x * x) * dp * dp))
return nodes, weights
NODES, WEIGHTS = legendre_nodes(12)
def gauss(f, a, b, panels=16):
"""Composite Gauss-Legendre quadrature of f on [a, b]."""
h = (b - a) / panels
total = 0.0
for j in range(panels):
lo = a + j * h
for x, wt in zip(NODES, WEIGHTS):
total += wt * f(lo + (x + 1) * h / 2) * h / 2
return total
def bezier_derivative(points, t):
"""r'(t) from the control points alone: 5 times the Bezier curve of the differences."""
diffs = [5 * (points[i + 1] - points[i]) for i in range(5)]
return evaluate(diffs, t)
def random_data(rng):
def z():
return complex(rng.uniform(-2, 2), rng.uniform(-2, 2))
d0, d1 = z(), z()
while abs(d0) < 0.2:
d0 = z()
while abs(d1) < 0.2:
d1 = z()
return z(), z(), d0, d1
def close(a, b, tol=1e-10):
return abs(a - b) <= tol * (1 + abs(a) + abs(b))
def test_gauss_legendre_rule():
assert close(gauss(lambda t: t**7, 0, 1, panels=1), 1 / 8, 1e-14)
assert close(gauss(math.exp, 0, 1), math.e - 1, 1e-14)
def test_end_data():
rng = random.Random(20260101)
for _ in range(300):
p0, p5, d0, d1 = random_data(rng)
sols = ph_quintic_hermite(p0, p5, d0, d1)
assert len(sols) == 4
for q in sols:
pts = q.points
assert close(pts[0], p0) and close(pts[5], p5)
assert close(5 * (pts[1] - pts[0]), d0)
assert close(5 * (pts[5] - pts[4]), d1)
assert close(evaluate(pts, 0.0), p0) and close(evaluate(pts, 1.0), p5)
def test_hodograph_is_square_of_w():
rng = random.Random(7)
for _ in range(100):
sols = ph_quintic_hermite(*random_data(rng))
for q in sols:
for k in range(11):
t = k / 10
assert close(bezier_derivative(q.points, t), hodograph(q.w, t))
def test_speed_is_polynomial_and_matches_numerical_arc_length():
rng = random.Random(31337)
for _ in range(60):
sols = ph_quintic_hermite(*random_data(rng))
for q in sols:
for k in range(21):
t = k / 20
assert close(speed(q.w, t), abs(bezier_derivative(q.points, t)))
# Arc length by Gauss-Legendre on |r'(t)| computed from the control points.
numeric = gauss(lambda t: abs(bezier_derivative(q.points, t)), 0.0, 1.0)
assert close(arc_length(q.w), numeric, 1e-9)
numeric_half = gauss(lambda t: abs(bezier_derivative(q.points, t)), 0.0, 0.37)
assert close(arc_length(q.w, 0.37), numeric_half, 1e-9)
def test_four_distinct_solutions():
rng = random.Random(99)
for _ in range(200):
sols = ph_quintic_hermite(*random_data(rng))
for i in range(4):
for j in range(i + 1, 4):
assert sols[i].w != sols[j].w
# Different w with the same w0 give different curves somewhere.
diff = max(abs(evaluate(sols[i].points, k / 8) - evaluate(sols[j].points, k / 8)) for k in range(9))
assert diff > 1e-9
def newton_reference(p0, p5, d0, d1, start):
"""Solve w2^2 = d1 and integral of w^2 = p5 - p0 for (w1, w2) by complex Newton."""
w0 = cmath.sqrt(d0)
w1, w2 = start
delta = p5 - p0
for _ in range(100):
f1 = w2 * w2 - d1
f2 = (w0 * w0 + w0 * w1 + (2 * w1 * w1 + w0 * w2) / 3 + w1 * w2 + w2 * w2) / 5 - delta
a, b = 0, 2 * w2
c, d = (w0 + 4 * w1 / 3 + w2) / 5, (w0 / 3 + w1 + 2 * w2) / 5
det = a * d - b * c
if det == 0:
return None
s1 = (d * f1 - b * f2) / det
s2 = (a * f2 - c * f1) / det
w1, w2 = w1 - s1, w2 - s2
if abs(s1) + abs(s2) < 1e-14:
return w1, w2
return None
def test_against_newton_on_the_raw_equations():
rng = random.Random(4242)
for _ in range(25):
data = random_data(rng)
sols = ph_quintic_hermite(*data)
found = set()
for _ in range(60):
start = (complex(rng.uniform(-4, 4), rng.uniform(-4, 4)), complex(rng.uniform(-4, 4), rng.uniform(-4, 4)))
r = newton_reference(*data, start)
if r is None:
continue
# Every root of the raw system is one of the four solutions.
matches = [i for i, q in enumerate(sols) if abs(q.w[1] - r[0]) < 1e-8 and abs(q.w[2] - r[1]) < 1e-8]
assert len(matches) == 1
found.add(matches[0])
assert found == {0, 1, 2, 3}
def test_worked_example():
sols = ph_quintic_hermite(0, 1, 3j, -3j)
good = sols[0]
expected = (0, 0.6j, 0.3 + 0.9j, 0.7 + 0.9j, 1 + 0.6j, 1)
assert all(close(a, b, 1e-14) for a, b in zip(good.points, expected))
assert close(arc_length(good.w), 2.0, 1e-14)
loop = sols[1]
assert close(loop.w[1], -2 * math.sqrt(6), 1e-14)
assert all(close(a, b, 1e-14) for a, b in zip(loop.points, (0, 0.6j, -1.2 - 0.6j, 2.2 - 0.6j, 1 + 0.6j, 1)))
assert close(arc_length(loop.w), 2.0, 1e-14)
assert close(arc_length(sols[2].w), 1.5, 1e-14) and close(arc_length(sols[3].w), 1.5, 1e-14)
assert abs(absolute_rotation_index(good.w) - 0.5) < 1e-9
assert abs(absolute_rotation_index(loop.w) - 1.5) < 1e-9
assert fairest(sols) is good
def test_straight_line_data():
sols = ph_quintic_hermite(0, 1, 1, 1)
line = fairest(sols)
assert all(close(line.w[i], 1, 1e-14) for i in range(3))
for k in range(11):
assert close(evaluate(line.points, k / 10), k / 10, 1e-14)
def test_invariance_under_similarity():
rng = random.Random(5)
for _ in range(50):
p0, p5, d0, d1 = random_data(rng)
a = complex(rng.uniform(-2, 2), rng.uniform(-2, 2))
b = complex(rng.uniform(-2, 2), rng.uniform(-2, 2))
base = {round(arc_length(q.w), 9) for q in ph_quintic_hermite(p0, p5, d0, d1)}
moved = {round(arc_length(q.w) / abs(a), 9) for q in ph_quintic_hermite(a * p0 + b, a * p5 + b, a * d0, a * d1)}
assert base == moved
def test_zero_derivative_rejected():
try:
ph_quintic_hermite(0, 1, 0, 1)
except ValueError:
return
raise AssertionError("expected ValueError")
History
Farouki and Sakkalis introduced PH curves in 1990 and gave the PH cubics, which are too stiff for general Hermite data. In 1995 Farouki and Neff solved the first order Hermite problem for PH quintics. In the complex form the equations decouple into square roots, and they showed that there are four solutions, of which typically only one has a reasonable shape. Later work by Moon, Farouki and Choi analysed the shape of the four interpolants, and the method became the base of PH quintic splines and of CNC interpolators for PH tool paths, collected in Farouki's book of 2008.
References
- Rida T. Farouki and C. Andrew Neff, Hermite interpolation by Pythagorean hodograph quintics, Mathematics of Computation 64(212), 1995, pp. 1589 to 1609 (the complex form of the problem, the four solutions, and the choice of the good one)
- Rida T. Farouki, Pythagorean-Hodograph Curves, Algebra and Geometry Inseparable, Springer, 2008, Chapter 25, planar PH quintic Hermite interpolants (pages 523 to 541), and the chapter on real-time CNC interpolators
- Moon, Farouki and Choi 2001, the shape of the four interpolants and their comparison by the absolute rotation index
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag XD0FDH Edit this page History Report an error Markdown