diff options
Diffstat (limited to 'pl/math/tools/cbrt.sollya')
-rw-r--r-- | pl/math/tools/cbrt.sollya | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/pl/math/tools/cbrt.sollya b/pl/math/tools/cbrt.sollya deleted file mode 100644 index 1d43dc73d8cd..000000000000 --- a/pl/math/tools/cbrt.sollya +++ /dev/null @@ -1,20 +0,0 @@ -// polynomial for approximating cbrt(x) in double precision -// -// Copyright (c) 2022-2023, Arm Limited. -// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception - -deg = 3; - -a = 0.5; -b = 1; - - -f = x^(1/3); - -poly = fpminimax(f, deg, [|double ...|], [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 0 to deg do round(coeff(poly,i), D, RN); |