Let's say you need to sum a large array of floating-point numbers, maybe because you're calculating the arithmetic mean or variance. This post shows how to do so accurately and quickly. Here's what the accuracy-naïve, performance-naïve implementation looks like (Godbolt): Improving Accuracy When summing floating-point numbers, we need to...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I am looking for a accelerated compensated summation implementation in MQL. Any pointers?
There is a c/c++ implementation but it uses compiler specific extension:
http://blog.zachbjornson.com/2019/08/11/fast-float-summation.html