Repository: lbl-srg/funnel (language: python)

Issue:
Results precision and formatting
The PyFunnel results files use the Python default 6-digit floating point precision and f formatting, which doesn't work well in some cases:
- Signals can have large magnitudes but very small changes such that 6 digits is inadequate to capture changes in the values.
- Signals that match very closely can have very small errors such that all zeros or at least precision loss occurs with f formatting. The use of g or e formatting is needed in these situations.


Discussion / hints:
Thanks.
This comes from https://github.com/lbl-srg/funnel/blob/master/src/compare.c#L108
where `%lf` (equivalent to `%f` when used in `fprintf`) implies that the number of digits after the decimal-point character is equal to the precision specification. If the precision is missing, it is taken as 6.
This should be replaced by `%g`.
A correction of https://github.com/lbl-srg/funnel/blob/master/src/readCSV.c#L86 may also be required.

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6c661c8d..d64f13fb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,7 @@
 ## Version 0.3.1
 
 - Add tube size limit to avoid vanishing tube size in case of relative tolerance and low variable value
+- Change print format for higher precision (`%.16g`)
 ## Version 0.3.0
 
 - Add local tolerance parameters `ltolx` and `ltoly`
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 003724e8..f5347ee0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,7 +4,7 @@
 #   Build from root/build/. with commands:
 #   > cmake .. (add `-A x64` on Windows to compile in 64 bits, MSVC compiles in 32 bits by default)
 #   > cmake --build . --target install (add `--config Release` on Windows, MSVC compiles in Debug mode by default)
-#   > ctest (add `-C Release` on Windows + add -R {lib, py or num} to specify a specific set of tests)
+#   > ctest --verbose (add `-C Release` on Windows + add -R {lib, py or num} to specify a specific set of tests)
 #
 # @bug
 #   *   Library test crashes on x86 due to readCSV(90, 91) realloc invalid next size
