Lines Matching +full:double +full:- +full:precision
2 * Double-precision sinh(x) function.
4 * Copyright (c) 2022-2024, Arm Limited.
5 * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
18 /* Approximation for double-precision sinh(x) using expm1.
19 sinh(x) = (exp(x) - exp(-x)) / 2.
21 __v_sinh(0x1.9fb1d49d1d58bp-2) got 0x1.ab34e59d678dcp-2
22 want 0x1.ab34e59d678d9p-2. */
23 double
24 sinh (double x) in sinh()
28 double ax = asdouble (iax); in sinh()
30 double halfsign = asdouble (Half | sign); in sinh()
39 double-precision exp helper. For large x sinh(x) is dominated in sinh()
43 ~= (exp(|x| / 2)) ^ 2 / -2 for x < 0. */ in sinh()
44 double e = exp_inline (ax / 2, 0); in sinh()
48 /* Use expm1f to retain acceptable precision for small numbers. in sinh()
49 Let t = e^(|x|) - 1. */ in sinh()
50 double t = expm1 (ax); in sinh()
52 (t + t / (t + 1)) / -2 for x < 0. */ in sinh()
56 TEST_SIG (S, D, 1, sinh, -10.0, 10.0)
58 TEST_SYM_INTERVAL (sinh, 0, 0x1p-51, 100)
59 TEST_SYM_INTERVAL (sinh, 0x1p-51, 0x1.62e42fefa39fp+9, 100000)