
(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 (/ (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.6%
exp-neg99.6%
remove-double-neg99.6%
associate-*l/99.6%
*-lft-identity99.6%
remove-double-neg99.6%
Simplified99.6%
(FPCore (w l)
:precision binary64
(if (<= w -1.6)
(/ l (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 = l / 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 = l / 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 = l / 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 = l / 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 = Float64(l / exp(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 = l / 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[(l / N[Exp[w], $MachinePrecision]), $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:\\
\;\;\;\;\frac{\ell}{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-unprod48.0%
sqr-neg48.0%
sqrt-unprod48.0%
add-sqr-sqrt48.0%
add-sqr-sqrt48.0%
sqrt-unprod48.0%
add-sqr-sqrt48.0%
sqrt-unprod48.0%
sqr-neg48.0%
sqrt-unprod0.0%
add-sqr-sqrt0.0%
pow10.0%
exp-neg0.0%
inv-pow0.0%
pow-prod-up100.0%
metadata-eval100.0%
metadata-eval100.0%
metadata-eval100.0%
Applied egg-rr100.0%
Taylor expanded in l around 0 100.0%
if -1.6000000000000001 < w Initial program 99.5%
exp-neg99.5%
remove-double-neg99.5%
associate-*l/99.5%
*-lft-identity99.5%
remove-double-neg99.5%
Simplified99.5%
Taylor expanded in w around 0 99.2%
*-commutative99.2%
Simplified99.2%
(FPCore (w l) :precision binary64 (if (<= w -260.0) (/ l (exp w)) (/ (pow l (exp w)) (+ 1.0 (* w (+ 1.0 (* w 0.5)))))))
double code(double w, double l) {
double tmp;
if (w <= -260.0) {
tmp = l / exp(w);
} else {
tmp = pow(l, exp(w)) / (1.0 + (w * (1.0 + (w * 0.5))));
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-260.0d0)) then
tmp = l / exp(w)
else
tmp = (l ** exp(w)) / (1.0d0 + (w * (1.0d0 + (w * 0.5d0))))
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -260.0) {
tmp = l / Math.exp(w);
} else {
tmp = Math.pow(l, Math.exp(w)) / (1.0 + (w * (1.0 + (w * 0.5))));
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -260.0: tmp = l / math.exp(w) else: tmp = math.pow(l, math.exp(w)) / (1.0 + (w * (1.0 + (w * 0.5)))) return tmp
function code(w, l) tmp = 0.0 if (w <= -260.0) tmp = Float64(l / exp(w)); else tmp = Float64((l ^ exp(w)) / Float64(1.0 + Float64(w * Float64(1.0 + Float64(w * 0.5))))); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -260.0) tmp = l / exp(w); else tmp = (l ^ exp(w)) / (1.0 + (w * (1.0 + (w * 0.5)))); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -260.0], N[(l / N[Exp[w], $MachinePrecision]), $MachinePrecision], N[(N[Power[l, N[Exp[w], $MachinePrecision]], $MachinePrecision] / N[(1.0 + N[(w * N[(1.0 + N[(w * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -260:\\
\;\;\;\;\frac{\ell}{e^{w}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{\left(e^{w}\right)}}{1 + w \cdot \left(1 + w \cdot 0.5\right)}\\
\end{array}
\end{array}
if w < -260Initial 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-unprod48.0%
sqr-neg48.0%
sqrt-unprod48.0%
add-sqr-sqrt48.0%
add-sqr-sqrt48.0%
sqrt-unprod48.0%
add-sqr-sqrt48.0%
sqrt-unprod48.0%
sqr-neg48.0%
sqrt-unprod0.0%
add-sqr-sqrt0.0%
pow10.0%
exp-neg0.0%
inv-pow0.0%
pow-prod-up100.0%
metadata-eval100.0%
metadata-eval100.0%
metadata-eval100.0%
Applied egg-rr100.0%
Taylor expanded in l around 0 100.0%
if -260 < w Initial program 99.5%
exp-neg99.5%
remove-double-neg99.5%
associate-*l/99.5%
*-lft-identity99.5%
remove-double-neg99.5%
Simplified99.5%
Taylor expanded in w around 0 99.0%
*-commutative99.0%
Simplified99.0%
(FPCore (w l)
:precision binary64
(if (<= w -7200000.0)
(/ l (exp w))
(/
(pow l (+ 1.0 (* w (+ 1.0 (* w (+ 0.5 (* w 0.16666666666666666)))))))
(+ 1.0 (* w (+ 1.0 (* w 0.5)))))))
double code(double w, double l) {
double tmp;
if (w <= -7200000.0) {
tmp = l / exp(w);
} else {
tmp = pow(l, (1.0 + (w * (1.0 + (w * (0.5 + (w * 0.16666666666666666))))))) / (1.0 + (w * (1.0 + (w * 0.5))));
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: tmp
if (w <= (-7200000.0d0)) then
tmp = l / exp(w)
else
tmp = (l ** (1.0d0 + (w * (1.0d0 + (w * (0.5d0 + (w * 0.16666666666666666d0))))))) / (1.0d0 + (w * (1.0d0 + (w * 0.5d0))))
end if
code = tmp
end function
public static double code(double w, double l) {
double tmp;
if (w <= -7200000.0) {
tmp = l / Math.exp(w);
} else {
tmp = Math.pow(l, (1.0 + (w * (1.0 + (w * (0.5 + (w * 0.16666666666666666))))))) / (1.0 + (w * (1.0 + (w * 0.5))));
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -7200000.0: tmp = l / math.exp(w) else: tmp = math.pow(l, (1.0 + (w * (1.0 + (w * (0.5 + (w * 0.16666666666666666))))))) / (1.0 + (w * (1.0 + (w * 0.5)))) return tmp
function code(w, l) tmp = 0.0 if (w <= -7200000.0) tmp = Float64(l / exp(w)); else tmp = Float64((l ^ Float64(1.0 + Float64(w * Float64(1.0 + Float64(w * Float64(0.5 + Float64(w * 0.16666666666666666))))))) / Float64(1.0 + Float64(w * Float64(1.0 + Float64(w * 0.5))))); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -7200000.0) tmp = l / exp(w); else tmp = (l ^ (1.0 + (w * (1.0 + (w * (0.5 + (w * 0.16666666666666666))))))) / (1.0 + (w * (1.0 + (w * 0.5)))); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -7200000.0], N[(l / N[Exp[w], $MachinePrecision]), $MachinePrecision], N[(N[Power[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] / N[(1.0 + N[(w * N[(1.0 + N[(w * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -7200000:\\
\;\;\;\;\frac{\ell}{e^{w}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{\left(1 + w \cdot \left(1 + w \cdot \left(0.5 + w \cdot 0.16666666666666666\right)\right)\right)}}{1 + w \cdot \left(1 + w \cdot 0.5\right)}\\
\end{array}
\end{array}
if w < -7.2e6Initial 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-unprod48.6%
sqr-neg48.6%
sqrt-unprod48.6%
add-sqr-sqrt48.6%
add-sqr-sqrt48.6%
sqrt-unprod48.6%
add-sqr-sqrt48.6%
sqrt-unprod48.6%
sqr-neg48.6%
sqrt-unprod0.0%
add-sqr-sqrt0.0%
pow10.0%
exp-neg0.0%
inv-pow0.0%
pow-prod-up100.0%
metadata-eval100.0%
metadata-eval100.0%
metadata-eval100.0%
Applied egg-rr100.0%
Taylor expanded in l around 0 100.0%
if -7.2e6 < w Initial program 99.5%
exp-neg99.5%
remove-double-neg99.5%
associate-*l/99.5%
*-lft-identity99.5%
remove-double-neg99.5%
Simplified99.5%
Taylor expanded in w around 0 98.5%
*-commutative98.5%
Simplified98.5%
Taylor expanded in w around 0 99.0%
*-commutative98.7%
Simplified99.0%
(FPCore (w l) :precision binary64 (let* ((t_0 (+ 1.0 (* w (+ 1.0 (* w 0.5)))))) (if (<= w -2.0) (/ l (exp w)) (/ (pow l t_0) t_0))))
double code(double w, double l) {
double t_0 = 1.0 + (w * (1.0 + (w * 0.5)));
double tmp;
if (w <= -2.0) {
tmp = l / exp(w);
} else {
tmp = pow(l, t_0) / t_0;
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: t_0
real(8) :: tmp
t_0 = 1.0d0 + (w * (1.0d0 + (w * 0.5d0)))
if (w <= (-2.0d0)) then
tmp = l / exp(w)
else
tmp = (l ** t_0) / t_0
end if
code = tmp
end function
public static double code(double w, double l) {
double t_0 = 1.0 + (w * (1.0 + (w * 0.5)));
double tmp;
if (w <= -2.0) {
tmp = l / Math.exp(w);
} else {
tmp = Math.pow(l, t_0) / t_0;
}
return tmp;
}
def code(w, l): t_0 = 1.0 + (w * (1.0 + (w * 0.5))) tmp = 0 if w <= -2.0: tmp = l / math.exp(w) else: tmp = math.pow(l, t_0) / t_0 return tmp
function code(w, l) t_0 = Float64(1.0 + Float64(w * Float64(1.0 + Float64(w * 0.5)))) tmp = 0.0 if (w <= -2.0) tmp = Float64(l / exp(w)); else tmp = Float64((l ^ t_0) / t_0); end return tmp end
function tmp_2 = code(w, l) t_0 = 1.0 + (w * (1.0 + (w * 0.5))); tmp = 0.0; if (w <= -2.0) tmp = l / exp(w); else tmp = (l ^ t_0) / t_0; end tmp_2 = tmp; end
code[w_, l_] := Block[{t$95$0 = N[(1.0 + N[(w * N[(1.0 + N[(w * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[w, -2.0], N[(l / N[Exp[w], $MachinePrecision]), $MachinePrecision], N[(N[Power[l, t$95$0], $MachinePrecision] / t$95$0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 + w \cdot \left(1 + w \cdot 0.5\right)\\
\mathbf{if}\;w \leq -2:\\
\;\;\;\;\frac{\ell}{e^{w}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{t\_0}}{t\_0}\\
\end{array}
\end{array}
if w < -2Initial 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-unprod48.0%
sqr-neg48.0%
sqrt-unprod48.0%
add-sqr-sqrt48.0%
add-sqr-sqrt48.0%
sqrt-unprod48.0%
add-sqr-sqrt48.0%
sqrt-unprod48.0%
sqr-neg48.0%
sqrt-unprod0.0%
add-sqr-sqrt0.0%
pow10.0%
exp-neg0.0%
inv-pow0.0%
pow-prod-up100.0%
metadata-eval100.0%
metadata-eval100.0%
metadata-eval100.0%
Applied egg-rr100.0%
Taylor expanded in l around 0 100.0%
if -2 < w Initial program 99.5%
exp-neg99.5%
remove-double-neg99.5%
associate-*l/99.5%
*-lft-identity99.5%
remove-double-neg99.5%
Simplified99.5%
Taylor expanded in w around 0 99.0%
*-commutative99.0%
Simplified99.0%
Taylor expanded in w around 0 98.9%
*-commutative99.0%
Simplified98.9%
(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.6%
exp-neg99.6%
remove-double-neg99.6%
associate-*l/99.6%
*-lft-identity99.6%
remove-double-neg99.6%
Simplified99.6%
add-sqr-sqrt41.9%
sqrt-unprod83.6%
sqr-neg83.6%
sqrt-unprod41.7%
add-sqr-sqrt82.3%
add-sqr-sqrt82.3%
sqrt-unprod82.3%
add-sqr-sqrt41.7%
sqrt-unprod69.4%
sqr-neg69.4%
sqrt-unprod27.7%
add-sqr-sqrt55.4%
pow155.4%
exp-neg55.4%
inv-pow55.4%
pow-prod-up97.6%
metadata-eval97.6%
metadata-eval97.6%
metadata-eval97.6%
Applied egg-rr97.6%
Taylor expanded in l around 0 97.6%
(FPCore (w l)
:precision binary64
(if (<= w 1.6e-7)
(+
l
(*
w
(-
(*
w
(+
(- l (* l 0.5))
(* w (- (- (* l 0.5) l) (+ (* l -0.5) (* l 0.16666666666666666))))))
l)))
(/ l (+ 1.0 (* w (+ 1.0 (* w (+ 0.5 (* w 0.16666666666666666)))))))))
double code(double w, double l) {
double tmp;
if (w <= 1.6e-7) {
tmp = l + (w * ((w * ((l - (l * 0.5)) + (w * (((l * 0.5) - l) - ((l * -0.5) + (l * 0.16666666666666666)))))) - l));
} 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 <= 1.6d-7) then
tmp = l + (w * ((w * ((l - (l * 0.5d0)) + (w * (((l * 0.5d0) - l) - ((l * (-0.5d0)) + (l * 0.16666666666666666d0)))))) - l))
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 <= 1.6e-7) {
tmp = l + (w * ((w * ((l - (l * 0.5)) + (w * (((l * 0.5) - l) - ((l * -0.5) + (l * 0.16666666666666666)))))) - l));
} else {
tmp = l / (1.0 + (w * (1.0 + (w * (0.5 + (w * 0.16666666666666666))))));
}
return tmp;
}
def code(w, l): tmp = 0 if w <= 1.6e-7: tmp = l + (w * ((w * ((l - (l * 0.5)) + (w * (((l * 0.5) - l) - ((l * -0.5) + (l * 0.16666666666666666)))))) - l)) 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 <= 1.6e-7) tmp = Float64(l + Float64(w * Float64(Float64(w * Float64(Float64(l - Float64(l * 0.5)) + Float64(w * Float64(Float64(Float64(l * 0.5) - l) - Float64(Float64(l * -0.5) + Float64(l * 0.16666666666666666)))))) - l))); 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 <= 1.6e-7) tmp = l + (w * ((w * ((l - (l * 0.5)) + (w * (((l * 0.5) - l) - ((l * -0.5) + (l * 0.16666666666666666)))))) - l)); 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, 1.6e-7], N[(l + N[(w * N[(N[(w * N[(N[(l - N[(l * 0.5), $MachinePrecision]), $MachinePrecision] + N[(w * N[(N[(N[(l * 0.5), $MachinePrecision] - l), $MachinePrecision] - N[(N[(l * -0.5), $MachinePrecision] + N[(l * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - l), $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 1.6 \cdot 10^{-7}:\\
\;\;\;\;\ell + w \cdot \left(w \cdot \left(\left(\ell - \ell \cdot 0.5\right) + w \cdot \left(\left(\ell \cdot 0.5 - \ell\right) - \left(\ell \cdot -0.5 + \ell \cdot 0.16666666666666666\right)\right)\right) - \ell\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 < 1.6e-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-sqrt32.5%
sqrt-unprod81.1%
sqr-neg81.1%
sqrt-unprod48.5%
add-sqr-sqrt80.5%
add-sqr-sqrt80.5%
sqrt-unprod80.5%
add-sqr-sqrt48.5%
sqrt-unprod80.5%
sqr-neg80.5%
sqrt-unprod31.9%
add-sqr-sqrt64.2%
pow164.2%
exp-neg64.2%
inv-pow64.2%
pow-prod-up98.3%
metadata-eval98.3%
metadata-eval98.3%
metadata-eval98.3%
Applied egg-rr98.3%
Taylor expanded in w around 0 87.0%
if 1.6e-7 < w Initial program 99.4%
exp-neg99.4%
remove-double-neg99.4%
associate-*l/99.4%
*-lft-identity99.4%
remove-double-neg99.4%
Simplified99.4%
add-sqr-sqrt99.4%
sqrt-unprod99.4%
sqr-neg99.4%
sqrt-unprod0.0%
add-sqr-sqrt93.4%
add-sqr-sqrt93.4%
sqrt-unprod93.4%
add-sqr-sqrt0.0%
sqrt-unprod1.8%
sqr-neg1.8%
sqrt-unprod1.8%
add-sqr-sqrt1.8%
pow11.8%
exp-neg1.8%
inv-pow1.8%
pow-prod-up93.5%
metadata-eval93.5%
metadata-eval93.5%
metadata-eval93.5%
Applied egg-rr93.5%
Taylor expanded in w around 0 83.0%
*-commutative99.4%
Simplified83.0%
Final simplification86.5%
(FPCore (w l) :precision binary64 (if (<= w 22.0) (* l (+ 1.0 (* w (+ 1.0 (* w 0.5))))) (/ l (+ 1.0 (* w (+ 1.0 (* w (+ 0.5 (* w 0.16666666666666666)))))))))
double code(double w, double l) {
double tmp;
if (w <= 22.0) {
tmp = l * (1.0 + (w * (1.0 + (w * 0.5))));
} 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 <= 22.0d0) then
tmp = l * (1.0d0 + (w * (1.0d0 + (w * 0.5d0))))
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 <= 22.0) {
tmp = l * (1.0 + (w * (1.0 + (w * 0.5))));
} else {
tmp = l / (1.0 + (w * (1.0 + (w * (0.5 + (w * 0.16666666666666666))))));
}
return tmp;
}
def code(w, l): tmp = 0 if w <= 22.0: tmp = l * (1.0 + (w * (1.0 + (w * 0.5)))) 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 <= 22.0) tmp = Float64(l * Float64(1.0 + Float64(w * Float64(1.0 + Float64(w * 0.5))))); 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 <= 22.0) tmp = l * (1.0 + (w * (1.0 + (w * 0.5)))); 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, 22.0], N[(l * N[(1.0 + N[(w * N[(1.0 + N[(w * 0.5), $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 22:\\
\;\;\;\;\ell \cdot \left(1 + w \cdot \left(1 + w \cdot 0.5\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 < 22Initial 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-sqrt33.0%
sqrt-unprod81.1%
sqr-neg81.1%
sqrt-unprod48.1%
add-sqr-sqrt80.0%
add-sqr-sqrt80.0%
sqrt-unprod80.0%
add-sqr-sqrt48.1%
sqrt-unprod80.1%
sqr-neg80.1%
sqrt-unprod31.9%
add-sqr-sqrt63.9%
pow163.9%
exp-neg63.9%
inv-pow63.9%
pow-prod-up97.6%
metadata-eval97.6%
metadata-eval97.6%
metadata-eval97.6%
Applied egg-rr97.6%
clear-num97.5%
associate-/r/97.6%
exp-neg97.6%
add-sqr-sqrt65.7%
sqrt-unprod97.6%
sqr-neg97.6%
sqrt-unprod31.9%
add-sqr-sqrt64.4%
*-rgt-identity64.4%
Applied egg-rr64.4%
Taylor expanded in w around 0 85.5%
*-commutative66.1%
Simplified85.5%
if 22 < 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%
add-sqr-sqrt100.0%
sqrt-unprod100.0%
sqr-neg100.0%
sqrt-unprod0.0%
add-sqr-sqrt97.2%
add-sqr-sqrt97.2%
sqrt-unprod97.2%
add-sqr-sqrt0.0%
sqrt-unprod0.1%
sqr-neg0.1%
sqrt-unprod0.1%
add-sqr-sqrt0.1%
pow10.1%
exp-neg0.1%
inv-pow0.1%
pow-prod-up97.2%
metadata-eval97.2%
metadata-eval97.2%
metadata-eval97.2%
Applied egg-rr97.2%
Taylor expanded in w around 0 86.1%
*-commutative100.0%
Simplified86.1%
Final simplification85.6%
(FPCore (w l) :precision binary64 (let* ((t_0 (+ 1.0 (* w (+ 1.0 (* w 0.5)))))) (if (<= w 0.031) (* l t_0) (/ l t_0))))
double code(double w, double l) {
double t_0 = 1.0 + (w * (1.0 + (w * 0.5)));
double tmp;
if (w <= 0.031) {
tmp = l * t_0;
} else {
tmp = l / t_0;
}
return tmp;
}
real(8) function code(w, l)
real(8), intent (in) :: w
real(8), intent (in) :: l
real(8) :: t_0
real(8) :: tmp
t_0 = 1.0d0 + (w * (1.0d0 + (w * 0.5d0)))
if (w <= 0.031d0) then
tmp = l * t_0
else
tmp = l / t_0
end if
code = tmp
end function
public static double code(double w, double l) {
double t_0 = 1.0 + (w * (1.0 + (w * 0.5)));
double tmp;
if (w <= 0.031) {
tmp = l * t_0;
} else {
tmp = l / t_0;
}
return tmp;
}
def code(w, l): t_0 = 1.0 + (w * (1.0 + (w * 0.5))) tmp = 0 if w <= 0.031: tmp = l * t_0 else: tmp = l / t_0 return tmp
function code(w, l) t_0 = Float64(1.0 + Float64(w * Float64(1.0 + Float64(w * 0.5)))) tmp = 0.0 if (w <= 0.031) tmp = Float64(l * t_0); else tmp = Float64(l / t_0); end return tmp end
function tmp_2 = code(w, l) t_0 = 1.0 + (w * (1.0 + (w * 0.5))); tmp = 0.0; if (w <= 0.031) tmp = l * t_0; else tmp = l / t_0; end tmp_2 = tmp; end
code[w_, l_] := Block[{t$95$0 = N[(1.0 + N[(w * N[(1.0 + N[(w * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[w, 0.031], N[(l * t$95$0), $MachinePrecision], N[(l / t$95$0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 + w \cdot \left(1 + w \cdot 0.5\right)\\
\mathbf{if}\;w \leq 0.031:\\
\;\;\;\;\ell \cdot t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{t\_0}\\
\end{array}
\end{array}
if w < 0.031Initial 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-sqrt33.0%
sqrt-unprod81.1%
sqr-neg81.1%
sqrt-unprod48.1%
add-sqr-sqrt80.0%
add-sqr-sqrt80.0%
sqrt-unprod80.0%
add-sqr-sqrt48.1%
sqrt-unprod80.1%
sqr-neg80.1%
sqrt-unprod31.9%
add-sqr-sqrt63.9%
pow163.9%
exp-neg63.9%
inv-pow63.9%
pow-prod-up97.6%
metadata-eval97.6%
metadata-eval97.6%
metadata-eval97.6%
Applied egg-rr97.6%
clear-num97.5%
associate-/r/97.6%
exp-neg97.6%
add-sqr-sqrt65.7%
sqrt-unprod97.6%
sqr-neg97.6%
sqrt-unprod31.9%
add-sqr-sqrt64.4%
*-rgt-identity64.4%
Applied egg-rr64.4%
Taylor expanded in w around 0 85.5%
*-commutative66.1%
Simplified85.5%
if 0.031 < 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%
add-sqr-sqrt100.0%
sqrt-unprod100.0%
sqr-neg100.0%
sqrt-unprod0.0%
add-sqr-sqrt97.2%
add-sqr-sqrt97.2%
sqrt-unprod97.2%
add-sqr-sqrt0.0%
sqrt-unprod0.1%
sqr-neg0.1%
sqrt-unprod0.1%
add-sqr-sqrt0.1%
pow10.1%
exp-neg0.1%
inv-pow0.1%
pow-prod-up97.2%
metadata-eval97.2%
metadata-eval97.2%
metadata-eval97.2%
Applied egg-rr97.2%
Taylor expanded in w around 0 83.2%
*-commutative100.0%
Simplified83.2%
Final simplification85.2%
(FPCore (w l) :precision binary64 (if (<= w 0.037) (* l (+ 1.0 (* w (+ 1.0 (* w 0.5))))) (/ l (+ w 1.0))))
double code(double w, double l) {
double tmp;
if (w <= 0.037) {
tmp = l * (1.0 + (w * (1.0 + (w * 0.5))));
} 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.037d0) then
tmp = l * (1.0d0 + (w * (1.0d0 + (w * 0.5d0))))
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.037) {
tmp = l * (1.0 + (w * (1.0 + (w * 0.5))));
} else {
tmp = l / (w + 1.0);
}
return tmp;
}
def code(w, l): tmp = 0 if w <= 0.037: tmp = l * (1.0 + (w * (1.0 + (w * 0.5)))) else: tmp = l / (w + 1.0) return tmp
function code(w, l) tmp = 0.0 if (w <= 0.037) tmp = Float64(l * Float64(1.0 + Float64(w * Float64(1.0 + Float64(w * 0.5))))); else tmp = Float64(l / Float64(w + 1.0)); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= 0.037) tmp = l * (1.0 + (w * (1.0 + (w * 0.5)))); else tmp = l / (w + 1.0); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, 0.037], N[(l * N[(1.0 + N[(w * N[(1.0 + N[(w * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l / N[(w + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq 0.037:\\
\;\;\;\;\ell \cdot \left(1 + w \cdot \left(1 + w \cdot 0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{w + 1}\\
\end{array}
\end{array}
if w < 0.0369999999999999982Initial 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-sqrt33.0%
sqrt-unprod81.1%
sqr-neg81.1%
sqrt-unprod48.1%
add-sqr-sqrt80.0%
add-sqr-sqrt80.0%
sqrt-unprod80.0%
add-sqr-sqrt48.1%
sqrt-unprod80.1%
sqr-neg80.1%
sqrt-unprod31.9%
add-sqr-sqrt63.9%
pow163.9%
exp-neg63.9%
inv-pow63.9%
pow-prod-up97.6%
metadata-eval97.6%
metadata-eval97.6%
metadata-eval97.6%
Applied egg-rr97.6%
clear-num97.5%
associate-/r/97.6%
exp-neg97.6%
add-sqr-sqrt65.7%
sqrt-unprod97.6%
sqr-neg97.6%
sqrt-unprod31.9%
add-sqr-sqrt64.4%
*-rgt-identity64.4%
Applied egg-rr64.4%
Taylor expanded in w around 0 85.5%
*-commutative66.1%
Simplified85.5%
if 0.0369999999999999982 < 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%
add-sqr-sqrt100.0%
sqrt-unprod100.0%
sqr-neg100.0%
sqrt-unprod0.0%
add-sqr-sqrt97.2%
add-sqr-sqrt97.2%
sqrt-unprod97.2%
add-sqr-sqrt0.0%
sqrt-unprod0.1%
sqr-neg0.1%
sqrt-unprod0.1%
add-sqr-sqrt0.1%
pow10.1%
exp-neg0.1%
inv-pow0.1%
pow-prod-up97.2%
metadata-eval97.2%
metadata-eval97.2%
metadata-eval97.2%
Applied egg-rr97.2%
Taylor expanded in w around 0 61.4%
+-commutative61.4%
Simplified61.4%
Final simplification82.3%
(FPCore (w l) :precision binary64 (if (<= w -1e-15) (* w (- (/ l w) l)) (/ l (+ w 1.0))))
double code(double w, double l) {
double tmp;
if (w <= -1e-15) {
tmp = w * ((l / w) - 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 <= (-1d-15)) then
tmp = w * ((l / w) - 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 <= -1e-15) {
tmp = w * ((l / w) - l);
} else {
tmp = l / (w + 1.0);
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -1e-15: tmp = w * ((l / w) - l) else: tmp = l / (w + 1.0) return tmp
function code(w, l) tmp = 0.0 if (w <= -1e-15) tmp = Float64(w * Float64(Float64(l / w) - l)); else tmp = Float64(l / Float64(w + 1.0)); end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -1e-15) tmp = w * ((l / w) - l); else tmp = l / (w + 1.0); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -1e-15], N[(w * N[(N[(l / w), $MachinePrecision] - l), $MachinePrecision]), $MachinePrecision], N[(l / N[(w + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -1 \cdot 10^{-15}:\\
\;\;\;\;w \cdot \left(\frac{\ell}{w} - \ell\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{w + 1}\\
\end{array}
\end{array}
if w < -1.0000000000000001e-15Initial 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-unprod47.9%
sqr-neg47.9%
sqrt-unprod47.9%
add-sqr-sqrt47.9%
add-sqr-sqrt47.9%
sqrt-unprod47.9%
add-sqr-sqrt47.9%
sqrt-unprod47.9%
sqr-neg47.9%
sqrt-unprod0.0%
add-sqr-sqrt2.4%
pow12.4%
exp-neg2.4%
inv-pow2.4%
pow-prod-up97.3%
metadata-eval97.3%
metadata-eval97.3%
metadata-eval97.3%
Applied egg-rr97.3%
Taylor expanded in w around 0 25.9%
mul-1-neg25.9%
unsub-neg25.9%
Simplified25.9%
Taylor expanded in w around inf 25.9%
if -1.0000000000000001e-15 < 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.6%
sqrt-unprod99.6%
sqr-neg99.6%
sqrt-unprod39.0%
add-sqr-sqrt97.6%
add-sqr-sqrt97.6%
sqrt-unprod97.6%
add-sqr-sqrt39.0%
sqrt-unprod79.1%
sqr-neg79.1%
sqrt-unprod40.1%
add-sqr-sqrt79.1%
pow179.1%
exp-neg79.1%
inv-pow79.1%
pow-prod-up97.7%
metadata-eval97.7%
metadata-eval97.7%
metadata-eval97.7%
Applied egg-rr97.7%
Taylor expanded in w around 0 90.8%
+-commutative90.8%
Simplified90.8%
Final simplification70.8%
(FPCore (w l) :precision binary64 (if (<= w -0.025) (* l (- w)) l))
double code(double w, double l) {
double tmp;
if (w <= -0.025) {
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.025d0)) 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.025) {
tmp = l * -w;
} else {
tmp = l;
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -0.025: tmp = l * -w else: tmp = l return tmp
function code(w, l) tmp = 0.0 if (w <= -0.025) tmp = Float64(l * Float64(-w)); else tmp = l; end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -0.025) tmp = l * -w; else tmp = l; end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -0.025], N[(l * (-w)), $MachinePrecision], l]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -0.025:\\
\;\;\;\;\ell \cdot \left(-w\right)\\
\mathbf{else}:\\
\;\;\;\;\ell\\
\end{array}
\end{array}
if w < -0.025000000000000001Initial 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-unprod48.0%
sqr-neg48.0%
sqrt-unprod48.0%
add-sqr-sqrt48.0%
add-sqr-sqrt48.0%
sqrt-unprod48.0%
add-sqr-sqrt48.0%
sqrt-unprod48.0%
sqr-neg48.0%
sqrt-unprod0.0%
add-sqr-sqrt0.0%
pow10.0%
exp-neg0.0%
inv-pow0.0%
pow-prod-up100.0%
metadata-eval100.0%
metadata-eval100.0%
metadata-eval100.0%
Applied egg-rr100.0%
Taylor expanded in w around 0 24.8%
mul-1-neg24.8%
unsub-neg24.8%
Simplified24.8%
Taylor expanded in w around inf 24.8%
mul-1-neg24.8%
*-commutative24.8%
distribute-rgt-neg-in24.8%
Simplified24.8%
if -0.025000000000000001 < w Initial program 99.5%
Taylor expanded in w around 0 79.5%
Final simplification63.5%
(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.6%
exp-neg99.6%
remove-double-neg99.6%
associate-*l/99.6%
*-lft-identity99.6%
remove-double-neg99.6%
Simplified99.6%
add-sqr-sqrt41.9%
sqrt-unprod83.6%
sqr-neg83.6%
sqrt-unprod41.7%
add-sqr-sqrt82.3%
add-sqr-sqrt82.3%
sqrt-unprod82.3%
add-sqr-sqrt41.7%
sqrt-unprod69.4%
sqr-neg69.4%
sqrt-unprod27.7%
add-sqr-sqrt55.4%
pow155.4%
exp-neg55.4%
inv-pow55.4%
pow-prod-up97.6%
metadata-eval97.6%
metadata-eval97.6%
metadata-eval97.6%
Applied egg-rr97.6%
Taylor expanded in w around 0 63.1%
mul-1-neg63.1%
unsub-neg63.1%
Simplified63.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.6%
Taylor expanded in w around 0 57.3%
herbie shell --seed 2024144
(FPCore (w l)
:name "exp-w (used to crash)"
:precision binary64
(* (exp (- w)) (pow l (exp w))))