diff options
Diffstat (limited to 'pl/math/tools/expm1f.sollya')
-rw-r--r-- | pl/math/tools/expm1f.sollya | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/pl/math/tools/expm1f.sollya b/pl/math/tools/expm1f.sollya deleted file mode 100644 index efdf1bd301e0..000000000000 --- a/pl/math/tools/expm1f.sollya +++ /dev/null @@ -1,21 +0,0 @@ -// polynomial for approximating exp(x)-1 in single precision -// -// Copyright (c) 2022-2023, Arm Limited. -// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception - -deg = 5; - -a = -log(2)/2; -b = log(2)/2; - -f = proc(y) { - return exp(y)-1; -}; - -poly = fpminimax(f(x), deg, [|single ...|], [a;b]); - -display = hexadecimal; -print("rel error:", accurateinfnorm(1-poly(x)/f(x), [a;b], 30)); -print("in [",a,b,"]"); -print("coeffs:"); -for i from 2 to deg do round(coeff(poly,i), SG, RN); |