English

Twofold exp and log

Mathematical Software 2015-02-19 v1

Abstract

This article is about twofold arithmetic. Here I introduce algorithms and experimental code for twofold variant of C/C++ standard functions exp() and log(), and expm1() and log1p(). Twofold function y0+y1f(x0+x1)y_0+y_1 \approx f(x_0+x_1) is nearly 2x-precise so can assess accuracy of standard one. Performance allows assessing on-fly: twofold texp() over double is ~10x times faster than expq() by GNU quadmath.

Cite

@article{arxiv.1502.05216,
  title  = {Twofold exp and log},
  author = {Evgeny Latkin},
  journal= {arXiv preprint arXiv:1502.05216},
  year   = {2015}
}

Comments

Experimental code and tests at "twofolds" project Web site: https://sites.google.com/site/yevgenylatkin/

R2 v1 2026-06-22T08:32:18.168Z