diff --git a/pyfunnel/lib/darwin64/libfunnel.dylib b/pyfunnel/lib/darwin64/libfunnel.dylib
index 40765275..906c570e 100755
Binary files a/pyfunnel/lib/darwin64/libfunnel.dylib and b/pyfunnel/lib/darwin64/libfunnel.dylib differ
diff --git a/pyfunnel/lib/linux64/libfunnel.so b/pyfunnel/lib/linux64/libfunnel.so
index f177a615..06018ff9 100644
Binary files a/pyfunnel/lib/linux64/libfunnel.so and b/pyfunnel/lib/linux64/libfunnel.so differ
diff --git a/pyfunnel/lib/win64/funnel.dll b/pyfunnel/lib/win64/funnel.dll
index b09c1dcb..6c73cc0e 100644
Binary files a/pyfunnel/lib/win64/funnel.dll and b/pyfunnel/lib/win64/funnel.dll differ
diff --git a/src/compare.c b/src/compare.c
index 532151c8..b95b8895 100644
--- a/src/compare.c
+++ b/src/compare.c
@@ -105,7 +105,7 @@ int writeToFile(
 
   fprintf(fil, "%s\n", "x,y");
   for (i = 0; i < data->n; i++) {
-    fprintf(fil, "%lf,%lf\n", data->x[i], data->y[i]);
+    fprintf(fil, "%.16g,%.16g\n", data->x[i], data->y[i]);
   }
 
   fclose(fil);


Test patch:
diff --git a/tests/fail3/results/errors.csv b/tests/fail3/results/errors.csv
index f85d4259..4a0221fc 100644
--- a/tests/fail3/results/errors.csv
+++ b/tests/fail3/results/errors.csv
@@ -1,11 +1,11 @@
 x,y
-0.000000,0.000000
-0.984954,0.000000
-1.969908,0.051284
-2.954862,0.000000
-3.939815,0.044571
-4.924769,0.049873
-5.909723,0.000000
-6.894677,0.000000
-7.879631,0.044287
-8.454453,0.002257
+0,0
+0.984953862832,0
+1.96990772566,0.05128405906224476
+2.9548615885,0
+3.93981545133,0.04457120272650839
+4.92476931416,0.04987283767745798
+5.90972317699,0
+6.89467703982,0
+7.87963090265,0.04428726256054016
+8.454452605969999,0.002257213918408052
diff --git a/tests/fail3/results/lowerBound.csv b/tests/fail3/results/lowerBound.csv
index 09d53914..6f850d00 100644
--- a/tests/fail3/results/lowerBound.csv
+++ b/tests/fail3/results/lowerBound.csv
@@ -1,14 +1,14 @@
 x,y
--0.100000,-0.100000
-0.100000,-0.100000
-0.389396,0.439548
-1.852015,1.887844
-2.084829,1.875730
-3.099118,1.277381
-4.531042,0.631601
-4.731042,0.631601
-5.531719,1.008995
-7.098018,2.634685
-7.782137,3.036295
-8.354453,2.971555
-8.554453,2.971555
+-0.1,-0.1
+0.1,-0.1
+0.389396291618,0.4395477910089759
+1.852014834331884,1.887844020801322
+2.08482877219,1.875729830258824
+3.09911772677,1.277381086099133
+4.531041824589999,0.6316013295248565
+4.731041824589999,0.6316013295248565
+5.53171913649,1.008994619092827
+7.098018325820001,2.634685122784077
+7.782136692829443,3.03629484774667
+8.35445260597,2.97155539836324
+8.554452605969999,2.97155539836324
diff --git a/tests/fail3/results/reference.csv b/tests/fail3/results/reference.csv
index fb93d024..8e8ede85 100644
--- a/tests/fail3/results/reference.csv
+++ b/tests/fail3/results/reference.csv
@@ -1,11 +1,11 @@
 x,y
-0.000000,0.000000
-0.289396,0.539548
-1.762000,1.997731
-2.184829,1.975730
-3.199118,1.377381
-4.631042,0.731601
-5.431719,1.108995
-6.998018,2.734685
-7.714449,3.155263
-8.454453,3.071555
+0,0
+0.289396291618,0.5395477910089759
+1.76199981064,1.997731221817369
+2.18482877219,1.975729830258824
+3.19911772677,1.377381086099133
+4.63104182459,0.7316013295248565
+5.43171913649,1.108994619092827
+6.99801832582,2.734685122784077
+7.71444859017,3.15526345439392
+8.454452605969999,3.07155539836324
diff --git a/tests/fail3/results/test.csv b/tests/fail3/results/test.csv
index 026d5969..a6cdbc6d 100644
--- a/tests/fail3/results/test.csv
+++ b/tests/fail3/results/test.csv
@@ -1,11 +1,11 @@
 x,y
-0.000000,0.105730
-0.984954,1.361726
-1.969908,2.143400
-2.954862,1.657130
-3.939815,1.233006
-4.924769,1.067055
-5.909723,1.749512
-6.894677,2.708225
-7.879631,3.292177
-8.454453,3.185124
+0,0.1057300563645698
+0.984953862832,1.36172604457188
+1.96990772566,2.14340042355783
+2.9548615885,1.657130018020007
+3.93981545133,1.233005674103567
+4.92476931416,1.067054687936138
+5.90972317699,1.749511986944331
+6.89467703982,2.708225155746354
+7.87963090265,3.29217739931187
+8.454452605969999,3.18512445035866
diff --git a/tests/fail3/results/upperBound.csv b/tests/fail3/results/upperBound.csv
index 9d913376..77f7279b 100644
--- a/tests/fail3/results/upperBound.csv
+++ b/tests/fail3/results/upperBound.csv
@@ -1,13 +1,13 @@
 x,y
--0.100000,0.100000
-0.189396,0.639548
-1.662000,2.097731
-1.862000,2.097731
-2.284829,2.075730
-3.299118,1.477381
-4.628835,0.877695
-5.331719,1.208995
-6.898018,2.834685
-7.614449,3.255263
-7.814449,3.255263
-8.554453,3.171555
+-0.1,0.1
+0.189396291618,0.6395477910089759
+1.66199981064,2.097731221817369
+1.86199981064,2.097731221817369
+2.28482877219,2.075729830258824
+3.29911772677,1.477381086099133
+4.628834899341149,0.8776953671961916
+5.33171913649,1.208994619092827
+6.898018325820001,2.834685122784077
+7.614448590169999,3.25526345439392
+7.81444859017,3.25526345439392
+8.554452605969999,3.17155539836324
diff --git a/tests/success10/results/errors.csv b/tests/success10/results/errors.csv
index 37c5d41a..c817c29a 100644
--- a/tests/success10/results/errors.csv
+++ b/tests/success10/results/errors.csv
@@ -1,32 +1,32 @@
 x,y
-0.000000,0.000000
-0.984954,0.000000
-1.969908,0.000000
-2.954862,0.000000
-3.939815,0.000000
-4.924769,0.000000
-5.909723,0.000000
-6.894677,0.000000
-7.879631,0.000000
-8.864585,0.000000
-9.849539,0.000000
-10.834492,0.000000
-11.819446,0.000000
-12.804400,0.000000
-13.789354,0.000000
-14.774308,0.000000
-15.759262,0.000000
-16.744216,0.000000
-17.729170,0.000000
-18.714123,0.000000
-19.699077,0.000000
-20.684031,0.000000
-21.668985,0.000000
-22.653939,0.000000
-23.638893,0.000000
-24.623847,0.000000
-25.608800,0.000000
-26.593754,0.000000
-27.578708,0.000000
-28.563662,0.000000
-29.548616,0.000000
+0,0
+0.984953862832,0
+1.96990772566,0
+2.9548615885,0
+3.93981545133,0
+4.92476931416,0
+5.90972317699,0
+6.89467703982,0
+7.87963090265,0
+8.864584765489999,0
+9.849538628319999,0
+10.8344924912,0
+11.819446354,0
+12.8044002168,0
+13.7893540796,0
+14.7743079425,0
+15.7592618053,0
+16.7442156681,0
+17.729169531,0
+18.7141233938,0
+19.6990772566,0
+20.6840311195,0
+21.6689849823,0
+22.6539388451,0
+23.638892708,0
+24.6238465708,0
+25.6088004336,0
+26.5937542965,0
+27.5787081593,0
+28.5636620221,0
+29.548615885,0
diff --git a/tests/success10/results/lowerBound.csv b/tests/success10/results/lowerBound.csv
index 5e518fd0..399a6b4e 100644
--- a/tests/success10/results/lowerBound.csv
+++ b/tests/success10/results/lowerBound.csv
@@ -1,38 +1,38 @@
 x,y
--0.000030,-0.000004
-0.000030,-0.000004
-0.289426,0.539544
-1.762026,1.997724
-2.184799,1.975726
-3.199088,1.377377
-4.631012,0.731597
-4.631071,0.731597
-5.431749,1.108990
-6.998048,2.734681
-7.714469,3.155254
-8.454423,3.071551
-9.976138,1.871851
-10.355859,1.627449
-11.061156,1.492140
-11.061215,1.492140
-12.702894,2.753671
-13.353248,3.372101
-14.798990,3.548798
-15.036143,3.397231
-16.139700,2.422919
-17.885994,2.117205
-17.886053,2.117205
-18.188984,2.340738
-19.174115,3.323258
-20.250401,4.041950
-21.373255,3.687159
-22.210906,2.926597
-23.143471,2.270289
-23.143530,2.270289
-24.329046,2.512000
-25.060339,3.188040
-26.349168,4.246531
-27.577208,3.994600
-28.647133,3.025111
-29.548586,2.462954
-29.548645,2.462954
+-1e-10,-1e-10
+1e-10,-1e-10
+0.289396291718,0.5395477909089759
+1.761999810730015,1.997731221707482
+2.18482877209,1.975729830158824
+3.19911772667,1.377381085999133
+4.631041824489999,0.7316013294248565
+4.63104182469,0.7316013294248565
+5.43171913659,1.108994618992827
+6.998018325920001,2.734685122684077
+7.714448590237688,3.155263454274951
+8.454452605869999,3.07155539826324
+9.976167556630001,1.871854947968011
+10.355888472,1.627453069557425
+11.0611858796,1.492144186467474
+11.0611858798,1.492144186467474
+12.7028645548,2.753675410219047
+13.3532183187,3.372105208163542
+14.79901032873211,3.548807978409182
+15.0361727548,3.39723540135903
+16.1397300306,2.422923084319919
+17.8860234349,2.117209743023153
+17.8860234351,2.117209743023153
+18.1889540845,2.340742617719753
+19.1740855321,3.323261871771449
+20.25039050153576,4.041966509552496
+21.3732844623,3.687163072950042
+22.2109360448,2.926601338271625
+23.1435005133,2.270293061796093
+23.1435005135,2.270293061796093
+24.3290165524,2.51200452179185
+25.0603091527,3.188044676573026
+26.34915014826003,4.246544699238486
+27.5772375941,3.99460460567877
+28.6471625023,3.025115239397334
+29.5486158849,2.46295860688791
+29.5486158851,2.46295860688791
diff --git a/tests/success10/results/reference.csv b/tests/success10/results/reference.csv
index 57928b97..2dcd4370 100644
--- a/tests/success10/results/reference.csv
+++ b/tests/success10/results/reference.csv
@@ -1,32 +1,32 @@
 x,y
-0.000000,0.000000
-0.289396,0.539548
-1.762000,1.997731
-2.184829,1.975730
-3.199118,1.377381
-4.631042,0.731601
-5.431719,1.108995
-6.998018,2.734685
-7.714449,3.155263
-8.454453,3.071555
-9.976168,1.871855
-10.355888,1.627453
-11.061186,1.492144
-12.702865,2.753675
-13.353218,3.372105
-14.799010,3.548808
-15.036173,3.397235
-16.139730,2.422923
-17.886023,2.117210
-18.188954,2.340743
-19.174086,3.323262
-20.250391,4.041967
-21.373284,3.687163
-22.210936,2.926601
-23.143501,2.270293
-24.329017,2.512005
-25.060309,3.188045
-26.349150,4.246545
-27.577238,3.994605
-28.647163,3.025115
-29.548616,2.462959
+0,0
+0.289396291618,0.5395477910089759
+1.76199981064,1.997731221817369
+2.18482877219,1.975729830258824
+3.19911772677,1.377381086099133
+4.63104182459,0.7316013295248565
+5.43171913649,1.108994619092827
+6.99801832582,2.734685122784077
+7.71444859017,3.15526345439392
+8.454452605969999,3.07155539836324
+9.976167556729999,1.871854948068011
+10.3558884721,1.627453069657425
+11.0611858797,1.492144186567474
+12.7028645547,2.753675410319047
+13.3532183186,3.372105208263542
+14.7990103288,3.548807978529702
+15.0361727549,3.39723540145903
+16.1397300307,2.422923084419919
+17.886023435,2.117209743123153
+18.1889540844,2.340742617819753
+19.174085532,3.323261871871449
+20.2503905015,4.041966509695393
+21.3732844624,3.687163073050042
+22.2109360449,2.926601338371625
+23.1435005134,2.270293061896093
+24.3290165523,2.51200452189185
+25.0603091526,3.188044676673026
+26.3491501482,4.246544699371316
+27.5772375942,3.99460460577877
+28.6471625024,3.025115239497334
+29.548615885,2.46295860698791
diff --git a/tests/success10/results/test.csv b/tests/success10/results/test.csv
index a1ef50b9..df22cf5a 100644
--- a/tests/success10/results/test.csv
+++ b/tests/success10/results/test.csv
@@ -1,32 +1,32 @@
 x,y
-0.000000,0.000000
-0.984954,1.228294
-1.969908,1.986913
-2.954862,1.521473
-3.939815,1.043336
-4.924769,0.870048
-5.909723,1.605124
-6.894677,2.627425
-7.879631,3.136578
-8.864585,2.748212
-9.849539,1.971688
-10.834492,1.535635
-11.819446,2.074822
-12.804400,2.850227
-13.789354,3.425409
-14.774308,3.545789
-15.759262,2.758832
-16.744216,2.317099
-17.729170,2.144669
-18.714123,2.864519
-19.699077,3.673826
-20.684031,3.904948
-21.668985,3.418676
-22.653939,2.614831
-23.638893,2.371297
-24.623847,2.784559
-25.608800,3.638510
-26.593754,4.196365
-27.578708,3.993272
-28.563662,3.100777
-29.548616,2.462959
+0,0
+0.984953862832,1.228294295016058
+1.96990772566,1.98691298592881
+2.9548615885,1.521472523682905
+3.93981545133,1.043335729235126
+4.92476931416,0.8700475948020989
+5.90972317699,1.605123733288606
+6.89467703982,2.627425316720476
+7.87963090265,3.136578298673967
+8.864584765489999,2.748212490938345
+9.849538628319999,1.971687562818889
+10.8344924912,1.535634533866283
+11.819446354,2.074821709648978
+12.8044002168,2.850226983444442
+13.7893540796,3.425409139010219
+14.7743079425,3.545788885834709
+15.7592618053,2.758832136317289
+16.7442156681,2.317099330214029
+17.729169531,2.144669235888649
+18.7141233938,2.864519378160197
+19.6990772566,3.673826068833976
+20.6840311195,3.904948067276001
+21.6689849823,3.418676144757244
+22.6539388451,2.614830502042689
+23.638892708,2.371297153522842
+24.6238465708,2.784558806275186
+25.6088004336,3.638509889538141
+26.5937542965,4.196364565853476
+27.5787081593,3.99327208492678
+28.5636620221,3.100777397700057
+29.548615885,2.46295860698791
diff --git a/tests/success10/results/upperBound.csv b/tests/success10/results/upperBound.csv
index de04e5ec..eac8081f 100644
--- a/tests/success10/results/upperBound.csv
+++ b/tests/success10/results/upperBound.csv
@@ -1,37 +1,37 @@
 x,y
--0.000030,0.000004
-0.289367,0.539552
-1.761970,1.997735
-1.762029,1.997735
-2.184858,1.975734
-3.199147,1.377385
-4.631041,0.731619
-5.431690,1.108999
-6.997989,2.734689
-7.714419,3.155268
-7.714478,3.155268
-8.454482,3.071560
-9.976197,1.871859
-10.355918,1.627457
-11.061168,1.492158
-12.702835,2.753680
-13.353189,3.372109
-14.798981,3.548812
-14.799040,3.548812
-15.036202,3.397240
-16.139760,2.422927
-17.886005,2.117222
-18.188925,2.340747
-19.174056,3.323266
-20.250361,4.041971
-20.250420,4.041971
-21.373314,3.687167
-22.210966,2.926606
-23.143517,2.270307
-24.328987,2.512009
-25.060280,3.188049
-26.349121,4.246549
-26.349180,4.246549
-27.577267,3.994609
-28.647192,3.025119
-29.548645,2.462963
+-1e-10,1e-10
+0.289396291518,0.5395477911089759
+1.76199981054,1.997731221917369
+1.76199981074,1.997731221917369
+2.18482877229,1.975729830358824
+3.19911772687,1.377381086199133
+4.631041824587792,0.7316013296709507
+5.431719136389999,1.108994619192827
+6.99801832572,2.734685122884077
+7.714448590070001,3.15526345449392
+7.71444859027,3.15526345449392
+8.454452606069999,3.07155539846324
+9.976167556829999,1.871854948168011
+10.3558884722,1.627453069757425
+11.06118587963996,1.492144186698177
+12.7028645546,2.753675410419047
+13.3532183185,3.372105208363542
+14.7990103287,3.548807978629702
+14.7990103289,3.548807978629702
+15.036172755,3.39723540155903
+16.1397300308,2.422923084519919
+17.88602343493835,2.117209743251453
+18.1889540843,2.340742617919753
+19.1740855319,3.323261871971449
+20.2503905014,4.041966509795393
+20.2503905016,4.041966509795393
+21.3732844625,3.687163073150042
+22.210936045,2.926601338471625
+23.14350051345507,2.270293062027711
+24.3290165522,2.51200452199185
+25.0603091525,3.188044676773026
+26.3491501481,4.246544699471316
+26.3491501483,4.246544699471316
+27.5772375943,3.99460460587877
+28.6471625025,3.025115239597334
+29.5486158851,2.46295860708791
diff --git a/tests/success2/results/errors.csv b/tests/success2/results/errors.csv
index 37c5d41a..c817c29a 100644
--- a/tests/success2/results/errors.csv
+++ b/tests/success2/results/errors.csv
@@ -1,32 +1,32 @@
 x,y
-0.000000,0.000000
-0.984954,0.000000
-1.969908,0.000000
-2.954862,0.000000
-3.939815,0.000000
-4.924769,0.000000
-5.909723,0.000000
-6.894677,0.000000
-7.879631,0.000000
-8.864585,0.000000
-9.849539,0.000000
-10.834492,0.000000
-11.819446,0.000000
-12.804400,0.000000
-13.789354,0.000000
-14.774308,0.000000
-15.759262,0.000000
-16.744216,0.000000
-17.729170,0.000000
-18.714123,0.000000
-19.699077,0.000000
-20.684031,0.000000
-21.668985,0.000000
-22.653939,0.000000
-23.638893,0.000000
-24.623847,0.000000
-25.608800,0.000000
-26.593754,0.000000
-27.578708,0.000000
-28.563662,0.000000
-29.548616,0.000000
+0,0
+0.984953862832,0
+1.96990772566,0
+2.9548615885,0
+3.93981545133,0
+4.92476931416,0
+5.90972317699,0
+6.89467703982,0
+7.87963090265,0
+8.864584765489999,0
+9.849538628319999,0
+10.8344924912,0
+11.819446354,0
+12.8044002168,0
+13.7893540796,0
+14.7743079425,0
+15.7592618053,0
+16.7442156681,0
+17.729169531,0
+18.7141233938,0
+19.6990772566,0
+20.6840311195,0
+21.6689849823,0
+22.6539388451,0
+23.638892708,0
+24.6238465708,0
+25.6088004336,0
+26.5937542965,0
+27.5787081593,0
+28.5636620221,0
+29.548615885,0
diff --git a/tests/success2/results/lowerBound.csv b/tests/success2/results/lowerBound.csv
index 5e518fd0..00bb530e 100644
--- a/tests/success2/results/lowerBound.csv
+++ b/tests/success2/results/lowerBound.csv
@@ -1,38 +1,38 @@
 x,y
--0.000030,-0.000004
-0.000030,-0.000004
-0.289426,0.539544
-1.762026,1.997724
-2.184799,1.975726
-3.199088,1.377377
-4.631012,0.731597
-4.631071,0.731597
-5.431749,1.108990
-6.998048,2.734681
-7.714469,3.155254
-8.454423,3.071551
-9.976138,1.871851
-10.355859,1.627449
-11.061156,1.492140
-11.061215,1.492140
-12.702894,2.753671
-13.353248,3.372101
-14.798990,3.548798
-15.036143,3.397231
-16.139700,2.422919
-17.885994,2.117205
-17.886053,2.117205
-18.188984,2.340738
-19.174115,3.323258
-20.250401,4.041950
-21.373255,3.687159
-22.210906,2.926597
-23.143471,2.270289
-23.143530,2.270289
-24.329046,2.512000
-25.060339,3.188040
-26.349168,4.246531
-27.577208,3.994600
-28.647133,3.025111
-29.548586,2.462954
-29.548645,2.462954
+-2.9548615885e-05,-4.246544699371315e-06
+2.9548615885e-05,-4.246544699371315e-06
+0.289425840233885,0.5395435444642765
+1.76202640883359,1.99772405374162
+2.184799223574115,1.975725583714125
+3.199088178154115,1.377376839554433
+4.631012275974115,0.7315970829801571
+4.631071373205884,0.7315970829801571
+5.431748685105885,1.108990372548127
+6.998047874435885,2.734680876239378
+7.714468591067456,3.155253602888503
+8.454423057354115,3.071551151818541
+9.976138008114116,1.871850701523311
+10.35585892348412,1.627448823112725
+11.06115633108412,1.492139940022774
+11.06121542831588,1.492139940022774
+12.70289410331588,2.753671163774348
+13.35324786721588,3.372100961718842
+14.79899026727842,3.5487976687002
+15.03614320628411,3.397231154914331
+16.13970048208412,2.42291883787522
+17.88599388638411,2.117205496578454
+17.88605298361589,2.117205496578454
+18.18898363301588,2.340738371275053
+19.17411508061588,3.323257625326749
+20.25040106807713,4.041949587859136
+21.37325491378411,3.687158826505342
+22.21090649628411,2.926597091826925
+23.14347096478411,2.270288815351393
+23.14353006201588,2.270288815351393
+24.32904610091589,2.51200027534715
+25.06033870121588,3.188040430128326
+26.34916788528271,4.246530752244326
+27.57720804558411,3.994600359234071
+28.64713295378411,3.025110992952635
+29.54858633638412,2.46295436044321
+29.54864543361588,2.46295436044321
diff --git a/tests/success2/results/reference.csv b/tests/success2/results/reference.csv
index 57928b97..2dcd4370 100644
--- a/tests/success2/results/reference.csv
+++ b/tests/success2/results/reference.csv
@@ -1,32 +1,32 @@
 x,y
-0.000000,0.000000
-0.289396,0.539548
-1.762000,1.997731
-2.184829,1.975730
-3.199118,1.377381
-4.631042,0.731601
-5.431719,1.108995
-6.998018,2.734685
-7.714449,3.155263
-8.454453,3.071555
-9.976168,1.871855
-10.355888,1.627453
-11.061186,1.492144
-12.702865,2.753675
-13.353218,3.372105
-14.799010,3.548808
-15.036173,3.397235
-16.139730,2.422923
-17.886023,2.117210
-18.188954,2.340743
-19.174086,3.323262
-20.250391,4.041967
-21.373284,3.687163
-22.210936,2.926601
-23.143501,2.270293
-24.329017,2.512005
-25.060309,3.188045
-26.349150,4.246545
-27.577238,3.994605
-28.647163,3.025115
-29.548616,2.462959
+0,0
+0.289396291618,0.5395477910089759
+1.76199981064,1.997731221817369
+2.18482877219,1.975729830258824
+3.19911772677,1.377381086099133
+4.63104182459,0.7316013295248565
+5.43171913649,1.108994619092827
+6.99801832582,2.734685122784077
+7.71444859017,3.15526345439392
+8.454452605969999,3.07155539836324
+9.976167556729999,1.871854948068011
+10.3558884721,1.627453069657425
+11.0611858797,1.492144186567474
+12.7028645547,2.753675410319047
+13.3532183186,3.372105208263542
+14.7990103288,3.548807978529702
+15.0361727549,3.39723540145903
+16.1397300307,2.422923084419919
+17.886023435,2.117209743123153
+18.1889540844,2.340742617819753
+19.174085532,3.323261871871449
+20.2503905015,4.041966509695393
+21.3732844624,3.687163073050042
+22.2109360449,2.926601338371625
+23.1435005134,2.270293061896093
+24.3290165523,2.51200452189185
+25.0603091526,3.188044676673026
+26.3491501482,4.246544699371316
+27.5772375942,3.99460460577877
+28.6471625024,3.025115239497334
+29.548615885,2.46295860698791
diff --git a/tests/success2/results/test.csv b/tests/success2/results/test.csv
index a1ef50b9..df22cf5a 100644
--- a/tests/success2/results/test.csv
+++ b/tests/success2/results/test.csv
@@ -1,32 +1,32 @@
 x,y
-0.000000,0.000000
-0.984954,1.228294
-1.969908,1.986913
-2.954862,1.521473
-3.939815,1.043336
-4.924769,0.870048
-5.909723,1.605124
-6.894677,2.627425
-7.879631,3.136578
-8.864585,2.748212
-9.849539,1.971688
-10.834492,1.535635
-11.819446,2.074822
-12.804400,2.850227
-13.789354,3.425409
-14.774308,3.545789
-15.759262,2.758832
-16.744216,2.317099
-17.729170,2.144669
-18.714123,2.864519
-19.699077,3.673826
-20.684031,3.904948
-21.668985,3.418676
-22.653939,2.614831
-23.638893,2.371297
-24.623847,2.784559
-25.608800,3.638510
-26.593754,4.196365
-27.578708,3.993272
-28.563662,3.100777
-29.548616,2.462959
+0,0
+0.984953862832,1.228294295016058
+1.96990772566,1.98691298592881
+2.9548615885,1.521472523682905
+3.93981545133,1.043335729235126
+4.92476931416,0.8700475948020989
+5.90972317699,1.605123733288606
+6.89467703982,2.627425316720476
+7.87963090265,3.136578298673967
+8.864584765489999,2.748212490938345
+9.849538628319999,1.971687562818889
+10.8344924912,1.535634533866283
+11.819446354,2.074821709648978
+12.8044002168,2.850226983444442
+13.7893540796,3.425409139010219
+14.7743079425,3.545788885834709
+15.7592618053,2.758832136317289
+16.7442156681,2.317099330214029
+17.729169531,2.144669235888649
+18.7141233938,2.864519378160197
+19.6990772566,3.673826068833976
+20.6840311195,3.904948067276001
+21.6689849823,3.418676144757244
+22.6539388451,2.614830502042689
+23.638892708,2.371297153522842
+24.6238465708,2.784558806275186
+25.6088004336,3.638509889538141
+26.5937542965,4.196364565853476
+27.5787081593,3.99327208492678
+28.5636620221,3.100777397700057
+29.548615885,2.46295860698791
diff --git a/tests/success2/results/upperBound.csv b/tests/success2/results/upperBound.csv
index de04e5ec..69b3c367 100644
--- a/tests/success2/results/upperBound.csv
+++ b/tests/success2/results/upperBound.csv
@@ -1,37 +1,37 @@
 x,y
--0.000030,0.000004
-0.289367,0.539552
-1.761970,1.997735
-1.762029,1.997735
-2.184858,1.975734
-3.199147,1.377385
-4.631041,0.731619
-5.431690,1.108999
-6.997989,2.734689
-7.714419,3.155268
-7.714478,3.155268
-8.454482,3.071560
-9.976197,1.871859
-10.355918,1.627457
-11.061168,1.492158
-12.702835,2.753680
-13.353189,3.372109
-14.798981,3.548812
-14.799040,3.548812
-15.036202,3.397240
-16.139760,2.422927
-17.886005,2.117222
-18.188925,2.340747
-19.174056,3.323266
-20.250361,4.041971
-20.250420,4.041971
-21.373314,3.687167
-22.210966,2.926606
-23.143517,2.270307
-24.328987,2.512009
-25.060280,3.188049
-26.349121,4.246549
-26.349180,4.246549
-27.577267,3.994609
-28.647192,3.025119
-29.548645,2.462963
+-2.9548615885e-05,4.246544699371315e-06
+0.289366743002115,0.5395520375536752
+1.761970262024115,1.997735468362069
+1.762029359255885,1.997735468362069
+2.184858320805885,1.975734076803523
+3.199147275385885,1.377385332643832
+4.631041172474133,0.7316191962196938
+5.431689587874114,1.108998865637526
+6.997988777204116,2.734689369328776
+7.714419041554116,3.155267700938619
+7.714478138785884,3.155267700938619
+8.454482154585884,3.07155964490794
+9.976197105345884,1.87185919461271
+10.35591802071588,1.627457316202124
+11.06116813756317,1.492157505680512
+12.70283500608412,2.753679656863746
+13.35318876998411,3.372109454808241
+14.79898078018411,3.548812225074401
+14.79903987741588,3.548812225074401
+15.03620230351589,3.39723964800373
+16.13975957931589,2.422927330964619
+17.88600521847509,2.117222351630827
+18.18892453578411,2.340746864364452
+19.17405598338411,3.323266118416148
+20.25036095288412,4.041970756240092
+20.25042005011589,4.041970756240092
+21.37331401101589,3.687167319594741
+22.21096559351588,2.926605584916324
+23.14351678695666,2.270306650991937
+24.32898700368412,2.512008768436549
+25.06027960398411,3.188048923217725
+26.34912059958411,4.246548945916015
+26.34917969681588,4.246548945916015
+27.57726714281588,3.99460885232347
+28.64719205101589,3.025119486042033
+29.54864543361588,2.462962853532609
diff --git a/tests/success3/results/errors.csv b/tests/success3/results/errors.csv
index 29a9a300..5857cced 100644
--- a/tests/success3/results/errors.csv
+++ b/tests/success3/results/errors.csv
@@ -1,32 +1,32 @@
 x,y
-0.000000,0.000000
-0.587630,0.000000
-1.676174,0.000000
-2.012321,0.000000
-3.695502,0.000000
-4.559765,0.000000
-5.537135,0.000000
-6.363417,0.000000
-7.508998,0.000000
-8.828739,0.000000
-9.349622,0.000000
-10.362876,0.000000
-11.775433,0.000000
-12.485906,0.000000
-13.808243,0.000000
-14.863740,0.000000
-15.741747,0.000000
-16.306424,0.000000
-17.935658,0.000000
-18.197099,0.000000
-19.563615,0.000000
-20.047483,0.000000
-21.479316,0.000000
-22.198614,0.000000
-23.110311,0.000000
-24.943780,0.000000
-25.315828,0.000000
-26.039341,0.000000
-27.232489,0.000000
-28.418448,0.000000
-29.530758,0.000000
+0,0
+0.587629790295,0
+1.67617397977,0
+2.01232144797,0
+3.69550241138,0
+4.55976453515,0
+5.53713529265,0
+6.36341650619,0
+7.50899800057,0
+8.828739226110001,0
+9.349621931950001,0
+10.362876212,0
+11.7754330615,0
+12.4859057757,0
+13.8082428676,0
+14.8637396985,0
+15.7417467131,0
+16.3064240698,0
+17.9356584608,0
+18.197098847,0
+19.563614775,0
+20.0474825854,0
+21.4793157762,0
+22.1986144454,0
+23.1103105302,0
+24.9437800656,0
+25.3158282438,0
+26.0393411778,0
+27.2324886647,0
+28.4184477619,0
+29.5307584505,0
diff --git a/tests/success3/results/lowerBound.csv b/tests/success3/results/lowerBound.csv
index f64a98c3..d8f6c0d9 100644
--- a/tests/success3/results/lowerBound.csv
+++ b/tests/success3/results/lowerBound.csv
@@ -1,38 +1,38 @@
 x,y
--0.010000,-0.000001
-0.010000,-0.000001
-0.587640,1.001977
-1.676184,1.976101
-1.995111,2.006093
-3.675512,1.026980
-4.539775,0.726949
-4.559775,0.726949
-5.537145,1.189923
-6.363427,2.065349
-7.505789,3.074760
-8.808749,2.853901
-9.329632,2.421026
-10.342886,1.628983
-10.362886,1.628983
-11.775443,1.828739
-12.485916,2.510572
-13.805896,3.635616
-14.843750,3.517460
-15.721757,2.793516
-16.286434,2.295410
-17.915668,2.142567
-17.935668,2.142567
-18.197109,2.339189
-19.563625,3.670361
-20.041733,3.970292
-21.459326,3.610611
-22.178624,2.947466
-23.090321,2.286894
-23.110321,2.286894
-24.943790,3.057904
-25.315838,3.442024
-26.039351,4.078137
-27.214874,4.206528
-28.398458,3.247559
-29.520758,2.467743
-29.540758,2.467743
+-0.01,-1e-06
+0.01,-1e-06
+0.587639790295,1.001977111544218
+1.67618397977,1.976101275335112
+1.995110814592092,2.006093424920605
+3.67551241138,1.026980238857075
+4.53977453515,0.7269489215189343
+4.55977453515,0.7269489215189343
+5.537145292650001,1.189922968763109
+6.36342650619,2.065348849520608
+7.505788896674024,3.074759649293701
+8.808749226110002,2.853900655767851
+9.329631931950003,2.421026455428506
+10.342886212,1.628983447954296
+10.362886212,1.628983447954296
+11.7754430615,1.828738744655519
+12.4859157757,2.510571537882213
+13.80589619892763,3.63561574321625
+14.8437496985,3.517459658969257
+15.7217567131,2.793516313082677
+16.2864340698,2.295409657204596
+17.9156684608,2.142567415789561
+17.9356684608,2.142567415789561
+18.197108847,2.339189455092695
+19.563624775,3.670360690204851
+20.04173298615654,3.97029217172603
+21.4593257762,3.610611251650602
+22.1786244454,2.947465947455866
+23.0903205302,2.28689396148008
+23.1103205302,2.28689396148008
+24.9437900656,3.05790446239434
+25.3158382438,3.442023804744706
+26.0393511778,4.078137479277803
+27.21487445033872,4.206528478416124
+28.3984577619,3.247559201317642
+29.5207584505,2.467742818438897
+29.5407584505,2.467742818438897
diff --git a/tests/success3/results/reference.csv b/tests/success3/results/reference.csv
index d3701efb..4b0c9b43 100644
--- a/tests/success3/results/reference.csv
+++ b/tests/success3/results/reference.csv
@@ -1,32 +1,32 @@
 x,y
-0.000000,0.000000
-0.577640,1.001978
-1.666184,1.976102
-2.002331,2.007714
-3.685512,1.026981
-4.549775,0.726950
-5.527145,1.189924
-6.353427,2.065350
-7.499008,3.077605
-8.818749,2.853902
-9.339632,2.421027
-10.352886,1.628984
-11.765443,1.828740
-12.475916,2.510573
-13.798253,3.637625
-14.853750,3.517461
-15.731757,2.793517
-16.296434,2.295411
-17.925668,2.142568
-18.187109,2.339190
-19.553625,3.670362
-20.037493,3.973906
-21.469326,3.610612
-22.188624,2.947467
-23.100321,2.286895
-24.933790,3.057905
-25.305838,3.442025
-26.029351,4.078138
-27.222499,4.208454
-28.408458,3.247560
-29.530758,2.467744
+0,0
+0.577639790295,1.001978111544218
+1.66618397977,1.976102275335112
+2.00233144797,2.007713867864361
+3.68551241138,1.026981238857075
+4.54977453515,0.7269499215189343
+5.52714529265,1.189923968763109
+6.35342650619,2.065349849520608
+7.49900800057,3.077605104140305
+8.81874922611,2.853901655767851
+9.339631931950001,2.421027455428506
+10.352886212,1.628984447954296
+11.7654430615,1.828739744655519
+12.4759157757,2.510572537882213
+13.7982528676,3.63762537636496
+14.8537496985,3.517460658969257
+15.7317567131,2.793517313082677
+16.2964340698,2.295410657204596
+17.9256684608,2.142568415789561
+18.187108847,2.339190455092695
+19.553624775,3.670361690204851
+20.0374925854,3.973906339401775
+21.4693257762,3.610612251650602
+22.1886244454,2.947466947455866
+23.1003205302,2.28689496148008
+24.9337900656,3.05790546239434
+25.3058382438,3.442024804744706
+26.0293511778,4.078138479277803
+27.2224986647,4.208454400315787
+28.4084577619,3.247560201317643
+29.5307584505,2.467743818438897
diff --git a/tests/success3/results/test.csv b/tests/success3/results/test.csv
index 7dd2f764..bb2c025f 100644
--- a/tests/success3/results/test.csv
+++ b/tests/success3/results/test.csv
@@ -1,32 +1,32 @@
 x,y
-0.000000,0.000000
-0.587630,1.001978
-1.676174,1.976102
-2.012321,2.007714
-3.695502,1.026981
-4.559765,0.726950
-5.537135,1.189924
-6.363417,2.065350
-7.508998,3.077605
-8.828739,2.853902
-9.349622,2.421027
-10.362876,1.628984
-11.775433,1.828740
-12.485906,2.510573
-13.808243,3.637625
-14.863740,3.517461
-15.741747,2.793517
-16.306424,2.295411
-17.935658,2.142568
-18.197099,2.339190
-19.563615,3.670362
-20.047483,3.973906
-21.479316,3.610612
-22.198614,2.947467
-23.110311,2.286895
-24.943780,3.057905
-25.315828,3.442025
-26.039341,4.078138
-27.232489,4.208454
-28.418448,3.247560
-29.530758,2.467744
+0,0
+0.587629790295,1.001978111544218
+1.67617397977,1.976102275335112
+2.01232144797,2.007713867864361
+3.69550241138,1.026981238857075
+4.55976453515,0.7269499215189343
+5.53713529265,1.189923968763109
+6.36341650619,2.065349849520608
+7.50899800057,3.077605104140305
+8.828739226110001,2.853901655767851
+9.349621931950001,2.421027455428506
+10.362876212,1.628984447954296
+11.7754330615,1.828739744655519
+12.4859057757,2.510572537882213
+13.8082428676,3.63762537636496
+14.8637396985,3.517460658969257
+15.7417467131,2.793517313082677
+16.3064240698,2.295410657204596
+17.9356584608,2.142568415789561
+18.197098847,2.339190455092695
+19.563614775,3.670361690204851
+20.0474825854,3.973906339401775
+21.4793157762,3.610612251650602
+22.1986144454,2.947466947455866
+23.1103105302,2.28689496148008
+24.9437800656,3.05790546239434
+25.3158282438,3.442024804744706
+26.0393411778,4.078138479277803
+27.2324886647,4.208454400315787
+28.4184477619,3.247560201317643
+29.5307584505,2.467743818438897
diff --git a/tests/success3/results/upperBound.csv b/tests/success3/results/upperBound.csv
index 3c799287..8141cbb8 100644
--- a/tests/success3/results/upperBound.csv
+++ b/tests/success3/results/upperBound.csv
@@ -1,37 +1,37 @@
 x,y
--0.010000,0.000001
-0.567640,1.001979
-1.656184,1.976103
-1.992331,2.007715
-2.012331,2.007715
-3.695512,1.026982
-4.548233,0.730958
-5.517145,1.189925
-6.343427,2.065351
-7.489008,3.077606
-7.509008,3.077606
-8.828749,2.853903
-9.349632,2.421028
-10.359822,1.631380
-11.755443,1.828741
-12.465916,2.510574
-13.788253,3.637626
-13.808253,3.637626
-14.863750,3.517462
-15.741757,2.793518
-16.306434,2.295412
-17.917887,2.144238
-18.177109,2.339191
-19.543625,3.670363
-20.027493,3.973907
-20.047493,3.973907
-21.479326,3.610613
-22.198624,2.947468
-23.102976,2.292218
-24.923790,3.057906
-25.295838,3.442026
-26.019351,4.078139
-27.212499,4.208455
-27.232499,4.208455
-28.418458,3.247561
-29.540758,2.467745
+-0.01,1e-06
+0.5676397902950001,1.001979111544218
+1.65618397977,1.976103275335112
+1.99233144797,2.007714867864361
+2.01233144797,2.007714867864361
+3.69551241138,1.026982238857075
+4.548232953158815,0.7309576180450721
+5.51714529265,1.189924968763109
+6.343426506189999,2.065350849520608
+7.48900800057,3.077606104140305
+7.509008000569999,3.077606104140305
+8.82874922611,2.853902655767851
+9.34963193195,2.421028455428506
+10.35982230677902,1.631380448650191
+11.7554430615,1.828740744655519
+12.4659157757,2.510573537882213
+13.7882528676,3.63762637636496
+13.8082528676,3.63762637636496
+14.8637496985,3.517461658969257
+15.7417567131,2.793518313082677
+16.3064340698,2.295411657204597
+17.91788654877125,2.144237578029527
+18.177108847,2.339191455092696
+19.543624775,3.670362690204851
+20.0274925854,3.973907339401775
+20.0474925854,3.973907339401775
+21.4793257762,3.610613251650602
+22.1986244454,2.947467947455866
+23.10297567057891,2.292217700365997
+24.9237900656,3.05790646239434
+25.2958382438,3.442025804744707
+26.0193511778,4.078139479277803
+27.2124986647,4.208455400315787
+27.2324986647,4.208455400315787
+28.4184577619,3.247561201317643
+29.5407584505,2.467744818438897
diff --git a/tests/success6/results/errors.csv b/tests/success6/results/errors.csv
index 65345eb0..f5749993 100644
--- a/tests/success6/results/errors.csv
+++ b/tests/success6/results/errors.csv
@@ -1,11 +1,11 @@
 x,y
-0.000000,0.000000
-0.112211,0.000000
-0.223322,0.000099
-0.334433,0.000583
-0.445544,0.000000
-0.556656,0.000887
-0.667767,0.017606
-0.778878,0.000000
-0.889989,0.000117
-1.000000,0.000000
+0,1.734723475976807e-18
+0.112211111111,0
+0.223322222222,9.939275882228649e-05
+0.334433333333,0.0005832051571611208
+0.445544444444,0
+0.556655555556,0.0008865367502935099
+0.667766666667,0.01760551878923822
+0.778877777778,0
+0.889988888889,0.00011693045504238
+1,0
diff --git a/tests/success6/results/lowerBound.csv b/tests/success6/results/lowerBound.csv
index edaad1e4..19fffbd6 100644
--- a/tests/success6/results/lowerBound.csv
+++ b/tests/success6/results/lowerBound.csv
@@ -1,15 +1,15 @@
 x,y
--0.001000,0.010261
-0.001000,0.010261
-0.111266,0.268807
-0.221222,0.079980
-0.223222,0.079980
-0.334333,0.190417
-0.444325,0.831891
-0.554556,0.013959
-0.556556,0.013959
-0.666907,0.992269
-0.776778,0.396282
-0.887889,0.211496
-0.889889,0.211496
-1.001000,0.341419
+-0.001,0.010260595830433
+0.001,0.010260595830433
+0.1112655840077271,0.2688072423591503
+0.221222222222,0.0799802079822102
+0.223222222222,0.0799802079822102
+0.334333333333,0.1904166066735351
+0.4443246066394507,0.8318913850240168
+0.554555555556,0.0139591663414215
+0.556555555556,0.0139591663414215
+0.6669074610643981,0.9922693633226464
+0.7767777777779999,0.3962824818733763
+0.887888888889,0.2114957765948931
+0.889888888889,0.2114957765948931
+1.001,0.3414185044196567
diff --git a/tests/success6/results/reference.csv b/tests/success6/results/reference.csv
index 766d18ff..58e59c4d 100644
--- a/tests/success6/results/reference.csv
+++ b/tests/success6/results/reference.csv
@@ -1,11 +1,11 @@
 x,y
-0.000000,0.011261
-0.111111,0.271790
-0.222222,0.080980
-0.333333,0.191417
-0.444444,0.839422
-0.555556,0.014959
-0.666667,1.000000
-0.777778,0.397282
-0.888889,0.212496
-1.000000,0.342419
+0,0.011260595830433
+0.111111111111,0.271789802911181
+0.222222222222,0.0809802079822102
+0.333333333333,0.1914166066735351
+0.444444444444,0.8394223368519889
+0.555555555556,0.0149591663414215
+0.666666666667,1
+0.7777777777779999,0.3972824818733763
+0.888888888889,0.2124957765948931
+1,0.3424185044196567
diff --git a/tests/success6/results/test.csv b/tests/success6/results/test.csv
index c20bfc1c..2e192301 100644
--- a/tests/success6/results/test.csv
+++ b/tests/success6/results/test.csv
@@ -1,11 +1,11 @@
 x,y
-0.000000,0.010261
-0.112211,0.270790
-0.223322,0.079980
-0.334433,0.190417
-0.445544,0.838422
-0.556656,0.013959
-0.667767,0.970003
-0.778878,0.396282
-0.889989,0.211496
-1.000000,0.341419
+0,0.010260595830433
+0.112211111111,0.270789802911181
+0.223322222222,0.0799802079822102
+0.334433333333,0.1904166066735351
+0.445544444444,0.8384223368519889
+0.556655555556,0.0139591663414215
+0.667766666667,0.9700031201181571
+0.778877777778,0.3962824818733763
+0.889988888889,0.2114957765948931
+1,0.3414185044196567
diff --git a/tests/success6/results/upperBound.csv b/tests/success6/results/upperBound.csv
index 8b1bf221..9f326624 100644
--- a/tests/success6/results/upperBound.csv
+++ b/tests/success6/results/upperBound.csv
@@ -1,15 +1,15 @@
 x,y
--0.001000,0.012261
-0.110111,0.272790
-0.112111,0.272790
-0.222489,0.083239
-0.332333,0.192417
-0.443444,0.840422
-0.445444,0.840422
-0.555467,0.024038
-0.665667,1.001000
-0.667667,1.001000
-0.778778,0.398282
-0.889063,0.214869
-0.999000,0.343419
-1.001000,0.343419
+-0.001,0.012260595830433
+0.110111111111,0.272789802911181
+0.112111111111,0.272789802911181
+0.2224890247619168,0.08323931797546434
+0.332333333333,0.1924166066735351
+0.443444444444,0.8404223368519889
+0.445444444444,0.8404223368519889
+0.5554668142971875,0.02403780997231308
+0.665666666667,1.001
+0.667666666667,1.001
+0.7787777777779999,0.3982824818733763
+0.8890632210560173,0.2148689285414958
+0.999,0.3434185044196567
+1.001,0.3434185044196567
diff --git a/tests/success8/results/errors.csv b/tests/success8/results/errors.csv
index 1e745d70..d57d7fc5 100644
--- a/tests/success8/results/errors.csv
+++ b/tests/success8/results/errors.csv
@@ -1,11 +1,11 @@
 x,y
-0.000000,0.000900
-0.112211,0.000426
-0.223322,0.001771
-0.334433,0.005271
-0.445544,0.003024
-0.556656,0.005717
-0.667767,0.001351
-0.778878,0.000000
-0.889989,0.001034
-1.000000,0.000000
+0,0.0009000000000000015
+0.112211111111,0.0004262464849166259
+0.223322222222,0.001770854503965844
+0.334433333333,0.005270889386033095
+0.445544444444,0.003024409129445571
+0.556655555556,0.005717472612315724
+0.667766666667,0.001350598320694285
+0.778877777778,0
+0.889988888889,0.001033864193119599
+1,0
diff --git a/tests/success8/results/lowerBound.csv b/tests/success8/results/lowerBound.csv
index 406878da..6e84cb29 100644
--- a/tests/success8/results/lowerBound.csv
+++ b/tests/success8/results/lowerBound.csv
@@ -1,15 +1,15 @@
 x,y
--0.000100,0.011161
-0.000100,0.011161
-0.111128,0.271298
-0.222000,0.080880
-0.222444,0.080880
-0.333667,0.191225
-0.444391,0.835683
-0.555000,0.014859
-0.556111,0.014859
-0.666827,0.994516
-0.777000,0.396885
-0.888000,0.212283
-0.889778,0.212283
-1.001000,0.342076
+-0.0001,0.011160595830433
+0.0001,0.011160595830433
+0.1111282281593056,0.2712977866680304
+0.221999999999778,0.0808802079822102
+0.222444444444222,0.0808802079822102
+0.333666666666333,0.1912251900668616
+0.4443907225800668,0.8356833877717863
+0.555000000000444,0.0148591663414215
+0.556111111111556,0.0148591663414215
+0.6668265952495558,0.9945161690660341
+0.777000000000222,0.3968851993915029
+0.8880000000001109,0.2122832808182982
+0.889777777777889,0.2122832808182982
+1.001,0.342076085915237
diff --git a/tests/success8/results/reference.csv b/tests/success8/results/reference.csv
index 766d18ff..58e59c4d 100644
--- a/tests/success8/results/reference.csv
+++ b/tests/success8/results/reference.csv
@@ -1,11 +1,11 @@
 x,y
-0.000000,0.011261
-0.111111,0.271790
-0.222222,0.080980
-0.333333,0.191417
-0.444444,0.839422
-0.555556,0.014959
-0.666667,1.000000
-0.777778,0.397282
-0.888889,0.212496
-1.000000,0.342419
+0,0.011260595830433
+0.111111111111,0.271789802911181
+0.222222222222,0.0809802079822102
+0.333333333333,0.1914166066735351
+0.444444444444,0.8394223368519889
+0.555555555556,0.0149591663414215
+0.666666666667,1
+0.7777777777779999,0.3972824818733763
+0.888888888889,0.2124957765948931
+1,0.3424185044196567
diff --git a/tests/success8/results/test.csv b/tests/success8/results/test.csv
index 14c85b0a..bf17aea3 100644
--- a/tests/success8/results/test.csv
+++ b/tests/success8/results/test.csv
@@ -1,11 +1,11 @@
 x,y
-0.000000,0.010261
-0.112211,0.270790
-0.223322,0.079980
-0.334433,0.190417
-0.445544,0.838422
-0.556656,0.013959
-0.667767,1.000000
-0.778878,0.396282
-0.889989,0.211496
-1.000000,0.341419
+0,0.010260595830433
+0.112211111111,0.270789802911181
+0.223322222222,0.0799802079822102
+0.334433333333,0.1904166066735351
+0.445544444444,0.8384223368519889
+0.556655555556,0.0139591663414215
+0.667766666667,1
+0.778877777778,0.3962824818733763
+0.889988888889,0.2114957765948931
+1,0.3414185044196567
diff --git a/tests/success8/results/upperBound.csv b/tests/success8/results/upperBound.csv
index a525b806..57839031 100644
--- a/tests/success8/results/upperBound.csv
+++ b/tests/success8/results/upperBound.csv
@@ -1,15 +1,15 @@
 x,y
--0.000100,0.011361
-0.111000,0.272062
-0.111222,0.272062
-0.222281,0.081360
-0.333000,0.191608
-0.444000,0.840262
-0.444889,0.840262
-0.555506,0.019551
-0.666000,1.001000
-0.667333,1.001000
-0.778556,0.397680
-0.889043,0.213930
-0.999000,0.342761
-1.001000,0.342761
+-0.0001,0.011360595830433
+0.110999999999889,0.2720615927140922
+0.111222222222111,0.2720615927140922
+0.2222813127007616,0.08136032400252845
+0.332999999999667,0.1916080232802087
+0.443999999999556,0.8402617591888408
+0.444888888888444,0.8402617591888408
+0.5555056990960926,0.01955096262920997
+0.666000000000333,1.001
+0.6673333333336671,1.001
+0.7785555555557779,0.3976797643552497
+0.8890429887909187,0.2139302854952837
+0.999,0.3427609229240764
+1.001,0.3427609229240764
diff --git a/tests/test_bin/results/errors.csv b/tests/test_bin/results/errors.csv
index d90f4235..3f5034ee 100644
--- a/tests/test_bin/results/errors.csv
+++ b/tests/test_bin/results/errors.csv
@@ -1,22 +1,22 @@
 x,y
-0.000000,0.000000
-0.050000,0.000000
-0.100000,0.000000
-0.150000,0.000000
-0.200000,0.000000
-0.250000,0.000000
-0.300000,0.000000
-0.350000,0.000000
-0.400000,0.000000
-0.450000,0.000000
-0.500000,0.000000
-0.550000,0.000000
-0.600000,0.000000
-0.650000,0.000000
-0.700000,0.000000
-0.750000,0.000000
-0.800000,0.000000
-0.850000,0.000000
-0.900000,0.000000
-0.950000,0.000000
-1.000000,0.000000
+0,0
+0.05,0
+0.1,0
+0.15,0
+0.2,0
+0.25,0
+0.3,0
+0.35,0
+0.4,0
+0.45,0
+0.5,0
+0.55,0
+0.6,0
+0.65,0
+0.7,0
+0.75,0
+0.8,0
+0.85,0
+0.9,0
+0.95,0
+1,0
diff --git a/tests/test_bin/results/lowerBound.csv b/tests/test_bin/results/lowerBound.csv
index 57ea099b..afe5de4d 100644
--- a/tests/test_bin/results/lowerBound.csv
+++ b/tests/test_bin/results/lowerBound.csv
@@ -1,19 +1,19 @@
 x,y
--0.002000,-0.002000
-0.052000,-0.002000
-0.102000,0.998000
-0.198000,0.998000
-0.248000,-0.002000
-0.252000,-0.002000
-0.302000,2.998000
-0.348000,2.998000
-0.398000,-0.002000
-0.452000,-0.002000
-0.502000,3.998000
-0.548000,3.998000
-0.598000,-0.002000
-0.652000,-0.002000
-0.702000,0.498000
-0.748000,0.498000
-0.798000,-0.002000
-1.002000,-0.002000
+-0.002,-0.002
+0.052,-0.002
+0.102,0.998
+0.198,0.998
+0.248,-0.002
+0.252,-0.002
+0.302,2.998
+0.348,2.998
+0.398,-0.002
+0.452,-0.002
+0.502,3.998
+0.548,3.998
+0.598,-0.002
+0.652,-0.002
+0.702,0.498
+0.748,0.498
+0.798,-0.002
+1.002,-0.002
diff --git a/tests/test_bin/results/reference.csv b/tests/test_bin/results/reference.csv
index 9fce71d8..134e23ce 100644
--- a/tests/test_bin/results/reference.csv
+++ b/tests/test_bin/results/reference.csv
@@ -1,22 +1,22 @@
 x,y
-0.000000,0.000000
-0.050000,0.000000
-0.100000,1.000000
-0.150000,1.000000
-0.200000,1.000000
-0.250000,0.000000
-0.300000,3.000000
-0.350000,3.000000
-0.400000,0.000000
-0.450000,0.000000
-0.500000,4.000000
-0.550000,4.000000
-0.600000,0.000000
-0.650000,0.000000
-0.700000,0.500000
-0.750000,0.500000
-0.800000,0.000000
-0.850000,0.000000
-0.900000,0.000000
-0.950000,0.000000
-1.000000,0.000000
+0,0
+0.05,0
+0.1,1
+0.15,1
+0.2,1
+0.25,0
+0.3,3
+0.35,3
+0.4,0
+0.45,0
+0.5,4
+0.55,4
+0.6,0
+0.65,0
+0.7,0.5
+0.75,0.5
+0.8,0
+0.85,0
+0.9,0
+0.95,0
+1,0
diff --git a/tests/test_bin/results/test.csv b/tests/test_bin/results/test.csv
index 9fce71d8..134e23ce 100644
--- a/tests/test_bin/results/test.csv
+++ b/tests/test_bin/results/test.csv
@@ -1,22 +1,22 @@
 x,y
-0.000000,0.000000
-0.050000,0.000000
-0.100000,1.000000
-0.150000,1.000000
-0.200000,1.000000
-0.250000,0.000000
-0.300000,3.000000
-0.350000,3.000000
-0.400000,0.000000
-0.450000,0.000000
-0.500000,4.000000
-0.550000,4.000000
-0.600000,0.000000
-0.650000,0.000000
-0.700000,0.500000
-0.750000,0.500000
-0.800000,0.000000
-0.850000,0.000000
-0.900000,0.000000
-0.950000,0.000000
-1.000000,0.000000
+0,0
+0.05,0
+0.1,1
+0.15,1
+0.2,1
+0.25,0
+0.3,3
+0.35,3
+0.4,0
+0.45,0
+0.5,4
+0.55,4
+0.6,0
+0.65,0
+0.7,0.5
+0.75,0.5
+0.8,0
+0.85,0
+0.9,0
+0.95,0
+1,0
diff --git a/tests/test_bin/results/upperBound.csv b/tests/test_bin/results/upperBound.csv
index 7309a560..32fc2e15 100644
--- a/tests/test_bin/results/upperBound.csv
+++ b/tests/test_bin/results/upperBound.csv
@@ -1,18 +1,18 @@
 x,y
--0.002000,0.002000
-0.048000,0.002000
-0.098000,1.002000
-0.202000,1.002000
-0.249000,0.062000
-0.298000,3.002000
-0.352000,3.002000
-0.402000,0.002000
-0.448000,0.002000
-0.498000,4.002000
-0.552000,4.002000
-0.602000,0.002000
-0.648000,0.002000
-0.698000,0.502000
-0.752000,0.502000
-0.802000,0.002000
-1.002000,0.002000
+-0.002,0.002
+0.048,0.002
+0.098,1.002
+0.202,1.002
+0.249,0.06200000000000061
+0.298,3.002
+0.352,3.002
+0.402,0.002
+0.448,0.002
+0.498,4.002
+0.552,4.002
+0.602,0.002
+0.648,0.002
+0.698,0.502
+0.752,0.502
+0.802,0.002
+1.002,0.002
diff --git a/tests/test_import.py b/tests/test_import.py
index b5e3a99e..d896f132 100644
--- a/tests/test_import.py
+++ b/tests/test_import.py
@@ -1,9 +1,10 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
-
 from __future__ import absolute_import, division, print_function, unicode_literals
 
-import os, sys
+import os
+import shutil
+import sys
 import re
 import json
 import subprocess
@@ -11,12 +12,11 @@
 import numpy as np
 import pandas as pd
 
-try:  # CI tool
-    import pyfunnel
-except ImportError:  # ctest with no previous `pip install .`
-    pyfunnel_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))
-    sys.path.append(pyfunnel_dir)
-    import pyfunnel
+pyfunnel_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))
+# Another version of pyfunnel may be installed locally.
+# The following ensures that the current development version is used.
+sys.path.insert(1, pyfunnel_dir)
+import pyfunnel
 
 
 def read_res(test_dir):
