
(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 16 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 -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-unprod46.7%
sqr-neg46.7%
sqrt-unprod46.7%
add-sqr-sqrt46.7%
add-sqr-sqrt46.7%
sqrt-unprod46.7%
add-sqr-sqrt46.7%
sqrt-unprod46.7%
sqr-neg46.7%
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.2%
exp-neg99.1%
remove-double-neg99.1%
associate-*l/99.2%
*-lft-identity99.2%
remove-double-neg99.2%
Simplified99.2%
Taylor expanded in w around 0 99.5%
*-commutative99.5%
Simplified99.5%
(FPCore (w l) :precision binary64 (let* ((t_0 (sqrt (exp w)))) (/ (pow (pow l t_0) t_0) (exp w))))
double code(double w, double l) {
double t_0 = sqrt(exp(w));
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 = sqrt(exp(w))
code = ((l ** t_0) ** t_0) / exp(w)
end function
public static double code(double w, double l) {
double t_0 = Math.sqrt(Math.exp(w));
return Math.pow(Math.pow(l, t_0), t_0) / Math.exp(w);
}
def code(w, l): t_0 = math.sqrt(math.exp(w)) return math.pow(math.pow(l, t_0), t_0) / math.exp(w)
function code(w, l) t_0 = sqrt(exp(w)) return Float64(((l ^ t_0) ^ t_0) / exp(w)) end
function tmp = code(w, l) t_0 = sqrt(exp(w)); tmp = ((l ^ t_0) ^ t_0) / exp(w); end
code[w_, l_] := Block[{t$95$0 = N[Sqrt[N[Exp[w], $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 := \sqrt{e^{w}}\\
\frac{{\left({\ell}^{t\_0}\right)}^{t\_0}}{e^{w}}
\end{array}
\end{array}
Initial program 99.4%
exp-neg99.3%
remove-double-neg99.3%
associate-*l/99.4%
*-lft-identity99.4%
remove-double-neg99.4%
Simplified99.4%
Taylor expanded in l around inf 85.0%
mul-1-neg85.0%
*-commutative85.0%
distribute-lft-neg-in85.0%
log-rec85.0%
remove-double-div85.0%
Simplified85.0%
exp-to-pow99.4%
add-sqr-sqrt99.3%
pow-unpow99.4%
Applied egg-rr99.4%
(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 99.4%
(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.4%
exp-neg99.3%
remove-double-neg99.3%
associate-*l/99.4%
*-lft-identity99.4%
remove-double-neg99.4%
Simplified99.4%
(FPCore (w l) :precision binary64 (if (<= w -255.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 <= -255.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 <= (-255.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 <= -255.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 <= -255.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 <= -255.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 <= -255.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, -255.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 -255:\\
\;\;\;\;\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 < -255Initial 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.7%
sqr-neg46.7%
sqrt-unprod46.7%
add-sqr-sqrt46.7%
add-sqr-sqrt46.7%
sqrt-unprod46.7%
add-sqr-sqrt46.7%
sqrt-unprod46.7%
sqr-neg46.7%
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 -255 < w Initial program 99.2%
exp-neg99.1%
remove-double-neg99.1%
associate-*l/99.2%
*-lft-identity99.2%
remove-double-neg99.2%
Simplified99.2%
Taylor expanded in w around 0 99.2%
*-commutative99.2%
Simplified99.2%
(FPCore (w l) :precision binary64 (if (<= w -1.0) (/ l (exp w)) (/ (pow l (exp w)) (+ w 1.0))))
double code(double w, double l) {
double tmp;
if (w <= -1.0) {
tmp = l / 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 = l / 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 = l / 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 = l / 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 = Float64(l / exp(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 = l / exp(w); else tmp = (l ^ exp(w)) / (w + 1.0); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -1.0], N[(l / N[Exp[w], $MachinePrecision]), $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:\\
\;\;\;\;\frac{\ell}{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.7%
sqr-neg46.7%
sqrt-unprod46.7%
add-sqr-sqrt46.7%
add-sqr-sqrt46.7%
sqrt-unprod46.7%
add-sqr-sqrt46.7%
sqrt-unprod46.7%
sqr-neg46.7%
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 < w Initial program 99.2%
exp-neg99.1%
remove-double-neg99.1%
associate-*l/99.2%
*-lft-identity99.2%
remove-double-neg99.2%
Simplified99.2%
Taylor expanded in w around 0 99.0%
+-commutative99.0%
Simplified99.0%
(FPCore (w l)
:precision binary64
(if (<= l 1.1e-15)
(/ l (exp w))
(*
(+ 1.0 (* w (+ (* w 0.5) -1.0)))
(pow l (+ 1.0 (* w (+ 1.0 (* w 0.5))))))))
double code(double w, double l) {
double tmp;
if (l <= 1.1e-15) {
tmp = l / exp(w);
} else {
tmp = (1.0 + (w * ((w * 0.5) + -1.0))) * pow(l, (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 (l <= 1.1d-15) then
tmp = l / exp(w)
else
tmp = (1.0d0 + (w * ((w * 0.5d0) + (-1.0d0)))) * (l ** (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 (l <= 1.1e-15) {
tmp = l / Math.exp(w);
} else {
tmp = (1.0 + (w * ((w * 0.5) + -1.0))) * Math.pow(l, (1.0 + (w * (1.0 + (w * 0.5)))));
}
return tmp;
}
def code(w, l): tmp = 0 if l <= 1.1e-15: tmp = l / math.exp(w) else: tmp = (1.0 + (w * ((w * 0.5) + -1.0))) * math.pow(l, (1.0 + (w * (1.0 + (w * 0.5))))) return tmp
function code(w, l) tmp = 0.0 if (l <= 1.1e-15) tmp = Float64(l / exp(w)); else tmp = Float64(Float64(1.0 + Float64(w * Float64(Float64(w * 0.5) + -1.0))) * (l ^ 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 (l <= 1.1e-15) tmp = l / exp(w); else tmp = (1.0 + (w * ((w * 0.5) + -1.0))) * (l ^ (1.0 + (w * (1.0 + (w * 0.5))))); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[l, 1.1e-15], N[(l / N[Exp[w], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(w * N[(N[(w * 0.5), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Power[l, N[(1.0 + N[(w * N[(1.0 + N[(w * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 1.1 \cdot 10^{-15}:\\
\;\;\;\;\frac{\ell}{e^{w}}\\
\mathbf{else}:\\
\;\;\;\;\left(1 + w \cdot \left(w \cdot 0.5 + -1\right)\right) \cdot {\ell}^{\left(1 + w \cdot \left(1 + w \cdot 0.5\right)\right)}\\
\end{array}
\end{array}
if l < 1.09999999999999993e-15Initial program 99.9%
exp-neg99.9%
remove-double-neg99.9%
associate-*l/99.9%
*-lft-identity99.9%
remove-double-neg99.9%
Simplified99.9%
add-sqr-sqrt60.6%
sqrt-unprod78.8%
sqr-neg78.8%
sqrt-unprod18.2%
add-sqr-sqrt78.6%
add-sqr-sqrt78.6%
sqrt-unprod78.6%
add-sqr-sqrt18.2%
sqrt-unprod39.9%
sqr-neg39.9%
sqrt-unprod21.8%
add-sqr-sqrt39.9%
pow139.9%
exp-neg39.9%
inv-pow39.9%
pow-prod-up99.3%
metadata-eval99.3%
metadata-eval99.3%
metadata-eval99.3%
Applied egg-rr99.3%
Taylor expanded in l around 0 99.3%
if 1.09999999999999993e-15 < l Initial program 98.6%
Taylor expanded in w around 0 83.1%
Taylor expanded in w around 0 95.8%
*-commutative71.8%
Simplified95.8%
Taylor expanded in w around 0 98.8%
Final simplification99.1%
(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.4%
exp-neg99.3%
remove-double-neg99.3%
associate-*l/99.4%
*-lft-identity99.4%
remove-double-neg99.4%
Simplified99.4%
add-sqr-sqrt49.5%
sqrt-unprod86.0%
sqr-neg86.0%
sqrt-unprod36.5%
add-sqr-sqrt84.9%
add-sqr-sqrt84.9%
sqrt-unprod84.9%
add-sqr-sqrt36.5%
sqrt-unprod61.1%
sqr-neg61.1%
sqrt-unprod24.6%
add-sqr-sqrt50.2%
pow150.2%
exp-neg50.2%
inv-pow50.2%
pow-prod-up97.5%
metadata-eval97.5%
metadata-eval97.5%
metadata-eval97.5%
Applied egg-rr97.5%
Taylor expanded in l around 0 97.5%
(FPCore (w l) :precision binary64 (if (<= w -0.62) (* l (+ 1.0 (* 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 <= -0.62) {
tmp = l * (1.0 + (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 <= (-0.62d0)) then
tmp = l * (1.0d0 + (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 <= -0.62) {
tmp = l * (1.0 + (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 <= -0.62: tmp = l * (1.0 + (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 <= -0.62) tmp = Float64(l * Float64(1.0 + 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 <= -0.62) tmp = l * (1.0 + (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, -0.62], 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], 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 -0.62:\\
\;\;\;\;\ell \cdot \left(1 + 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 < -0.619999999999999996Initial program 100.0%
Taylor expanded in w around 0 58.8%
add-sqr-sqrt0.0%
sqrt-unprod46.7%
sqr-neg46.7%
sqrt-unprod46.7%
add-sqr-sqrt46.7%
add-sqr-sqrt46.7%
sqrt-unprod46.7%
add-sqr-sqrt46.7%
sqrt-unprod46.7%
sqr-neg46.7%
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-rr66.5%
if -0.619999999999999996 < w Initial program 99.2%
exp-neg99.1%
remove-double-neg99.1%
associate-*l/99.2%
*-lft-identity99.2%
remove-double-neg99.2%
Simplified99.2%
add-sqr-sqrt64.6%
sqrt-unprod98.1%
sqr-neg98.1%
sqrt-unprod33.4%
add-sqr-sqrt96.6%
add-sqr-sqrt96.6%
sqrt-unprod96.6%
add-sqr-sqrt33.4%
sqrt-unprod65.5%
sqr-neg65.5%
sqrt-unprod32.1%
add-sqr-sqrt65.6%
pow165.6%
exp-neg65.6%
inv-pow65.6%
pow-prod-up96.7%
metadata-eval96.7%
metadata-eval96.7%
metadata-eval96.7%
Applied egg-rr96.7%
Taylor expanded in l around 0 96.7%
Taylor expanded in w around 0 90.3%
*-commutative99.5%
Simplified90.3%
Final simplification84.7%
(FPCore (w l) :precision binary64 (if (<= w 720000000.0) (- l (* w (+ l (* w (* l -0.5))))) (/ l (+ 1.0 (* w (+ 1.0 (* w (+ 0.5 (* w 0.16666666666666666)))))))))
double code(double w, double l) {
double tmp;
if (w <= 720000000.0) {
tmp = l - (w * (l + (w * (l * -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 <= 720000000.0d0) then
tmp = l - (w * (l + (w * (l * (-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 <= 720000000.0) {
tmp = l - (w * (l + (w * (l * -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 <= 720000000.0: tmp = l - (w * (l + (w * (l * -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 <= 720000000.0) tmp = Float64(l - Float64(w * Float64(l + Float64(w * Float64(l * -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 <= 720000000.0) tmp = l - (w * (l + (w * (l * -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, 720000000.0], N[(l - N[(w * N[(l + N[(w * N[(l * -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 720000000:\\
\;\;\;\;\ell - w \cdot \left(\ell + w \cdot \left(\ell \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 < 7.2e8Initial program 99.2%
exp-neg99.2%
remove-double-neg99.2%
associate-*l/99.2%
*-lft-identity99.2%
remove-double-neg99.2%
Simplified99.2%
add-sqr-sqrt34.4%
sqrt-unprod81.8%
sqr-neg81.8%
sqrt-unprod47.5%
add-sqr-sqrt80.4%
add-sqr-sqrt80.4%
sqrt-unprod80.4%
add-sqr-sqrt47.5%
sqrt-unprod79.4%
sqr-neg79.4%
sqrt-unprod31.9%
add-sqr-sqrt65.2%
pow165.2%
exp-neg65.2%
inv-pow65.2%
pow-prod-up96.7%
metadata-eval96.7%
metadata-eval96.7%
metadata-eval96.7%
Applied egg-rr96.7%
Taylor expanded in w around 0 78.8%
associate-*r*78.8%
neg-mul-178.8%
distribute-rgt-out78.8%
metadata-eval78.8%
Simplified78.8%
if 7.2e8 < 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-sqrt100.0%
add-sqr-sqrt100.0%
sqrt-unprod100.0%
add-sqr-sqrt0.0%
sqrt-unprod0.0%
sqr-neg0.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%
Taylor expanded in w around 0 81.8%
*-commutative100.0%
Simplified81.8%
Final simplification79.5%
(FPCore (w l) :precision binary64 (if (<= w 470000000.0) (- l (* w (+ l (* w (* l -0.5))))) (/ l (+ 1.0 (* w (+ 1.0 (* w 0.5)))))))
double code(double w, double l) {
double tmp;
if (w <= 470000000.0) {
tmp = l - (w * (l + (w * (l * -0.5))));
} else {
tmp = l / (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 <= 470000000.0d0) then
tmp = l - (w * (l + (w * (l * (-0.5d0)))))
else
tmp = l / (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 <= 470000000.0) {
tmp = l - (w * (l + (w * (l * -0.5))));
} else {
tmp = l / (1.0 + (w * (1.0 + (w * 0.5))));
}
return tmp;
}
def code(w, l): tmp = 0 if w <= 470000000.0: tmp = l - (w * (l + (w * (l * -0.5)))) else: tmp = l / (1.0 + (w * (1.0 + (w * 0.5)))) return tmp
function code(w, l) tmp = 0.0 if (w <= 470000000.0) tmp = Float64(l - Float64(w * Float64(l + Float64(w * Float64(l * -0.5))))); else tmp = Float64(l / 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 <= 470000000.0) tmp = l - (w * (l + (w * (l * -0.5)))); else tmp = l / (1.0 + (w * (1.0 + (w * 0.5)))); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, 470000000.0], N[(l - N[(w * N[(l + N[(w * N[(l * -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l / 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 470000000:\\
\;\;\;\;\ell - w \cdot \left(\ell + w \cdot \left(\ell \cdot -0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{1 + w \cdot \left(1 + w \cdot 0.5\right)}\\
\end{array}
\end{array}
if w < 4.7e8Initial program 99.2%
exp-neg99.2%
remove-double-neg99.2%
associate-*l/99.2%
*-lft-identity99.2%
remove-double-neg99.2%
Simplified99.2%
add-sqr-sqrt34.4%
sqrt-unprod81.8%
sqr-neg81.8%
sqrt-unprod47.5%
add-sqr-sqrt80.4%
add-sqr-sqrt80.4%
sqrt-unprod80.4%
add-sqr-sqrt47.5%
sqrt-unprod79.4%
sqr-neg79.4%
sqrt-unprod31.9%
add-sqr-sqrt65.2%
pow165.2%
exp-neg65.2%
inv-pow65.2%
pow-prod-up96.7%
metadata-eval96.7%
metadata-eval96.7%
metadata-eval96.7%
Applied egg-rr96.7%
Taylor expanded in w around 0 78.8%
associate-*r*78.8%
neg-mul-178.8%
distribute-rgt-out78.8%
metadata-eval78.8%
Simplified78.8%
if 4.7e8 < 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-sqrt100.0%
add-sqr-sqrt100.0%
sqrt-unprod100.0%
add-sqr-sqrt0.0%
sqrt-unprod0.0%
sqr-neg0.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%
Taylor expanded in w around 0 72.8%
*-commutative100.0%
Simplified72.8%
Final simplification77.4%
(FPCore (w l) :precision binary64 (if (<= w -0.99) (* l (- 1.0 w)) (/ l (+ 1.0 (* w (+ 1.0 (* w 0.5)))))))
double code(double w, double l) {
double tmp;
if (w <= -0.99) {
tmp = l * (1.0 - w);
} else {
tmp = l / (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 <= (-0.99d0)) then
tmp = l * (1.0d0 - w)
else
tmp = l / (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 <= -0.99) {
tmp = l * (1.0 - w);
} else {
tmp = l / (1.0 + (w * (1.0 + (w * 0.5))));
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -0.99: tmp = l * (1.0 - w) else: tmp = l / (1.0 + (w * (1.0 + (w * 0.5)))) return tmp
function code(w, l) tmp = 0.0 if (w <= -0.99) tmp = Float64(l * Float64(1.0 - w)); else tmp = Float64(l / 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 <= -0.99) tmp = l * (1.0 - w); else tmp = l / (1.0 + (w * (1.0 + (w * 0.5)))); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -0.99], N[(l * N[(1.0 - w), $MachinePrecision]), $MachinePrecision], N[(l / 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 -0.99:\\
\;\;\;\;\ell \cdot \left(1 - w\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{1 + w \cdot \left(1 + w \cdot 0.5\right)}\\
\end{array}
\end{array}
if w < -0.98999999999999999Initial 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.7%
sqr-neg46.7%
sqrt-unprod46.7%
add-sqr-sqrt46.7%
add-sqr-sqrt46.7%
sqrt-unprod46.7%
add-sqr-sqrt46.7%
sqrt-unprod46.7%
sqr-neg46.7%
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%
Taylor expanded in w around 0 23.5%
*-rgt-identity23.5%
mul-1-neg23.5%
distribute-rgt-neg-out23.5%
distribute-lft-in23.5%
sub-neg23.5%
Simplified23.5%
if -0.98999999999999999 < w Initial program 99.2%
exp-neg99.1%
remove-double-neg99.1%
associate-*l/99.2%
*-lft-identity99.2%
remove-double-neg99.2%
Simplified99.2%
add-sqr-sqrt64.6%
sqrt-unprod98.1%
sqr-neg98.1%
sqrt-unprod33.4%
add-sqr-sqrt96.6%
add-sqr-sqrt96.6%
sqrt-unprod96.6%
add-sqr-sqrt33.4%
sqrt-unprod65.5%
sqr-neg65.5%
sqrt-unprod32.1%
add-sqr-sqrt65.6%
pow165.6%
exp-neg65.6%
inv-pow65.6%
pow-prod-up96.7%
metadata-eval96.7%
metadata-eval96.7%
metadata-eval96.7%
Applied egg-rr96.7%
Taylor expanded in l around 0 96.7%
Taylor expanded in w around 0 87.6%
*-commutative99.2%
Simplified87.6%
(FPCore (w l) :precision binary64 (if (<= w -1.0) (* l (- 1.0 w)) (/ l (+ w 1.0))))
double code(double w, double l) {
double tmp;
if (w <= -1.0) {
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 <= (-1.0d0)) 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 <= -1.0) {
tmp = l * (1.0 - w);
} else {
tmp = l / (w + 1.0);
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -1.0: tmp = l * (1.0 - w) else: tmp = l / (w + 1.0) return tmp
function code(w, l) tmp = 0.0 if (w <= -1.0) 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 <= -1.0) tmp = l * (1.0 - w); else tmp = l / (w + 1.0); end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -1.0], 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 -1:\\
\;\;\;\;\ell \cdot \left(1 - w\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{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.7%
sqr-neg46.7%
sqrt-unprod46.7%
add-sqr-sqrt46.7%
add-sqr-sqrt46.7%
sqrt-unprod46.7%
add-sqr-sqrt46.7%
sqrt-unprod46.7%
sqr-neg46.7%
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%
Taylor expanded in w around 0 23.5%
*-rgt-identity23.5%
mul-1-neg23.5%
distribute-rgt-neg-out23.5%
distribute-lft-in23.5%
sub-neg23.5%
Simplified23.5%
if -1 < w Initial program 99.2%
exp-neg99.1%
remove-double-neg99.1%
associate-*l/99.2%
*-lft-identity99.2%
remove-double-neg99.2%
Simplified99.2%
add-sqr-sqrt64.6%
sqrt-unprod98.1%
sqr-neg98.1%
sqrt-unprod33.4%
add-sqr-sqrt96.6%
add-sqr-sqrt96.6%
sqrt-unprod96.6%
add-sqr-sqrt33.4%
sqrt-unprod65.5%
sqr-neg65.5%
sqrt-unprod32.1%
add-sqr-sqrt65.6%
pow165.6%
exp-neg65.6%
inv-pow65.6%
pow-prod-up96.7%
metadata-eval96.7%
metadata-eval96.7%
metadata-eval96.7%
Applied egg-rr96.7%
Taylor expanded in l around 0 96.7%
Taylor expanded in w around 0 79.4%
+-commutative99.0%
Simplified79.4%
(FPCore (w l) :precision binary64 (if (<= w -0.65) (* l (- w)) l))
double code(double w, double l) {
double tmp;
if (w <= -0.65) {
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.65d0)) 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.65) {
tmp = l * -w;
} else {
tmp = l;
}
return tmp;
}
def code(w, l): tmp = 0 if w <= -0.65: tmp = l * -w else: tmp = l return tmp
function code(w, l) tmp = 0.0 if (w <= -0.65) tmp = Float64(l * Float64(-w)); else tmp = l; end return tmp end
function tmp_2 = code(w, l) tmp = 0.0; if (w <= -0.65) tmp = l * -w; else tmp = l; end tmp_2 = tmp; end
code[w_, l_] := If[LessEqual[w, -0.65], N[(l * (-w)), $MachinePrecision], l]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;w \leq -0.65:\\
\;\;\;\;\ell \cdot \left(-w\right)\\
\mathbf{else}:\\
\;\;\;\;\ell\\
\end{array}
\end{array}
if w < -0.650000000000000022Initial 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.7%
sqr-neg46.7%
sqrt-unprod46.7%
add-sqr-sqrt46.7%
add-sqr-sqrt46.7%
sqrt-unprod46.7%
add-sqr-sqrt46.7%
sqrt-unprod46.7%
sqr-neg46.7%
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 23.5%
mul-1-neg23.5%
unsub-neg23.5%
Simplified23.5%
Taylor expanded in w around inf 23.5%
mul-1-neg23.5%
*-commutative23.5%
distribute-rgt-neg-in23.5%
Simplified23.5%
if -0.650000000000000022 < w Initial program 99.2%
Taylor expanded in w around 0 67.2%
Final simplification56.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 99.4%
exp-neg99.3%
remove-double-neg99.3%
associate-*l/99.4%
*-lft-identity99.4%
remove-double-neg99.4%
Simplified99.4%
add-sqr-sqrt49.5%
sqrt-unprod86.0%
sqr-neg86.0%
sqrt-unprod36.5%
add-sqr-sqrt84.9%
add-sqr-sqrt84.9%
sqrt-unprod84.9%
add-sqr-sqrt36.5%
sqrt-unprod61.1%
sqr-neg61.1%
sqrt-unprod24.6%
add-sqr-sqrt50.2%
pow150.2%
exp-neg50.2%
inv-pow50.2%
pow-prod-up97.5%
metadata-eval97.5%
metadata-eval97.5%
metadata-eval97.5%
Applied egg-rr97.5%
Taylor expanded in l around 0 97.5%
Taylor expanded in w around 0 56.5%
*-rgt-identity56.5%
mul-1-neg56.5%
distribute-rgt-neg-out56.5%
distribute-lft-in56.5%
sub-neg56.5%
Simplified56.5%
(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.4%
Taylor expanded in w around 0 52.3%
herbie shell --seed 2024177
(FPCore (w l)
:name "exp-w (used to crash)"
:precision binary64
(* (exp (- w)) (pow l (exp w))))