MCPcopy Create free account
hub / github.com/KDE/labplot / testThird_order2

Method testThird_order2

tests/nsl/diff/NSLDiffTest.cpp:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86// ##############################################################################
87
88void NSLDiffTest::testThird_order2() {
89 double ydata[] = {1, 8, 64, 512, 4096, 32768, 262144};
90
91 int status = nsl_diff_third_deriv(dxdata, ydata, N, 2);
92 QCOMPARE(status, 0);
93 for (double d : ydata)
94 QCOMPARE(d, 6.);
95}
96
97void NSLDiffTest::testFourth_order1() {
98 double ydata[] = {1, 8, 64, 512, 4096, 32768, 262144};

Callers

nothing calls this directly

Calls 1

nsl_diff_third_derivFunction · 0.85

Tested by

no test coverage detected