\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.15298196345929152}{{x}^{5}}\\
\mathbf{if}\;x \leq -986.3752732265449:\\
\;\;\;\;\left(\frac{0.5}{x} + \frac{0.2514179000665374}{{x}^{3}}\right) + t_0\\
\mathbf{elif}\;x \leq 252106479.4702064:\\
\;\;\;\;x \cdot \frac{\left(0.0005064034 \cdot {x}^{8} + \left(\left(\left(1 + \left(x \cdot x\right) \cdot 0.1049934947\right) + {x}^{4} \cdot 0.0424060604\right) + {x}^{6} \cdot 0.0072644182\right)\right) + 0.0001789971 \cdot {x}^{10}}{\left(\left(\left(\left(\left(1 + \left(x \cdot x\right) \cdot 0.7715471019\right) + {x}^{4} \cdot 0.2909738639\right) + {x}^{6} \cdot 0.0694555761\right) + {x}^{8} \cdot 0.0140005442\right) + {x}^{10} \cdot 0.0008327945\right) + {x}^{12} \cdot 0.0003579942}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.5}{x} + t_0\\
\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.15298196345929152 (pow x 5.0))))
(if (<= x -986.3752732265449)
(+ (+ (/ 0.5 x) (/ 0.2514179000665374 (pow x 3.0))) t_0)
(if (<= x 252106479.4702064)
(*
x
(/
(+
(+
(* 0.0005064034 (pow x 8.0))
(+
(+ (+ 1.0 (* (* x x) 0.1049934947)) (* (pow x 4.0) 0.0424060604))
(* (pow x 6.0) 0.0072644182)))
(* 0.0001789971 (pow x 10.0)))
(+
(+
(+
(+
(+ (+ 1.0 (* (* x x) 0.7715471019)) (* (pow x 4.0) 0.2909738639))
(* (pow x 6.0) 0.0694555761))
(* (pow x 8.0) 0.0140005442))
(* (pow x 10.0) 0.0008327945))
(* (pow x 12.0) 0.0003579942))))
(+ (/ 0.5 x) t_0)))))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.15298196345929152 / pow(x, 5.0);
double tmp;
if (x <= -986.3752732265449) {
tmp = ((0.5 / x) + (0.2514179000665374 / pow(x, 3.0))) + t_0;
} else if (x <= 252106479.4702064) {
tmp = x * ((((0.0005064034 * pow(x, 8.0)) + (((1.0 + ((x * x) * 0.1049934947)) + (pow(x, 4.0) * 0.0424060604)) + (pow(x, 6.0) * 0.0072644182))) + (0.0001789971 * pow(x, 10.0))) / ((((((1.0 + ((x * x) * 0.7715471019)) + (pow(x, 4.0) * 0.2909738639)) + (pow(x, 6.0) * 0.0694555761)) + (pow(x, 8.0) * 0.0140005442)) + (pow(x, 10.0) * 0.0008327945)) + (pow(x, 12.0) * 0.0003579942)));
} else {
tmp = (0.5 / x) + t_0;
}
return tmp;
}



Bits error versus x
Results
if x < -986.375273226544891Initial program 58.8
Taylor expanded around inf 0.0
Simplified0.0
if -986.375273226544891 < x < 252106479.47020641Initial program 0.0
rmApplied *-un-lft-identity_binary640.0
Applied add-cube-cbrt_binary640.1
Applied times-frac_binary640.1
Simplified0.1
Simplified0.1
rmApplied *-un-lft-identity_binary640.1
Applied associate-*r*_binary640.1
Simplified0.0
if 252106479.47020641 < x Initial program 60.1
Taylor expanded around inf 0.0
Simplified0
Taylor expanded around inf 0
Final simplification0.0
herbie shell --seed 2021196
(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))