
(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 14 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 (if (<= w 0.108) (* (exp (- w)) l) (log (exp l))))
double code(double w, double l) {
double tmp;
if (w <= 0.108) {
tmp = exp(-w) * l;
} else {
tmp = log(exp(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.108d0) then
tmp = exp(-w) * l
else
tmp = log(exp(l))
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= 0.108) {
tmp = Math.exp(-w) * l;
} else {
tmp = Math.log(Math.exp(l));
}
return tmp;
}
def code(w, l): tmp = 0 if w <= 0.108: tmp = math.exp(-w) * l else: tmp = math.log(math.exp(l)) return tmp
function code(w, l) tmp = 0.0 if (w <= 0.108) tmp = Float64(exp(Float64(-w)) * l); else tmp = log(exp(l)); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= 0.108) tmp = exp(-w) * l; else tmp = log(exp(l)); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, 0.108], N[(N[Exp[(-w)], $MachinePrecision] * l), $MachinePrecision], N[Log[N[Exp[l], $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq 0.108:\\
\;\;\;\;e^{-w} \cdot \ell\\
\mathbf{else}:\\
\;\;\;\;\log \left(e^{\ell}\right)\\
\end{array}
\end{array}
if w < 0.107999999999999999Initial program 99.7%
Taylor expanded in w around 0 98.3%
if 0.107999999999999999 < w Initial program 91.3%
add-sqr-sqrt91.3%
sqrt-unprod91.3%
exp-neg91.3%
inv-pow91.3%
add-sqr-sqrt0.0%
sqrt-unprod6.5%
sqr-neg6.5%
sqrt-unprod6.5%
add-sqr-sqrt6.5%
pow16.5%
pow-prod-up95.7%
metadata-eval95.7%
metadata-eval95.7%
metadata-eval95.7%
*-un-lft-identity95.7%
add-sqr-sqrt95.7%
sqrt-unprod95.7%
sqr-neg95.7%
sqrt-unprod0.0%
add-sqr-sqrt2.9%
add-sqr-sqrt2.9%
Applied egg-rr70.4%
unpow1/370.7%
rem-cbrt-cube5.5%
add-log-exp100.0%
Applied egg-rr100.0%
Final simplification98.6%
(FPCore (w l) :precision binary64 (* (/ 1.0 (pow (cbrt (exp w)) 2.0)) (* (cbrt (exp (- w))) (pow l (exp w)))))
double code(double w, double l) {
return (1.0 / pow(cbrt(exp(w)), 2.0)) * (cbrt(exp(-w)) * pow(l, exp(w)));
}
public static double code(double w, double l) {
return (1.0 / Math.pow(Math.cbrt(Math.exp(w)), 2.0)) * (Math.cbrt(Math.exp(-w)) * Math.pow(l, Math.exp(w)));
}
function code(w, l) return Float64(Float64(1.0 / (cbrt(exp(w)) ^ 2.0)) * Float64(cbrt(exp(Float64(-w))) * (l ^ exp(w)))) end
code[w_, l_] := N[(N[(1.0 / N[Power[N[Power[N[Exp[w], $MachinePrecision], 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Power[N[Exp[(-w)], $MachinePrecision], 1/3], $MachinePrecision] * N[Power[l, N[Exp[w], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{{\left(\sqrt[3]{e^{w}}\right)}^{2}} \cdot \left(\sqrt[3]{e^{-w}} \cdot {\ell}^{\left(e^{w}\right)}\right)
\end{array}
Initial program 98.2%
exp-neg98.2%
remove-double-neg98.2%
associate-*l/98.2%
*-lft-identity98.2%
remove-double-neg98.2%
Simplified98.2%
Taylor expanded in l around inf 92.8%
mul-1-neg92.8%
distribute-rgt-neg-in92.8%
log-rec92.8%
remove-double-div92.8%
Simplified92.8%
*-un-lft-identity92.8%
metadata-eval92.8%
add-cube-cbrt92.8%
times-frac92.8%
metadata-eval92.8%
pow292.8%
*-commutative92.8%
exp-to-pow98.2%
Applied egg-rr98.2%
Taylor expanded in l around 0 98.2%
rec-exp98.2%
Simplified98.2%
Final simplification98.2%
(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}
Initial program 98.2%
Final simplification98.2%
(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 98.2%
exp-neg98.2%
remove-double-neg98.2%
associate-*l/98.2%
*-lft-identity98.2%
remove-double-neg98.2%
Simplified98.2%
Final simplification98.2%
(FPCore (w l) :precision binary64 (if (or (<= w -0.68) (not (<= w 31350.0))) (exp (- w)) (* (exp w) l)))
double code(double w, double l) {
double tmp;
if ((w <= -0.68) || !(w <= 31350.0)) {
tmp = exp(-w);
} else {
tmp = exp(w) * 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.68d0)) .or. (.not. (w <= 31350.0d0))) then
tmp = exp(-w)
else
tmp = exp(w) * l
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if ((w <= -0.68) || !(w <= 31350.0)) {
tmp = Math.exp(-w);
} else {
tmp = Math.exp(w) * l;
}
return tmp;
}
def code(w, l): tmp = 0 if (w <= -0.68) or not (w <= 31350.0): tmp = math.exp(-w) else: tmp = math.exp(w) * l return tmp
function code(w, l) tmp = 0.0 if ((w <= -0.68) || !(w <= 31350.0)) tmp = exp(Float64(-w)); else tmp = Float64(exp(w) * l); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if ((w <= -0.68) || ~((w <= 31350.0))) tmp = exp(-w); else tmp = exp(w) * l; end tmp_2 = tmp; end
code[w_, l_] := If[Or[LessEqual[w, -0.68], N[Not[LessEqual[w, 31350.0]], $MachinePrecision]], N[Exp[(-w)], $MachinePrecision], N[(N[Exp[w], $MachinePrecision] * l), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -0.68 \lor \neg \left(w \leq 31350\right):\\
\;\;\;\;e^{-w}\\
\mathbf{else}:\\
\;\;\;\;e^{w} \cdot \ell\\
\end{array}
\end{array}
if w < -0.680000000000000049 or 31350 < w Initial program 100.0%
exp-neg100.0%
remove-double-neg100.0%
associate-*l/100.0%
*-lft-identity100.0%
remove-double-neg100.0%
Simplified100.0%
Taylor expanded in l around inf 99.9%
mul-1-neg99.9%
distribute-rgt-neg-in99.9%
log-rec99.9%
remove-double-div99.9%
Simplified99.9%
div-exp99.9%
fma-neg99.9%
Applied egg-rr99.9%
Taylor expanded in w around inf 99.2%
mul-1-neg99.2%
Simplified99.2%
if -0.680000000000000049 < w < 31350Initial program 96.7%
Taylor expanded in w around 0 94.2%
pow194.2%
*-commutative94.2%
add-sqr-sqrt46.9%
sqrt-unprod94.8%
sqr-neg94.8%
sqrt-unprod47.9%
add-sqr-sqrt94.8%
Applied egg-rr94.8%
unpow194.8%
Simplified94.8%
Final simplification96.8%
(FPCore (w l) :precision binary64 (if (or (<= w -0.68) (not (<= w 31350.0))) (exp (- w)) l))
double code(double w, double l) {
double tmp;
if ((w <= -0.68) || !(w <= 31350.0)) {
tmp = exp(-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.68d0)) .or. (.not. (w <= 31350.0d0))) then
tmp = exp(-w)
else
tmp = l
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if ((w <= -0.68) || !(w <= 31350.0)) {
tmp = Math.exp(-w);
} else {
tmp = l;
}
return tmp;
}
def code(w, l): tmp = 0 if (w <= -0.68) or not (w <= 31350.0): tmp = math.exp(-w) else: tmp = l return tmp
function code(w, l) tmp = 0.0 if ((w <= -0.68) || !(w <= 31350.0)) tmp = exp(Float64(-w)); else tmp = l; end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if ((w <= -0.68) || ~((w <= 31350.0))) tmp = exp(-w); else tmp = l; end tmp_2 = tmp; end
code[w_, l_] := If[Or[LessEqual[w, -0.68], N[Not[LessEqual[w, 31350.0]], $MachinePrecision]], N[Exp[(-w)], $MachinePrecision], l]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -0.68 \lor \neg \left(w \leq 31350\right):\\
\;\;\;\;e^{-w}\\
\mathbf{else}:\\
\;\;\;\;\ell\\
\end{array}
\end{array}
if w < -0.680000000000000049 or 31350 < w Initial program 100.0%
exp-neg100.0%
remove-double-neg100.0%
associate-*l/100.0%
*-lft-identity100.0%
remove-double-neg100.0%
Simplified100.0%
Taylor expanded in l around inf 99.9%
mul-1-neg99.9%
distribute-rgt-neg-in99.9%
log-rec99.9%
remove-double-div99.9%
Simplified99.9%
div-exp99.9%
fma-neg99.9%
Applied egg-rr99.9%
Taylor expanded in w around inf 99.2%
mul-1-neg99.2%
Simplified99.2%
if -0.680000000000000049 < w < 31350Initial program 96.7%
Taylor expanded in w around 0 94.2%
Taylor expanded in w around 0 93.5%
Final simplification96.0%
(FPCore (w l) :precision binary64 (* (exp (- w)) l))
double code(double w, double l) {
return exp(-w) * l;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
code = exp(-w) * l
end function
public static double code(double w, double l) {
return Math.exp(-w) * l;
}
def code(w, l): return math.exp(-w) * l
function code(w, l) return Float64(exp(Float64(-w)) * l) end
function tmp = code(w, l) tmp = exp(-w) * l; end
code[w_, l_] := N[(N[Exp[(-w)], $MachinePrecision] * l), $MachinePrecision]
\begin{array}{l}
\\
e^{-w} \cdot \ell
\end{array}
Initial program 98.2%
Taylor expanded in w around 0 96.4%
Final simplification96.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 98.2%
exp-neg98.2%
remove-double-neg98.2%
associate-*l/98.2%
*-lft-identity98.2%
remove-double-neg98.2%
Simplified98.2%
Taylor expanded in w around 0 96.4%
Final simplification96.4%
(FPCore (w l) :precision binary64 (+ l (* w (- (* w (+ (* -0.16666666666666666 (* w l)) (* l 0.5))) l))))
double code(double w, double l) {
return l + (w * ((w * ((-0.16666666666666666 * (w * l)) + (l * 0.5))) - l));
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
code = l + (w * ((w * (((-0.16666666666666666d0) * (w * l)) + (l * 0.5d0))) - l))
end function
public static double code(double w, double l) {
return l + (w * ((w * ((-0.16666666666666666 * (w * l)) + (l * 0.5))) - l));
}
def code(w, l): return l + (w * ((w * ((-0.16666666666666666 * (w * l)) + (l * 0.5))) - l))
function code(w, l) return Float64(l + Float64(w * Float64(Float64(w * Float64(Float64(-0.16666666666666666 * Float64(w * l)) + Float64(l * 0.5))) - l))) end
function tmp = code(w, l) tmp = l + (w * ((w * ((-0.16666666666666666 * (w * l)) + (l * 0.5))) - l)); end
code[w_, l_] := N[(l + N[(w * N[(N[(w * N[(N[(-0.16666666666666666 * N[(w * l), $MachinePrecision]), $MachinePrecision] + N[(l * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\ell + w \cdot \left(w \cdot \left(-0.16666666666666666 \cdot \left(w \cdot \ell\right) + \ell \cdot 0.5\right) - \ell\right)
\end{array}
Initial program 98.2%
Taylor expanded in w around 0 96.4%
Taylor expanded in w around 0 73.7%
Final simplification73.7%
(FPCore (w l) :precision binary64 (+ l (* w (+ l (* w (* l 0.5))))))
double code(double w, double l) {
return l + (w * (l + (w * (l * 0.5))));
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
code = l + (w * (l + (w * (l * 0.5d0))))
end function
public static double code(double w, double l) {
return l + (w * (l + (w * (l * 0.5))));
}
def code(w, l): return l + (w * (l + (w * (l * 0.5))))
function code(w, l) return Float64(l + Float64(w * Float64(l + Float64(w * Float64(l * 0.5))))) end
function tmp = code(w, l) tmp = l + (w * (l + (w * (l * 0.5)))); end
code[w_, l_] := N[(l + N[(w * N[(l + N[(w * N[(l * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\ell + w \cdot \left(\ell + w \cdot \left(\ell \cdot 0.5\right)\right)
\end{array}
Initial program 98.2%
Taylor expanded in w around 0 96.4%
pow196.4%
*-commutative96.4%
add-sqr-sqrt54.9%
sqrt-unprod81.8%
sqr-neg81.8%
sqrt-unprod26.8%
add-sqr-sqrt53.3%
Applied egg-rr53.3%
unpow153.3%
Simplified53.3%
Taylor expanded in w around 0 70.1%
associate-*r*70.1%
*-commutative70.1%
Simplified70.1%
Final simplification70.1%
(FPCore (w l) :precision binary64 (- l (* w (+ l (* w (* l -0.5))))))
double code(double w, double l) {
return l - (w * (l + (w * (l * -0.5))));
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
code = l - (w * (l + (w * (l * (-0.5d0)))))
end function
public static double code(double w, double l) {
return l - (w * (l + (w * (l * -0.5))));
}
def code(w, l): return l - (w * (l + (w * (l * -0.5))))
function code(w, l) return Float64(l - Float64(w * Float64(l + Float64(w * Float64(l * -0.5))))) end
function tmp = code(w, l) tmp = l - (w * (l + (w * (l * -0.5)))); end
code[w_, l_] := N[(l - N[(w * N[(l + N[(w * N[(l * -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\ell - w \cdot \left(\ell + w \cdot \left(\ell \cdot -0.5\right)\right)
\end{array}
Initial program 98.2%
exp-neg98.2%
remove-double-neg98.2%
associate-*l/98.2%
*-lft-identity98.2%
remove-double-neg98.2%
Simplified98.2%
Taylor expanded in w around 0 96.4%
Taylor expanded in w around 0 70.1%
associate-*r*70.1%
neg-mul-170.1%
distribute-rgt-out70.1%
metadata-eval70.1%
Simplified70.1%
Final simplification70.1%
(FPCore (w l) :precision binary64 (if (<= w -0.012) (* w (- l)) l))
double code(double w, double l) {
double tmp;
if (w <= -0.012) {
tmp = w * -l;
} 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.012d0)) then
tmp = w * -l
else
tmp = l
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -0.012) {
tmp = w * -l;
} else {
tmp = l;
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -0.012: tmp = w * -l else: tmp = l return tmp
function code(w, l) tmp = 0.0 if (w <= -0.012) tmp = Float64(w * Float64(-l)); else tmp = l; end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -0.012) tmp = w * -l; else tmp = l; end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -0.012], N[(w * (-l)), $MachinePrecision], l]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -0.012:\\
\;\;\;\;w \cdot \left(-\ell\right)\\
\mathbf{else}:\\
\;\;\;\;\ell\\
\end{array}
\end{array}
if w < -0.012Initial program 99.9%
exp-neg99.9%
remove-double-neg99.9%
associate-*l/99.9%
*-lft-identity99.9%
remove-double-neg99.9%
Simplified99.9%
Taylor expanded in w around 0 98.7%
Taylor expanded in w around 0 28.0%
mul-1-neg28.0%
unsub-neg28.0%
*-rgt-identity28.0%
distribute-lft-out--28.0%
Simplified28.0%
Taylor expanded in w around inf 28.0%
associate-*r*28.0%
mul-1-neg28.0%
Simplified28.0%
if -0.012 < w Initial program 97.4%
Taylor expanded in w around 0 95.4%
Taylor expanded in w around 0 74.6%
Final simplification60.9%
(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 98.2%
exp-neg98.2%
remove-double-neg98.2%
associate-*l/98.2%
*-lft-identity98.2%
remove-double-neg98.2%
Simplified98.2%
Taylor expanded in w around 0 96.4%
Taylor expanded in w around 0 60.6%
mul-1-neg60.6%
unsub-neg60.6%
*-rgt-identity60.6%
distribute-lft-out--60.6%
Simplified60.6%
Final simplification60.6%
(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 98.2%
Taylor expanded in w around 0 96.4%
Taylor expanded in w around 0 53.9%
Final simplification53.9%
herbie shell --seed 2024059
(FPCore (w l)
:name "exp-w (used to crash)"
:precision binary64
(* (exp (- w)) (pow l (exp w))))