Fast Trigonometric Functions using the RLIBM Approach

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Park, Sehyeok, Nagarakatte, Santosh
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912648838250496
author Park, Sehyeok
Nagarakatte, Santosh
author_facet Park, Sehyeok
Nagarakatte, Santosh
contents This paper describes our experience developing polynomial approximations for trigonometric functions that produce correctly rounded results for multiple representations and rounding modes using the RLIBM approach. A key challenge with trigonometric functions concerns range reduction with "pi", which reduces a given input in the domain of a 32-bit float to a small domain. Any rounding error in the value of "pi" is amplified during range reduction, which can result in wrong results. We describe our experience implementing fast range reduction techniques that maintain a large number of bits of "pi" both with floating-point and integer computations. The resulting implementations for trigonometric functions are fast and produce correctly rounded results for all inputs for multiple representations up to 32-bits with a single implementation.
format Preprint
id arxiv_https___arxiv_org_abs_2510_13426
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Fast Trigonometric Functions using the RLIBM Approach
Park, Sehyeok
Nagarakatte, Santosh
Programming Languages
This paper describes our experience developing polynomial approximations for trigonometric functions that produce correctly rounded results for multiple representations and rounding modes using the RLIBM approach. A key challenge with trigonometric functions concerns range reduction with "pi", which reduces a given input in the domain of a 32-bit float to a small domain. Any rounding error in the value of "pi" is amplified during range reduction, which can result in wrong results. We describe our experience implementing fast range reduction techniques that maintain a large number of bits of "pi" both with floating-point and integer computations. The resulting implementations for trigonometric functions are fast and produce correctly rounded results for all inputs for multiple representations up to 32-bits with a single implementation.
title Fast Trigonometric Functions using the RLIBM Approach
topic Programming Languages
url https://arxiv.org/abs/2510.13426