
(FPCore (w l) :precision binary64 (* (exp (- w)) (pow l (exp w))))
double code(double w, double l) {
return exp(-w) * pow(l, exp(w));
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
code = exp(-w) * (l ** exp(w))
end function
public static double code(double w, double l) {
return Math.exp(-w) * Math.pow(l, Math.exp(w));
}
def code(w, l): return math.exp(-w) * math.pow(l, math.exp(w))
function code(w, l) return Float64(exp(Float64(-w)) * (l ^ exp(w))) end
function tmp = code(w, l) tmp = exp(-w) * (l ^ exp(w)); end
code[w_, l_] := N[(N[Exp[(-w)], $MachinePrecision] * N[Power[l, N[Exp[w], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
e^{-w} \cdot {\ell}^{\left(e^{w}\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (w l) :precision binary64 (* (exp (- w)) (pow l (exp w))))
double code(double w, double l) {
return exp(-w) * pow(l, exp(w));
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
code = exp(-w) * (l ** exp(w))
end function
public static double code(double w, double l) {
return Math.exp(-w) * Math.pow(l, Math.exp(w));
}
def code(w, l): return math.exp(-w) * math.pow(l, math.exp(w))
function code(w, l) return Float64(exp(Float64(-w)) * (l ^ exp(w))) end
function tmp = code(w, l) tmp = exp(-w) * (l ^ exp(w)); end
code[w_, l_] := N[(N[Exp[(-w)], $MachinePrecision] * N[Power[l, N[Exp[w], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
e^{-w} \cdot {\ell}^{\left(e^{w}\right)}
\end{array}
(FPCore (w l) :precision binary64 (/ (pow (pow l (sqrt (exp w))) (exp (* w 0.5))) (exp w)))
double code(double w, double l) {
return pow(pow(l, sqrt(exp(w))), exp((w * 0.5))) / exp(w);
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
code = ((l ** sqrt(exp(w))) ** exp((w * 0.5d0))) / exp(w)
end function
public static double code(double w, double l) {
return Math.pow(Math.pow(l, Math.sqrt(Math.exp(w))), Math.exp((w * 0.5))) / Math.exp(w);
}
def code(w, l): return math.pow(math.pow(l, math.sqrt(math.exp(w))), math.exp((w * 0.5))) / math.exp(w)
function code(w, l) return Float64(((l ^ sqrt(exp(w))) ^ exp(Float64(w * 0.5))) / exp(w)) end
function tmp = code(w, l) tmp = ((l ^ sqrt(exp(w))) ^ exp((w * 0.5))) / exp(w); end
code[w_, l_] := N[(N[Power[N[Power[l, N[Sqrt[N[Exp[w], $MachinePrecision]], $MachinePrecision]], $MachinePrecision], N[Exp[N[(w * 0.5), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] / N[Exp[w], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{{\left({\ell}^{\left(\sqrt{e^{w}}\right)}\right)}^{\left(e^{w \cdot 0.5}\right)}}{e^{w}}
\end{array}
Initial program 99.7%
exp-neg99.7%
remove-double-neg99.7%
associate-*l/99.7%
*-lft-identity99.7%
remove-double-neg99.7%
Simplified99.7%
Taylor expanded in l around inf 94.6%
mul-1-neg94.6%
*-commutative94.6%
distribute-lft-neg-in94.6%
log-rec94.6%
remove-double-div94.6%
Simplified94.6%
pow-to-exp99.7%
add-sqr-sqrt99.7%
pow-unpow99.7%
Applied egg-rr99.7%
pow1/299.7%
pow-exp99.7%
Applied egg-rr99.7%
(FPCore (w l) :precision binary64 (let* ((t_0 (exp (* w 0.5)))) (/ (pow (pow l t_0) t_0) (exp w))))
double code(double w, double l) {
double t_0 = exp((w * 0.5));
return pow(pow(l, t_0), t_0) / exp(w);
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: t_0
t_0 = exp((w * 0.5d0))
code = ((l ** t_0) ** t_0) / exp(w)
end function
public static double code(double w, double l) {
double t_0 = Math.exp((w * 0.5));
return Math.pow(Math.pow(l, t_0), t_0) / Math.exp(w);
}
def code(w, l): t_0 = math.exp((w * 0.5)) return math.pow(math.pow(l, t_0), t_0) / math.exp(w)
function code(w, l) t_0 = exp(Float64(w * 0.5)) return Float64(((l ^ t_0) ^ t_0) / exp(w)) end
function tmp = code(w, l) t_0 = exp((w * 0.5)); tmp = ((l ^ t_0) ^ t_0) / exp(w); end
code[w_, l_] := Block[{t$95$0 = N[Exp[N[(w * 0.5), $MachinePrecision]], $MachinePrecision]}, N[(N[Power[N[Power[l, t$95$0], $MachinePrecision], t$95$0], $MachinePrecision] / N[Exp[w], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{w \cdot 0.5}\\
\frac{{\left({\ell}^{t\_0}\right)}^{t\_0}}{e^{w}}
\end{array}
\end{array}
Initial program 99.7%
exp-neg99.7%
remove-double-neg99.7%
associate-*l/99.7%
*-lft-identity99.7%
remove-double-neg99.7%
Simplified99.7%
Taylor expanded in l around inf 94.6%
mul-1-neg94.6%
*-commutative94.6%
distribute-lft-neg-in94.6%
log-rec94.6%
remove-double-div94.6%
Simplified94.6%
pow-to-exp99.7%
add-sqr-sqrt99.7%
pow-unpow99.7%
Applied egg-rr99.7%
pow1/299.7%
pow-exp99.7%
Applied egg-rr99.7%
pow1/299.7%
pow-exp99.7%
Applied egg-rr99.7%
(FPCore (w l) :precision binary64 (/ (pow l (exp w)) (exp w)))
double code(double w, double l) {
return pow(l, exp(w)) / exp(w);
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
code = (l ** exp(w)) / exp(w)
end function
public static double code(double w, double l) {
return Math.pow(l, Math.exp(w)) / Math.exp(w);
}
def code(w, l): return math.pow(l, math.exp(w)) / math.exp(w)
function code(w, l) return Float64((l ^ exp(w)) / exp(w)) end
function tmp = code(w, l) tmp = (l ^ exp(w)) / exp(w); end
code[w_, l_] := N[(N[Power[l, N[Exp[w], $MachinePrecision]], $MachinePrecision] / N[Exp[w], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{{\ell}^{\left(e^{w}\right)}}{e^{w}}
\end{array}
Initial program 99.7%
exp-neg99.7%
remove-double-neg99.7%
associate-*l/99.7%
*-lft-identity99.7%
remove-double-neg99.7%
Simplified99.7%
(FPCore (w l)
:precision binary64
(if (<= w -1.6)
(exp (- w))
(/
(pow l (exp w))
(+ 1.0 (* w (+ 1.0 (* w (+ 0.5 (* w 0.16666666666666666)))))))))
double code(double w, double l) {
double tmp;
if (w <= -1.6) {
tmp = exp(-w);
} else {
tmp = pow(l, exp(w)) / (1.0 + (w * (1.0 + (w * (0.5 + (w * 0.16666666666666666))))));
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-1.6d0)) then
tmp = exp(-w)
else
tmp = (l ** exp(w)) / (1.0d0 + (w * (1.0d0 + (w * (0.5d0 + (w * 0.16666666666666666d0))))))
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -1.6) {
tmp = Math.exp(-w);
} else {
tmp = Math.pow(l, Math.exp(w)) / (1.0 + (w * (1.0 + (w * (0.5 + (w * 0.16666666666666666))))));
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -1.6: tmp = math.exp(-w) else: tmp = math.pow(l, math.exp(w)) / (1.0 + (w * (1.0 + (w * (0.5 + (w * 0.16666666666666666)))))) return tmp
function code(w, l) tmp = 0.0 if (w <= -1.6) tmp = exp(Float64(-w)); else tmp = Float64((l ^ exp(w)) / Float64(1.0 + Float64(w * Float64(1.0 + Float64(w * Float64(0.5 + Float64(w * 0.16666666666666666))))))); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -1.6) tmp = exp(-w); else tmp = (l ^ exp(w)) / (1.0 + (w * (1.0 + (w * (0.5 + (w * 0.16666666666666666)))))); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -1.6], N[Exp[(-w)], $MachinePrecision], N[(N[Power[l, N[Exp[w], $MachinePrecision]], $MachinePrecision] / N[(1.0 + N[(w * N[(1.0 + N[(w * N[(0.5 + N[(w * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -1.6:\\
\;\;\;\;e^{-w}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{\left(e^{w}\right)}}{1 + w \cdot \left(1 + w \cdot \left(0.5 + w \cdot 0.16666666666666666\right)\right)}\\
\end{array}
\end{array}
if w < -1.6000000000000001Initial program 100.0%
exp-neg100.0%
remove-double-neg100.0%
associate-*l/100.0%
*-lft-identity100.0%
remove-double-neg100.0%
Simplified100.0%
add-sqr-sqrt0.0%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod0.0%
add-sqr-sqrt0.1%
pow10.1%
exp-neg0.1%
inv-pow0.1%
pow-prod-up98.6%
metadata-eval98.6%
metadata-eval98.6%
metadata-eval98.6%
Applied egg-rr98.6%
add-exp-log98.6%
*-rgt-identity98.6%
log-div98.6%
add-log-exp98.6%
Applied egg-rr98.6%
Taylor expanded in w around inf 100.0%
mul-1-neg100.0%
Simplified100.0%
if -1.6000000000000001 < w Initial program 99.6%
exp-neg99.6%
remove-double-neg99.6%
associate-*l/99.6%
*-lft-identity99.6%
remove-double-neg99.6%
Simplified99.6%
Taylor expanded in w around 0 99.6%
*-commutative99.6%
Simplified99.6%
(FPCore (w l) :precision binary64 (if (<= w -3.7) (exp (- w)) (/ (pow l (exp w)) (+ 1.0 (* w (+ (* w 0.5) 1.0))))))
double code(double w, double l) {
double tmp;
if (w <= -3.7) {
tmp = exp(-w);
} else {
tmp = pow(l, exp(w)) / (1.0 + (w * ((w * 0.5) + 1.0)));
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-3.7d0)) then
tmp = exp(-w)
else
tmp = (l ** exp(w)) / (1.0d0 + (w * ((w * 0.5d0) + 1.0d0)))
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -3.7) {
tmp = Math.exp(-w);
} else {
tmp = Math.pow(l, Math.exp(w)) / (1.0 + (w * ((w * 0.5) + 1.0)));
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -3.7: tmp = math.exp(-w) else: tmp = math.pow(l, math.exp(w)) / (1.0 + (w * ((w * 0.5) + 1.0))) return tmp
function code(w, l) tmp = 0.0 if (w <= -3.7) tmp = exp(Float64(-w)); else tmp = Float64((l ^ exp(w)) / Float64(1.0 + Float64(w * Float64(Float64(w * 0.5) + 1.0)))); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -3.7) tmp = exp(-w); else tmp = (l ^ exp(w)) / (1.0 + (w * ((w * 0.5) + 1.0))); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -3.7], N[Exp[(-w)], $MachinePrecision], N[(N[Power[l, N[Exp[w], $MachinePrecision]], $MachinePrecision] / N[(1.0 + N[(w * N[(N[(w * 0.5), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -3.7:\\
\;\;\;\;e^{-w}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{\left(e^{w}\right)}}{1 + w \cdot \left(w \cdot 0.5 + 1\right)}\\
\end{array}
\end{array}
if w < -3.7000000000000002Initial program 100.0%
exp-neg100.0%
remove-double-neg100.0%
associate-*l/100.0%
*-lft-identity100.0%
remove-double-neg100.0%
Simplified100.0%
add-sqr-sqrt0.0%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod0.0%
add-sqr-sqrt0.1%
pow10.1%
exp-neg0.1%
inv-pow0.1%
pow-prod-up98.6%
metadata-eval98.6%
metadata-eval98.6%
metadata-eval98.6%
Applied egg-rr98.6%
add-exp-log98.6%
*-rgt-identity98.6%
log-div98.6%
add-log-exp98.6%
Applied egg-rr98.6%
Taylor expanded in w around inf 100.0%
mul-1-neg100.0%
Simplified100.0%
if -3.7000000000000002 < w Initial program 99.6%
exp-neg99.6%
remove-double-neg99.6%
associate-*l/99.6%
*-lft-identity99.6%
remove-double-neg99.6%
Simplified99.6%
Taylor expanded in w around 0 99.5%
*-commutative99.5%
Simplified99.5%
Final simplification99.6%
(FPCore (w l) :precision binary64 (if (<= w -1.0) (exp (- w)) (/ (pow l (exp w)) (+ w 1.0))))
double code(double w, double l) {
double tmp;
if (w <= -1.0) {
tmp = exp(-w);
} else {
tmp = pow(l, exp(w)) / (w + 1.0);
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-1.0d0)) then
tmp = exp(-w)
else
tmp = (l ** exp(w)) / (w + 1.0d0)
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -1.0) {
tmp = Math.exp(-w);
} else {
tmp = Math.pow(l, Math.exp(w)) / (w + 1.0);
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -1.0: tmp = math.exp(-w) else: tmp = math.pow(l, math.exp(w)) / (w + 1.0) return tmp
function code(w, l) tmp = 0.0 if (w <= -1.0) tmp = exp(Float64(-w)); else tmp = Float64((l ^ exp(w)) / Float64(w + 1.0)); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -1.0) tmp = exp(-w); else tmp = (l ^ exp(w)) / (w + 1.0); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -1.0], N[Exp[(-w)], $MachinePrecision], N[(N[Power[l, N[Exp[w], $MachinePrecision]], $MachinePrecision] / N[(w + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -1:\\
\;\;\;\;e^{-w}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{\left(e^{w}\right)}}{w + 1}\\
\end{array}
\end{array}
if w < -1Initial program 100.0%
exp-neg100.0%
remove-double-neg100.0%
associate-*l/100.0%
*-lft-identity100.0%
remove-double-neg100.0%
Simplified100.0%
add-sqr-sqrt0.0%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod0.0%
add-sqr-sqrt0.1%
pow10.1%
exp-neg0.1%
inv-pow0.1%
pow-prod-up98.6%
metadata-eval98.6%
metadata-eval98.6%
metadata-eval98.6%
Applied egg-rr98.6%
add-exp-log98.6%
*-rgt-identity98.6%
log-div98.6%
add-log-exp98.6%
Applied egg-rr98.6%
Taylor expanded in w around inf 100.0%
mul-1-neg100.0%
Simplified100.0%
if -1 < w Initial program 99.6%
exp-neg99.6%
remove-double-neg99.6%
associate-*l/99.6%
*-lft-identity99.6%
remove-double-neg99.6%
Simplified99.6%
Taylor expanded in w around 0 99.2%
+-commutative99.2%
Simplified99.2%
(FPCore (w l) :precision binary64 (if (<= w -4.5) (exp (- w)) (* (pow l (exp w)) (- 1.0 w))))
double code(double w, double l) {
double tmp;
if (w <= -4.5) {
tmp = exp(-w);
} else {
tmp = pow(l, exp(w)) * (1.0 - w);
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-4.5d0)) then
tmp = exp(-w)
else
tmp = (l ** exp(w)) * (1.0d0 - w)
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -4.5) {
tmp = Math.exp(-w);
} else {
tmp = Math.pow(l, Math.exp(w)) * (1.0 - w);
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -4.5: tmp = math.exp(-w) else: tmp = math.pow(l, math.exp(w)) * (1.0 - w) return tmp
function code(w, l) tmp = 0.0 if (w <= -4.5) tmp = exp(Float64(-w)); else tmp = Float64((l ^ exp(w)) * Float64(1.0 - w)); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -4.5) tmp = exp(-w); else tmp = (l ^ exp(w)) * (1.0 - w); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -4.5], N[Exp[(-w)], $MachinePrecision], N[(N[Power[l, N[Exp[w], $MachinePrecision]], $MachinePrecision] * N[(1.0 - w), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -4.5:\\
\;\;\;\;e^{-w}\\
\mathbf{else}:\\
\;\;\;\;{\ell}^{\left(e^{w}\right)} \cdot \left(1 - w\right)\\
\end{array}
\end{array}
if w < -4.5Initial program 100.0%
exp-neg100.0%
remove-double-neg100.0%
associate-*l/100.0%
*-lft-identity100.0%
remove-double-neg100.0%
Simplified100.0%
add-sqr-sqrt0.0%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod0.0%
add-sqr-sqrt0.1%
pow10.1%
exp-neg0.1%
inv-pow0.1%
pow-prod-up98.6%
metadata-eval98.6%
metadata-eval98.6%
metadata-eval98.6%
Applied egg-rr98.6%
add-exp-log98.6%
*-rgt-identity98.6%
log-div98.6%
add-log-exp98.6%
Applied egg-rr98.6%
Taylor expanded in w around inf 100.0%
mul-1-neg100.0%
Simplified100.0%
if -4.5 < w Initial program 99.6%
Taylor expanded in w around 0 99.2%
neg-mul-199.2%
unsub-neg99.2%
Simplified99.2%
Final simplification99.4%
(FPCore (w l) :precision binary64 (if (<= w -0.7) (exp (- w)) (if (<= w 0.31) (* l (exp w)) 0.0)))
double code(double w, double l) {
double tmp;
if (w <= -0.7) {
tmp = exp(-w);
} else if (w <= 0.31) {
tmp = l * exp(w);
} else {
tmp = 0.0;
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-0.7d0)) then
tmp = exp(-w)
else if (w <= 0.31d0) then
tmp = l * exp(w)
else
tmp = 0.0d0
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -0.7) {
tmp = Math.exp(-w);
} else if (w <= 0.31) {
tmp = l * Math.exp(w);
} else {
tmp = 0.0;
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -0.7: tmp = math.exp(-w) elif w <= 0.31: tmp = l * math.exp(w) else: tmp = 0.0 return tmp
function code(w, l) tmp = 0.0 if (w <= -0.7) tmp = exp(Float64(-w)); elseif (w <= 0.31) tmp = Float64(l * exp(w)); else tmp = 0.0; end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -0.7) tmp = exp(-w); elseif (w <= 0.31) tmp = l * exp(w); else tmp = 0.0; end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -0.7], N[Exp[(-w)], $MachinePrecision], If[LessEqual[w, 0.31], N[(l * N[Exp[w], $MachinePrecision]), $MachinePrecision], 0.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -0.7:\\
\;\;\;\;e^{-w}\\
\mathbf{elif}\;w \leq 0.31:\\
\;\;\;\;\ell \cdot e^{w}\\
\mathbf{else}:\\
\;\;\;\;0\\
\end{array}
\end{array}
if w < -0.69999999999999996Initial program 100.0%
exp-neg100.0%
remove-double-neg100.0%
associate-*l/100.0%
*-lft-identity100.0%
remove-double-neg100.0%
Simplified100.0%
add-sqr-sqrt0.0%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod0.0%
add-sqr-sqrt0.1%
pow10.1%
exp-neg0.1%
inv-pow0.1%
pow-prod-up98.6%
metadata-eval98.6%
metadata-eval98.6%
metadata-eval98.6%
Applied egg-rr98.6%
add-exp-log98.6%
*-rgt-identity98.6%
log-div98.6%
add-log-exp98.6%
Applied egg-rr98.6%
Taylor expanded in w around inf 100.0%
mul-1-neg100.0%
Simplified100.0%
if -0.69999999999999996 < w < 0.309999999999999998Initial program 99.5%
exp-neg99.5%
remove-double-neg99.5%
associate-*l/99.5%
*-lft-identity99.5%
remove-double-neg99.5%
Simplified99.5%
add-sqr-sqrt49.8%
sqrt-unprod98.3%
sqr-neg98.3%
sqrt-unprod48.5%
add-sqr-sqrt97.2%
add-sqr-sqrt97.2%
sqrt-unprod97.2%
add-sqr-sqrt48.5%
sqrt-unprod97.2%
sqr-neg97.2%
sqrt-unprod48.7%
add-sqr-sqrt97.3%
pow197.3%
exp-neg97.3%
inv-pow97.3%
pow-prod-up97.3%
metadata-eval97.3%
metadata-eval97.3%
metadata-eval97.3%
Applied egg-rr97.3%
add-exp-log88.6%
*-rgt-identity88.6%
log-div88.6%
add-log-exp88.6%
Applied egg-rr88.6%
sub-neg88.6%
exp-sum88.6%
add-exp-log97.3%
add-sqr-sqrt48.5%
sqrt-unprod97.3%
sqr-neg97.3%
sqrt-unprod48.7%
add-sqr-sqrt97.3%
Applied egg-rr97.3%
*-commutative97.3%
Simplified97.3%
if 0.309999999999999998 < w Initial program 100.0%
add-sqr-sqrt100.0%
sqrt-unprod100.0%
add-sqr-sqrt0.0%
sqrt-unprod2.4%
sqr-neg2.4%
sqrt-unprod2.4%
add-sqr-sqrt2.4%
pow12.4%
exp-neg2.4%
inv-pow2.4%
pow-prod-up100.0%
metadata-eval100.0%
metadata-eval100.0%
metadata-eval100.0%
*-un-lft-identity100.0%
add-sqr-sqrt100.0%
sqrt-unprod100.0%
sqr-neg100.0%
sqrt-unprod0.0%
add-sqr-sqrt3.1%
Applied egg-rr97.6%
Taylor expanded in l around 0 100.0%
Final simplification98.4%
(FPCore (w l) :precision binary64 (if (<= w -0.68) (exp (- w)) (if (<= w 0.19) l 0.0)))
double code(double w, double l) {
double tmp;
if (w <= -0.68) {
tmp = exp(-w);
} else if (w <= 0.19) {
tmp = l;
} else {
tmp = 0.0;
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-0.68d0)) then
tmp = exp(-w)
else if (w <= 0.19d0) then
tmp = l
else
tmp = 0.0d0
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -0.68) {
tmp = Math.exp(-w);
} else if (w <= 0.19) {
tmp = l;
} else {
tmp = 0.0;
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -0.68: tmp = math.exp(-w) elif w <= 0.19: tmp = l else: tmp = 0.0 return tmp
function code(w, l) tmp = 0.0 if (w <= -0.68) tmp = exp(Float64(-w)); elseif (w <= 0.19) tmp = l; else tmp = 0.0; end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -0.68) tmp = exp(-w); elseif (w <= 0.19) tmp = l; else tmp = 0.0; end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -0.68], N[Exp[(-w)], $MachinePrecision], If[LessEqual[w, 0.19], l, 0.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -0.68:\\
\;\;\;\;e^{-w}\\
\mathbf{elif}\;w \leq 0.19:\\
\;\;\;\;\ell\\
\mathbf{else}:\\
\;\;\;\;0\\
\end{array}
\end{array}
if w < -0.680000000000000049Initial program 100.0%
exp-neg100.0%
remove-double-neg100.0%
associate-*l/100.0%
*-lft-identity100.0%
remove-double-neg100.0%
Simplified100.0%
add-sqr-sqrt0.0%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod0.0%
add-sqr-sqrt0.1%
pow10.1%
exp-neg0.1%
inv-pow0.1%
pow-prod-up98.6%
metadata-eval98.6%
metadata-eval98.6%
metadata-eval98.6%
Applied egg-rr98.6%
add-exp-log98.6%
*-rgt-identity98.6%
log-div98.6%
add-log-exp98.6%
Applied egg-rr98.6%
Taylor expanded in w around inf 100.0%
mul-1-neg100.0%
Simplified100.0%
if -0.680000000000000049 < w < 0.19Initial program 99.5%
Taylor expanded in w around 0 97.3%
if 0.19 < w Initial program 100.0%
add-sqr-sqrt100.0%
sqrt-unprod100.0%
add-sqr-sqrt0.0%
sqrt-unprod2.4%
sqr-neg2.4%
sqrt-unprod2.4%
add-sqr-sqrt2.4%
pow12.4%
exp-neg2.4%
inv-pow2.4%
pow-prod-up100.0%
metadata-eval100.0%
metadata-eval100.0%
metadata-eval100.0%
*-un-lft-identity100.0%
add-sqr-sqrt100.0%
sqrt-unprod100.0%
sqr-neg100.0%
sqrt-unprod0.0%
add-sqr-sqrt3.1%
Applied egg-rr97.6%
Taylor expanded in l around 0 100.0%
Final simplification98.4%
(FPCore (w l) :precision binary64 (/ l (exp w)))
double code(double w, double l) {
return l / exp(w);
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
code = l / exp(w)
end function
public static double code(double w, double l) {
return l / Math.exp(w);
}
def code(w, l): return l / math.exp(w)
function code(w, l) return Float64(l / exp(w)) end
function tmp = code(w, l) tmp = l / exp(w); end
code[w_, l_] := N[(l / N[Exp[w], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\ell}{e^{w}}
\end{array}
Initial program 99.7%
exp-neg99.7%
remove-double-neg99.7%
associate-*l/99.7%
*-lft-identity99.7%
remove-double-neg99.7%
Simplified99.7%
add-sqr-sqrt44.8%
sqrt-unprod85.0%
sqr-neg85.0%
sqrt-unprod40.2%
add-sqr-sqrt84.0%
add-sqr-sqrt84.0%
sqrt-unprod84.0%
add-sqr-sqrt40.2%
sqrt-unprod68.4%
sqr-neg68.4%
sqrt-unprod28.2%
add-sqr-sqrt56.3%
pow156.3%
exp-neg56.3%
inv-pow56.3%
pow-prod-up97.7%
metadata-eval97.7%
metadata-eval97.7%
metadata-eval97.7%
Applied egg-rr97.7%
Taylor expanded in l around 0 97.7%
(FPCore (w l) :precision binary64 (if (<= w 0.132) (+ l (* l (* w (+ -1.0 (* w (+ 0.5 (* w -0.16666666666666666))))))) 0.0))
double code(double w, double l) {
double tmp;
if (w <= 0.132) {
tmp = l + (l * (w * (-1.0 + (w * (0.5 + (w * -0.16666666666666666))))));
} else {
tmp = 0.0;
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= 0.132d0) then
tmp = l + (l * (w * ((-1.0d0) + (w * (0.5d0 + (w * (-0.16666666666666666d0)))))))
else
tmp = 0.0d0
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= 0.132) {
tmp = l + (l * (w * (-1.0 + (w * (0.5 + (w * -0.16666666666666666))))));
} else {
tmp = 0.0;
}
return tmp;
}
def code(w, l): tmp = 0 if w <= 0.132: tmp = l + (l * (w * (-1.0 + (w * (0.5 + (w * -0.16666666666666666)))))) else: tmp = 0.0 return tmp
function code(w, l) tmp = 0.0 if (w <= 0.132) tmp = Float64(l + Float64(l * Float64(w * Float64(-1.0 + Float64(w * Float64(0.5 + Float64(w * -0.16666666666666666))))))); else tmp = 0.0; end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= 0.132) tmp = l + (l * (w * (-1.0 + (w * (0.5 + (w * -0.16666666666666666)))))); else tmp = 0.0; end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, 0.132], N[(l + N[(l * N[(w * N[(-1.0 + N[(w * N[(0.5 + N[(w * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq 0.132:\\
\;\;\;\;\ell + \ell \cdot \left(w \cdot \left(-1 + w \cdot \left(0.5 + w \cdot -0.16666666666666666\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0\\
\end{array}
\end{array}
if w < 0.13200000000000001Initial program 99.7%
exp-neg99.7%
remove-double-neg99.7%
associate-*l/99.7%
*-lft-identity99.7%
remove-double-neg99.7%
Simplified99.7%
add-sqr-sqrt34.3%
sqrt-unprod82.1%
sqr-neg82.1%
sqrt-unprod47.8%
add-sqr-sqrt81.3%
add-sqr-sqrt81.4%
sqrt-unprod81.3%
add-sqr-sqrt47.8%
sqrt-unprod81.4%
sqr-neg81.4%
sqrt-unprod33.5%
add-sqr-sqrt67.0%
pow167.0%
exp-neg67.0%
inv-pow67.0%
pow-prod-up97.7%
metadata-eval97.7%
metadata-eval97.7%
metadata-eval97.7%
Applied egg-rr97.7%
Taylor expanded in w around 0 88.8%
Taylor expanded in l around 0 90.1%
if 0.13200000000000001 < w Initial program 100.0%
add-sqr-sqrt100.0%
sqrt-unprod100.0%
add-sqr-sqrt0.0%
sqrt-unprod2.4%
sqr-neg2.4%
sqrt-unprod2.4%
add-sqr-sqrt2.4%
pow12.4%
exp-neg2.4%
inv-pow2.4%
pow-prod-up100.0%
metadata-eval100.0%
metadata-eval100.0%
metadata-eval100.0%
*-un-lft-identity100.0%
add-sqr-sqrt100.0%
sqrt-unprod100.0%
sqr-neg100.0%
sqrt-unprod0.0%
add-sqr-sqrt3.1%
Applied egg-rr97.6%
Taylor expanded in l around 0 100.0%
Final simplification91.7%
(FPCore (w l) :precision binary64 (if (<= w -3e-7) (+ l (* l (* w (+ -1.0 (* w (+ 0.5 (* w -0.16666666666666666))))))) (/ l (+ 1.0 (* w (+ 1.0 (* w (+ 0.5 (* w 0.16666666666666666)))))))))
double code(double w, double l) {
double tmp;
if (w <= -3e-7) {
tmp = l + (l * (w * (-1.0 + (w * (0.5 + (w * -0.16666666666666666))))));
} else {
tmp = l / (1.0 + (w * (1.0 + (w * (0.5 + (w * 0.16666666666666666))))));
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-3d-7)) then
tmp = l + (l * (w * ((-1.0d0) + (w * (0.5d0 + (w * (-0.16666666666666666d0)))))))
else
tmp = l / (1.0d0 + (w * (1.0d0 + (w * (0.5d0 + (w * 0.16666666666666666d0))))))
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -3e-7) {
tmp = l + (l * (w * (-1.0 + (w * (0.5 + (w * -0.16666666666666666))))));
} else {
tmp = l / (1.0 + (w * (1.0 + (w * (0.5 + (w * 0.16666666666666666))))));
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -3e-7: tmp = l + (l * (w * (-1.0 + (w * (0.5 + (w * -0.16666666666666666)))))) else: tmp = l / (1.0 + (w * (1.0 + (w * (0.5 + (w * 0.16666666666666666)))))) return tmp
function code(w, l) tmp = 0.0 if (w <= -3e-7) tmp = Float64(l + Float64(l * Float64(w * Float64(-1.0 + Float64(w * Float64(0.5 + Float64(w * -0.16666666666666666))))))); else tmp = Float64(l / Float64(1.0 + Float64(w * Float64(1.0 + Float64(w * Float64(0.5 + Float64(w * 0.16666666666666666))))))); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -3e-7) tmp = l + (l * (w * (-1.0 + (w * (0.5 + (w * -0.16666666666666666)))))); else tmp = l / (1.0 + (w * (1.0 + (w * (0.5 + (w * 0.16666666666666666)))))); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -3e-7], N[(l + N[(l * N[(w * N[(-1.0 + N[(w * N[(0.5 + N[(w * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l / N[(1.0 + N[(w * N[(1.0 + N[(w * N[(0.5 + N[(w * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -3 \cdot 10^{-7}:\\
\;\;\;\;\ell + \ell \cdot \left(w \cdot \left(-1 + w \cdot \left(0.5 + w \cdot -0.16666666666666666\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{1 + w \cdot \left(1 + w \cdot \left(0.5 + w \cdot 0.16666666666666666\right)\right)}\\
\end{array}
\end{array}
if w < -2.9999999999999999e-7Initial program 99.7%
exp-neg99.7%
remove-double-neg99.7%
associate-*l/99.7%
*-lft-identity99.7%
remove-double-neg99.7%
Simplified99.7%
add-sqr-sqrt0.0%
sqrt-unprod45.8%
sqr-neg45.8%
sqrt-unprod45.8%
add-sqr-sqrt45.8%
add-sqr-sqrt45.8%
sqrt-unprod45.8%
add-sqr-sqrt45.8%
sqrt-unprod45.8%
sqr-neg45.8%
sqrt-unprod0.0%
add-sqr-sqrt0.9%
pow10.9%
exp-neg0.9%
inv-pow0.9%
pow-prod-up96.6%
metadata-eval96.6%
metadata-eval96.6%
metadata-eval96.6%
Applied egg-rr96.6%
Taylor expanded in w around 0 68.9%
Taylor expanded in l around 0 73.0%
if -2.9999999999999999e-7 < w Initial program 99.7%
exp-neg99.7%
remove-double-neg99.7%
associate-*l/99.7%
*-lft-identity99.7%
remove-double-neg99.7%
Simplified99.7%
add-sqr-sqrt61.3%
sqrt-unprod99.4%
sqr-neg99.4%
sqrt-unprod38.1%
add-sqr-sqrt98.0%
add-sqr-sqrt98.0%
sqrt-unprod98.0%
add-sqr-sqrt38.1%
sqrt-unprod76.7%
sqr-neg76.7%
sqrt-unprod38.6%
add-sqr-sqrt76.7%
pow176.7%
exp-neg76.7%
inv-pow76.8%
pow-prod-up98.1%
metadata-eval98.1%
metadata-eval98.1%
metadata-eval98.1%
Applied egg-rr98.1%
Taylor expanded in w around 0 94.1%
*-commutative99.7%
Simplified94.1%
Taylor expanded in l around 0 94.1%
Final simplification88.4%
(FPCore (w l) :precision binary64 (if (<= w -3.2e-7) (+ l (* l (* w (+ -1.0 (* w (+ 0.5 (* w -0.16666666666666666))))))) (/ l (+ 1.0 (* w (+ (* w 0.5) 1.0))))))
double code(double w, double l) {
double tmp;
if (w <= -3.2e-7) {
tmp = l + (l * (w * (-1.0 + (w * (0.5 + (w * -0.16666666666666666))))));
} else {
tmp = l / (1.0 + (w * ((w * 0.5) + 1.0)));
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-3.2d-7)) then
tmp = l + (l * (w * ((-1.0d0) + (w * (0.5d0 + (w * (-0.16666666666666666d0)))))))
else
tmp = l / (1.0d0 + (w * ((w * 0.5d0) + 1.0d0)))
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -3.2e-7) {
tmp = l + (l * (w * (-1.0 + (w * (0.5 + (w * -0.16666666666666666))))));
} else {
tmp = l / (1.0 + (w * ((w * 0.5) + 1.0)));
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -3.2e-7: tmp = l + (l * (w * (-1.0 + (w * (0.5 + (w * -0.16666666666666666)))))) else: tmp = l / (1.0 + (w * ((w * 0.5) + 1.0))) return tmp
function code(w, l) tmp = 0.0 if (w <= -3.2e-7) tmp = Float64(l + Float64(l * Float64(w * Float64(-1.0 + Float64(w * Float64(0.5 + Float64(w * -0.16666666666666666))))))); else tmp = Float64(l / Float64(1.0 + Float64(w * Float64(Float64(w * 0.5) + 1.0)))); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -3.2e-7) tmp = l + (l * (w * (-1.0 + (w * (0.5 + (w * -0.16666666666666666)))))); else tmp = l / (1.0 + (w * ((w * 0.5) + 1.0))); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -3.2e-7], N[(l + N[(l * N[(w * N[(-1.0 + N[(w * N[(0.5 + N[(w * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l / N[(1.0 + N[(w * N[(N[(w * 0.5), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -3.2 \cdot 10^{-7}:\\
\;\;\;\;\ell + \ell \cdot \left(w \cdot \left(-1 + w \cdot \left(0.5 + w \cdot -0.16666666666666666\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{1 + w \cdot \left(w \cdot 0.5 + 1\right)}\\
\end{array}
\end{array}
if w < -3.2000000000000001e-7Initial program 99.7%
exp-neg99.7%
remove-double-neg99.7%
associate-*l/99.7%
*-lft-identity99.7%
remove-double-neg99.7%
Simplified99.7%
add-sqr-sqrt0.0%
sqrt-unprod45.8%
sqr-neg45.8%
sqrt-unprod45.8%
add-sqr-sqrt45.8%
add-sqr-sqrt45.8%
sqrt-unprod45.8%
add-sqr-sqrt45.8%
sqrt-unprod45.8%
sqr-neg45.8%
sqrt-unprod0.0%
add-sqr-sqrt0.9%
pow10.9%
exp-neg0.9%
inv-pow0.9%
pow-prod-up96.6%
metadata-eval96.6%
metadata-eval96.6%
metadata-eval96.6%
Applied egg-rr96.6%
Taylor expanded in w around 0 68.9%
Taylor expanded in l around 0 73.0%
if -3.2000000000000001e-7 < w Initial program 99.7%
exp-neg99.7%
remove-double-neg99.7%
associate-*l/99.7%
*-lft-identity99.7%
remove-double-neg99.7%
Simplified99.7%
add-sqr-sqrt61.3%
sqrt-unprod99.4%
sqr-neg99.4%
sqrt-unprod38.1%
add-sqr-sqrt98.0%
add-sqr-sqrt98.0%
sqrt-unprod98.0%
add-sqr-sqrt38.1%
sqrt-unprod76.7%
sqr-neg76.7%
sqrt-unprod38.6%
add-sqr-sqrt76.7%
pow176.7%
exp-neg76.7%
inv-pow76.8%
pow-prod-up98.1%
metadata-eval98.1%
metadata-eval98.1%
metadata-eval98.1%
Applied egg-rr98.1%
Taylor expanded in w around 0 93.1%
*-commutative99.7%
Simplified93.1%
Final simplification87.7%
(FPCore (w l) :precision binary64 (if (<= w -1.45) (- l (* w (+ l (* w (* w (* l 0.16666666666666666)))))) (/ l (+ 1.0 (* w (+ (* w 0.5) 1.0))))))
double code(double w, double l) {
double tmp;
if (w <= -1.45) {
tmp = l - (w * (l + (w * (w * (l * 0.16666666666666666)))));
} else {
tmp = l / (1.0 + (w * ((w * 0.5) + 1.0)));
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-1.45d0)) then
tmp = l - (w * (l + (w * (w * (l * 0.16666666666666666d0)))))
else
tmp = l / (1.0d0 + (w * ((w * 0.5d0) + 1.0d0)))
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -1.45) {
tmp = l - (w * (l + (w * (w * (l * 0.16666666666666666)))));
} else {
tmp = l / (1.0 + (w * ((w * 0.5) + 1.0)));
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -1.45: tmp = l - (w * (l + (w * (w * (l * 0.16666666666666666))))) else: tmp = l / (1.0 + (w * ((w * 0.5) + 1.0))) return tmp
function code(w, l) tmp = 0.0 if (w <= -1.45) tmp = Float64(l - Float64(w * Float64(l + Float64(w * Float64(w * Float64(l * 0.16666666666666666)))))); else tmp = Float64(l / Float64(1.0 + Float64(w * Float64(Float64(w * 0.5) + 1.0)))); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -1.45) tmp = l - (w * (l + (w * (w * (l * 0.16666666666666666))))); else tmp = l / (1.0 + (w * ((w * 0.5) + 1.0))); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -1.45], N[(l - N[(w * N[(l + N[(w * N[(w * N[(l * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l / N[(1.0 + N[(w * N[(N[(w * 0.5), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -1.45:\\
\;\;\;\;\ell - w \cdot \left(\ell + w \cdot \left(w \cdot \left(\ell \cdot 0.16666666666666666\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{1 + w \cdot \left(w \cdot 0.5 + 1\right)}\\
\end{array}
\end{array}
if w < -1.44999999999999996Initial program 100.0%
exp-neg100.0%
remove-double-neg100.0%
associate-*l/100.0%
*-lft-identity100.0%
remove-double-neg100.0%
Simplified100.0%
add-sqr-sqrt0.0%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod0.0%
add-sqr-sqrt0.1%
pow10.1%
exp-neg0.1%
inv-pow0.1%
pow-prod-up98.6%
metadata-eval98.6%
metadata-eval98.6%
metadata-eval98.6%
Applied egg-rr98.6%
Taylor expanded in w around 0 70.1%
Taylor expanded in w around inf 70.1%
distribute-rgt-out70.1%
metadata-eval70.1%
distribute-rgt-in53.7%
metadata-eval53.7%
distribute-rgt-out53.7%
distribute-rgt-in70.1%
mul-1-neg70.1%
distribute-lft-in53.7%
distribute-rgt-out53.7%
metadata-eval53.7%
distribute-lft-in70.1%
+-commutative70.1%
Simplified70.1%
if -1.44999999999999996 < w Initial program 99.6%
exp-neg99.6%
remove-double-neg99.6%
associate-*l/99.6%
*-lft-identity99.6%
remove-double-neg99.6%
Simplified99.6%
add-sqr-sqrt60.7%
sqrt-unprod98.6%
sqr-neg98.6%
sqrt-unprod38.0%
add-sqr-sqrt97.3%
add-sqr-sqrt97.3%
sqrt-unprod97.3%
add-sqr-sqrt38.0%
sqrt-unprod76.2%
sqr-neg76.2%
sqrt-unprod38.2%
add-sqr-sqrt76.2%
pow176.2%
exp-neg76.2%
inv-pow76.2%
pow-prod-up97.4%
metadata-eval97.4%
metadata-eval97.4%
metadata-eval97.4%
Applied egg-rr97.4%
Taylor expanded in w around 0 92.5%
*-commutative99.5%
Simplified92.5%
Final simplification86.6%
(FPCore (w l) :precision binary64 (if (<= w -2.5e-7) (* l (+ 1.0 (* w (+ (* w 0.5) -1.0)))) (/ l (+ 1.0 (* w (+ (* w 0.5) 1.0))))))
double code(double w, double l) {
double tmp;
if (w <= -2.5e-7) {
tmp = l * (1.0 + (w * ((w * 0.5) + -1.0)));
} else {
tmp = l / (1.0 + (w * ((w * 0.5) + 1.0)));
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-2.5d-7)) then
tmp = l * (1.0d0 + (w * ((w * 0.5d0) + (-1.0d0))))
else
tmp = l / (1.0d0 + (w * ((w * 0.5d0) + 1.0d0)))
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -2.5e-7) {
tmp = l * (1.0 + (w * ((w * 0.5) + -1.0)));
} else {
tmp = l / (1.0 + (w * ((w * 0.5) + 1.0)));
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -2.5e-7: tmp = l * (1.0 + (w * ((w * 0.5) + -1.0))) else: tmp = l / (1.0 + (w * ((w * 0.5) + 1.0))) return tmp
function code(w, l) tmp = 0.0 if (w <= -2.5e-7) tmp = Float64(l * Float64(1.0 + Float64(w * Float64(Float64(w * 0.5) + -1.0)))); else tmp = Float64(l / Float64(1.0 + Float64(w * Float64(Float64(w * 0.5) + 1.0)))); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -2.5e-7) tmp = l * (1.0 + (w * ((w * 0.5) + -1.0))); else tmp = l / (1.0 + (w * ((w * 0.5) + 1.0))); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -2.5e-7], N[(l * N[(1.0 + N[(w * N[(N[(w * 0.5), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l / N[(1.0 + N[(w * N[(N[(w * 0.5), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -2.5 \cdot 10^{-7}:\\
\;\;\;\;\ell \cdot \left(1 + w \cdot \left(w \cdot 0.5 + -1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{1 + w \cdot \left(w \cdot 0.5 + 1\right)}\\
\end{array}
\end{array}
if w < -2.49999999999999989e-7Initial program 99.7%
Taylor expanded in w around 0 62.2%
add-sqr-sqrt0.0%
sqrt-unprod45.8%
sqr-neg45.8%
sqrt-unprod45.8%
add-sqr-sqrt45.8%
add-sqr-sqrt45.8%
sqrt-unprod45.8%
add-sqr-sqrt45.8%
sqrt-unprod45.8%
sqr-neg45.8%
sqrt-unprod0.0%
add-sqr-sqrt0.9%
pow10.9%
exp-neg0.9%
inv-pow0.9%
pow-prod-up96.6%
metadata-eval96.6%
metadata-eval96.6%
metadata-eval96.6%
Applied egg-rr68.8%
if -2.49999999999999989e-7 < w Initial program 99.7%
exp-neg99.7%
remove-double-neg99.7%
associate-*l/99.7%
*-lft-identity99.7%
remove-double-neg99.7%
Simplified99.7%
add-sqr-sqrt61.3%
sqrt-unprod99.4%
sqr-neg99.4%
sqrt-unprod38.1%
add-sqr-sqrt98.0%
add-sqr-sqrt98.0%
sqrt-unprod98.0%
add-sqr-sqrt38.1%
sqrt-unprod76.7%
sqr-neg76.7%
sqrt-unprod38.6%
add-sqr-sqrt76.7%
pow176.7%
exp-neg76.7%
inv-pow76.8%
pow-prod-up98.1%
metadata-eval98.1%
metadata-eval98.1%
metadata-eval98.1%
Applied egg-rr98.1%
Taylor expanded in w around 0 93.1%
*-commutative99.7%
Simplified93.1%
Final simplification86.6%
(FPCore (w l) :precision binary64 (if (<= w -0.35) (* l (+ 1.0 (* w (+ (* w 0.5) -1.0)))) (/ l (+ w 1.0))))
double code(double w, double l) {
double tmp;
if (w <= -0.35) {
tmp = l * (1.0 + (w * ((w * 0.5) + -1.0)));
} else {
tmp = l / (w + 1.0);
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-0.35d0)) then
tmp = l * (1.0d0 + (w * ((w * 0.5d0) + (-1.0d0))))
else
tmp = l / (w + 1.0d0)
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -0.35) {
tmp = l * (1.0 + (w * ((w * 0.5) + -1.0)));
} else {
tmp = l / (w + 1.0);
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -0.35: tmp = l * (1.0 + (w * ((w * 0.5) + -1.0))) else: tmp = l / (w + 1.0) return tmp
function code(w, l) tmp = 0.0 if (w <= -0.35) tmp = Float64(l * Float64(1.0 + Float64(w * Float64(Float64(w * 0.5) + -1.0)))); else tmp = Float64(l / Float64(w + 1.0)); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -0.35) tmp = l * (1.0 + (w * ((w * 0.5) + -1.0))); else tmp = l / (w + 1.0); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -0.35], N[(l * N[(1.0 + N[(w * N[(N[(w * 0.5), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l / N[(w + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -0.35:\\
\;\;\;\;\ell \cdot \left(1 + w \cdot \left(w \cdot 0.5 + -1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{w + 1}\\
\end{array}
\end{array}
if w < -0.34999999999999998Initial program 100.0%
Taylor expanded in w around 0 61.6%
add-sqr-sqrt0.0%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod0.0%
add-sqr-sqrt0.1%
pow10.1%
exp-neg0.1%
inv-pow0.1%
pow-prod-up98.6%
metadata-eval98.6%
metadata-eval98.6%
metadata-eval98.6%
Applied egg-rr70.0%
if -0.34999999999999998 < w Initial program 99.6%
exp-neg99.6%
remove-double-neg99.6%
associate-*l/99.6%
*-lft-identity99.6%
remove-double-neg99.6%
Simplified99.6%
add-sqr-sqrt60.7%
sqrt-unprod98.6%
sqr-neg98.6%
sqrt-unprod38.0%
add-sqr-sqrt97.3%
add-sqr-sqrt97.3%
sqrt-unprod97.3%
add-sqr-sqrt38.0%
sqrt-unprod76.2%
sqr-neg76.2%
sqrt-unprod38.2%
add-sqr-sqrt76.2%
pow176.2%
exp-neg76.2%
inv-pow76.2%
pow-prod-up97.4%
metadata-eval97.4%
metadata-eval97.4%
metadata-eval97.4%
Applied egg-rr97.4%
Taylor expanded in w around 0 86.7%
+-commutative99.2%
Simplified86.7%
Final simplification82.4%
(FPCore (w l) :precision binary64 (if (<= w -0.205) (+ l (* w (- (* w (* l 0.5)) l))) (/ l (+ w 1.0))))
double code(double w, double l) {
double tmp;
if (w <= -0.205) {
tmp = l + (w * ((w * (l * 0.5)) - l));
} else {
tmp = l / (w + 1.0);
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-0.205d0)) then
tmp = l + (w * ((w * (l * 0.5d0)) - l))
else
tmp = l / (w + 1.0d0)
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -0.205) {
tmp = l + (w * ((w * (l * 0.5)) - l));
} else {
tmp = l / (w + 1.0);
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -0.205: tmp = l + (w * ((w * (l * 0.5)) - l)) else: tmp = l / (w + 1.0) return tmp
function code(w, l) tmp = 0.0 if (w <= -0.205) tmp = Float64(l + Float64(w * Float64(Float64(w * Float64(l * 0.5)) - l))); else tmp = Float64(l / Float64(w + 1.0)); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -0.205) tmp = l + (w * ((w * (l * 0.5)) - l)); else tmp = l / (w + 1.0); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -0.205], N[(l + N[(w * N[(N[(w * N[(l * 0.5), $MachinePrecision]), $MachinePrecision] - l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l / N[(w + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -0.205:\\
\;\;\;\;\ell + w \cdot \left(w \cdot \left(\ell \cdot 0.5\right) - \ell\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{w + 1}\\
\end{array}
\end{array}
if w < -0.204999999999999988Initial program 100.0%
exp-neg100.0%
remove-double-neg100.0%
associate-*l/100.0%
*-lft-identity100.0%
remove-double-neg100.0%
Simplified100.0%
add-sqr-sqrt0.0%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod0.0%
add-sqr-sqrt0.1%
pow10.1%
exp-neg0.1%
inv-pow0.1%
pow-prod-up98.6%
metadata-eval98.6%
metadata-eval98.6%
metadata-eval98.6%
Applied egg-rr98.6%
Taylor expanded in w around 0 70.1%
Taylor expanded in w around 0 57.3%
neg-mul-157.3%
+-commutative57.3%
sub-neg57.3%
mul-1-neg57.3%
distribute-rgt-out57.3%
metadata-eval57.3%
distribute-rgt-neg-in57.3%
distribute-rgt-neg-in57.3%
metadata-eval57.3%
Simplified57.3%
if -0.204999999999999988 < w Initial program 99.6%
exp-neg99.6%
remove-double-neg99.6%
associate-*l/99.6%
*-lft-identity99.6%
remove-double-neg99.6%
Simplified99.6%
add-sqr-sqrt60.7%
sqrt-unprod98.6%
sqr-neg98.6%
sqrt-unprod38.0%
add-sqr-sqrt97.3%
add-sqr-sqrt97.3%
sqrt-unprod97.3%
add-sqr-sqrt38.0%
sqrt-unprod76.2%
sqr-neg76.2%
sqrt-unprod38.2%
add-sqr-sqrt76.2%
pow176.2%
exp-neg76.2%
inv-pow76.2%
pow-prod-up97.4%
metadata-eval97.4%
metadata-eval97.4%
metadata-eval97.4%
Applied egg-rr97.4%
Taylor expanded in w around 0 86.7%
+-commutative99.2%
Simplified86.7%
Final simplification79.0%
(FPCore (w l) :precision binary64 (if (<= w -0.014) (* l (- 1.0 w)) (/ l (+ w 1.0))))
double code(double w, double l) {
double tmp;
if (w <= -0.014) {
tmp = l * (1.0 - w);
} else {
tmp = l / (w + 1.0);
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-0.014d0)) then
tmp = l * (1.0d0 - w)
else
tmp = l / (w + 1.0d0)
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -0.014) {
tmp = l * (1.0 - w);
} else {
tmp = l / (w + 1.0);
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -0.014: tmp = l * (1.0 - w) else: tmp = l / (w + 1.0) return tmp
function code(w, l) tmp = 0.0 if (w <= -0.014) tmp = Float64(l * Float64(1.0 - w)); else tmp = Float64(l / Float64(w + 1.0)); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -0.014) tmp = l * (1.0 - w); else tmp = l / (w + 1.0); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -0.014], N[(l * N[(1.0 - w), $MachinePrecision]), $MachinePrecision], N[(l / N[(w + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -0.014:\\
\;\;\;\;\ell \cdot \left(1 - w\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{w + 1}\\
\end{array}
\end{array}
if w < -0.0140000000000000003Initial program 100.0%
exp-neg100.0%
remove-double-neg100.0%
associate-*l/100.0%
*-lft-identity100.0%
remove-double-neg100.0%
Simplified100.0%
add-sqr-sqrt0.0%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod0.0%
add-sqr-sqrt0.1%
pow10.1%
exp-neg0.1%
inv-pow0.1%
pow-prod-up98.6%
metadata-eval98.6%
metadata-eval98.6%
metadata-eval98.6%
Applied egg-rr98.6%
add-exp-log98.6%
*-rgt-identity98.6%
log-div98.6%
add-log-exp98.6%
Applied egg-rr98.6%
Taylor expanded in w around 0 20.4%
mul-1-neg20.4%
unsub-neg20.4%
*-commutative20.4%
Simplified20.4%
Taylor expanded in l around 0 20.4%
if -0.0140000000000000003 < w Initial program 99.6%
exp-neg99.6%
remove-double-neg99.6%
associate-*l/99.6%
*-lft-identity99.6%
remove-double-neg99.6%
Simplified99.6%
add-sqr-sqrt60.7%
sqrt-unprod98.6%
sqr-neg98.6%
sqrt-unprod38.0%
add-sqr-sqrt97.3%
add-sqr-sqrt97.3%
sqrt-unprod97.3%
add-sqr-sqrt38.0%
sqrt-unprod76.2%
sqr-neg76.2%
sqrt-unprod38.2%
add-sqr-sqrt76.2%
pow176.2%
exp-neg76.2%
inv-pow76.2%
pow-prod-up97.4%
metadata-eval97.4%
metadata-eval97.4%
metadata-eval97.4%
Applied egg-rr97.4%
Taylor expanded in w around 0 86.7%
+-commutative99.2%
Simplified86.7%
Final simplification69.4%
(FPCore (w l) :precision binary64 (if (<= w -0.0155) (* l (- w)) l))
double code(double w, double l) {
double tmp;
if (w <= -0.0155) {
tmp = l * -w;
} else {
tmp = l;
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-0.0155d0)) then
tmp = l * -w
else
tmp = l
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -0.0155) {
tmp = l * -w;
} else {
tmp = l;
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -0.0155: tmp = l * -w else: tmp = l return tmp
function code(w, l) tmp = 0.0 if (w <= -0.0155) tmp = Float64(l * Float64(-w)); else tmp = l; end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -0.0155) tmp = l * -w; else tmp = l; end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -0.0155], N[(l * (-w)), $MachinePrecision], l]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -0.0155:\\
\;\;\;\;\ell \cdot \left(-w\right)\\
\mathbf{else}:\\
\;\;\;\;\ell\\
\end{array}
\end{array}
if w < -0.0155Initial program 100.0%
exp-neg100.0%
remove-double-neg100.0%
associate-*l/100.0%
*-lft-identity100.0%
remove-double-neg100.0%
Simplified100.0%
add-sqr-sqrt0.0%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
add-sqr-sqrt46.4%
sqrt-unprod46.4%
sqr-neg46.4%
sqrt-unprod0.0%
add-sqr-sqrt0.1%
pow10.1%
exp-neg0.1%
inv-pow0.1%
pow-prod-up98.6%
metadata-eval98.6%
metadata-eval98.6%
metadata-eval98.6%
Applied egg-rr98.6%
add-exp-log98.6%
*-rgt-identity98.6%
log-div98.6%
add-log-exp98.6%
Applied egg-rr98.6%
Taylor expanded in w around 0 20.4%
mul-1-neg20.4%
unsub-neg20.4%
*-commutative20.4%
Simplified20.4%
Taylor expanded in w around inf 20.4%
mul-1-neg20.4%
*-commutative20.4%
distribute-rgt-neg-in20.4%
Simplified20.4%
if -0.0155 < w Initial program 99.6%
Taylor expanded in w around 0 77.3%
Final simplification62.4%
(FPCore (w l) :precision binary64 (- l (* l w)))
double code(double w, double l) {
return l - (l * w);
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
code = l - (l * w)
end function
public static double code(double w, double l) {
return l - (l * w);
}
def code(w, l): return l - (l * w)
function code(w, l) return Float64(l - Float64(l * w)) end
function tmp = code(w, l) tmp = l - (l * w); end
code[w_, l_] := N[(l - N[(l * w), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\ell - \ell \cdot w
\end{array}
Initial program 99.7%
exp-neg99.7%
remove-double-neg99.7%
associate-*l/99.7%
*-lft-identity99.7%
remove-double-neg99.7%
Simplified99.7%
add-sqr-sqrt44.8%
sqrt-unprod85.0%
sqr-neg85.0%
sqrt-unprod40.2%
add-sqr-sqrt84.0%
add-sqr-sqrt84.0%
sqrt-unprod84.0%
add-sqr-sqrt40.2%
sqrt-unprod68.4%
sqr-neg68.4%
sqrt-unprod28.2%
add-sqr-sqrt56.3%
pow156.3%
exp-neg56.3%
inv-pow56.3%
pow-prod-up97.7%
metadata-eval97.7%
metadata-eval97.7%
metadata-eval97.7%
Applied egg-rr97.7%
add-exp-log92.7%
*-rgt-identity92.7%
log-div92.7%
add-log-exp92.7%
Applied egg-rr92.7%
Taylor expanded in w around 0 62.1%
mul-1-neg62.1%
unsub-neg62.1%
*-commutative62.1%
Simplified62.1%
Final simplification62.1%
(FPCore (w l) :precision binary64 (* l (- 1.0 w)))
double code(double w, double l) {
return l * (1.0 - w);
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
code = l * (1.0d0 - w)
end function
public static double code(double w, double l) {
return l * (1.0 - w);
}
def code(w, l): return l * (1.0 - w)
function code(w, l) return Float64(l * Float64(1.0 - w)) end
function tmp = code(w, l) tmp = l * (1.0 - w); end
code[w_, l_] := N[(l * N[(1.0 - w), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\ell \cdot \left(1 - w\right)
\end{array}
Initial program 99.7%
exp-neg99.7%
remove-double-neg99.7%
associate-*l/99.7%
*-lft-identity99.7%
remove-double-neg99.7%
Simplified99.7%
add-sqr-sqrt44.8%
sqrt-unprod85.0%
sqr-neg85.0%
sqrt-unprod40.2%
add-sqr-sqrt84.0%
add-sqr-sqrt84.0%
sqrt-unprod84.0%
add-sqr-sqrt40.2%
sqrt-unprod68.4%
sqr-neg68.4%
sqrt-unprod28.2%
add-sqr-sqrt56.3%
pow156.3%
exp-neg56.3%
inv-pow56.3%
pow-prod-up97.7%
metadata-eval97.7%
metadata-eval97.7%
metadata-eval97.7%
Applied egg-rr97.7%
add-exp-log92.7%
*-rgt-identity92.7%
log-div92.7%
add-log-exp92.7%
Applied egg-rr92.7%
Taylor expanded in w around 0 62.1%
mul-1-neg62.1%
unsub-neg62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in l around 0 62.1%
(FPCore (w l) :precision binary64 l)
double code(double w, double l) {
return l;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
code = l
end function
public static double code(double w, double l) {
return l;
}
def code(w, l): return l
function code(w, l) return l end
function tmp = code(w, l) tmp = l; end
code[w_, l_] := l
\begin{array}{l}
\\
\ell
\end{array}
Initial program 99.7%
Taylor expanded in w around 0 58.0%
herbie shell --seed 2024141
(FPCore (w l)
:name "exp-w (used to crash)"
:precision binary64
(* (exp (- w)) (pow l (exp w))))