summaryrefslogtreecommitdiff
path: root/libs/evoral/test/CurveTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/evoral/test/CurveTest.cpp')
-rw-r--r--libs/evoral/test/CurveTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/evoral/test/CurveTest.cpp b/libs/evoral/test/CurveTest.cpp
index 0cf51ec8ff..e7634f3602 100644
--- a/libs/evoral/test/CurveTest.cpp
+++ b/libs/evoral/test/CurveTest.cpp
@@ -334,7 +334,7 @@ CurveTest::constrainedCubic ()
f"2(x2) = 2*(2*f'2(x2) + f'2(x1))/(x2 – x1) - 6*(y2 – y1)/ (x2 – x1)^2
= 2*(2*0 + 1.8181)/(30 – 10) – 6*(150 – 130)/(30 – 10)^2
= -0.11818
-
+
d2 = 1/6 * (f"2(x2) - f"2(x1))/(x2 – x1)
= 1/6 * (-0.11818 + 0.063636)/(30 – 10)
= -0.0004545