\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 := \frac{0.2514179000665374}{{x}^{3}}\\
\mathbf{if}\;x \leq -162747511.81543124:\\
\;\;\;\;t_0 + \left(\frac{11.259630434457213}{{x}^{7}} + \left(\frac{0.5}{x} + \frac{0.15298196345929152}{{x}^{5}}\right)\right)\\
\mathbf{elif}\;x \leq 321.33684999337237:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(0.0001789971, {x}^{10}, \mathsf{fma}\left({x}^{8}, 0.0005064034, \mathsf{fma}\left({x}^{6}, 0.0072644182, \mathsf{fma}\left({x}^{4}, 0.0424060604, \mathsf{fma}\left(x \cdot x, 0.1049934947, 1\right)\right)\right)\right)\right)\right) \cdot \frac{1}{\mathsf{fma}\left(0.0003579942, {x}^{12}, \mathsf{fma}\left({x}^{10}, 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)}\\
\mathbf{else}:\\
\;\;\;\;t_0 + \mathsf{fma}\left(x, \frac{0.15298196345929152}{{x}^{6}} + \frac{11.259630434457213}{{x}^{8}}, \frac{0.5}{x}\right)\\
\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 (/ 0.2514179000665374 (pow x 3.0))))
(if (<= x -162747511.81543124)
(+
t_0
(+
(/ 11.259630434457213 (pow x 7.0))
(+ (/ 0.5 x) (/ 0.15298196345929152 (pow x 5.0)))))
(if (<= x 321.33684999337237)
(*
(*
x
(fma
0.0001789971
(pow x 10.0)
(fma
(pow x 8.0)
0.0005064034
(fma
(pow x 6.0)
0.0072644182
(fma (pow x 4.0) 0.0424060604 (fma (* x x) 0.1049934947 1.0))))))
(/
1.0
(fma
0.0003579942
(pow x 12.0)
(fma
(pow x 10.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_0
(fma
x
(+
(/ 0.15298196345929152 (pow x 6.0))
(/ 11.259630434457213 (pow x 8.0)))
(/ 0.5 x)))))))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 = 0.2514179000665374 / pow(x, 3.0);
double tmp;
if (x <= -162747511.81543124) {
tmp = t_0 + ((11.259630434457213 / pow(x, 7.0)) + ((0.5 / x) + (0.15298196345929152 / pow(x, 5.0))));
} else if (x <= 321.33684999337237) {
tmp = (x * fma(0.0001789971, pow(x, 10.0), fma(pow(x, 8.0), 0.0005064034, fma(pow(x, 6.0), 0.0072644182, fma(pow(x, 4.0), 0.0424060604, fma((x * x), 0.1049934947, 1.0)))))) * (1.0 / fma(0.0003579942, pow(x, 12.0), fma(pow(x, 10.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_0 + fma(x, ((0.15298196345929152 / pow(x, 6.0)) + (11.259630434457213 / pow(x, 8.0))), (0.5 / x));
}
return tmp;
}



Bits error versus x
if x < -162747511.81543124Initial program 60.4
Simplified60.4
Taylor expanded in x around inf 31.6
Simplified0
Taylor expanded in x around inf 0.0
Simplified0
if -162747511.81543124 < x < 321.336849993372368Initial program 0.0
Simplified0.0
rmApplied div-inv_binary640.0
Applied associate-*r*_binary640.0
Simplified0.0
if 321.336849993372368 < x Initial program 59.1
Simplified59.1
Taylor expanded in x around inf 29.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021211
(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))