seams-core v2.14.0
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
minimax_coeff.hpp
Go to the documentation of this file.
1// Copyright (c) d-SEAMS developers
2#ifndef SEAMS_MINIMAX_COEFF_H_
3#define SEAMS_MINIMAX_COEFF_H_
4
5// Generated by discovery/sollya_minimax.py. Do not edit by hand.
6// Each supnorm is the upper endpoint of the Sollya enclosure.
7
8namespace seams {
9namespace minimax {
10
11// 2^{-g} on [0, 1]. Relative supnorm 2.220446e-16.
12// Derivative relative supnorm 7.781709e-14.
13inline constexpr double kExp2Neg[11] = {
14 0x1.ffffffffffffep-1,
15 -0x1.62e42fefa3835p-1,
16 0x1.ebfbdff81bf0dp-3,
17 -0x1.c6b08d6c71a91p-5,
18 0x1.3b2ab6845a794p-7,
19 -0x1.5d87ed7ddfc9fp-10,
20 0x1.43078ed37205fp-13,
21 -0x1.ff9f29bbfca5ap-17,
22 0x1.6112afa2ab0c4p-20,
23 -0x1.a0e31268b138bp-24,
24 0x1.55eee9a3a967ap-28
25};
26
27inline constexpr double kExp2NegDeriv[10] = {
28 -0x1.62e42fefa3835p-1,
29 0x1.ebfbdff81bf0dp-2,
30 -0x1.55046a11553edp-3,
31 0x1.3b2ab6845a794p-5,
32 -0x1.b4e9e8dd57bc7p-8,
33 0x1.e48b563d2b08ep-11,
34 -0x1.bfab44847d10fp-14,
35 0x1.6112afa2ab0c4p-17,
36 -0x1.d4ff74b5c75fcp-21,
37 0x1.ab6aa40c93c18p-25
38};
39
40inline constexpr double kExp2NegSupRelative = 0x1.00000003dfffcp-52;
41inline constexpr double kExp2NegDerivSupRelative = 0x1.5e74ff9e2c313p-44;
42
43// 1/sqrt(m) on [1/2, 1]. Relative supnorm 8.881784e-16.
44inline constexpr double kRsqrtMantissa[19] = {
45 0x1.740b5ad90ff59p+2,
46 -0x1.89f2511be8494p+5,
47 0x1.615fd5d70bd6ap+8,
48 -0x1.d7f48d3255972p+10,
49 0x1.e0f99fd1b228fp+12,
50 -0x1.7fb6efa94b32fp+14,
51 0x1.e851ecbaa4366p+15,
52 -0x1.f5ef051ebbf5cp+16,
53 0x1.a3e8b7ff820c5p+17,
54 -0x1.1ee74781c099cp+18,
55 0x1.401139e754cdfp+18,
56 -0x1.223a1b9d11673p+18,
57 0x1.a8007e460e15ep+17,
58 -0x1.ebabbbd602474p+16,
59 0x1.ba315f315c01fp+15,
60 -0x1.296a701306cabp+14,
61 0x1.19975bd197a7ap+12,
62 -0x1.4ec07376789b9p+9,
63 0x1.77e7484efaea9p+5
64};
65
66inline constexpr double kRsqrtMantissaDeriv[18] = {
67 -0x1.89f2511be8494p+5,
68 0x1.615fd5d70bd6ap+9,
69 -0x1.61f769e5c0316p+12,
70 0x1.e0f99fd1b228fp+14,
71 -0x1.dfa4ab939dffbp+16,
72 0x1.6e3d718bfb28cp+18,
73 -0x1.b731247ae4770p+19,
74 0x1.a3e8b7ff820c5p+20,
75 -0x1.42c43071f8ad0p+21,
76 0x1.901588612a017p+21,
77 -0x1.8f0fe5f7f7edep+21,
78 0x1.3e005eb48a906p+21,
79 -0x1.8f7b889de1d9ep+20,
80 0x1.82eb334b3081bp+19,
81 -0x1.16d3c911d65e0p+18,
82 0x1.19975bd197a7ap+16,
83 -0x1.63ac7aade0255p+13,
84 0x1.a6e43158da47ep+9
85};
86
87inline constexpr double kRsqrtMantissaSupRelative = 0x1.00000003dfffcp-50;
88inline constexpr int kRsqrtMantissaDegree = 18;
89
90// ln(m) on [1/2, 1]. Absolute supnorm 1.028839e-17.
91inline constexpr double kLnMantissa[21] = {
92 -0x1.f907a2098dcd0p+1,
93 0x1.c46b4bf9ba949p+4,
94 -0x1.7aa1ce9aaed54p+7,
95 0x1.0a099294f9d3bp+10,
96 -0x1.2902b8896aceap+12,
97 0x1.0981ed11e61e5p+14,
98 -0x1.8123e1f69e96dp+15,
99 0x1.ca5413c3fd5a9p+16,
100 -0x1.c308758b49a2ap+17,
101 0x1.70dccd5030a57p+18,
102 -0x1.f676a1eb3fbfcp+18,
103 0x1.1cd7937abe4e6p+19,
104 -0x1.0bdc40d538c30p+19,
105 0x1.9f073dfa85ae5p+18,
106 -0x1.06073886c88fap+18,
107 0x1.0946a0d64e9eap+17,
108 -0x1.a44a01fb067dfp+15,
109 0x1.f5e56e7b8265fp+13,
110 -0x1.a8cd44770561bp+11,
111 0x1.c649e92f37b12p+8,
112 -0x1.cd84965812d6fp+4
113};
114
115inline constexpr double kLnMantissaDeriv[20] = {
116 0x1.c46b4bf9ba949p+4,
117 -0x1.7aa1ce9aaed54p+8,
118 0x1.8f0e5bdf76bd8p+11,
119 -0x1.2902b8896aceap+14,
120 0x1.4be268565fa5ep+16,
121 -0x1.20dae978f6f12p+18,
122 0x1.9109914b7daf4p+19,
123 -0x1.c308758b49a2ap+20,
124 0x1.9ef866fa36ba2p+21,
125 -0x1.3a0a253307d7ep+22,
126 0x1.87a86ac8c5abcp+22,
127 -0x1.91ca613fd5248p+22,
128 0x1.5135e25b8c9dap+22,
129 -0x1.ca8ca2ebdefb6p+21,
130 0x1.f1646d91d3697p+20,
131 -0x1.a44a01fb067dfp+19,
132 0x1.0aa1e2b19d462p+18,
133 -0x1.dde6ed05e60dep+15,
134 0x1.0dbbe27409113p+13,
135 -0x1.2072ddf70bc65p+9
136};
137
138inline constexpr double kLnMantissaSupAbsolute = 0x1.7b9312581828ep-57;
139
140} // namespace minimax
141} // namespace seams
142
143#endif
constexpr double kLnMantissaSupAbsolute
constexpr double kRsqrtMantissa[19]
constexpr double kRsqrtMantissaDeriv[18]
constexpr double kLnMantissaDeriv[20]
constexpr double kExp2NegDerivSupRelative
constexpr double kRsqrtMantissaSupRelative
constexpr double kLnMantissa[21]
constexpr double kExp2NegDeriv[10]
constexpr double kExp2Neg[11]
constexpr int kRsqrtMantissaDegree
constexpr double kExp2NegSupRelative