@@ -55,7 +55,7 @@ def dif_test(test_dir, rtol=1e-12):
     dif_y = np.logical_not(np.isclose(test_ref.iloc(axis=1)[1], test_new.iloc(axis=1)[1], rtol=rtol))
     frac_dif_x = sum(dif_x) / len(test_ref)
     frac_dif_y = sum(dif_y) / len(test_ref)
-    pd.options.display.float_format = '{:f}'.format
+    pd.options.display.float_format = '{:.16g}'.format
     if frac_dif_x > 0:
         print('*** x values that differ between reference and test results:')
         print(pd.concat([
diff --git a/tests/test_summary.py b/tests/test_summary.py
index 4f29fc2e..02f85af2 100755
--- a/tests/test_summary.py
+++ b/tests/test_summary.py
@@ -1,20 +1,6 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
-
-from __future__ import absolute_import, division, print_function, unicode_literals
-
-import os, sys, shutil
-import json
-import six
-import re
-
-try:  # CI tool
-    import pyfunnel
-except ImportError:  # ctest with no previous `pip install .`
-    pyfunnel_dir = os.path.join(os.path.dirname(__file__), os.path.pardir)
-    sys.path.append(pyfunnel_dir)
-    import pyfunnel
-
+from test_import import *
 
 if __name__ == "__main__":
     cmake_test_dir = sys.argv[1]
@@ -49,8 +35,8 @@
                     print(
 """Test {} with data from {} failed on:
 {:%} x points and {:%} y points.""".format(test_log['test_name'], test_log['test_dir'], dif_err[0], dif_err[1]))
-                    pyfunnel.plot_funnel(os.path.join(test_log['test_dir'], 'results'), title='Original')
-                    pyfunnel.plot_funnel(os.path.join(test_log['tmp_dir'], 'results'), title='New')
+                    # pyfunnel.plot_funnel(os.path.join(test_log['test_dir'], 'results'), title='Original')
+                    # pyfunnel.plot_funnel(os.path.join(test_log['tmp_dir'], 'results'), title='New')
 
                     replace = six.moves.input(
 """Do you want to keep new results from {} and replace results stored in {}?