Polynom

p_0

p_2

p_1

A4 = 10
dpx: A4
A1: 0
A2 = 3.2578887659962037
A3 = 6
B1: 0
B2 = 1.2108716102521175
B3 = 4
B4 = 6
A: (A1, B1)
B: (A2, B2)
C: (A3, B3)
D: (A4, B4)
naegel: {A, B, C, D}
f = Polynomial(naegel)
g = PolyLine(naegel)
apx: A1
bpx: A2
cpx: A3
bpy: B2
cpy: B3
dpy: B4
lo: {}
apy: B1
spline(x) = If[0 ≤ x < A2, a, If[A2 ≤ x < A3, b, If[A3 ≤ x ≤ A4, c]]]