\frac{\left(\left(\left(\left(1 + 0.1049934947 \cdot \left(x \cdot x\right)\right) + 0.0424060604 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0072644182 \cdot \left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0005064034 \cdot \left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0001789971 \cdot \left(\left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)}{\left(\left(\left(\left(\left(1 + 0.7715471019 \cdot \left(x \cdot x\right)\right) + 0.2909738639 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0694555761 \cdot \left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0140005442 \cdot \left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0008327945 \cdot \left(\left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + \left(2 \cdot 0.0001789971\right) \cdot \left(\left(\left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)} \cdot x
\begin{array}{l}
t_0 := \left(x \cdot x\right) \cdot {x}^{8}\\
t_1 := 0.15298196345929074 \cdot \frac{1}{{x}^{5}} + \left(11.259630434457211 \cdot \frac{1}{{x}^{7}} + \left(0.5 \cdot \frac{1}{x} + \sqrt{{x}^{-6} \cdot 0.06321096047386739}\right)\right)\\
\mathbf{if}\;x \leq -209801958.63451815:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 38106859174601.4:\\
\;\;\;\;\mathsf{expm1}\left(\mathsf{log1p}\left(\frac{x \cdot \mathsf{fma}\left(0.0001789971, t_0, \mathsf{fma}\left(0.0005064034, {x}^{8}, \mathsf{fma}\left(0.0072644182, {x}^{6}, \mathsf{fma}\left(0.0424060604, {x}^{4}, \mathsf{fma}\left(0.1049934947, x \cdot x, 1\right)\right)\right)\right)\right)}{\mathsf{fma}\left(0.0003579942, {x}^{12}, \mathsf{fma}\left(t_0, 0.0008327945, \mathsf{fma}\left({x}^{8}, 0.0140005442, \mathsf{fma}\left({x}^{6}, 0.0694555761, \mathsf{fma}\left({x}^{4}, 0.2909738639, \mathsf{fma}\left(x \cdot x, 0.7715471019, 1\right)\right)\right)\right)\right)\right)}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
(FPCore (x)
:precision binary64
(*
(/
(+
(+
(+
(+ (+ 1.0 (* 0.1049934947 (* x x))) (* 0.0424060604 (* (* x x) (* x x))))
(* 0.0072644182 (* (* (* x x) (* x x)) (* x x))))
(* 0.0005064034 (* (* (* (* x x) (* x x)) (* x x)) (* x x))))
(* 0.0001789971 (* (* (* (* (* x x) (* x x)) (* x x)) (* x x)) (* x x))))
(+
(+
(+
(+
(+
(+ 1.0 (* 0.7715471019 (* x x)))
(* 0.2909738639 (* (* x x) (* x x))))
(* 0.0694555761 (* (* (* x x) (* x x)) (* x x))))
(* 0.0140005442 (* (* (* (* x x) (* x x)) (* x x)) (* x x))))
(* 0.0008327945 (* (* (* (* (* x x) (* x x)) (* x x)) (* x x)) (* x x))))
(*
(* 2.0 0.0001789971)
(* (* (* (* (* (* x x) (* x x)) (* x x)) (* x x)) (* x x)) (* x x)))))
x))(FPCore (x)
:precision binary64
(let* ((t_0 (* (* x x) (pow x 8.0)))
(t_1
(+
(* 0.15298196345929074 (/ 1.0 (pow x 5.0)))
(+
(* 11.259630434457211 (/ 1.0 (pow x 7.0)))
(+
(* 0.5 (/ 1.0 x))
(sqrt (* (pow x -6.0) 0.06321096047386739)))))))
(if (<= x -209801958.63451815)
t_1
(if (<= x 38106859174601.4)
(expm1
(log1p
(/
(*
x
(fma
0.0001789971
t_0
(fma
0.0005064034
(pow x 8.0)
(fma
0.0072644182
(pow x 6.0)
(fma 0.0424060604 (pow x 4.0) (fma 0.1049934947 (* x x) 1.0))))))
(fma
0.0003579942
(pow x 12.0)
(fma
t_0
0.0008327945
(fma
(pow x 8.0)
0.0140005442
(fma
(pow x 6.0)
0.0694555761
(fma
(pow x 4.0)
0.2909738639
(fma (* x x) 0.7715471019 1.0)))))))))
t_1))))double code(double x) {
return ((((((1.0 + (0.1049934947 * (x * x))) + (0.0424060604 * ((x * x) * (x * x)))) + (0.0072644182 * (((x * x) * (x * x)) * (x * x)))) + (0.0005064034 * ((((x * x) * (x * x)) * (x * x)) * (x * x)))) + (0.0001789971 * (((((x * x) * (x * x)) * (x * x)) * (x * x)) * (x * x)))) / ((((((1.0 + (0.7715471019 * (x * x))) + (0.2909738639 * ((x * x) * (x * x)))) + (0.0694555761 * (((x * x) * (x * x)) * (x * x)))) + (0.0140005442 * ((((x * x) * (x * x)) * (x * x)) * (x * x)))) + (0.0008327945 * (((((x * x) * (x * x)) * (x * x)) * (x * x)) * (x * x)))) + ((2.0 * 0.0001789971) * ((((((x * x) * (x * x)) * (x * x)) * (x * x)) * (x * x)) * (x * x))))) * x;
}
double code(double x) {
double t_0 = (x * x) * pow(x, 8.0);
double t_1 = (0.15298196345929074 * (1.0 / pow(x, 5.0))) + ((11.259630434457211 * (1.0 / pow(x, 7.0))) + ((0.5 * (1.0 / x)) + sqrt((pow(x, -6.0) * 0.06321096047386739))));
double tmp;
if (x <= -209801958.63451815) {
tmp = t_1;
} else if (x <= 38106859174601.4) {
tmp = expm1(log1p(((x * fma(0.0001789971, t_0, fma(0.0005064034, pow(x, 8.0), fma(0.0072644182, pow(x, 6.0), fma(0.0424060604, pow(x, 4.0), fma(0.1049934947, (x * x), 1.0)))))) / fma(0.0003579942, pow(x, 12.0), fma(t_0, 0.0008327945, fma(pow(x, 8.0), 0.0140005442, fma(pow(x, 6.0), 0.0694555761, fma(pow(x, 4.0), 0.2909738639, fma((x * x), 0.7715471019, 1.0)))))))));
} else {
tmp = t_1;
}
return tmp;
}



Bits error versus x
if x < -209801958.63451815 or 38106859174601.3984 < x Initial program 61.1
Taylor expanded in x around inf 0
Applied egg-rr0
if -209801958.63451815 < x < 38106859174601.3984Initial program 0.0
Applied egg-rr0.0
Applied egg-rr0.0
Final simplification0.0
herbie shell --seed 2022129
(FPCore (x)
:name "Jmat.Real.dawson"
:precision binary64
(* (/ (+ (+ (+ (+ (+ 1.0 (* 0.1049934947 (* x x))) (* 0.0424060604 (* (* x x) (* x x)))) (* 0.0072644182 (* (* (* x x) (* x x)) (* x x)))) (* 0.0005064034 (* (* (* (* x x) (* x x)) (* x x)) (* x x)))) (* 0.0001789971 (* (* (* (* (* x x) (* x x)) (* x x)) (* x x)) (* x x)))) (+ (+ (+ (+ (+ (+ 1.0 (* 0.7715471019 (* x x))) (* 0.2909738639 (* (* x x) (* x x)))) (* 0.0694555761 (* (* (* x x) (* x x)) (* x x)))) (* 0.0140005442 (* (* (* (* x x) (* x x)) (* x x)) (* x x)))) (* 0.0008327945 (* (* (* (* (* x x) (* x x)) (* x x)) (* x x)) (* x x)))) (* (* 2.0 0.0001789971) (* (* (* (* (* (* x x) (* x x)) (* x x)) (* x x)) (* x x)) (* x x))))) x))