
(FPCore (x eps) :precision binary64 (/ (- (* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x)))) (* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x))))) 2.0))
double code(double x, double eps) {
return (((1.0 + (1.0 / eps)) * exp(-((1.0 - eps) * x))) - (((1.0 / eps) - 1.0) * exp(-((1.0 + eps) * x)))) / 2.0;
}
real(8) function code(x, eps)
real(8), intent (in) :: x
real(8), intent (in) :: eps
code = (((1.0d0 + (1.0d0 / eps)) * exp(-((1.0d0 - eps) * x))) - (((1.0d0 / eps) - 1.0d0) * exp(-((1.0d0 + eps) * x)))) / 2.0d0
end function
public static double code(double x, double eps) {
return (((1.0 + (1.0 / eps)) * Math.exp(-((1.0 - eps) * x))) - (((1.0 / eps) - 1.0) * Math.exp(-((1.0 + eps) * x)))) / 2.0;
}
def code(x, eps): return (((1.0 + (1.0 / eps)) * math.exp(-((1.0 - eps) * x))) - (((1.0 / eps) - 1.0) * math.exp(-((1.0 + eps) * x)))) / 2.0
function code(x, eps) return Float64(Float64(Float64(Float64(1.0 + Float64(1.0 / eps)) * exp(Float64(-Float64(Float64(1.0 - eps) * x)))) - Float64(Float64(Float64(1.0 / eps) - 1.0) * exp(Float64(-Float64(Float64(1.0 + eps) * x))))) / 2.0) end
function tmp = code(x, eps) tmp = (((1.0 + (1.0 / eps)) * exp(-((1.0 - eps) * x))) - (((1.0 / eps) - 1.0) * exp(-((1.0 + eps) * x)))) / 2.0; end
code[x_, eps_] := N[(N[(N[(N[(1.0 + N[(1.0 / eps), $MachinePrecision]), $MachinePrecision] * N[Exp[(-N[(N[(1.0 - eps), $MachinePrecision] * x), $MachinePrecision])], $MachinePrecision]), $MachinePrecision] - N[(N[(N[(1.0 / eps), $MachinePrecision] - 1.0), $MachinePrecision] * N[Exp[(-N[(N[(1.0 + eps), $MachinePrecision] * x), $MachinePrecision])], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(1 + \frac{1}{\varepsilon}\right) \cdot e^{-\left(1 - \varepsilon\right) \cdot x} - \left(\frac{1}{\varepsilon} - 1\right) \cdot e^{-\left(1 + \varepsilon\right) \cdot x}}{2}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x eps) :precision binary64 (/ (- (* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x)))) (* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x))))) 2.0))
double code(double x, double eps) {
return (((1.0 + (1.0 / eps)) * exp(-((1.0 - eps) * x))) - (((1.0 / eps) - 1.0) * exp(-((1.0 + eps) * x)))) / 2.0;
}
real(8) function code(x, eps)
real(8), intent (in) :: x
real(8), intent (in) :: eps
code = (((1.0d0 + (1.0d0 / eps)) * exp(-((1.0d0 - eps) * x))) - (((1.0d0 / eps) - 1.0d0) * exp(-((1.0d0 + eps) * x)))) / 2.0d0
end function
public static double code(double x, double eps) {
return (((1.0 + (1.0 / eps)) * Math.exp(-((1.0 - eps) * x))) - (((1.0 / eps) - 1.0) * Math.exp(-((1.0 + eps) * x)))) / 2.0;
}
def code(x, eps): return (((1.0 + (1.0 / eps)) * math.exp(-((1.0 - eps) * x))) - (((1.0 / eps) - 1.0) * math.exp(-((1.0 + eps) * x)))) / 2.0
function code(x, eps) return Float64(Float64(Float64(Float64(1.0 + Float64(1.0 / eps)) * exp(Float64(-Float64(Float64(1.0 - eps) * x)))) - Float64(Float64(Float64(1.0 / eps) - 1.0) * exp(Float64(-Float64(Float64(1.0 + eps) * x))))) / 2.0) end
function tmp = code(x, eps) tmp = (((1.0 + (1.0 / eps)) * exp(-((1.0 - eps) * x))) - (((1.0 / eps) - 1.0) * exp(-((1.0 + eps) * x)))) / 2.0; end
code[x_, eps_] := N[(N[(N[(N[(1.0 + N[(1.0 / eps), $MachinePrecision]), $MachinePrecision] * N[Exp[(-N[(N[(1.0 - eps), $MachinePrecision] * x), $MachinePrecision])], $MachinePrecision]), $MachinePrecision] - N[(N[(N[(1.0 / eps), $MachinePrecision] - 1.0), $MachinePrecision] * N[Exp[(-N[(N[(1.0 + eps), $MachinePrecision] * x), $MachinePrecision])], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(1 + \frac{1}{\varepsilon}\right) \cdot e^{-\left(1 - \varepsilon\right) \cdot x} - \left(\frac{1}{\varepsilon} - 1\right) \cdot e^{-\left(1 + \varepsilon\right) \cdot x}}{2}
\end{array}
eps_m = (fabs.f64 eps) (FPCore (x eps_m) :precision binary64 (if (<= eps_m 2e-134) (/ (/ (fma x 2.0 2.0) (exp x)) 2.0) (/ (+ (exp (* x (+ eps_m -1.0))) (exp (* x (- -1.0 eps_m)))) 2.0)))
eps_m = fabs(eps);
double code(double x, double eps_m) {
double tmp;
if (eps_m <= 2e-134) {
tmp = (fma(x, 2.0, 2.0) / exp(x)) / 2.0;
} else {
tmp = (exp((x * (eps_m + -1.0))) + exp((x * (-1.0 - eps_m)))) / 2.0;
}
return tmp;
}
eps_m = abs(eps) function code(x, eps_m) tmp = 0.0 if (eps_m <= 2e-134) tmp = Float64(Float64(fma(x, 2.0, 2.0) / exp(x)) / 2.0); else tmp = Float64(Float64(exp(Float64(x * Float64(eps_m + -1.0))) + exp(Float64(x * Float64(-1.0 - eps_m)))) / 2.0); end return tmp end
eps_m = N[Abs[eps], $MachinePrecision] code[x_, eps$95$m_] := If[LessEqual[eps$95$m, 2e-134], N[(N[(N[(x * 2.0 + 2.0), $MachinePrecision] / N[Exp[x], $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision], N[(N[(N[Exp[N[(x * N[(eps$95$m + -1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[Exp[N[(x * N[(-1.0 - eps$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
\mathbf{if}\;eps\_m \leq 2 \cdot 10^{-134}:\\
\;\;\;\;\frac{\frac{\mathsf{fma}\left(x, 2, 2\right)}{e^{x}}}{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{e^{x \cdot \left(eps\_m + -1\right)} + e^{x \cdot \left(-1 - eps\_m\right)}}{2}\\
\end{array}
\end{array}
if eps < 2.00000000000000008e-134Initial program 64.4%
Simplified57.5%
Taylor expanded in eps around 0 31.7%
Simplified67.4%
Taylor expanded in eps around 0 67.4%
*-commutative67.4%
+-commutative67.4%
*-commutative67.4%
fma-undefine67.4%
rec-exp67.4%
associate-*r/67.5%
*-rgt-identity67.5%
Simplified67.5%
if 2.00000000000000008e-134 < eps Initial program 85.2%
Simplified77.9%
Taylor expanded in eps around inf 100.0%
Taylor expanded in x around -inf 100.0%
cancel-sign-sub-inv100.0%
exp-sum100.0%
metadata-eval100.0%
*-lft-identity100.0%
exp-sum100.0%
*-commutative100.0%
fma-undefine100.0%
rec-exp100.0%
fma-undefine100.0%
*-rgt-identity100.0%
distribute-lft-in100.0%
metadata-eval100.0%
sub-neg100.0%
Simplified100.0%
Final simplification79.9%
eps_m = (fabs.f64 eps) (FPCore (x eps_m) :precision binary64 (if (<= eps_m 5e-57) (/ (/ (fma x 2.0 2.0) (exp x)) 2.0) (/ (+ (exp (* x (+ eps_m -1.0))) (exp (* eps_m (- x)))) 2.0)))
eps_m = fabs(eps);
double code(double x, double eps_m) {
double tmp;
if (eps_m <= 5e-57) {
tmp = (fma(x, 2.0, 2.0) / exp(x)) / 2.0;
} else {
tmp = (exp((x * (eps_m + -1.0))) + exp((eps_m * -x))) / 2.0;
}
return tmp;
}
eps_m = abs(eps) function code(x, eps_m) tmp = 0.0 if (eps_m <= 5e-57) tmp = Float64(Float64(fma(x, 2.0, 2.0) / exp(x)) / 2.0); else tmp = Float64(Float64(exp(Float64(x * Float64(eps_m + -1.0))) + exp(Float64(eps_m * Float64(-x)))) / 2.0); end return tmp end
eps_m = N[Abs[eps], $MachinePrecision] code[x_, eps$95$m_] := If[LessEqual[eps$95$m, 5e-57], N[(N[(N[(x * 2.0 + 2.0), $MachinePrecision] / N[Exp[x], $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision], N[(N[(N[Exp[N[(x * N[(eps$95$m + -1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[Exp[N[(eps$95$m * (-x)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
\mathbf{if}\;eps\_m \leq 5 \cdot 10^{-57}:\\
\;\;\;\;\frac{\frac{\mathsf{fma}\left(x, 2, 2\right)}{e^{x}}}{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{e^{x \cdot \left(eps\_m + -1\right)} + e^{eps\_m \cdot \left(-x\right)}}{2}\\
\end{array}
\end{array}
if eps < 5.0000000000000002e-57Initial program 61.8%
Simplified55.4%
Taylor expanded in eps around 0 31.4%
Simplified69.7%
Taylor expanded in eps around 0 69.7%
*-commutative69.7%
+-commutative69.7%
*-commutative69.7%
fma-undefine69.7%
rec-exp69.7%
associate-*r/69.8%
*-rgt-identity69.8%
Simplified69.8%
if 5.0000000000000002e-57 < eps Initial program 93.2%
Simplified84.9%
Taylor expanded in eps around inf 100.0%
Taylor expanded in x around -inf 100.0%
cancel-sign-sub-inv100.0%
exp-sum100.0%
metadata-eval100.0%
*-lft-identity100.0%
exp-sum100.0%
*-commutative100.0%
fma-undefine100.0%
rec-exp100.0%
fma-undefine100.0%
*-rgt-identity100.0%
distribute-lft-in100.0%
metadata-eval100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in eps around inf 100.0%
*-commutative100.0%
Simplified100.0%
Final simplification79.9%
eps_m = (fabs.f64 eps) (FPCore (x eps_m) :precision binary64 (if (<= x -8.5e-247) (/ (+ 2.0 (* x (- (* 0.5 (* x (pow (+ eps_m -1.0) 2.0))) 2.0))) 2.0) (/ (+ (exp (* x (+ eps_m -1.0))) (exp (- x))) 2.0)))
eps_m = fabs(eps);
double code(double x, double eps_m) {
double tmp;
if (x <= -8.5e-247) {
tmp = (2.0 + (x * ((0.5 * (x * pow((eps_m + -1.0), 2.0))) - 2.0))) / 2.0;
} else {
tmp = (exp((x * (eps_m + -1.0))) + exp(-x)) / 2.0;
}
return tmp;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
real(8) :: tmp
if (x <= (-8.5d-247)) then
tmp = (2.0d0 + (x * ((0.5d0 * (x * ((eps_m + (-1.0d0)) ** 2.0d0))) - 2.0d0))) / 2.0d0
else
tmp = (exp((x * (eps_m + (-1.0d0)))) + exp(-x)) / 2.0d0
end if
code = tmp
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
double tmp;
if (x <= -8.5e-247) {
tmp = (2.0 + (x * ((0.5 * (x * Math.pow((eps_m + -1.0), 2.0))) - 2.0))) / 2.0;
} else {
tmp = (Math.exp((x * (eps_m + -1.0))) + Math.exp(-x)) / 2.0;
}
return tmp;
}
eps_m = math.fabs(eps) def code(x, eps_m): tmp = 0 if x <= -8.5e-247: tmp = (2.0 + (x * ((0.5 * (x * math.pow((eps_m + -1.0), 2.0))) - 2.0))) / 2.0 else: tmp = (math.exp((x * (eps_m + -1.0))) + math.exp(-x)) / 2.0 return tmp
eps_m = abs(eps) function code(x, eps_m) tmp = 0.0 if (x <= -8.5e-247) tmp = Float64(Float64(2.0 + Float64(x * Float64(Float64(0.5 * Float64(x * (Float64(eps_m + -1.0) ^ 2.0))) - 2.0))) / 2.0); else tmp = Float64(Float64(exp(Float64(x * Float64(eps_m + -1.0))) + exp(Float64(-x))) / 2.0); end return tmp end
eps_m = abs(eps); function tmp_2 = code(x, eps_m) tmp = 0.0; if (x <= -8.5e-247) tmp = (2.0 + (x * ((0.5 * (x * ((eps_m + -1.0) ^ 2.0))) - 2.0))) / 2.0; else tmp = (exp((x * (eps_m + -1.0))) + exp(-x)) / 2.0; end tmp_2 = tmp; end
eps_m = N[Abs[eps], $MachinePrecision] code[x_, eps$95$m_] := If[LessEqual[x, -8.5e-247], N[(N[(2.0 + N[(x * N[(N[(0.5 * N[(x * N[Power[N[(eps$95$m + -1.0), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision], N[(N[(N[Exp[N[(x * N[(eps$95$m + -1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[Exp[(-x)], $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.5 \cdot 10^{-247}:\\
\;\;\;\;\frac{2 + x \cdot \left(0.5 \cdot \left(x \cdot {\left(eps\_m + -1\right)}^{2}\right) - 2\right)}{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{e^{x \cdot \left(eps\_m + -1\right)} + e^{-x}}{2}\\
\end{array}
\end{array}
if x < -8.5000000000000003e-247Initial program 71.3%
Simplified54.5%
Taylor expanded in eps around inf 95.4%
Taylor expanded in x around 0 69.0%
mul-1-neg69.0%
Simplified69.0%
Taylor expanded in x around 0 86.7%
if -8.5000000000000003e-247 < x Initial program 72.9%
Simplified68.3%
Taylor expanded in eps around inf 99.1%
Taylor expanded in eps around 0 83.9%
rec-exp83.9%
Simplified83.9%
Final simplification84.9%
eps_m = (fabs.f64 eps) (FPCore (x eps_m) :precision binary64 (if (<= eps_m 8.2e-14) (/ (/ (fma x 2.0 2.0) (exp x)) 2.0) (/ (+ 2.0 (* x (- (* 0.5 (* x (pow (+ eps_m -1.0) 2.0))) 2.0))) 2.0)))
eps_m = fabs(eps);
double code(double x, double eps_m) {
double tmp;
if (eps_m <= 8.2e-14) {
tmp = (fma(x, 2.0, 2.0) / exp(x)) / 2.0;
} else {
tmp = (2.0 + (x * ((0.5 * (x * pow((eps_m + -1.0), 2.0))) - 2.0))) / 2.0;
}
return tmp;
}
eps_m = abs(eps) function code(x, eps_m) tmp = 0.0 if (eps_m <= 8.2e-14) tmp = Float64(Float64(fma(x, 2.0, 2.0) / exp(x)) / 2.0); else tmp = Float64(Float64(2.0 + Float64(x * Float64(Float64(0.5 * Float64(x * (Float64(eps_m + -1.0) ^ 2.0))) - 2.0))) / 2.0); end return tmp end
eps_m = N[Abs[eps], $MachinePrecision] code[x_, eps$95$m_] := If[LessEqual[eps$95$m, 8.2e-14], N[(N[(N[(x * 2.0 + 2.0), $MachinePrecision] / N[Exp[x], $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision], N[(N[(2.0 + N[(x * N[(N[(0.5 * N[(x * N[Power[N[(eps$95$m + -1.0), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
\mathbf{if}\;eps\_m \leq 8.2 \cdot 10^{-14}:\\
\;\;\;\;\frac{\frac{\mathsf{fma}\left(x, 2, 2\right)}{e^{x}}}{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{2 + x \cdot \left(0.5 \cdot \left(x \cdot {\left(eps\_m + -1\right)}^{2}\right) - 2\right)}{2}\\
\end{array}
\end{array}
if eps < 8.2000000000000004e-14Initial program 60.0%
Simplified53.9%
Taylor expanded in eps around 0 30.8%
Simplified70.9%
Taylor expanded in eps around 0 70.9%
*-commutative70.9%
+-commutative70.9%
*-commutative70.9%
fma-undefine70.9%
rec-exp70.9%
associate-*r/71.0%
*-rgt-identity71.0%
Simplified71.0%
if 8.2000000000000004e-14 < eps Initial program 100.0%
Simplified90.9%
Taylor expanded in eps around inf 100.0%
Taylor expanded in x around 0 68.1%
mul-1-neg68.1%
Simplified68.1%
Taylor expanded in x around 0 83.1%
Final simplification74.7%
eps_m = (fabs.f64 eps) (FPCore (x eps_m) :precision binary64 (if (or (<= eps_m 3e+14) (and (not (<= eps_m 2.3e+222)) (<= eps_m 2.8e+235))) (/ (* 2.0 (exp (- x))) 2.0) (/ (+ 1.0 (exp (* x (+ eps_m -1.0)))) 2.0)))
eps_m = fabs(eps);
double code(double x, double eps_m) {
double tmp;
if ((eps_m <= 3e+14) || (!(eps_m <= 2.3e+222) && (eps_m <= 2.8e+235))) {
tmp = (2.0 * exp(-x)) / 2.0;
} else {
tmp = (1.0 + exp((x * (eps_m + -1.0)))) / 2.0;
}
return tmp;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
real(8) :: tmp
if ((eps_m <= 3d+14) .or. (.not. (eps_m <= 2.3d+222)) .and. (eps_m <= 2.8d+235)) then
tmp = (2.0d0 * exp(-x)) / 2.0d0
else
tmp = (1.0d0 + exp((x * (eps_m + (-1.0d0))))) / 2.0d0
end if
code = tmp
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
double tmp;
if ((eps_m <= 3e+14) || (!(eps_m <= 2.3e+222) && (eps_m <= 2.8e+235))) {
tmp = (2.0 * Math.exp(-x)) / 2.0;
} else {
tmp = (1.0 + Math.exp((x * (eps_m + -1.0)))) / 2.0;
}
return tmp;
}
eps_m = math.fabs(eps) def code(x, eps_m): tmp = 0 if (eps_m <= 3e+14) or (not (eps_m <= 2.3e+222) and (eps_m <= 2.8e+235)): tmp = (2.0 * math.exp(-x)) / 2.0 else: tmp = (1.0 + math.exp((x * (eps_m + -1.0)))) / 2.0 return tmp
eps_m = abs(eps) function code(x, eps_m) tmp = 0.0 if ((eps_m <= 3e+14) || (!(eps_m <= 2.3e+222) && (eps_m <= 2.8e+235))) tmp = Float64(Float64(2.0 * exp(Float64(-x))) / 2.0); else tmp = Float64(Float64(1.0 + exp(Float64(x * Float64(eps_m + -1.0)))) / 2.0); end return tmp end
eps_m = abs(eps); function tmp_2 = code(x, eps_m) tmp = 0.0; if ((eps_m <= 3e+14) || (~((eps_m <= 2.3e+222)) && (eps_m <= 2.8e+235))) tmp = (2.0 * exp(-x)) / 2.0; else tmp = (1.0 + exp((x * (eps_m + -1.0)))) / 2.0; end tmp_2 = tmp; end
eps_m = N[Abs[eps], $MachinePrecision] code[x_, eps$95$m_] := If[Or[LessEqual[eps$95$m, 3e+14], And[N[Not[LessEqual[eps$95$m, 2.3e+222]], $MachinePrecision], LessEqual[eps$95$m, 2.8e+235]]], N[(N[(2.0 * N[Exp[(-x)], $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision], N[(N[(1.0 + N[Exp[N[(x * N[(eps$95$m + -1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
\mathbf{if}\;eps\_m \leq 3 \cdot 10^{+14} \lor \neg \left(eps\_m \leq 2.3 \cdot 10^{+222}\right) \land eps\_m \leq 2.8 \cdot 10^{+235}:\\
\;\;\;\;\frac{2 \cdot e^{-x}}{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 + e^{x \cdot \left(eps\_m + -1\right)}}{2}\\
\end{array}
\end{array}
if eps < 3e14 or 2.30000000000000011e222 < eps < 2.80000000000000026e235Initial program 62.3%
Simplified54.1%
Taylor expanded in eps around inf 97.0%
Taylor expanded in eps around 0 82.4%
rec-exp82.4%
Simplified82.4%
Taylor expanded in eps around 0 75.0%
neg-mul-175.0%
count-275.0%
neg-mul-175.0%
Simplified75.0%
if 3e14 < eps < 2.30000000000000011e222 or 2.80000000000000026e235 < eps Initial program 100.0%
Simplified89.7%
Taylor expanded in eps around inf 100.0%
Taylor expanded in x around 0 71.1%
Final simplification74.0%
eps_m = (fabs.f64 eps)
(FPCore (x eps_m)
:precision binary64
(let* ((t_0 (exp (- x))))
(if (<= eps_m 9500000000000.0)
(/ (* t_0 (+ 2.0 (* x 2.0))) 2.0)
(if (or (<= eps_m 2.3e+222) (not (<= eps_m 2.8e+235)))
(/ (+ 1.0 (exp (* x (+ eps_m -1.0)))) 2.0)
(/ (* 2.0 t_0) 2.0)))))eps_m = fabs(eps);
double code(double x, double eps_m) {
double t_0 = exp(-x);
double tmp;
if (eps_m <= 9500000000000.0) {
tmp = (t_0 * (2.0 + (x * 2.0))) / 2.0;
} else if ((eps_m <= 2.3e+222) || !(eps_m <= 2.8e+235)) {
tmp = (1.0 + exp((x * (eps_m + -1.0)))) / 2.0;
} else {
tmp = (2.0 * t_0) / 2.0;
}
return tmp;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
real(8) :: t_0
real(8) :: tmp
t_0 = exp(-x)
if (eps_m <= 9500000000000.0d0) then
tmp = (t_0 * (2.0d0 + (x * 2.0d0))) / 2.0d0
else if ((eps_m <= 2.3d+222) .or. (.not. (eps_m <= 2.8d+235))) then
tmp = (1.0d0 + exp((x * (eps_m + (-1.0d0))))) / 2.0d0
else
tmp = (2.0d0 * t_0) / 2.0d0
end if
code = tmp
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
double t_0 = Math.exp(-x);
double tmp;
if (eps_m <= 9500000000000.0) {
tmp = (t_0 * (2.0 + (x * 2.0))) / 2.0;
} else if ((eps_m <= 2.3e+222) || !(eps_m <= 2.8e+235)) {
tmp = (1.0 + Math.exp((x * (eps_m + -1.0)))) / 2.0;
} else {
tmp = (2.0 * t_0) / 2.0;
}
return tmp;
}
eps_m = math.fabs(eps) def code(x, eps_m): t_0 = math.exp(-x) tmp = 0 if eps_m <= 9500000000000.0: tmp = (t_0 * (2.0 + (x * 2.0))) / 2.0 elif (eps_m <= 2.3e+222) or not (eps_m <= 2.8e+235): tmp = (1.0 + math.exp((x * (eps_m + -1.0)))) / 2.0 else: tmp = (2.0 * t_0) / 2.0 return tmp
eps_m = abs(eps) function code(x, eps_m) t_0 = exp(Float64(-x)) tmp = 0.0 if (eps_m <= 9500000000000.0) tmp = Float64(Float64(t_0 * Float64(2.0 + Float64(x * 2.0))) / 2.0); elseif ((eps_m <= 2.3e+222) || !(eps_m <= 2.8e+235)) tmp = Float64(Float64(1.0 + exp(Float64(x * Float64(eps_m + -1.0)))) / 2.0); else tmp = Float64(Float64(2.0 * t_0) / 2.0); end return tmp end
eps_m = abs(eps); function tmp_2 = code(x, eps_m) t_0 = exp(-x); tmp = 0.0; if (eps_m <= 9500000000000.0) tmp = (t_0 * (2.0 + (x * 2.0))) / 2.0; elseif ((eps_m <= 2.3e+222) || ~((eps_m <= 2.8e+235))) tmp = (1.0 + exp((x * (eps_m + -1.0)))) / 2.0; else tmp = (2.0 * t_0) / 2.0; end tmp_2 = tmp; end
eps_m = N[Abs[eps], $MachinePrecision]
code[x_, eps$95$m_] := Block[{t$95$0 = N[Exp[(-x)], $MachinePrecision]}, If[LessEqual[eps$95$m, 9500000000000.0], N[(N[(t$95$0 * N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision], If[Or[LessEqual[eps$95$m, 2.3e+222], N[Not[LessEqual[eps$95$m, 2.8e+235]], $MachinePrecision]], N[(N[(1.0 + N[Exp[N[(x * N[(eps$95$m + -1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision], N[(N[(2.0 * t$95$0), $MachinePrecision] / 2.0), $MachinePrecision]]]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
t_0 := e^{-x}\\
\mathbf{if}\;eps\_m \leq 9500000000000:\\
\;\;\;\;\frac{t\_0 \cdot \left(2 + x \cdot 2\right)}{2}\\
\mathbf{elif}\;eps\_m \leq 2.3 \cdot 10^{+222} \lor \neg \left(eps\_m \leq 2.8 \cdot 10^{+235}\right):\\
\;\;\;\;\frac{1 + e^{x \cdot \left(eps\_m + -1\right)}}{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{2 \cdot t\_0}{2}\\
\end{array}
\end{array}
if eps < 9.5e12Initial program 61.1%
Simplified54.6%
Taylor expanded in eps around 0 31.6%
Simplified71.7%
Taylor expanded in eps around 0 71.7%
if 9.5e12 < eps < 2.30000000000000011e222 or 2.80000000000000026e235 < eps Initial program 100.0%
Simplified89.7%
Taylor expanded in eps around inf 100.0%
Taylor expanded in x around 0 71.1%
if 2.30000000000000011e222 < eps < 2.80000000000000026e235Initial program 100.0%
Simplified97.9%
Taylor expanded in eps around inf 100.0%
Taylor expanded in eps around 0 49.2%
rec-exp49.2%
Simplified49.2%
Taylor expanded in eps around 0 51.6%
neg-mul-151.6%
count-251.6%
neg-mul-151.6%
Simplified51.6%
Final simplification71.1%
eps_m = (fabs.f64 eps) (FPCore (x eps_m) :precision binary64 (if (<= eps_m 8.2e-14) (/ (* (exp (- x)) (+ 2.0 (* x 2.0))) 2.0) (/ (+ 2.0 (* x (- (* 0.5 (* x (pow (+ eps_m -1.0) 2.0))) 2.0))) 2.0)))
eps_m = fabs(eps);
double code(double x, double eps_m) {
double tmp;
if (eps_m <= 8.2e-14) {
tmp = (exp(-x) * (2.0 + (x * 2.0))) / 2.0;
} else {
tmp = (2.0 + (x * ((0.5 * (x * pow((eps_m + -1.0), 2.0))) - 2.0))) / 2.0;
}
return tmp;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
real(8) :: tmp
if (eps_m <= 8.2d-14) then
tmp = (exp(-x) * (2.0d0 + (x * 2.0d0))) / 2.0d0
else
tmp = (2.0d0 + (x * ((0.5d0 * (x * ((eps_m + (-1.0d0)) ** 2.0d0))) - 2.0d0))) / 2.0d0
end if
code = tmp
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
double tmp;
if (eps_m <= 8.2e-14) {
tmp = (Math.exp(-x) * (2.0 + (x * 2.0))) / 2.0;
} else {
tmp = (2.0 + (x * ((0.5 * (x * Math.pow((eps_m + -1.0), 2.0))) - 2.0))) / 2.0;
}
return tmp;
}
eps_m = math.fabs(eps) def code(x, eps_m): tmp = 0 if eps_m <= 8.2e-14: tmp = (math.exp(-x) * (2.0 + (x * 2.0))) / 2.0 else: tmp = (2.0 + (x * ((0.5 * (x * math.pow((eps_m + -1.0), 2.0))) - 2.0))) / 2.0 return tmp
eps_m = abs(eps) function code(x, eps_m) tmp = 0.0 if (eps_m <= 8.2e-14) tmp = Float64(Float64(exp(Float64(-x)) * Float64(2.0 + Float64(x * 2.0))) / 2.0); else tmp = Float64(Float64(2.0 + Float64(x * Float64(Float64(0.5 * Float64(x * (Float64(eps_m + -1.0) ^ 2.0))) - 2.0))) / 2.0); end return tmp end
eps_m = abs(eps); function tmp_2 = code(x, eps_m) tmp = 0.0; if (eps_m <= 8.2e-14) tmp = (exp(-x) * (2.0 + (x * 2.0))) / 2.0; else tmp = (2.0 + (x * ((0.5 * (x * ((eps_m + -1.0) ^ 2.0))) - 2.0))) / 2.0; end tmp_2 = tmp; end
eps_m = N[Abs[eps], $MachinePrecision] code[x_, eps$95$m_] := If[LessEqual[eps$95$m, 8.2e-14], N[(N[(N[Exp[(-x)], $MachinePrecision] * N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision], N[(N[(2.0 + N[(x * N[(N[(0.5 * N[(x * N[Power[N[(eps$95$m + -1.0), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
\mathbf{if}\;eps\_m \leq 8.2 \cdot 10^{-14}:\\
\;\;\;\;\frac{e^{-x} \cdot \left(2 + x \cdot 2\right)}{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{2 + x \cdot \left(0.5 \cdot \left(x \cdot {\left(eps\_m + -1\right)}^{2}\right) - 2\right)}{2}\\
\end{array}
\end{array}
if eps < 8.2000000000000004e-14Initial program 60.0%
Simplified53.9%
Taylor expanded in eps around 0 30.8%
Simplified70.9%
Taylor expanded in eps around 0 70.9%
if 8.2000000000000004e-14 < eps Initial program 100.0%
Simplified90.9%
Taylor expanded in eps around inf 100.0%
Taylor expanded in x around 0 68.1%
mul-1-neg68.1%
Simplified68.1%
Taylor expanded in x around 0 83.1%
Final simplification74.7%
eps_m = (fabs.f64 eps) (FPCore (x eps_m) :precision binary64 (if (<= eps_m 8.2e-14) (/ (/ (* eps_m (* (exp (- x)) (+ 2.0 (* x 2.0)))) eps_m) 2.0) (/ (+ 2.0 (* x (- (* 0.5 (* x (pow (+ eps_m -1.0) 2.0))) 2.0))) 2.0)))
eps_m = fabs(eps);
double code(double x, double eps_m) {
double tmp;
if (eps_m <= 8.2e-14) {
tmp = ((eps_m * (exp(-x) * (2.0 + (x * 2.0)))) / eps_m) / 2.0;
} else {
tmp = (2.0 + (x * ((0.5 * (x * pow((eps_m + -1.0), 2.0))) - 2.0))) / 2.0;
}
return tmp;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
real(8) :: tmp
if (eps_m <= 8.2d-14) then
tmp = ((eps_m * (exp(-x) * (2.0d0 + (x * 2.0d0)))) / eps_m) / 2.0d0
else
tmp = (2.0d0 + (x * ((0.5d0 * (x * ((eps_m + (-1.0d0)) ** 2.0d0))) - 2.0d0))) / 2.0d0
end if
code = tmp
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
double tmp;
if (eps_m <= 8.2e-14) {
tmp = ((eps_m * (Math.exp(-x) * (2.0 + (x * 2.0)))) / eps_m) / 2.0;
} else {
tmp = (2.0 + (x * ((0.5 * (x * Math.pow((eps_m + -1.0), 2.0))) - 2.0))) / 2.0;
}
return tmp;
}
eps_m = math.fabs(eps) def code(x, eps_m): tmp = 0 if eps_m <= 8.2e-14: tmp = ((eps_m * (math.exp(-x) * (2.0 + (x * 2.0)))) / eps_m) / 2.0 else: tmp = (2.0 + (x * ((0.5 * (x * math.pow((eps_m + -1.0), 2.0))) - 2.0))) / 2.0 return tmp
eps_m = abs(eps) function code(x, eps_m) tmp = 0.0 if (eps_m <= 8.2e-14) tmp = Float64(Float64(Float64(eps_m * Float64(exp(Float64(-x)) * Float64(2.0 + Float64(x * 2.0)))) / eps_m) / 2.0); else tmp = Float64(Float64(2.0 + Float64(x * Float64(Float64(0.5 * Float64(x * (Float64(eps_m + -1.0) ^ 2.0))) - 2.0))) / 2.0); end return tmp end
eps_m = abs(eps); function tmp_2 = code(x, eps_m) tmp = 0.0; if (eps_m <= 8.2e-14) tmp = ((eps_m * (exp(-x) * (2.0 + (x * 2.0)))) / eps_m) / 2.0; else tmp = (2.0 + (x * ((0.5 * (x * ((eps_m + -1.0) ^ 2.0))) - 2.0))) / 2.0; end tmp_2 = tmp; end
eps_m = N[Abs[eps], $MachinePrecision] code[x_, eps$95$m_] := If[LessEqual[eps$95$m, 8.2e-14], N[(N[(N[(eps$95$m * N[(N[Exp[(-x)], $MachinePrecision] * N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / eps$95$m), $MachinePrecision] / 2.0), $MachinePrecision], N[(N[(2.0 + N[(x * N[(N[(0.5 * N[(x * N[Power[N[(eps$95$m + -1.0), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
\mathbf{if}\;eps\_m \leq 8.2 \cdot 10^{-14}:\\
\;\;\;\;\frac{\frac{eps\_m \cdot \left(e^{-x} \cdot \left(2 + x \cdot 2\right)\right)}{eps\_m}}{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{2 + x \cdot \left(0.5 \cdot \left(x \cdot {\left(eps\_m + -1\right)}^{2}\right) - 2\right)}{2}\\
\end{array}
\end{array}
if eps < 8.2000000000000004e-14Initial program 60.0%
Simplified53.9%
Taylor expanded in eps around 0 30.8%
Simplified70.9%
if 8.2000000000000004e-14 < eps Initial program 100.0%
Simplified90.9%
Taylor expanded in eps around inf 100.0%
Taylor expanded in x around 0 68.1%
mul-1-neg68.1%
Simplified68.1%
Taylor expanded in x around 0 83.1%
Final simplification74.7%
eps_m = (fabs.f64 eps)
(FPCore (x eps_m)
:precision binary64
(if (<= eps_m 22000000000.0)
(/ (* 2.0 (exp (- x))) 2.0)
(if (<= eps_m 6.2e+214)
(/ (* (exp x) (+ x (+ x 2.0))) 2.0)
(/
(* x (+ 2.0 (* x (+ 2.0 (* x (+ 1.0 (* x 0.3333333333333333)))))))
2.0))))eps_m = fabs(eps);
double code(double x, double eps_m) {
double tmp;
if (eps_m <= 22000000000.0) {
tmp = (2.0 * exp(-x)) / 2.0;
} else if (eps_m <= 6.2e+214) {
tmp = (exp(x) * (x + (x + 2.0))) / 2.0;
} else {
tmp = (x * (2.0 + (x * (2.0 + (x * (1.0 + (x * 0.3333333333333333))))))) / 2.0;
}
return tmp;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
real(8) :: tmp
if (eps_m <= 22000000000.0d0) then
tmp = (2.0d0 * exp(-x)) / 2.0d0
else if (eps_m <= 6.2d+214) then
tmp = (exp(x) * (x + (x + 2.0d0))) / 2.0d0
else
tmp = (x * (2.0d0 + (x * (2.0d0 + (x * (1.0d0 + (x * 0.3333333333333333d0))))))) / 2.0d0
end if
code = tmp
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
double tmp;
if (eps_m <= 22000000000.0) {
tmp = (2.0 * Math.exp(-x)) / 2.0;
} else if (eps_m <= 6.2e+214) {
tmp = (Math.exp(x) * (x + (x + 2.0))) / 2.0;
} else {
tmp = (x * (2.0 + (x * (2.0 + (x * (1.0 + (x * 0.3333333333333333))))))) / 2.0;
}
return tmp;
}
eps_m = math.fabs(eps) def code(x, eps_m): tmp = 0 if eps_m <= 22000000000.0: tmp = (2.0 * math.exp(-x)) / 2.0 elif eps_m <= 6.2e+214: tmp = (math.exp(x) * (x + (x + 2.0))) / 2.0 else: tmp = (x * (2.0 + (x * (2.0 + (x * (1.0 + (x * 0.3333333333333333))))))) / 2.0 return tmp
eps_m = abs(eps) function code(x, eps_m) tmp = 0.0 if (eps_m <= 22000000000.0) tmp = Float64(Float64(2.0 * exp(Float64(-x))) / 2.0); elseif (eps_m <= 6.2e+214) tmp = Float64(Float64(exp(x) * Float64(x + Float64(x + 2.0))) / 2.0); else tmp = Float64(Float64(x * Float64(2.0 + Float64(x * Float64(2.0 + Float64(x * Float64(1.0 + Float64(x * 0.3333333333333333))))))) / 2.0); end return tmp end
eps_m = abs(eps); function tmp_2 = code(x, eps_m) tmp = 0.0; if (eps_m <= 22000000000.0) tmp = (2.0 * exp(-x)) / 2.0; elseif (eps_m <= 6.2e+214) tmp = (exp(x) * (x + (x + 2.0))) / 2.0; else tmp = (x * (2.0 + (x * (2.0 + (x * (1.0 + (x * 0.3333333333333333))))))) / 2.0; end tmp_2 = tmp; end
eps_m = N[Abs[eps], $MachinePrecision] code[x_, eps$95$m_] := If[LessEqual[eps$95$m, 22000000000.0], N[(N[(2.0 * N[Exp[(-x)], $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision], If[LessEqual[eps$95$m, 6.2e+214], N[(N[(N[Exp[x], $MachinePrecision] * N[(x + N[(x + 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision], N[(N[(x * N[(2.0 + N[(x * N[(2.0 + N[(x * N[(1.0 + N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
\mathbf{if}\;eps\_m \leq 22000000000:\\
\;\;\;\;\frac{2 \cdot e^{-x}}{2}\\
\mathbf{elif}\;eps\_m \leq 6.2 \cdot 10^{+214}:\\
\;\;\;\;\frac{e^{x} \cdot \left(x + \left(x + 2\right)\right)}{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \left(2 + x \cdot \left(2 + x \cdot \left(1 + x \cdot 0.3333333333333333\right)\right)\right)}{2}\\
\end{array}
\end{array}
if eps < 2.2e10Initial program 60.9%
Simplified52.4%
Taylor expanded in eps around inf 96.9%
Taylor expanded in eps around 0 83.4%
rec-exp83.4%
Simplified83.4%
Taylor expanded in eps around 0 75.6%
neg-mul-175.6%
count-275.6%
neg-mul-175.6%
Simplified75.6%
if 2.2e10 < eps < 6.19999999999999957e214Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around 0 34.7%
associate--r+34.7%
associate-*r*34.7%
mul-1-neg34.7%
cancel-sign-sub34.7%
distribute-rgt1-in34.7%
distribute-rgt-out--34.7%
mul-1-neg34.7%
mul-1-neg34.7%
Simplified34.7%
*-commutative34.7%
distribute-lft-out34.7%
add-sqr-sqrt17.0%
sqrt-unprod68.2%
sqr-neg68.2%
sqrt-unprod51.1%
add-sqr-sqrt68.5%
associate--l+68.5%
metadata-eval68.5%
Applied egg-rr68.5%
if 6.19999999999999957e214 < eps Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around 0 6.3%
associate--r+6.3%
associate-*r*6.3%
mul-1-neg6.3%
cancel-sign-sub6.3%
distribute-rgt1-in6.3%
distribute-rgt-out--6.3%
mul-1-neg6.3%
mul-1-neg6.3%
Simplified6.3%
*-commutative6.3%
distribute-lft-out6.3%
add-sqr-sqrt5.3%
sqrt-unprod28.7%
sqr-neg28.7%
sqrt-unprod23.4%
add-sqr-sqrt29.1%
associate--l+29.1%
metadata-eval29.1%
Applied egg-rr29.1%
Taylor expanded in x around inf 24.0%
*-commutative24.0%
*-commutative24.0%
associate-*r*24.0%
Simplified24.0%
Taylor expanded in x around 0 42.1%
*-commutative42.1%
Simplified42.1%
Final simplification71.3%
eps_m = (fabs.f64 eps) (FPCore (x eps_m) :precision binary64 (if (<= x 2.2e+77) (/ (* 2.0 (exp (- x))) 2.0) (/ (* x (+ 2.0 (* x (+ 2.0 (* x (+ 1.0 (* x 0.3333333333333333))))))) 2.0)))
eps_m = fabs(eps);
double code(double x, double eps_m) {
double tmp;
if (x <= 2.2e+77) {
tmp = (2.0 * exp(-x)) / 2.0;
} else {
tmp = (x * (2.0 + (x * (2.0 + (x * (1.0 + (x * 0.3333333333333333))))))) / 2.0;
}
return tmp;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
real(8) :: tmp
if (x <= 2.2d+77) then
tmp = (2.0d0 * exp(-x)) / 2.0d0
else
tmp = (x * (2.0d0 + (x * (2.0d0 + (x * (1.0d0 + (x * 0.3333333333333333d0))))))) / 2.0d0
end if
code = tmp
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
double tmp;
if (x <= 2.2e+77) {
tmp = (2.0 * Math.exp(-x)) / 2.0;
} else {
tmp = (x * (2.0 + (x * (2.0 + (x * (1.0 + (x * 0.3333333333333333))))))) / 2.0;
}
return tmp;
}
eps_m = math.fabs(eps) def code(x, eps_m): tmp = 0 if x <= 2.2e+77: tmp = (2.0 * math.exp(-x)) / 2.0 else: tmp = (x * (2.0 + (x * (2.0 + (x * (1.0 + (x * 0.3333333333333333))))))) / 2.0 return tmp
eps_m = abs(eps) function code(x, eps_m) tmp = 0.0 if (x <= 2.2e+77) tmp = Float64(Float64(2.0 * exp(Float64(-x))) / 2.0); else tmp = Float64(Float64(x * Float64(2.0 + Float64(x * Float64(2.0 + Float64(x * Float64(1.0 + Float64(x * 0.3333333333333333))))))) / 2.0); end return tmp end
eps_m = abs(eps); function tmp_2 = code(x, eps_m) tmp = 0.0; if (x <= 2.2e+77) tmp = (2.0 * exp(-x)) / 2.0; else tmp = (x * (2.0 + (x * (2.0 + (x * (1.0 + (x * 0.3333333333333333))))))) / 2.0; end tmp_2 = tmp; end
eps_m = N[Abs[eps], $MachinePrecision] code[x_, eps$95$m_] := If[LessEqual[x, 2.2e+77], N[(N[(2.0 * N[Exp[(-x)], $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision], N[(N[(x * N[(2.0 + N[(x * N[(2.0 + N[(x * N[(1.0 + N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.2 \cdot 10^{+77}:\\
\;\;\;\;\frac{2 \cdot e^{-x}}{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \left(2 + x \cdot \left(2 + x \cdot \left(1 + x \cdot 0.3333333333333333\right)\right)\right)}{2}\\
\end{array}
\end{array}
if x < 2.2e77Initial program 65.1%
Simplified54.0%
Taylor expanded in eps around inf 97.2%
Taylor expanded in eps around 0 88.0%
rec-exp88.0%
Simplified88.0%
Taylor expanded in eps around 0 76.0%
neg-mul-176.0%
count-276.0%
neg-mul-176.0%
Simplified76.0%
if 2.2e77 < x Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around 0 40.6%
associate--r+40.6%
associate-*r*40.6%
mul-1-neg40.6%
cancel-sign-sub40.6%
distribute-rgt1-in40.6%
distribute-rgt-out--40.6%
mul-1-neg40.6%
mul-1-neg40.6%
Simplified40.6%
*-commutative40.6%
distribute-lft-out40.6%
add-sqr-sqrt0.0%
sqrt-unprod61.0%
sqr-neg61.0%
sqrt-unprod61.0%
add-sqr-sqrt61.0%
associate--l+61.0%
metadata-eval61.0%
Applied egg-rr61.0%
Taylor expanded in x around inf 61.0%
*-commutative61.0%
*-commutative61.0%
associate-*r*61.0%
Simplified61.0%
Taylor expanded in x around 0 61.0%
*-commutative61.0%
Simplified61.0%
Final simplification72.9%
eps_m = (fabs.f64 eps)
(FPCore (x eps_m)
:precision binary64
(let* ((t_0 (/ (* x (+ 2.0 (* x 2.0))) 2.0)))
(if (<= x -550.0)
t_0
(if (<= x 480.0)
1.0
(if (<= x 9.5e+77)
0.0
(if (<= x 1.5e+131)
(/ (* x (+ 2.0 (* x (+ x 2.0)))) 2.0)
(if (<= x 1.6e+207) 0.0 t_0)))))))eps_m = fabs(eps);
double code(double x, double eps_m) {
double t_0 = (x * (2.0 + (x * 2.0))) / 2.0;
double tmp;
if (x <= -550.0) {
tmp = t_0;
} else if (x <= 480.0) {
tmp = 1.0;
} else if (x <= 9.5e+77) {
tmp = 0.0;
} else if (x <= 1.5e+131) {
tmp = (x * (2.0 + (x * (x + 2.0)))) / 2.0;
} else if (x <= 1.6e+207) {
tmp = 0.0;
} else {
tmp = t_0;
}
return tmp;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
real(8) :: t_0
real(8) :: tmp
t_0 = (x * (2.0d0 + (x * 2.0d0))) / 2.0d0
if (x <= (-550.0d0)) then
tmp = t_0
else if (x <= 480.0d0) then
tmp = 1.0d0
else if (x <= 9.5d+77) then
tmp = 0.0d0
else if (x <= 1.5d+131) then
tmp = (x * (2.0d0 + (x * (x + 2.0d0)))) / 2.0d0
else if (x <= 1.6d+207) then
tmp = 0.0d0
else
tmp = t_0
end if
code = tmp
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
double t_0 = (x * (2.0 + (x * 2.0))) / 2.0;
double tmp;
if (x <= -550.0) {
tmp = t_0;
} else if (x <= 480.0) {
tmp = 1.0;
} else if (x <= 9.5e+77) {
tmp = 0.0;
} else if (x <= 1.5e+131) {
tmp = (x * (2.0 + (x * (x + 2.0)))) / 2.0;
} else if (x <= 1.6e+207) {
tmp = 0.0;
} else {
tmp = t_0;
}
return tmp;
}
eps_m = math.fabs(eps) def code(x, eps_m): t_0 = (x * (2.0 + (x * 2.0))) / 2.0 tmp = 0 if x <= -550.0: tmp = t_0 elif x <= 480.0: tmp = 1.0 elif x <= 9.5e+77: tmp = 0.0 elif x <= 1.5e+131: tmp = (x * (2.0 + (x * (x + 2.0)))) / 2.0 elif x <= 1.6e+207: tmp = 0.0 else: tmp = t_0 return tmp
eps_m = abs(eps) function code(x, eps_m) t_0 = Float64(Float64(x * Float64(2.0 + Float64(x * 2.0))) / 2.0) tmp = 0.0 if (x <= -550.0) tmp = t_0; elseif (x <= 480.0) tmp = 1.0; elseif (x <= 9.5e+77) tmp = 0.0; elseif (x <= 1.5e+131) tmp = Float64(Float64(x * Float64(2.0 + Float64(x * Float64(x + 2.0)))) / 2.0); elseif (x <= 1.6e+207) tmp = 0.0; else tmp = t_0; end return tmp end
eps_m = abs(eps); function tmp_2 = code(x, eps_m) t_0 = (x * (2.0 + (x * 2.0))) / 2.0; tmp = 0.0; if (x <= -550.0) tmp = t_0; elseif (x <= 480.0) tmp = 1.0; elseif (x <= 9.5e+77) tmp = 0.0; elseif (x <= 1.5e+131) tmp = (x * (2.0 + (x * (x + 2.0)))) / 2.0; elseif (x <= 1.6e+207) tmp = 0.0; else tmp = t_0; end tmp_2 = tmp; end
eps_m = N[Abs[eps], $MachinePrecision]
code[x_, eps$95$m_] := Block[{t$95$0 = N[(N[(x * N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]}, If[LessEqual[x, -550.0], t$95$0, If[LessEqual[x, 480.0], 1.0, If[LessEqual[x, 9.5e+77], 0.0, If[LessEqual[x, 1.5e+131], N[(N[(x * N[(2.0 + N[(x * N[(x + 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision], If[LessEqual[x, 1.6e+207], 0.0, t$95$0]]]]]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
t_0 := \frac{x \cdot \left(2 + x \cdot 2\right)}{2}\\
\mathbf{if}\;x \leq -550:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 480:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{+77}:\\
\;\;\;\;0\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{+131}:\\
\;\;\;\;\frac{x \cdot \left(2 + x \cdot \left(x + 2\right)\right)}{2}\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{+207}:\\
\;\;\;\;0\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -550 or 1.6000000000000001e207 < x Initial program 98.2%
Simplified98.2%
Taylor expanded in eps around 0 13.2%
associate--r+13.2%
associate-*r*13.2%
mul-1-neg13.2%
cancel-sign-sub13.2%
distribute-rgt1-in13.2%
distribute-rgt-out--15.0%
mul-1-neg15.0%
mul-1-neg15.0%
Simplified15.0%
*-commutative15.0%
distribute-lft-out15.0%
add-sqr-sqrt1.8%
sqrt-unprod29.3%
sqr-neg29.3%
sqrt-unprod27.5%
add-sqr-sqrt28.4%
associate--l+28.4%
metadata-eval28.4%
Applied egg-rr28.4%
Taylor expanded in x around inf 28.4%
*-commutative28.4%
*-commutative28.4%
associate-*r*28.4%
Simplified28.4%
Taylor expanded in x around 0 64.8%
*-commutative64.8%
Simplified64.8%
if -550 < x < 480Initial program 52.2%
Simplified52.2%
Taylor expanded in x around 0 72.4%
if 480 < x < 9.4999999999999998e77 or 1.5000000000000001e131 < x < 1.6000000000000001e207Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around 0 69.5%
mul-1-neg69.5%
mul-1-neg69.5%
rec-exp69.5%
sub-neg69.5%
div-sub69.5%
mul-1-neg69.5%
rec-exp69.5%
+-inverses69.5%
Simplified69.5%
if 9.4999999999999998e77 < x < 1.5000000000000001e131Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around 0 16.7%
associate--r+16.7%
associate-*r*16.7%
mul-1-neg16.7%
cancel-sign-sub16.7%
distribute-rgt1-in16.7%
distribute-rgt-out--16.7%
mul-1-neg16.7%
mul-1-neg16.7%
Simplified16.7%
*-commutative16.7%
distribute-lft-out16.7%
add-sqr-sqrt0.0%
sqrt-unprod84.9%
sqr-neg84.9%
sqrt-unprod84.9%
add-sqr-sqrt84.9%
associate--l+84.9%
metadata-eval84.9%
Applied egg-rr84.9%
Taylor expanded in x around inf 84.9%
*-commutative84.9%
*-commutative84.9%
associate-*r*84.9%
Simplified84.9%
Taylor expanded in x around 0 56.2%
+-commutative56.2%
Simplified56.2%
Final simplification69.5%
eps_m = (fabs.f64 eps)
(FPCore (x eps_m)
:precision binary64
(let* ((t_0 (/ (+ 2.0 (* x (+ 4.0 (* x 3.0)))) 2.0)))
(if (<= x 520.0)
t_0
(if (<= x 9.5e+77)
0.0
(if (<= x 3.5e+131)
(/ (* x (+ 2.0 (* x (+ x 2.0)))) 2.0)
(if (<= x 5e+207) 0.0 t_0))))))eps_m = fabs(eps);
double code(double x, double eps_m) {
double t_0 = (2.0 + (x * (4.0 + (x * 3.0)))) / 2.0;
double tmp;
if (x <= 520.0) {
tmp = t_0;
} else if (x <= 9.5e+77) {
tmp = 0.0;
} else if (x <= 3.5e+131) {
tmp = (x * (2.0 + (x * (x + 2.0)))) / 2.0;
} else if (x <= 5e+207) {
tmp = 0.0;
} else {
tmp = t_0;
}
return tmp;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
real(8) :: t_0
real(8) :: tmp
t_0 = (2.0d0 + (x * (4.0d0 + (x * 3.0d0)))) / 2.0d0
if (x <= 520.0d0) then
tmp = t_0
else if (x <= 9.5d+77) then
tmp = 0.0d0
else if (x <= 3.5d+131) then
tmp = (x * (2.0d0 + (x * (x + 2.0d0)))) / 2.0d0
else if (x <= 5d+207) then
tmp = 0.0d0
else
tmp = t_0
end if
code = tmp
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
double t_0 = (2.0 + (x * (4.0 + (x * 3.0)))) / 2.0;
double tmp;
if (x <= 520.0) {
tmp = t_0;
} else if (x <= 9.5e+77) {
tmp = 0.0;
} else if (x <= 3.5e+131) {
tmp = (x * (2.0 + (x * (x + 2.0)))) / 2.0;
} else if (x <= 5e+207) {
tmp = 0.0;
} else {
tmp = t_0;
}
return tmp;
}
eps_m = math.fabs(eps) def code(x, eps_m): t_0 = (2.0 + (x * (4.0 + (x * 3.0)))) / 2.0 tmp = 0 if x <= 520.0: tmp = t_0 elif x <= 9.5e+77: tmp = 0.0 elif x <= 3.5e+131: tmp = (x * (2.0 + (x * (x + 2.0)))) / 2.0 elif x <= 5e+207: tmp = 0.0 else: tmp = t_0 return tmp
eps_m = abs(eps) function code(x, eps_m) t_0 = Float64(Float64(2.0 + Float64(x * Float64(4.0 + Float64(x * 3.0)))) / 2.0) tmp = 0.0 if (x <= 520.0) tmp = t_0; elseif (x <= 9.5e+77) tmp = 0.0; elseif (x <= 3.5e+131) tmp = Float64(Float64(x * Float64(2.0 + Float64(x * Float64(x + 2.0)))) / 2.0); elseif (x <= 5e+207) tmp = 0.0; else tmp = t_0; end return tmp end
eps_m = abs(eps); function tmp_2 = code(x, eps_m) t_0 = (2.0 + (x * (4.0 + (x * 3.0)))) / 2.0; tmp = 0.0; if (x <= 520.0) tmp = t_0; elseif (x <= 9.5e+77) tmp = 0.0; elseif (x <= 3.5e+131) tmp = (x * (2.0 + (x * (x + 2.0)))) / 2.0; elseif (x <= 5e+207) tmp = 0.0; else tmp = t_0; end tmp_2 = tmp; end
eps_m = N[Abs[eps], $MachinePrecision]
code[x_, eps$95$m_] := Block[{t$95$0 = N[(N[(2.0 + N[(x * N[(4.0 + N[(x * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]}, If[LessEqual[x, 520.0], t$95$0, If[LessEqual[x, 9.5e+77], 0.0, If[LessEqual[x, 3.5e+131], N[(N[(x * N[(2.0 + N[(x * N[(x + 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision], If[LessEqual[x, 5e+207], 0.0, t$95$0]]]]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
t_0 := \frac{2 + x \cdot \left(4 + x \cdot 3\right)}{2}\\
\mathbf{if}\;x \leq 520:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{+77}:\\
\;\;\;\;0\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{+131}:\\
\;\;\;\;\frac{x \cdot \left(2 + x \cdot \left(x + 2\right)\right)}{2}\\
\mathbf{elif}\;x \leq 5 \cdot 10^{+207}:\\
\;\;\;\;0\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < 520 or 4.9999999999999999e207 < x Initial program 64.8%
Simplified64.8%
Taylor expanded in eps around 0 58.2%
associate--r+58.2%
associate-*r*58.2%
mul-1-neg58.2%
cancel-sign-sub58.2%
distribute-rgt1-in58.2%
distribute-rgt-out--58.7%
mul-1-neg58.7%
mul-1-neg58.7%
Simplified58.7%
*-commutative58.7%
distribute-lft-out58.7%
add-sqr-sqrt28.2%
sqrt-unprod61.8%
sqr-neg61.8%
sqrt-unprod33.6%
add-sqr-sqrt60.0%
associate--l+60.0%
metadata-eval60.0%
Applied egg-rr60.0%
Taylor expanded in x around 0 70.0%
*-commutative70.0%
Simplified70.0%
if 520 < x < 9.4999999999999998e77 or 3.4999999999999999e131 < x < 4.9999999999999999e207Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around 0 69.5%
mul-1-neg69.5%
mul-1-neg69.5%
rec-exp69.5%
sub-neg69.5%
div-sub69.5%
mul-1-neg69.5%
rec-exp69.5%
+-inverses69.5%
Simplified69.5%
if 9.4999999999999998e77 < x < 3.4999999999999999e131Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around 0 16.7%
associate--r+16.7%
associate-*r*16.7%
mul-1-neg16.7%
cancel-sign-sub16.7%
distribute-rgt1-in16.7%
distribute-rgt-out--16.7%
mul-1-neg16.7%
mul-1-neg16.7%
Simplified16.7%
*-commutative16.7%
distribute-lft-out16.7%
add-sqr-sqrt0.0%
sqrt-unprod84.9%
sqr-neg84.9%
sqrt-unprod84.9%
add-sqr-sqrt84.9%
associate--l+84.9%
metadata-eval84.9%
Applied egg-rr84.9%
Taylor expanded in x around inf 84.9%
*-commutative84.9%
*-commutative84.9%
associate-*r*84.9%
Simplified84.9%
Taylor expanded in x around 0 56.2%
+-commutative56.2%
Simplified56.2%
Final simplification69.2%
eps_m = (fabs.f64 eps)
(FPCore (x eps_m)
:precision binary64
(let* ((t_0 (/ (+ 2.0 (* x (+ 4.0 (* x 3.0)))) 2.0)))
(if (<= x 600.0)
t_0
(if (<= x 9.5e+77)
0.0
(if (<= x 1e+131)
(/ (+ 2.0 (* x (+ 4.0 (* x (+ 3.0 (* x 1.3333333333333333)))))) 2.0)
(if (<= x 5e+205) 0.0 t_0))))))eps_m = fabs(eps);
double code(double x, double eps_m) {
double t_0 = (2.0 + (x * (4.0 + (x * 3.0)))) / 2.0;
double tmp;
if (x <= 600.0) {
tmp = t_0;
} else if (x <= 9.5e+77) {
tmp = 0.0;
} else if (x <= 1e+131) {
tmp = (2.0 + (x * (4.0 + (x * (3.0 + (x * 1.3333333333333333)))))) / 2.0;
} else if (x <= 5e+205) {
tmp = 0.0;
} else {
tmp = t_0;
}
return tmp;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
real(8) :: t_0
real(8) :: tmp
t_0 = (2.0d0 + (x * (4.0d0 + (x * 3.0d0)))) / 2.0d0
if (x <= 600.0d0) then
tmp = t_0
else if (x <= 9.5d+77) then
tmp = 0.0d0
else if (x <= 1d+131) then
tmp = (2.0d0 + (x * (4.0d0 + (x * (3.0d0 + (x * 1.3333333333333333d0)))))) / 2.0d0
else if (x <= 5d+205) then
tmp = 0.0d0
else
tmp = t_0
end if
code = tmp
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
double t_0 = (2.0 + (x * (4.0 + (x * 3.0)))) / 2.0;
double tmp;
if (x <= 600.0) {
tmp = t_0;
} else if (x <= 9.5e+77) {
tmp = 0.0;
} else if (x <= 1e+131) {
tmp = (2.0 + (x * (4.0 + (x * (3.0 + (x * 1.3333333333333333)))))) / 2.0;
} else if (x <= 5e+205) {
tmp = 0.0;
} else {
tmp = t_0;
}
return tmp;
}
eps_m = math.fabs(eps) def code(x, eps_m): t_0 = (2.0 + (x * (4.0 + (x * 3.0)))) / 2.0 tmp = 0 if x <= 600.0: tmp = t_0 elif x <= 9.5e+77: tmp = 0.0 elif x <= 1e+131: tmp = (2.0 + (x * (4.0 + (x * (3.0 + (x * 1.3333333333333333)))))) / 2.0 elif x <= 5e+205: tmp = 0.0 else: tmp = t_0 return tmp
eps_m = abs(eps) function code(x, eps_m) t_0 = Float64(Float64(2.0 + Float64(x * Float64(4.0 + Float64(x * 3.0)))) / 2.0) tmp = 0.0 if (x <= 600.0) tmp = t_0; elseif (x <= 9.5e+77) tmp = 0.0; elseif (x <= 1e+131) tmp = Float64(Float64(2.0 + Float64(x * Float64(4.0 + Float64(x * Float64(3.0 + Float64(x * 1.3333333333333333)))))) / 2.0); elseif (x <= 5e+205) tmp = 0.0; else tmp = t_0; end return tmp end
eps_m = abs(eps); function tmp_2 = code(x, eps_m) t_0 = (2.0 + (x * (4.0 + (x * 3.0)))) / 2.0; tmp = 0.0; if (x <= 600.0) tmp = t_0; elseif (x <= 9.5e+77) tmp = 0.0; elseif (x <= 1e+131) tmp = (2.0 + (x * (4.0 + (x * (3.0 + (x * 1.3333333333333333)))))) / 2.0; elseif (x <= 5e+205) tmp = 0.0; else tmp = t_0; end tmp_2 = tmp; end
eps_m = N[Abs[eps], $MachinePrecision]
code[x_, eps$95$m_] := Block[{t$95$0 = N[(N[(2.0 + N[(x * N[(4.0 + N[(x * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]}, If[LessEqual[x, 600.0], t$95$0, If[LessEqual[x, 9.5e+77], 0.0, If[LessEqual[x, 1e+131], N[(N[(2.0 + N[(x * N[(4.0 + N[(x * N[(3.0 + N[(x * 1.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision], If[LessEqual[x, 5e+205], 0.0, t$95$0]]]]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
t_0 := \frac{2 + x \cdot \left(4 + x \cdot 3\right)}{2}\\
\mathbf{if}\;x \leq 600:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{+77}:\\
\;\;\;\;0\\
\mathbf{elif}\;x \leq 10^{+131}:\\
\;\;\;\;\frac{2 + x \cdot \left(4 + x \cdot \left(3 + x \cdot 1.3333333333333333\right)\right)}{2}\\
\mathbf{elif}\;x \leq 5 \cdot 10^{+205}:\\
\;\;\;\;0\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < 600 or 5.0000000000000002e205 < x Initial program 64.8%
Simplified64.8%
Taylor expanded in eps around 0 58.2%
associate--r+58.2%
associate-*r*58.2%
mul-1-neg58.2%
cancel-sign-sub58.2%
distribute-rgt1-in58.2%
distribute-rgt-out--58.7%
mul-1-neg58.7%
mul-1-neg58.7%
Simplified58.7%
*-commutative58.7%
distribute-lft-out58.7%
add-sqr-sqrt28.2%
sqrt-unprod61.8%
sqr-neg61.8%
sqrt-unprod33.6%
add-sqr-sqrt60.0%
associate--l+60.0%
metadata-eval60.0%
Applied egg-rr60.0%
Taylor expanded in x around 0 70.0%
*-commutative70.0%
Simplified70.0%
if 600 < x < 9.4999999999999998e77 or 9.9999999999999991e130 < x < 5.0000000000000002e205Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around 0 69.5%
mul-1-neg69.5%
mul-1-neg69.5%
rec-exp69.5%
sub-neg69.5%
div-sub69.5%
mul-1-neg69.5%
rec-exp69.5%
+-inverses69.5%
Simplified69.5%
if 9.4999999999999998e77 < x < 9.9999999999999991e130Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around 0 16.7%
associate--r+16.7%
associate-*r*16.7%
mul-1-neg16.7%
cancel-sign-sub16.7%
distribute-rgt1-in16.7%
distribute-rgt-out--16.7%
mul-1-neg16.7%
mul-1-neg16.7%
Simplified16.7%
*-commutative16.7%
distribute-lft-out16.7%
add-sqr-sqrt0.0%
sqrt-unprod84.9%
sqr-neg84.9%
sqrt-unprod84.9%
add-sqr-sqrt84.9%
associate--l+84.9%
metadata-eval84.9%
Applied egg-rr84.9%
Taylor expanded in x around 0 56.2%
*-commutative56.2%
Simplified56.2%
Final simplification69.2%
eps_m = (fabs.f64 eps)
(FPCore (x eps_m)
:precision binary64
(if (<= x 540.0)
(/ (+ 2.0 (* x (+ 4.0 (* x 3.0)))) 2.0)
(if (<= x 1.55e+77)
0.0
(/
(* x (+ 2.0 (* x (+ 2.0 (* x (+ 1.0 (* x 0.3333333333333333)))))))
2.0))))eps_m = fabs(eps);
double code(double x, double eps_m) {
double tmp;
if (x <= 540.0) {
tmp = (2.0 + (x * (4.0 + (x * 3.0)))) / 2.0;
} else if (x <= 1.55e+77) {
tmp = 0.0;
} else {
tmp = (x * (2.0 + (x * (2.0 + (x * (1.0 + (x * 0.3333333333333333))))))) / 2.0;
}
return tmp;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
real(8) :: tmp
if (x <= 540.0d0) then
tmp = (2.0d0 + (x * (4.0d0 + (x * 3.0d0)))) / 2.0d0
else if (x <= 1.55d+77) then
tmp = 0.0d0
else
tmp = (x * (2.0d0 + (x * (2.0d0 + (x * (1.0d0 + (x * 0.3333333333333333d0))))))) / 2.0d0
end if
code = tmp
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
double tmp;
if (x <= 540.0) {
tmp = (2.0 + (x * (4.0 + (x * 3.0)))) / 2.0;
} else if (x <= 1.55e+77) {
tmp = 0.0;
} else {
tmp = (x * (2.0 + (x * (2.0 + (x * (1.0 + (x * 0.3333333333333333))))))) / 2.0;
}
return tmp;
}
eps_m = math.fabs(eps) def code(x, eps_m): tmp = 0 if x <= 540.0: tmp = (2.0 + (x * (4.0 + (x * 3.0)))) / 2.0 elif x <= 1.55e+77: tmp = 0.0 else: tmp = (x * (2.0 + (x * (2.0 + (x * (1.0 + (x * 0.3333333333333333))))))) / 2.0 return tmp
eps_m = abs(eps) function code(x, eps_m) tmp = 0.0 if (x <= 540.0) tmp = Float64(Float64(2.0 + Float64(x * Float64(4.0 + Float64(x * 3.0)))) / 2.0); elseif (x <= 1.55e+77) tmp = 0.0; else tmp = Float64(Float64(x * Float64(2.0 + Float64(x * Float64(2.0 + Float64(x * Float64(1.0 + Float64(x * 0.3333333333333333))))))) / 2.0); end return tmp end
eps_m = abs(eps); function tmp_2 = code(x, eps_m) tmp = 0.0; if (x <= 540.0) tmp = (2.0 + (x * (4.0 + (x * 3.0)))) / 2.0; elseif (x <= 1.55e+77) tmp = 0.0; else tmp = (x * (2.0 + (x * (2.0 + (x * (1.0 + (x * 0.3333333333333333))))))) / 2.0; end tmp_2 = tmp; end
eps_m = N[Abs[eps], $MachinePrecision] code[x_, eps$95$m_] := If[LessEqual[x, 540.0], N[(N[(2.0 + N[(x * N[(4.0 + N[(x * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision], If[LessEqual[x, 1.55e+77], 0.0, N[(N[(x * N[(2.0 + N[(x * N[(2.0 + N[(x * N[(1.0 + N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq 540:\\
\;\;\;\;\frac{2 + x \cdot \left(4 + x \cdot 3\right)}{2}\\
\mathbf{elif}\;x \leq 1.55 \cdot 10^{+77}:\\
\;\;\;\;0\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \left(2 + x \cdot \left(2 + x \cdot \left(1 + x \cdot 0.3333333333333333\right)\right)\right)}{2}\\
\end{array}
\end{array}
if x < 540Initial program 60.5%
Simplified60.5%
Taylor expanded in eps around 0 61.3%
associate--r+61.3%
associate-*r*61.3%
mul-1-neg61.3%
cancel-sign-sub61.3%
distribute-rgt1-in61.3%
distribute-rgt-out--61.9%
mul-1-neg61.9%
mul-1-neg61.9%
Simplified61.9%
*-commutative61.9%
distribute-lft-out61.9%
add-sqr-sqrt31.6%
sqrt-unprod60.9%
sqr-neg60.9%
sqrt-unprod29.3%
add-sqr-sqrt59.0%
associate--l+59.0%
metadata-eval59.0%
Applied egg-rr59.0%
Taylor expanded in x around 0 70.1%
*-commutative70.1%
Simplified70.1%
if 540 < x < 1.54999999999999999e77Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around 0 71.3%
mul-1-neg71.3%
mul-1-neg71.3%
rec-exp71.3%
sub-neg71.3%
div-sub71.3%
mul-1-neg71.3%
rec-exp71.3%
+-inverses71.3%
Simplified71.3%
if 1.54999999999999999e77 < x Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around 0 40.6%
associate--r+40.6%
associate-*r*40.6%
mul-1-neg40.6%
cancel-sign-sub40.6%
distribute-rgt1-in40.6%
distribute-rgt-out--40.6%
mul-1-neg40.6%
mul-1-neg40.6%
Simplified40.6%
*-commutative40.6%
distribute-lft-out40.6%
add-sqr-sqrt0.0%
sqrt-unprod61.0%
sqr-neg61.0%
sqrt-unprod61.0%
add-sqr-sqrt61.0%
associate--l+61.0%
metadata-eval61.0%
Applied egg-rr61.0%
Taylor expanded in x around inf 61.0%
*-commutative61.0%
*-commutative61.0%
associate-*r*61.0%
Simplified61.0%
Taylor expanded in x around 0 61.0%
*-commutative61.0%
Simplified61.0%
Final simplification68.3%
eps_m = (fabs.f64 eps) (FPCore (x eps_m) :precision binary64 (let* ((t_0 (/ (* x (+ 2.0 (* x 2.0))) 2.0))) (if (<= x -550.0) t_0 (if (<= x 520.0) 1.0 (if (<= x 1.5e+206) 0.0 t_0)))))
eps_m = fabs(eps);
double code(double x, double eps_m) {
double t_0 = (x * (2.0 + (x * 2.0))) / 2.0;
double tmp;
if (x <= -550.0) {
tmp = t_0;
} else if (x <= 520.0) {
tmp = 1.0;
} else if (x <= 1.5e+206) {
tmp = 0.0;
} else {
tmp = t_0;
}
return tmp;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
real(8) :: t_0
real(8) :: tmp
t_0 = (x * (2.0d0 + (x * 2.0d0))) / 2.0d0
if (x <= (-550.0d0)) then
tmp = t_0
else if (x <= 520.0d0) then
tmp = 1.0d0
else if (x <= 1.5d+206) then
tmp = 0.0d0
else
tmp = t_0
end if
code = tmp
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
double t_0 = (x * (2.0 + (x * 2.0))) / 2.0;
double tmp;
if (x <= -550.0) {
tmp = t_0;
} else if (x <= 520.0) {
tmp = 1.0;
} else if (x <= 1.5e+206) {
tmp = 0.0;
} else {
tmp = t_0;
}
return tmp;
}
eps_m = math.fabs(eps) def code(x, eps_m): t_0 = (x * (2.0 + (x * 2.0))) / 2.0 tmp = 0 if x <= -550.0: tmp = t_0 elif x <= 520.0: tmp = 1.0 elif x <= 1.5e+206: tmp = 0.0 else: tmp = t_0 return tmp
eps_m = abs(eps) function code(x, eps_m) t_0 = Float64(Float64(x * Float64(2.0 + Float64(x * 2.0))) / 2.0) tmp = 0.0 if (x <= -550.0) tmp = t_0; elseif (x <= 520.0) tmp = 1.0; elseif (x <= 1.5e+206) tmp = 0.0; else tmp = t_0; end return tmp end
eps_m = abs(eps); function tmp_2 = code(x, eps_m) t_0 = (x * (2.0 + (x * 2.0))) / 2.0; tmp = 0.0; if (x <= -550.0) tmp = t_0; elseif (x <= 520.0) tmp = 1.0; elseif (x <= 1.5e+206) tmp = 0.0; else tmp = t_0; end tmp_2 = tmp; end
eps_m = N[Abs[eps], $MachinePrecision]
code[x_, eps$95$m_] := Block[{t$95$0 = N[(N[(x * N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]}, If[LessEqual[x, -550.0], t$95$0, If[LessEqual[x, 520.0], 1.0, If[LessEqual[x, 1.5e+206], 0.0, t$95$0]]]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
t_0 := \frac{x \cdot \left(2 + x \cdot 2\right)}{2}\\
\mathbf{if}\;x \leq -550:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 520:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{+206}:\\
\;\;\;\;0\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -550 or 1.5000000000000001e206 < x Initial program 98.2%
Simplified98.2%
Taylor expanded in eps around 0 13.2%
associate--r+13.2%
associate-*r*13.2%
mul-1-neg13.2%
cancel-sign-sub13.2%
distribute-rgt1-in13.2%
distribute-rgt-out--15.0%
mul-1-neg15.0%
mul-1-neg15.0%
Simplified15.0%
*-commutative15.0%
distribute-lft-out15.0%
add-sqr-sqrt1.8%
sqrt-unprod29.3%
sqr-neg29.3%
sqrt-unprod27.5%
add-sqr-sqrt28.4%
associate--l+28.4%
metadata-eval28.4%
Applied egg-rr28.4%
Taylor expanded in x around inf 28.4%
*-commutative28.4%
*-commutative28.4%
associate-*r*28.4%
Simplified28.4%
Taylor expanded in x around 0 64.8%
*-commutative64.8%
Simplified64.8%
if -550 < x < 520Initial program 52.2%
Simplified52.2%
Taylor expanded in x around 0 72.4%
if 520 < x < 1.5000000000000001e206Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around 0 57.0%
mul-1-neg57.0%
mul-1-neg57.0%
rec-exp57.0%
sub-neg57.0%
div-sub57.0%
mul-1-neg57.0%
rec-exp57.0%
+-inverses57.0%
Simplified57.0%
Final simplification67.5%
eps_m = (fabs.f64 eps) (FPCore (x eps_m) :precision binary64 (if (<= x -1.0) (* (* eps_m x) -0.5) (if (<= x 480.0) 1.0 (if (<= x 2.1e+207) 0.0 (* (* eps_m x) 0.5)))))
eps_m = fabs(eps);
double code(double x, double eps_m) {
double tmp;
if (x <= -1.0) {
tmp = (eps_m * x) * -0.5;
} else if (x <= 480.0) {
tmp = 1.0;
} else if (x <= 2.1e+207) {
tmp = 0.0;
} else {
tmp = (eps_m * x) * 0.5;
}
return tmp;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
real(8) :: tmp
if (x <= (-1.0d0)) then
tmp = (eps_m * x) * (-0.5d0)
else if (x <= 480.0d0) then
tmp = 1.0d0
else if (x <= 2.1d+207) then
tmp = 0.0d0
else
tmp = (eps_m * x) * 0.5d0
end if
code = tmp
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
double tmp;
if (x <= -1.0) {
tmp = (eps_m * x) * -0.5;
} else if (x <= 480.0) {
tmp = 1.0;
} else if (x <= 2.1e+207) {
tmp = 0.0;
} else {
tmp = (eps_m * x) * 0.5;
}
return tmp;
}
eps_m = math.fabs(eps) def code(x, eps_m): tmp = 0 if x <= -1.0: tmp = (eps_m * x) * -0.5 elif x <= 480.0: tmp = 1.0 elif x <= 2.1e+207: tmp = 0.0 else: tmp = (eps_m * x) * 0.5 return tmp
eps_m = abs(eps) function code(x, eps_m) tmp = 0.0 if (x <= -1.0) tmp = Float64(Float64(eps_m * x) * -0.5); elseif (x <= 480.0) tmp = 1.0; elseif (x <= 2.1e+207) tmp = 0.0; else tmp = Float64(Float64(eps_m * x) * 0.5); end return tmp end
eps_m = abs(eps); function tmp_2 = code(x, eps_m) tmp = 0.0; if (x <= -1.0) tmp = (eps_m * x) * -0.5; elseif (x <= 480.0) tmp = 1.0; elseif (x <= 2.1e+207) tmp = 0.0; else tmp = (eps_m * x) * 0.5; end tmp_2 = tmp; end
eps_m = N[Abs[eps], $MachinePrecision] code[x_, eps$95$m_] := If[LessEqual[x, -1.0], N[(N[(eps$95$m * x), $MachinePrecision] * -0.5), $MachinePrecision], If[LessEqual[x, 480.0], 1.0, If[LessEqual[x, 2.1e+207], 0.0, N[(N[(eps$95$m * x), $MachinePrecision] * 0.5), $MachinePrecision]]]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1:\\
\;\;\;\;\left(eps\_m \cdot x\right) \cdot -0.5\\
\mathbf{elif}\;x \leq 480:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{+207}:\\
\;\;\;\;0\\
\mathbf{else}:\\
\;\;\;\;\left(eps\_m \cdot x\right) \cdot 0.5\\
\end{array}
\end{array}
if x < -1Initial program 91.5%
Simplified91.6%
Taylor expanded in eps around inf 91.5%
Taylor expanded in x around 0 38.7%
mul-1-neg38.7%
Simplified38.7%
Taylor expanded in eps around inf 27.4%
mul-1-neg27.4%
*-commutative27.4%
distribute-rgt-neg-in27.4%
Simplified27.4%
frac-2neg27.4%
div-inv27.4%
distribute-rgt-neg-out27.4%
remove-double-neg27.4%
metadata-eval27.4%
metadata-eval27.4%
Applied egg-rr27.4%
if -1 < x < 480Initial program 52.9%
Simplified52.9%
Taylor expanded in x around 0 73.4%
if 480 < x < 2.0999999999999999e207Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around 0 57.0%
mul-1-neg57.0%
mul-1-neg57.0%
rec-exp57.0%
sub-neg57.0%
div-sub57.0%
mul-1-neg57.0%
rec-exp57.0%
+-inverses57.0%
Simplified57.0%
if 2.0999999999999999e207 < x Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around inf 100.0%
Taylor expanded in x around 0 23.6%
mul-1-neg23.6%
Simplified23.6%
Taylor expanded in eps around inf 14.7%
mul-1-neg14.7%
*-commutative14.7%
distribute-rgt-neg-in14.7%
Simplified14.7%
div-inv14.7%
add-sqr-sqrt14.6%
sqrt-unprod69.7%
sqr-neg69.7%
sqrt-unprod41.9%
add-sqr-sqrt42.5%
metadata-eval42.5%
Applied egg-rr42.5%
Final simplification60.9%
eps_m = (fabs.f64 eps) (FPCore (x eps_m) :precision binary64 (if (<= x -1.0) (* (* eps_m x) -0.5) (if (<= x 600.0) 1.0 0.0)))
eps_m = fabs(eps);
double code(double x, double eps_m) {
double tmp;
if (x <= -1.0) {
tmp = (eps_m * x) * -0.5;
} else if (x <= 600.0) {
tmp = 1.0;
} else {
tmp = 0.0;
}
return tmp;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
real(8) :: tmp
if (x <= (-1.0d0)) then
tmp = (eps_m * x) * (-0.5d0)
else if (x <= 600.0d0) then
tmp = 1.0d0
else
tmp = 0.0d0
end if
code = tmp
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
double tmp;
if (x <= -1.0) {
tmp = (eps_m * x) * -0.5;
} else if (x <= 600.0) {
tmp = 1.0;
} else {
tmp = 0.0;
}
return tmp;
}
eps_m = math.fabs(eps) def code(x, eps_m): tmp = 0 if x <= -1.0: tmp = (eps_m * x) * -0.5 elif x <= 600.0: tmp = 1.0 else: tmp = 0.0 return tmp
eps_m = abs(eps) function code(x, eps_m) tmp = 0.0 if (x <= -1.0) tmp = Float64(Float64(eps_m * x) * -0.5); elseif (x <= 600.0) tmp = 1.0; else tmp = 0.0; end return tmp end
eps_m = abs(eps); function tmp_2 = code(x, eps_m) tmp = 0.0; if (x <= -1.0) tmp = (eps_m * x) * -0.5; elseif (x <= 600.0) tmp = 1.0; else tmp = 0.0; end tmp_2 = tmp; end
eps_m = N[Abs[eps], $MachinePrecision] code[x_, eps$95$m_] := If[LessEqual[x, -1.0], N[(N[(eps$95$m * x), $MachinePrecision] * -0.5), $MachinePrecision], If[LessEqual[x, 600.0], 1.0, 0.0]]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1:\\
\;\;\;\;\left(eps\_m \cdot x\right) \cdot -0.5\\
\mathbf{elif}\;x \leq 600:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;0\\
\end{array}
\end{array}
if x < -1Initial program 91.5%
Simplified91.6%
Taylor expanded in eps around inf 91.5%
Taylor expanded in x around 0 38.7%
mul-1-neg38.7%
Simplified38.7%
Taylor expanded in eps around inf 27.4%
mul-1-neg27.4%
*-commutative27.4%
distribute-rgt-neg-in27.4%
Simplified27.4%
frac-2neg27.4%
div-inv27.4%
distribute-rgt-neg-out27.4%
remove-double-neg27.4%
metadata-eval27.4%
metadata-eval27.4%
Applied egg-rr27.4%
if -1 < x < 600Initial program 52.9%
Simplified52.9%
Taylor expanded in x around 0 73.4%
if 600 < x Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around 0 50.1%
mul-1-neg50.1%
mul-1-neg50.1%
rec-exp50.1%
sub-neg50.1%
div-sub50.1%
mul-1-neg50.1%
rec-exp50.1%
+-inverses50.1%
Simplified50.1%
Final simplification60.1%
eps_m = (fabs.f64 eps) (FPCore (x eps_m) :precision binary64 (if (<= x 500.0) 1.0 0.0))
eps_m = fabs(eps);
double code(double x, double eps_m) {
double tmp;
if (x <= 500.0) {
tmp = 1.0;
} else {
tmp = 0.0;
}
return tmp;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
real(8) :: tmp
if (x <= 500.0d0) then
tmp = 1.0d0
else
tmp = 0.0d0
end if
code = tmp
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
double tmp;
if (x <= 500.0) {
tmp = 1.0;
} else {
tmp = 0.0;
}
return tmp;
}
eps_m = math.fabs(eps) def code(x, eps_m): tmp = 0 if x <= 500.0: tmp = 1.0 else: tmp = 0.0 return tmp
eps_m = abs(eps) function code(x, eps_m) tmp = 0.0 if (x <= 500.0) tmp = 1.0; else tmp = 0.0; end return tmp end
eps_m = abs(eps); function tmp_2 = code(x, eps_m) tmp = 0.0; if (x <= 500.0) tmp = 1.0; else tmp = 0.0; end tmp_2 = tmp; end
eps_m = N[Abs[eps], $MachinePrecision] code[x_, eps$95$m_] := If[LessEqual[x, 500.0], 1.0, 0.0]
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
\begin{array}{l}
\mathbf{if}\;x \leq 500:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;0\\
\end{array}
\end{array}
if x < 500Initial program 60.5%
Simplified60.5%
Taylor expanded in x around 0 59.6%
if 500 < x Initial program 100.0%
Simplified100.0%
Taylor expanded in eps around 0 50.1%
mul-1-neg50.1%
mul-1-neg50.1%
rec-exp50.1%
sub-neg50.1%
div-sub50.1%
mul-1-neg50.1%
rec-exp50.1%
+-inverses50.1%
Simplified50.1%
Final simplification56.8%
eps_m = (fabs.f64 eps) (FPCore (x eps_m) :precision binary64 0.0)
eps_m = fabs(eps);
double code(double x, double eps_m) {
return 0.0;
}
eps_m = abs(eps)
real(8) function code(x, eps_m)
real(8), intent (in) :: x
real(8), intent (in) :: eps_m
code = 0.0d0
end function
eps_m = Math.abs(eps);
public static double code(double x, double eps_m) {
return 0.0;
}
eps_m = math.fabs(eps) def code(x, eps_m): return 0.0
eps_m = abs(eps) function code(x, eps_m) return 0.0 end
eps_m = abs(eps); function tmp = code(x, eps_m) tmp = 0.0; end
eps_m = N[Abs[eps], $MachinePrecision] code[x_, eps$95$m_] := 0.0
\begin{array}{l}
eps_m = \left|\varepsilon\right|
\\
0
\end{array}
Initial program 72.4%
Simplified61.5%
Taylor expanded in eps around 0 16.6%
mul-1-neg16.6%
mul-1-neg16.6%
rec-exp16.6%
sub-neg16.6%
div-sub16.6%
mul-1-neg16.6%
rec-exp16.6%
+-inverses16.8%
Simplified16.8%
Final simplification16.8%
herbie shell --seed 2024071
(FPCore (x eps)
:name "NMSE Section 6.1 mentioned, A"
:precision binary64
(/ (- (* (+ 1.0 (/ 1.0 eps)) (exp (- (* (- 1.0 eps) x)))) (* (- (/ 1.0 eps) 1.0) (exp (- (* (+ 1.0 eps) x))))) 2.0))