Dandelion: Certified Approximations of Elementary Functions

02/11/2022
by   Heiko Becker, et al.
0

Elementary function operations such as sin and exp cannot in general be computed exactly on today's digital computers, and thus have to be approximated. The standard approximations in library functions typically provide only a limited set of precisions, and are too inefficient for many applications. Polynomial approximations that are customized to a limited input domain and output accuracy can provide superior performance. In fact, the Remez algorithm computes the best possible approximation for a given polynomial degree, but has so far not been formally verified. This paper presents Dandelion, an automated certificate checker for polynomial approximations of elementary functions computed with Remez-like algorithms that is fully verified in the HOL4 theorem prover. Dandelion checks whether the difference between a polynomial approximation and its target reference elementary function remains below a given error bound for all inputs in a given constraint. By extracting a verified binary with the CakeML compiler, Dandelion can validate certificates within a reasonable time, fully automating previous manually verified approximations.

READ FULL TEXT

page 3

page 5

page 7

page 9

page 11

page 13

page 15

page 17

research
11/26/2018

Sound Approximation of Programs with Elementary Functions

Elementary function calls are a common feature in numerical programs. Wh...
research
11/25/2021

RLIBM-PROG: Progressive Polynomial Approximations for Fast Correctly Rounded Math Libraries

This paper presents a novel method for generating a single polynomial ap...
research
08/06/2021

Plotting in a Formally Verified Way

An invaluable feature of computer algebra systems is their ability to pl...
research
06/20/2023

Polynomial approximation on disjoint segments and amplification of approximation

We construct explicit easily implementable polynomial approximations of ...
research
09/24/2021

Computing the Barnes G-function in the entire complex plane

We present an algorithm for generating approximations for the logarithm ...
research
05/13/2020

Review of new flow friction equations: Constructing Colebrook explicit correlations accurately

Using only a limited number of computationally expensive functions, we s...
research
10/27/2016

Optimal Belief Approximation

In Bayesian statistics probability distributions express beliefs. Howeve...

Please sign up or login with your details

Forgot password? Click here to reset