English

Twofolds in C and C++

Mathematical Software 2014-12-18 v1

Abstract

Here I propose C and C++ interfaces and experimental implementation for twofolds arithmetic. I introduce twofolds in my previous article entitled "Twofold fast arithmetic" for tracking floating-point inaccuracy. Testing shows, plain C enables high-performance computing with twofolds. C++ interface enables coding as easily as ordinary floating-point numbers. My goal is convincing you to try twofolds; I think assuring accuracy of math computations is worth its cost. Code and use examples available at my web site, references inside.

Cite

@article{arxiv.1412.5316,
  title  = {Twofolds in C and C++},
  author = {Evgeny Latkin},
  journal= {arXiv preprint arXiv:1412.5316},
  year   = {2014}
}
R2 v1 2026-06-22T07:34:40.153Z