
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
Initial program 99.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(+
(+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c)))
(* y i))))
(if (<= t_1 (- INFINITY))
(* i y)
(if (<= t_1 -2e+65) (+ (- (- z)) a) (+ (- (* (- y) i)) a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = i * y;
} else if (t_1 <= -2e+65) {
tmp = -(-z) + a;
} else {
tmp = -(-y * i) + a;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = i * y;
} else if (t_1 <= -2e+65) {
tmp = -(-z) + a;
} else {
tmp = -(-y * i) + a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i) tmp = 0 if t_1 <= -math.inf: tmp = i * y elif t_1 <= -2e+65: tmp = -(-z) + a else: tmp = -(-y * i) + a return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(i * y); elseif (t_1 <= -2e+65) tmp = Float64(Float64(-Float64(-z)) + a); else tmp = Float64(Float64(-Float64(Float64(-y) * i)) + a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); tmp = 0.0; if (t_1 <= -Inf) tmp = i * y; elseif (t_1 <= -2e+65) tmp = -(-z) + a; else tmp = -(-y * i) + a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(i * y), $MachinePrecision], If[LessEqual[t$95$1, -2e+65], N[((-(-z)) + a), $MachinePrecision], N[((-N[((-y) * i), $MachinePrecision]) + a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;i \cdot y\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{+65}:\\
\;\;\;\;\left(-\left(-z\right)\right) + a\\
\mathbf{else}:\\
\;\;\;\;\left(-\left(-y\right) \cdot i\right) + a\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -inf.0Initial program 100.0%
Taylor expanded in y around inf
lower-*.f64100.0
Applied rewrites100.0%
if -inf.0 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -2e65Initial program 99.8%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites84.3%
Taylor expanded in x around 0
Applied rewrites58.6%
Taylor expanded in z around -inf
Applied rewrites46.5%
Taylor expanded in z around inf
Applied rewrites39.3%
if -2e65 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) Initial program 99.8%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites86.5%
Taylor expanded in x around 0
Applied rewrites72.1%
Taylor expanded in z around -inf
Applied rewrites60.7%
Taylor expanded in y around inf
Applied rewrites39.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(+
(+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c)))
(* y i))))
(if (or (<= t_1 (- INFINITY)) (not (<= t_1 1e+307)))
(* i y)
(+ (- (- z)) a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
double tmp;
if ((t_1 <= -((double) INFINITY)) || !(t_1 <= 1e+307)) {
tmp = i * y;
} else {
tmp = -(-z) + a;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
double tmp;
if ((t_1 <= -Double.POSITIVE_INFINITY) || !(t_1 <= 1e+307)) {
tmp = i * y;
} else {
tmp = -(-z) + a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i) tmp = 0 if (t_1 <= -math.inf) or not (t_1 <= 1e+307): tmp = i * y else: tmp = -(-z) + a return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) tmp = 0.0 if ((t_1 <= Float64(-Inf)) || !(t_1 <= 1e+307)) tmp = Float64(i * y); else tmp = Float64(Float64(-Float64(-z)) + a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); tmp = 0.0; if ((t_1 <= -Inf) || ~((t_1 <= 1e+307))) tmp = i * y; else tmp = -(-z) + a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, (-Infinity)], N[Not[LessEqual[t$95$1, 1e+307]], $MachinePrecision]], N[(i * y), $MachinePrecision], N[((-(-z)) + a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i\\
\mathbf{if}\;t\_1 \leq -\infty \lor \neg \left(t\_1 \leq 10^{+307}\right):\\
\;\;\;\;i \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(-\left(-z\right)\right) + a\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -inf.0 or 9.99999999999999986e306 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) Initial program 99.9%
Taylor expanded in y around inf
lower-*.f6496.7
Applied rewrites96.7%
if -inf.0 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < 9.99999999999999986e306Initial program 99.8%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites84.2%
Taylor expanded in x around 0
Applied rewrites63.9%
Taylor expanded in z around -inf
Applied rewrites51.1%
Taylor expanded in z around inf
Applied rewrites37.2%
Final simplification44.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (- b 0.5) (log c))))
(if (<= t_1 -5e+163)
(+ (+ a t) (fma (- b 0.5) (log c) (fma i y z)))
(if (<= t_1 4e+104)
(+ (fma i y (fma (log y) x (fma -0.5 (log c) z))) a)
(+ (+ (fma (log c) (+ -0.5 b) (* i y)) z) a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (b - 0.5) * log(c);
double tmp;
if (t_1 <= -5e+163) {
tmp = (a + t) + fma((b - 0.5), log(c), fma(i, y, z));
} else if (t_1 <= 4e+104) {
tmp = fma(i, y, fma(log(y), x, fma(-0.5, log(c), z))) + a;
} else {
tmp = (fma(log(c), (-0.5 + b), (i * y)) + z) + a;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(b - 0.5) * log(c)) tmp = 0.0 if (t_1 <= -5e+163) tmp = Float64(Float64(a + t) + fma(Float64(b - 0.5), log(c), fma(i, y, z))); elseif (t_1 <= 4e+104) tmp = Float64(fma(i, y, fma(log(y), x, fma(-0.5, log(c), z))) + a); else tmp = Float64(Float64(fma(log(c), Float64(-0.5 + b), Float64(i * y)) + z) + a); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+163], N[(N[(a + t), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + N[(i * y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4e+104], N[(N[(i * y + N[(N[Log[y], $MachinePrecision] * x + N[(-0.5 * N[Log[c], $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision], N[(N[(N[(N[Log[c], $MachinePrecision] * N[(-0.5 + b), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - 0.5\right) \cdot \log c\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+163}:\\
\;\;\;\;\left(a + t\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(i, y, z\right)\right)\\
\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+104}:\\
\;\;\;\;\mathsf{fma}\left(i, y, \mathsf{fma}\left(\log y, x, \mathsf{fma}\left(-0.5, \log c, z\right)\right)\right) + a\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(\log c, -0.5 + b, i \cdot y\right) + z\right) + a\\
\end{array}
\end{array}
if (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c)) < -5e163Initial program 99.8%
Taylor expanded in x around 0
associate-+r+N/A
lower-+.f64N/A
lower-+.f64N/A
associate-+r+N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-log.f64N/A
+-commutativeN/A
lower-fma.f6491.8
Applied rewrites91.8%
if -5e163 < (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c)) < 4e104Initial program 99.8%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites85.4%
Taylor expanded in b around 0
Applied rewrites83.8%
if 4e104 < (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c)) Initial program 99.8%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites86.1%
Taylor expanded in x around 0
Applied rewrites84.4%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -5.4e+175) (not (<= x 2.4e+124))) (+ (fma (log y) x (fma (log c) (- b 0.5) z)) a) (+ (+ a t) (fma (- b 0.5) (log c) (fma i y z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -5.4e+175) || !(x <= 2.4e+124)) {
tmp = fma(log(y), x, fma(log(c), (b - 0.5), z)) + a;
} else {
tmp = (a + t) + fma((b - 0.5), log(c), fma(i, y, z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -5.4e+175) || !(x <= 2.4e+124)) tmp = Float64(fma(log(y), x, fma(log(c), Float64(b - 0.5), z)) + a); else tmp = Float64(Float64(a + t) + fma(Float64(b - 0.5), log(c), fma(i, y, z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -5.4e+175], N[Not[LessEqual[x, 2.4e+124]], $MachinePrecision]], N[(N[(N[Log[y], $MachinePrecision] * x + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision], N[(N[(a + t), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + N[(i * y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.4 \cdot 10^{+175} \lor \neg \left(x \leq 2.4 \cdot 10^{+124}\right):\\
\;\;\;\;\mathsf{fma}\left(\log y, x, \mathsf{fma}\left(\log c, b - 0.5, z\right)\right) + a\\
\mathbf{else}:\\
\;\;\;\;\left(a + t\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(i, y, z\right)\right)\\
\end{array}
\end{array}
if x < -5.4000000000000002e175 or 2.40000000000000006e124 < x Initial program 99.7%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites89.6%
Taylor expanded in z around inf
Applied rewrites81.0%
Taylor expanded in y around 0
Applied rewrites78.2%
if -5.4000000000000002e175 < x < 2.40000000000000006e124Initial program 99.9%
Taylor expanded in x around 0
associate-+r+N/A
lower-+.f64N/A
lower-+.f64N/A
associate-+r+N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-log.f64N/A
+-commutativeN/A
lower-fma.f6495.7
Applied rewrites95.7%
Final simplification90.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -3.5e+78) (+ (+ (+ (+ t z) a) (* (- b 0.5) (log c))) (* y i)) (+ (fma i y (fma (log y) x (* (log c) b))) a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -3.5e+78) {
tmp = (((t + z) + a) + ((b - 0.5) * log(c))) + (y * i);
} else {
tmp = fma(i, y, fma(log(y), x, (log(c) * b))) + a;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -3.5e+78) tmp = Float64(Float64(Float64(Float64(t + z) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)); else tmp = Float64(fma(i, y, fma(log(y), x, Float64(log(c) * b))) + a); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -3.5e+78], N[(N[(N[(N[(t + z), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(i * y + N[(N[Log[y], $MachinePrecision] * x + N[(N[Log[c], $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{+78}:\\
\;\;\;\;\left(\left(\left(t + z\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i, y, \mathsf{fma}\left(\log y, x, \log c \cdot b\right)\right) + a\\
\end{array}
\end{array}
if z < -3.5000000000000001e78Initial program 99.9%
Taylor expanded in x around 0
+-commutativeN/A
lower-+.f64N/A
lower-+.f6490.9
Applied rewrites90.9%
if -3.5000000000000001e78 < z Initial program 99.8%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites85.3%
Taylor expanded in z around inf
Applied rewrites73.8%
Taylor expanded in b around inf
Applied rewrites74.2%
Final simplification77.1%
(FPCore (x y z t a b c i) :precision binary64 (+ (fma i y (fma (log y) x (fma (- b 0.5) (log c) z))) a))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return fma(i, y, fma(log(y), x, fma((b - 0.5), log(c), z))) + a;
}
function code(x, y, z, t, a, b, c, i) return Float64(fma(i, y, fma(log(y), x, fma(Float64(b - 0.5), log(c), z))) + a) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(i * y + N[(N[Log[y], $MachinePrecision] * x + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(i, y, \mathsf{fma}\left(\log y, x, \mathsf{fma}\left(b - 0.5, \log c, z\right)\right)\right) + a
\end{array}
Initial program 99.8%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites86.1%
(FPCore (x y z t a b c i) :precision binary64 (if (<= (* (- b 0.5) (log c)) 2e+195) (+ (fma i y (* 1.0 z)) a) (* (log c) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((b - 0.5) * log(c)) <= 2e+195) {
tmp = fma(i, y, (1.0 * z)) + a;
} else {
tmp = log(c) * b;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(Float64(b - 0.5) * log(c)) <= 2e+195) tmp = Float64(fma(i, y, Float64(1.0 * z)) + a); else tmp = Float64(log(c) * b); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision], 2e+195], N[(N[(i * y + N[(1.0 * z), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision], N[(N[Log[c], $MachinePrecision] * b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(b - 0.5\right) \cdot \log c \leq 2 \cdot 10^{+195}:\\
\;\;\;\;\mathsf{fma}\left(i, y, 1 \cdot z\right) + a\\
\mathbf{else}:\\
\;\;\;\;\log c \cdot b\\
\end{array}
\end{array}
if (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c)) < 1.99999999999999995e195Initial program 99.8%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites84.8%
Taylor expanded in b around 0
Applied rewrites78.0%
Taylor expanded in z around inf
Applied rewrites68.4%
Taylor expanded in z around inf
Applied rewrites56.3%
if 1.99999999999999995e195 < (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c)) Initial program 99.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
lower-log.f6466.6
Applied rewrites66.6%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -3.4e+214) (not (<= x 1.8e+70))) (+ (fma i y (* (log y) x)) a) (+ (+ a t) (fma (- b 0.5) (log c) (fma i y z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -3.4e+214) || !(x <= 1.8e+70)) {
tmp = fma(i, y, (log(y) * x)) + a;
} else {
tmp = (a + t) + fma((b - 0.5), log(c), fma(i, y, z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -3.4e+214) || !(x <= 1.8e+70)) tmp = Float64(fma(i, y, Float64(log(y) * x)) + a); else tmp = Float64(Float64(a + t) + fma(Float64(b - 0.5), log(c), fma(i, y, z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -3.4e+214], N[Not[LessEqual[x, 1.8e+70]], $MachinePrecision]], N[(N[(i * y + N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision], N[(N[(a + t), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + N[(i * y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.4 \cdot 10^{+214} \lor \neg \left(x \leq 1.8 \cdot 10^{+70}\right):\\
\;\;\;\;\mathsf{fma}\left(i, y, \log y \cdot x\right) + a\\
\mathbf{else}:\\
\;\;\;\;\left(a + t\right) + \mathsf{fma}\left(b - 0.5, \log c, \mathsf{fma}\left(i, y, z\right)\right)\\
\end{array}
\end{array}
if x < -3.3999999999999998e214 or 1.8e70 < x Initial program 99.7%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites91.7%
Taylor expanded in b around 0
Applied rewrites84.1%
Taylor expanded in z around inf
Applied rewrites60.4%
Taylor expanded in x around inf
Applied rewrites78.9%
if -3.3999999999999998e214 < x < 1.8e70Initial program 99.9%
Taylor expanded in x around 0
associate-+r+N/A
lower-+.f64N/A
lower-+.f64N/A
associate-+r+N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-log.f64N/A
+-commutativeN/A
lower-fma.f6495.5
Applied rewrites95.5%
Final simplification90.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -3.4e+214) (not (<= x 1.8e+70))) (+ (fma i y (* (log y) x)) a) (+ (+ (fma (log c) (+ -0.5 b) (* i y)) z) a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -3.4e+214) || !(x <= 1.8e+70)) {
tmp = fma(i, y, (log(y) * x)) + a;
} else {
tmp = (fma(log(c), (-0.5 + b), (i * y)) + z) + a;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -3.4e+214) || !(x <= 1.8e+70)) tmp = Float64(fma(i, y, Float64(log(y) * x)) + a); else tmp = Float64(Float64(fma(log(c), Float64(-0.5 + b), Float64(i * y)) + z) + a); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -3.4e+214], N[Not[LessEqual[x, 1.8e+70]], $MachinePrecision]], N[(N[(i * y + N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision], N[(N[(N[(N[Log[c], $MachinePrecision] * N[(-0.5 + b), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.4 \cdot 10^{+214} \lor \neg \left(x \leq 1.8 \cdot 10^{+70}\right):\\
\;\;\;\;\mathsf{fma}\left(i, y, \log y \cdot x\right) + a\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(\log c, -0.5 + b, i \cdot y\right) + z\right) + a\\
\end{array}
\end{array}
if x < -3.3999999999999998e214 or 1.8e70 < x Initial program 99.7%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites91.7%
Taylor expanded in b around 0
Applied rewrites84.1%
Taylor expanded in z around inf
Applied rewrites60.4%
Taylor expanded in x around inf
Applied rewrites78.9%
if -3.3999999999999998e214 < x < 1.8e70Initial program 99.9%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites83.5%
Taylor expanded in x around 0
Applied rewrites79.1%
Final simplification79.0%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -3.4e+214) (not (<= x 1.8e+70))) (+ (fma i y (* (log y) x)) a) (+ (fma i y (fma (log c) (- b 0.5) z)) a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -3.4e+214) || !(x <= 1.8e+70)) {
tmp = fma(i, y, (log(y) * x)) + a;
} else {
tmp = fma(i, y, fma(log(c), (b - 0.5), z)) + a;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -3.4e+214) || !(x <= 1.8e+70)) tmp = Float64(fma(i, y, Float64(log(y) * x)) + a); else tmp = Float64(fma(i, y, fma(log(c), Float64(b - 0.5), z)) + a); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -3.4e+214], N[Not[LessEqual[x, 1.8e+70]], $MachinePrecision]], N[(N[(i * y + N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision], N[(N[(i * y + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.4 \cdot 10^{+214} \lor \neg \left(x \leq 1.8 \cdot 10^{+70}\right):\\
\;\;\;\;\mathsf{fma}\left(i, y, \log y \cdot x\right) + a\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i, y, \mathsf{fma}\left(\log c, b - 0.5, z\right)\right) + a\\
\end{array}
\end{array}
if x < -3.3999999999999998e214 or 1.8e70 < x Initial program 99.7%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites91.7%
Taylor expanded in b around 0
Applied rewrites84.1%
Taylor expanded in z around inf
Applied rewrites60.4%
Taylor expanded in x around inf
Applied rewrites78.9%
if -3.3999999999999998e214 < x < 1.8e70Initial program 99.9%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites83.5%
Taylor expanded in x around 0
Applied rewrites79.1%
Final simplification79.0%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -2.4e+157) (+ (fma i y (* 1.0 z)) a) (+ (fma i y (* (log y) x)) a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2.4e+157) {
tmp = fma(i, y, (1.0 * z)) + a;
} else {
tmp = fma(i, y, (log(y) * x)) + a;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -2.4e+157) tmp = Float64(fma(i, y, Float64(1.0 * z)) + a); else tmp = Float64(fma(i, y, Float64(log(y) * x)) + a); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -2.4e+157], N[(N[(i * y + N[(1.0 * z), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision], N[(N[(i * y + N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{+157}:\\
\;\;\;\;\mathsf{fma}\left(i, y, 1 \cdot z\right) + a\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i, y, \log y \cdot x\right) + a\\
\end{array}
\end{array}
if z < -2.4e157Initial program 99.9%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites91.7%
Taylor expanded in b around 0
Applied rewrites80.4%
Taylor expanded in z around inf
Applied rewrites91.7%
Taylor expanded in z around inf
Applied rewrites72.1%
if -2.4e157 < z Initial program 99.8%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites85.2%
Taylor expanded in b around 0
Applied rewrites70.4%
Taylor expanded in z around inf
Applied rewrites64.2%
Taylor expanded in x around inf
Applied rewrites59.1%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 1.95e+27) (+ (+ (* (log c) (+ -0.5 b)) z) a) (+ (fma i y (* 1.0 z)) a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 1.95e+27) {
tmp = ((log(c) * (-0.5 + b)) + z) + a;
} else {
tmp = fma(i, y, (1.0 * z)) + a;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 1.95e+27) tmp = Float64(Float64(Float64(log(c) * Float64(-0.5 + b)) + z) + a); else tmp = Float64(fma(i, y, Float64(1.0 * z)) + a); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 1.95e+27], N[(N[(N[(N[Log[c], $MachinePrecision] * N[(-0.5 + b), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + a), $MachinePrecision], N[(N[(i * y + N[(1.0 * z), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.95 \cdot 10^{+27}:\\
\;\;\;\;\left(\log c \cdot \left(-0.5 + b\right) + z\right) + a\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i, y, 1 \cdot z\right) + a\\
\end{array}
\end{array}
if y < 1.9499999999999999e27Initial program 99.8%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites84.9%
Taylor expanded in x around 0
Applied rewrites64.0%
Taylor expanded in y around 0
Applied rewrites62.5%
if 1.9499999999999999e27 < y Initial program 99.9%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites87.5%
Taylor expanded in b around 0
Applied rewrites76.9%
Taylor expanded in z around inf
Applied rewrites71.8%
Taylor expanded in z around inf
Applied rewrites61.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 1.95e+27) (+ (fma (log c) (- b 0.5) z) a) (+ (fma i y (* 1.0 z)) a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 1.95e+27) {
tmp = fma(log(c), (b - 0.5), z) + a;
} else {
tmp = fma(i, y, (1.0 * z)) + a;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 1.95e+27) tmp = Float64(fma(log(c), Float64(b - 0.5), z) + a); else tmp = Float64(fma(i, y, Float64(1.0 * z)) + a); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 1.95e+27], N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision] + z), $MachinePrecision] + a), $MachinePrecision], N[(N[(i * y + N[(1.0 * z), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.95 \cdot 10^{+27}:\\
\;\;\;\;\mathsf{fma}\left(\log c, b - 0.5, z\right) + a\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i, y, 1 \cdot z\right) + a\\
\end{array}
\end{array}
if y < 1.9499999999999999e27Initial program 99.8%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites84.9%
Taylor expanded in x around 0
Applied rewrites64.0%
Taylor expanded in b around 0
Applied rewrites46.9%
Taylor expanded in y around 0
Applied rewrites62.5%
if 1.9499999999999999e27 < y Initial program 99.9%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites87.5%
Taylor expanded in b around 0
Applied rewrites76.9%
Taylor expanded in z around inf
Applied rewrites71.8%
Taylor expanded in z around inf
Applied rewrites61.5%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -2.2e+215) (not (<= x 9.5e+245))) (* (log y) x) (+ (fma i y (* 1.0 z)) a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -2.2e+215) || !(x <= 9.5e+245)) {
tmp = log(y) * x;
} else {
tmp = fma(i, y, (1.0 * z)) + a;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -2.2e+215) || !(x <= 9.5e+245)) tmp = Float64(log(y) * x); else tmp = Float64(fma(i, y, Float64(1.0 * z)) + a); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -2.2e+215], N[Not[LessEqual[x, 9.5e+245]], $MachinePrecision]], N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision], N[(N[(i * y + N[(1.0 * z), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.2 \cdot 10^{+215} \lor \neg \left(x \leq 9.5 \cdot 10^{+245}\right):\\
\;\;\;\;\log y \cdot x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i, y, 1 \cdot z\right) + a\\
\end{array}
\end{array}
if x < -2.2000000000000001e215 or 9.49999999999999939e245 < x Initial program 99.5%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites94.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
lower-log.f6473.8
Applied rewrites73.8%
if -2.2000000000000001e215 < x < 9.49999999999999939e245Initial program 99.9%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites84.9%
Taylor expanded in b around 0
Applied rewrites69.2%
Taylor expanded in z around inf
Applied rewrites70.6%
Taylor expanded in z around inf
Applied rewrites58.1%
Final simplification60.2%
(FPCore (x y z t a b c i) :precision binary64 (+ (fma i y (* 1.0 z)) a))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return fma(i, y, (1.0 * z)) + a;
}
function code(x, y, z, t, a, b, c, i) return Float64(fma(i, y, Float64(1.0 * z)) + a) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(i * y + N[(1.0 * z), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(i, y, 1 \cdot z\right) + a
\end{array}
Initial program 99.8%
Taylor expanded in t around 0
+-commutativeN/A
lower-+.f64N/A
Applied rewrites86.1%
Taylor expanded in b around 0
Applied rewrites71.8%
Taylor expanded in z around inf
Applied rewrites67.9%
Taylor expanded in z around inf
Applied rewrites52.3%
(FPCore (x y z t a b c i) :precision binary64 (* i y))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return i * y;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = i * y
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return i * y;
}
def code(x, y, z, t, a, b, c, i): return i * y
function code(x, y, z, t, a, b, c, i) return Float64(i * y) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = i * y; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(i * y), $MachinePrecision]
\begin{array}{l}
\\
i \cdot y
\end{array}
Initial program 99.8%
Taylor expanded in y around inf
lower-*.f6421.3
Applied rewrites21.3%
herbie shell --seed 2024324
(FPCore (x y z t a b c i)
:name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, B"
:precision binary64
(+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))