
(FPCore (x y z t a b) :precision binary64 (+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))
double code(double x, double y, double z, double t, double a, double b) {
return (((x + y) + z) - (z * log(t))) + ((a - 0.5) * b);
}
real(8) function code(x, y, z, t, a, b)
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
code = (((x + y) + z) - (z * log(t))) + ((a - 0.5d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (((x + y) + z) - (z * Math.log(t))) + ((a - 0.5) * b);
}
def code(x, y, z, t, a, b): return (((x + y) + z) - (z * math.log(t))) + ((a - 0.5) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(Float64(x + y) + z) - Float64(z * log(t))) + Float64(Float64(a - 0.5) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = (((x + y) + z) - (z * log(t))) + ((a - 0.5) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(x + y), $MachinePrecision] + z), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))
double code(double x, double y, double z, double t, double a, double b) {
return (((x + y) + z) - (z * log(t))) + ((a - 0.5) * b);
}
real(8) function code(x, y, z, t, a, b)
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
code = (((x + y) + z) - (z * log(t))) + ((a - 0.5d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (((x + y) + z) - (z * Math.log(t))) + ((a - 0.5) * b);
}
def code(x, y, z, t, a, b): return (((x + y) + z) - (z * math.log(t))) + ((a - 0.5) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(Float64(x + y) + z) - Float64(z * log(t))) + Float64(Float64(a - 0.5) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = (((x + y) + z) - (z * log(t))) + ((a - 0.5) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(x + y), $MachinePrecision] + z), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b
\end{array}
(FPCore (x y z t a b) :precision binary64 (+ (- (+ z (+ x y)) (* z (log t))) (fma b a (* b -0.5))))
double code(double x, double y, double z, double t, double a, double b) {
return ((z + (x + y)) - (z * log(t))) + fma(b, a, (b * -0.5));
}
function code(x, y, z, t, a, b) return Float64(Float64(Float64(z + Float64(x + y)) - Float64(z * log(t))) + fma(b, a, Float64(b * -0.5))) end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(z + N[(x + y), $MachinePrecision]), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * a + N[(b * -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(z + \left(x + y\right)\right) - z \cdot \log t\right) + \mathsf{fma}\left(b, a, b \cdot -0.5\right)
\end{array}
Initial program 99.9%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval99.9
Applied egg-rr99.9%
Final simplification99.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- a 0.5))))
(if (<= t_1 -1e+80)
(+ y (fma b (+ a -0.5) x))
(if (<= t_1 1e+28)
(fma z (- 1.0 (log t)) (+ x y))
(+ x (fma b (+ a -0.5) y))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double tmp;
if (t_1 <= -1e+80) {
tmp = y + fma(b, (a + -0.5), x);
} else if (t_1 <= 1e+28) {
tmp = fma(z, (1.0 - log(t)), (x + y));
} else {
tmp = x + fma(b, (a + -0.5), y);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(a - 0.5)) tmp = 0.0 if (t_1 <= -1e+80) tmp = Float64(y + fma(b, Float64(a + -0.5), x)); elseif (t_1 <= 1e+28) tmp = fma(z, Float64(1.0 - log(t)), Float64(x + y)); else tmp = Float64(x + fma(b, Float64(a + -0.5), y)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+80], N[(y + N[(b * N[(a + -0.5), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+28], N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] + N[(x + y), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(a + -0.5), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a - 0.5\right)\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+80}:\\
\;\;\;\;y + \mathsf{fma}\left(b, a + -0.5, x\right)\\
\mathbf{elif}\;t\_1 \leq 10^{+28}:\\
\;\;\;\;\mathsf{fma}\left(z, 1 - \log t, x + y\right)\\
\mathbf{else}:\\
\;\;\;\;x + \mathsf{fma}\left(b, a + -0.5, y\right)\\
\end{array}
\end{array}
if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -1e80Initial program 99.8%
Taylor expanded in z around 0
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6491.9
Simplified91.9%
if -1e80 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 9.99999999999999958e27Initial program 99.8%
Taylor expanded in b around 0
cancel-sign-sub-invN/A
associate-+r+N/A
associate-+l+N/A
cancel-sign-sub-invN/A
*-rgt-identityN/A
distribute-lft-out--N/A
+-commutativeN/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f6497.2
Simplified97.2%
if 9.99999999999999958e27 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) Initial program 100.0%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval100.0
Applied egg-rr100.0%
Taylor expanded in z around 0
associate-+r+N/A
+-commutativeN/A
distribute-rgt-inN/A
metadata-evalN/A
sub-negN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6489.8
Simplified89.8%
Final simplification93.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma b (+ a -0.5) y)))
(if (<= b -2.7e+122)
(+ x t_1)
(if (<= b 1.7e+60)
(+ (- (+ z (+ x y)) (* z (log t))) (* b a))
(fma z (- 1.0 (log t)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(b, (a + -0.5), y);
double tmp;
if (b <= -2.7e+122) {
tmp = x + t_1;
} else if (b <= 1.7e+60) {
tmp = ((z + (x + y)) - (z * log(t))) + (b * a);
} else {
tmp = fma(z, (1.0 - log(t)), t_1);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(b, Float64(a + -0.5), y) tmp = 0.0 if (b <= -2.7e+122) tmp = Float64(x + t_1); elseif (b <= 1.7e+60) tmp = Float64(Float64(Float64(z + Float64(x + y)) - Float64(z * log(t))) + Float64(b * a)); else tmp = fma(z, Float64(1.0 - log(t)), t_1); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(a + -0.5), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[b, -2.7e+122], N[(x + t$95$1), $MachinePrecision], If[LessEqual[b, 1.7e+60], N[(N[(N[(z + N[(x + y), $MachinePrecision]), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * a), $MachinePrecision]), $MachinePrecision], N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(b, a + -0.5, y\right)\\
\mathbf{if}\;b \leq -2.7 \cdot 10^{+122}:\\
\;\;\;\;x + t\_1\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+60}:\\
\;\;\;\;\left(\left(z + \left(x + y\right)\right) - z \cdot \log t\right) + b \cdot a\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, 1 - \log t, t\_1\right)\\
\end{array}
\end{array}
if b < -2.6999999999999998e122Initial program 100.0%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval100.0
Applied egg-rr100.0%
Taylor expanded in z around 0
associate-+r+N/A
+-commutativeN/A
distribute-rgt-inN/A
metadata-evalN/A
sub-negN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6498.1
Simplified98.1%
if -2.6999999999999998e122 < b < 1.7e60Initial program 99.8%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6498.5
Simplified98.5%
if 1.7e60 < b Initial program 99.9%
Taylor expanded in x around 0
*-commutativeN/A
cancel-sign-sub-invN/A
log-recN/A
*-commutativeN/A
+-commutativeN/A
+-commutativeN/A
associate-+l+N/A
+-commutativeN/A
associate-+r+N/A
*-rgt-identityN/A
distribute-lft-inN/A
+-commutativeN/A
log-recN/A
sub-negN/A
sub-negN/A
mul-1-negN/A
Simplified87.2%
Final simplification96.4%
(FPCore (x y z t a b) :precision binary64 (if (<= (+ (- (+ z (+ x y)) (* z (log t))) (* b (- a 0.5))) -4e-128) x y))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((((z + (x + y)) - (z * log(t))) + (b * (a - 0.5))) <= -4e-128) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((((z + (x + y)) - (z * log(t))) + (b * (a - 0.5d0))) <= (-4d-128)) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((((z + (x + y)) - (z * Math.log(t))) + (b * (a - 0.5))) <= -4e-128) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (((z + (x + y)) - (z * math.log(t))) + (b * (a - 0.5))) <= -4e-128: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(Float64(z + Float64(x + y)) - Float64(z * log(t))) + Float64(b * Float64(a - 0.5))) <= -4e-128) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((((z + (x + y)) - (z * log(t))) + (b * (a - 0.5))) <= -4e-128) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(N[(z + N[(x + y), $MachinePrecision]), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -4e-128], x, y]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(\left(z + \left(x + y\right)\right) - z \cdot \log t\right) + b \cdot \left(a - 0.5\right) \leq -4 \cdot 10^{-128}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 x y) z) (*.f64 z (log.f64 t))) (*.f64 (-.f64 a #s(literal 1/2 binary64)) b)) < -4.00000000000000022e-128Initial program 99.8%
Taylor expanded in x around inf
Simplified22.4%
if -4.00000000000000022e-128 < (+.f64 (-.f64 (+.f64 (+.f64 x y) z) (*.f64 z (log.f64 t))) (*.f64 (-.f64 a #s(literal 1/2 binary64)) b)) Initial program 99.9%
Taylor expanded in y around inf
Simplified23.3%
Final simplification22.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma z (- 1.0 (log t)) (fma b (+ a -0.5) y))))
(if (<= z -3.3e+86)
t_1
(if (<= z 8.4e+155) (+ y (fma b (+ a -0.5) x)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(z, (1.0 - log(t)), fma(b, (a + -0.5), y));
double tmp;
if (z <= -3.3e+86) {
tmp = t_1;
} else if (z <= 8.4e+155) {
tmp = y + fma(b, (a + -0.5), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(z, Float64(1.0 - log(t)), fma(b, Float64(a + -0.5), y)) tmp = 0.0 if (z <= -3.3e+86) tmp = t_1; elseif (z <= 8.4e+155) tmp = Float64(y + fma(b, Float64(a + -0.5), x)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] + N[(b * N[(a + -0.5), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.3e+86], t$95$1, If[LessEqual[z, 8.4e+155], N[(y + N[(b * N[(a + -0.5), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(z, 1 - \log t, \mathsf{fma}\left(b, a + -0.5, y\right)\right)\\
\mathbf{if}\;z \leq -3.3 \cdot 10^{+86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 8.4 \cdot 10^{+155}:\\
\;\;\;\;y + \mathsf{fma}\left(b, a + -0.5, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.2999999999999999e86 or 8.4e155 < z Initial program 99.7%
Taylor expanded in x around 0
*-commutativeN/A
cancel-sign-sub-invN/A
log-recN/A
*-commutativeN/A
+-commutativeN/A
+-commutativeN/A
associate-+l+N/A
+-commutativeN/A
associate-+r+N/A
*-rgt-identityN/A
distribute-lft-inN/A
+-commutativeN/A
log-recN/A
sub-negN/A
sub-negN/A
mul-1-negN/A
Simplified91.3%
if -3.2999999999999999e86 < z < 8.4e155Initial program 99.9%
Taylor expanded in z around 0
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6495.0
Simplified95.0%
(FPCore (x y z t a b) :precision binary64 (if (<= (- (+ z (+ x y)) (* z (log t))) -4e-128) (fma (+ a -0.5) b x) (fma b (+ a -0.5) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((z + (x + y)) - (z * log(t))) <= -4e-128) {
tmp = fma((a + -0.5), b, x);
} else {
tmp = fma(b, (a + -0.5), y);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(z + Float64(x + y)) - Float64(z * log(t))) <= -4e-128) tmp = fma(Float64(a + -0.5), b, x); else tmp = fma(b, Float64(a + -0.5), y); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(z + N[(x + y), $MachinePrecision]), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -4e-128], N[(N[(a + -0.5), $MachinePrecision] * b + x), $MachinePrecision], N[(b * N[(a + -0.5), $MachinePrecision] + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(z + \left(x + y\right)\right) - z \cdot \log t \leq -4 \cdot 10^{-128}:\\
\;\;\;\;\mathsf{fma}\left(a + -0.5, b, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(b, a + -0.5, y\right)\\
\end{array}
\end{array}
if (-.f64 (+.f64 (+.f64 x y) z) (*.f64 z (log.f64 t))) < -4.00000000000000022e-128Initial program 99.8%
Taylor expanded in x around inf
Simplified56.2%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6456.2
Applied egg-rr56.2%
if -4.00000000000000022e-128 < (-.f64 (+.f64 (+.f64 x y) z) (*.f64 z (log.f64 t))) Initial program 99.9%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval99.9
Applied egg-rr99.9%
Taylor expanded in z around 0
associate-+r+N/A
+-commutativeN/A
distribute-rgt-inN/A
metadata-evalN/A
sub-negN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6481.3
Simplified81.3%
Taylor expanded in x around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6459.7
Simplified59.7%
Final simplification58.0%
(FPCore (x y z t a b) :precision binary64 (if (<= (+ x y) -2e+84) (+ (* b a) (- (+ x z) (* z (log t)))) (fma z (- 1.0 (log t)) (fma b (+ a -0.5) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x + y) <= -2e+84) {
tmp = (b * a) + ((x + z) - (z * log(t)));
} else {
tmp = fma(z, (1.0 - log(t)), fma(b, (a + -0.5), y));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(x + y) <= -2e+84) tmp = Float64(Float64(b * a) + Float64(Float64(x + z) - Float64(z * log(t)))); else tmp = fma(z, Float64(1.0 - log(t)), fma(b, Float64(a + -0.5), y)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(x + y), $MachinePrecision], -2e+84], N[(N[(b * a), $MachinePrecision] + N[(N[(x + z), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] + N[(b * N[(a + -0.5), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x + y \leq -2 \cdot 10^{+84}:\\
\;\;\;\;b \cdot a + \left(\left(x + z\right) - z \cdot \log t\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, 1 - \log t, \mathsf{fma}\left(b, a + -0.5, y\right)\right)\\
\end{array}
\end{array}
if (+.f64 x y) < -2.00000000000000012e84Initial program 99.9%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6494.6
Simplified94.6%
Taylor expanded in y around 0
+-commutativeN/A
+-lowering-+.f6462.9
Simplified62.9%
if -2.00000000000000012e84 < (+.f64 x y) Initial program 99.8%
Taylor expanded in x around 0
*-commutativeN/A
cancel-sign-sub-invN/A
log-recN/A
*-commutativeN/A
+-commutativeN/A
+-commutativeN/A
associate-+l+N/A
+-commutativeN/A
associate-+r+N/A
*-rgt-identityN/A
distribute-lft-inN/A
+-commutativeN/A
log-recN/A
sub-negN/A
sub-negN/A
mul-1-negN/A
Simplified82.9%
Final simplification77.5%
(FPCore (x y z t a b) :precision binary64 (+ (- (+ z (+ x y)) (* z (log t))) (* b (- a 0.5))))
double code(double x, double y, double z, double t, double a, double b) {
return ((z + (x + y)) - (z * log(t))) + (b * (a - 0.5));
}
real(8) function code(x, y, z, t, a, b)
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
code = ((z + (x + y)) - (z * log(t))) + (b * (a - 0.5d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((z + (x + y)) - (z * Math.log(t))) + (b * (a - 0.5));
}
def code(x, y, z, t, a, b): return ((z + (x + y)) - (z * math.log(t))) + (b * (a - 0.5))
function code(x, y, z, t, a, b) return Float64(Float64(Float64(z + Float64(x + y)) - Float64(z * log(t))) + Float64(b * Float64(a - 0.5))) end
function tmp = code(x, y, z, t, a, b) tmp = ((z + (x + y)) - (z * log(t))) + (b * (a - 0.5)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(z + N[(x + y), $MachinePrecision]), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(z + \left(x + y\right)\right) - z \cdot \log t\right) + b \cdot \left(a - 0.5\right)
\end{array}
Initial program 99.9%
Final simplification99.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma z (- 1.0 (log t)) y)))
(if (<= z -1.05e+182)
t_1
(if (<= z 1.32e+156) (+ y (fma b (+ a -0.5) x)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(z, (1.0 - log(t)), y);
double tmp;
if (z <= -1.05e+182) {
tmp = t_1;
} else if (z <= 1.32e+156) {
tmp = y + fma(b, (a + -0.5), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(z, Float64(1.0 - log(t)), y) tmp = 0.0 if (z <= -1.05e+182) tmp = t_1; elseif (z <= 1.32e+156) tmp = Float64(y + fma(b, Float64(a + -0.5), x)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[z, -1.05e+182], t$95$1, If[LessEqual[z, 1.32e+156], N[(y + N[(b * N[(a + -0.5), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(z, 1 - \log t, y\right)\\
\mathbf{if}\;z \leq -1.05 \cdot 10^{+182}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.32 \cdot 10^{+156}:\\
\;\;\;\;y + \mathsf{fma}\left(b, a + -0.5, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.0499999999999999e182 or 1.3199999999999999e156 < z Initial program 99.6%
Taylor expanded in b around 0
cancel-sign-sub-invN/A
associate-+r+N/A
associate-+l+N/A
cancel-sign-sub-invN/A
*-rgt-identityN/A
distribute-lft-out--N/A
+-commutativeN/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f6475.3
Simplified75.3%
Taylor expanded in x around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
log-lowering-log.f6471.3
Simplified71.3%
if -1.0499999999999999e182 < z < 1.3199999999999999e156Initial program 99.9%
Taylor expanded in z around 0
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6492.2
Simplified92.2%
(FPCore (x y z t a b) :precision binary64 (if (<= z -3e+216) (fma (log t) (- z) z) (if (<= z 3.6e+205) (+ y (fma b (+ a -0.5) x)) (fma z (- 1.0 (log t)) x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3e+216) {
tmp = fma(log(t), -z, z);
} else if (z <= 3.6e+205) {
tmp = y + fma(b, (a + -0.5), x);
} else {
tmp = fma(z, (1.0 - log(t)), x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3e+216) tmp = fma(log(t), Float64(-z), z); elseif (z <= 3.6e+205) tmp = Float64(y + fma(b, Float64(a + -0.5), x)); else tmp = fma(z, Float64(1.0 - log(t)), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3e+216], N[(N[Log[t], $MachinePrecision] * (-z) + z), $MachinePrecision], If[LessEqual[z, 3.6e+205], N[(y + N[(b * N[(a + -0.5), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{+216}:\\
\;\;\;\;\mathsf{fma}\left(\log t, -z, z\right)\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+205}:\\
\;\;\;\;y + \mathsf{fma}\left(b, a + -0.5, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, 1 - \log t, x\right)\\
\end{array}
\end{array}
if z < -2.9999999999999998e216Initial program 99.4%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval99.4
Applied egg-rr99.4%
Taylor expanded in z around inf
sub-negN/A
log-recN/A
+-commutativeN/A
distribute-rgt-inN/A
*-lft-identityN/A
log-recN/A
distribute-lft-neg-inN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
accelerator-lowering-fma.f64N/A
log-lowering-log.f64N/A
neg-mul-1N/A
neg-lowering-neg.f6487.0
Simplified87.0%
if -2.9999999999999998e216 < z < 3.60000000000000002e205Initial program 99.9%
Taylor expanded in z around 0
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6487.5
Simplified87.5%
if 3.60000000000000002e205 < z Initial program 99.5%
Taylor expanded in b around 0
cancel-sign-sub-invN/A
associate-+r+N/A
associate-+l+N/A
cancel-sign-sub-invN/A
*-rgt-identityN/A
distribute-lft-out--N/A
+-commutativeN/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f6481.2
Simplified81.2%
Taylor expanded in y around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
log-lowering-log.f6476.8
Simplified76.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma (log t) (- z) z)))
(if (<= z -1.8e+217)
t_1
(if (<= z 2.2e+206) (+ y (fma b (+ a -0.5) x)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(log(t), -z, z);
double tmp;
if (z <= -1.8e+217) {
tmp = t_1;
} else if (z <= 2.2e+206) {
tmp = y + fma(b, (a + -0.5), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(log(t), Float64(-z), z) tmp = 0.0 if (z <= -1.8e+217) tmp = t_1; elseif (z <= 2.2e+206) tmp = Float64(y + fma(b, Float64(a + -0.5), x)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[Log[t], $MachinePrecision] * (-z) + z), $MachinePrecision]}, If[LessEqual[z, -1.8e+217], t$95$1, If[LessEqual[z, 2.2e+206], N[(y + N[(b * N[(a + -0.5), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\log t, -z, z\right)\\
\mathbf{if}\;z \leq -1.8 \cdot 10^{+217}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+206}:\\
\;\;\;\;y + \mathsf{fma}\left(b, a + -0.5, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.8000000000000001e217 or 2.20000000000000001e206 < z Initial program 99.5%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval99.5
Applied egg-rr99.5%
Taylor expanded in z around inf
sub-negN/A
log-recN/A
+-commutativeN/A
distribute-rgt-inN/A
*-lft-identityN/A
log-recN/A
distribute-lft-neg-inN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
accelerator-lowering-fma.f64N/A
log-lowering-log.f64N/A
neg-mul-1N/A
neg-lowering-neg.f6481.3
Simplified81.3%
if -1.8000000000000001e217 < z < 2.20000000000000001e206Initial program 99.9%
Taylor expanded in z around 0
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6487.5
Simplified87.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- z (* z (log t)))))
(if (<= z -2.9e+217)
t_1
(if (<= z 4e+204) (+ y (fma b (+ a -0.5) x)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z - (z * log(t));
double tmp;
if (z <= -2.9e+217) {
tmp = t_1;
} else if (z <= 4e+204) {
tmp = y + fma(b, (a + -0.5), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(z - Float64(z * log(t))) tmp = 0.0 if (z <= -2.9e+217) tmp = t_1; elseif (z <= 4e+204) tmp = Float64(y + fma(b, Float64(a + -0.5), x)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.9e+217], t$95$1, If[LessEqual[z, 4e+204], N[(y + N[(b * N[(a + -0.5), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z - z \cdot \log t\\
\mathbf{if}\;z \leq -2.9 \cdot 10^{+217}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4 \cdot 10^{+204}:\\
\;\;\;\;y + \mathsf{fma}\left(b, a + -0.5, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.89999999999999985e217 or 3.99999999999999996e204 < z Initial program 99.5%
Taylor expanded in z around inf
sub-negN/A
log-recN/A
distribute-lft-inN/A
*-rgt-identityN/A
remove-double-negN/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
log-recN/A
remove-double-negN/A
*-lowering-*.f64N/A
log-lowering-log.f6481.3
Simplified81.3%
if -2.89999999999999985e217 < z < 3.99999999999999996e204Initial program 99.9%
Taylor expanded in z around 0
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6487.5
Simplified87.5%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* b (- a 0.5))) (t_2 (* b (+ a -0.5)))) (if (<= t_1 -5e+252) t_2 (if (<= t_1 5e+177) (+ x (fma b -0.5 y)) t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double t_2 = b * (a + -0.5);
double tmp;
if (t_1 <= -5e+252) {
tmp = t_2;
} else if (t_1 <= 5e+177) {
tmp = x + fma(b, -0.5, y);
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(a - 0.5)) t_2 = Float64(b * Float64(a + -0.5)) tmp = 0.0 if (t_1 <= -5e+252) tmp = t_2; elseif (t_1 <= 5e+177) tmp = Float64(x + fma(b, -0.5, y)); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(a + -0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+252], t$95$2, If[LessEqual[t$95$1, 5e+177], N[(x + N[(b * -0.5 + y), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a - 0.5\right)\\
t_2 := b \cdot \left(a + -0.5\right)\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+252}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+177}:\\
\;\;\;\;x + \mathsf{fma}\left(b, -0.5, y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -4.9999999999999997e252 or 5.0000000000000003e177 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) Initial program 99.9%
Taylor expanded in b around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6491.3
Simplified91.3%
if -4.9999999999999997e252 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 5.0000000000000003e177Initial program 99.8%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval99.8
Applied egg-rr99.8%
Taylor expanded in z around 0
associate-+r+N/A
+-commutativeN/A
distribute-rgt-inN/A
metadata-evalN/A
sub-negN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6470.5
Simplified70.5%
Taylor expanded in a around 0
Simplified65.2%
Final simplification73.1%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* b (- a 0.5))) (t_2 (* b (+ a -0.5)))) (if (<= t_1 -5e+252) t_2 (if (<= t_1 2e+88) (+ x y) t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double t_2 = b * (a + -0.5);
double tmp;
if (t_1 <= -5e+252) {
tmp = t_2;
} else if (t_1 <= 2e+88) {
tmp = x + y;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (a - 0.5d0)
t_2 = b * (a + (-0.5d0))
if (t_1 <= (-5d+252)) then
tmp = t_2
else if (t_1 <= 2d+88) then
tmp = x + y
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double t_2 = b * (a + -0.5);
double tmp;
if (t_1 <= -5e+252) {
tmp = t_2;
} else if (t_1 <= 2e+88) {
tmp = x + y;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (a - 0.5) t_2 = b * (a + -0.5) tmp = 0 if t_1 <= -5e+252: tmp = t_2 elif t_1 <= 2e+88: tmp = x + y else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(a - 0.5)) t_2 = Float64(b * Float64(a + -0.5)) tmp = 0.0 if (t_1 <= -5e+252) tmp = t_2; elseif (t_1 <= 2e+88) tmp = Float64(x + y); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (a - 0.5); t_2 = b * (a + -0.5); tmp = 0.0; if (t_1 <= -5e+252) tmp = t_2; elseif (t_1 <= 2e+88) tmp = x + y; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(a + -0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+252], t$95$2, If[LessEqual[t$95$1, 2e+88], N[(x + y), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a - 0.5\right)\\
t_2 := b \cdot \left(a + -0.5\right)\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+252}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+88}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -4.9999999999999997e252 or 1.99999999999999992e88 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) Initial program 99.9%
Taylor expanded in b around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6484.2
Simplified84.2%
if -4.9999999999999997e252 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 1.99999999999999992e88Initial program 99.8%
Taylor expanded in b around 0
cancel-sign-sub-invN/A
associate-+r+N/A
associate-+l+N/A
cancel-sign-sub-invN/A
*-rgt-identityN/A
distribute-lft-out--N/A
+-commutativeN/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f6490.9
Simplified90.9%
Taylor expanded in z around 0
+-commutativeN/A
+-lowering-+.f6461.4
Simplified61.4%
Final simplification69.6%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* b (- a 0.5)))) (if (<= t_1 -5e+252) (* b a) (if (<= t_1 5e+177) (+ x y) (* b a)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double tmp;
if (t_1 <= -5e+252) {
tmp = b * a;
} else if (t_1 <= 5e+177) {
tmp = x + y;
} else {
tmp = b * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = b * (a - 0.5d0)
if (t_1 <= (-5d+252)) then
tmp = b * a
else if (t_1 <= 5d+177) then
tmp = x + y
else
tmp = b * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double tmp;
if (t_1 <= -5e+252) {
tmp = b * a;
} else if (t_1 <= 5e+177) {
tmp = x + y;
} else {
tmp = b * a;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (a - 0.5) tmp = 0 if t_1 <= -5e+252: tmp = b * a elif t_1 <= 5e+177: tmp = x + y else: tmp = b * a return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(a - 0.5)) tmp = 0.0 if (t_1 <= -5e+252) tmp = Float64(b * a); elseif (t_1 <= 5e+177) tmp = Float64(x + y); else tmp = Float64(b * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (a - 0.5); tmp = 0.0; if (t_1 <= -5e+252) tmp = b * a; elseif (t_1 <= 5e+177) tmp = x + y; else tmp = b * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+252], N[(b * a), $MachinePrecision], If[LessEqual[t$95$1, 5e+177], N[(x + y), $MachinePrecision], N[(b * a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a - 0.5\right)\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+252}:\\
\;\;\;\;b \cdot a\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+177}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;b \cdot a\\
\end{array}
\end{array}
if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -4.9999999999999997e252 or 5.0000000000000003e177 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) Initial program 99.9%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6472.1
Simplified72.1%
if -4.9999999999999997e252 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 5.0000000000000003e177Initial program 99.8%
Taylor expanded in b around 0
cancel-sign-sub-invN/A
associate-+r+N/A
associate-+l+N/A
cancel-sign-sub-invN/A
*-rgt-identityN/A
distribute-lft-out--N/A
+-commutativeN/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f6488.4
Simplified88.4%
Taylor expanded in z around 0
+-commutativeN/A
+-lowering-+.f6459.0
Simplified59.0%
Final simplification63.0%
(FPCore (x y z t a b) :precision binary64 (if (<= (- a 0.5) -1e+16) (+ y (fma b a x)) (if (<= (- a 0.5) -0.4) (+ y (fma b -0.5 x)) (+ x (fma b a y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a - 0.5) <= -1e+16) {
tmp = y + fma(b, a, x);
} else if ((a - 0.5) <= -0.4) {
tmp = y + fma(b, -0.5, x);
} else {
tmp = x + fma(b, a, y);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(a - 0.5) <= -1e+16) tmp = Float64(y + fma(b, a, x)); elseif (Float64(a - 0.5) <= -0.4) tmp = Float64(y + fma(b, -0.5, x)); else tmp = Float64(x + fma(b, a, y)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(a - 0.5), $MachinePrecision], -1e+16], N[(y + N[(b * a + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a - 0.5), $MachinePrecision], -0.4], N[(y + N[(b * -0.5 + x), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * a + y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a - 0.5 \leq -1 \cdot 10^{+16}:\\
\;\;\;\;y + \mathsf{fma}\left(b, a, x\right)\\
\mathbf{elif}\;a - 0.5 \leq -0.4:\\
\;\;\;\;y + \mathsf{fma}\left(b, -0.5, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + \mathsf{fma}\left(b, a, y\right)\\
\end{array}
\end{array}
if (-.f64 a #s(literal 1/2 binary64)) < -1e16Initial program 99.9%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval99.9
Applied egg-rr99.9%
Taylor expanded in z around 0
associate-+r+N/A
+-commutativeN/A
distribute-rgt-inN/A
metadata-evalN/A
sub-negN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6483.3
Simplified83.3%
associate-+r+N/A
*-commutativeN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
metadata-evalN/A
sub-negN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6483.3
Applied egg-rr83.3%
Taylor expanded in a around inf
Simplified83.3%
if -1e16 < (-.f64 a #s(literal 1/2 binary64)) < -0.40000000000000002Initial program 99.8%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval99.8
Applied egg-rr99.8%
Taylor expanded in z around 0
associate-+r+N/A
+-commutativeN/A
distribute-rgt-inN/A
metadata-evalN/A
sub-negN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6473.7
Simplified73.7%
associate-+r+N/A
*-commutativeN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
metadata-evalN/A
sub-negN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6473.7
Applied egg-rr73.7%
Taylor expanded in a around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6473.3
Simplified73.3%
if -0.40000000000000002 < (-.f64 a #s(literal 1/2 binary64)) Initial program 99.8%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval99.8
Applied egg-rr99.8%
Taylor expanded in z around 0
associate-+r+N/A
+-commutativeN/A
distribute-rgt-inN/A
metadata-evalN/A
sub-negN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6481.1
Simplified81.1%
Taylor expanded in a around inf
Simplified81.1%
Final simplification77.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (fma b a y))))
(if (<= (- a 0.5) -1e+16)
t_1
(if (<= (- a 0.5) -0.4) (+ y (fma b -0.5 x)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + fma(b, a, y);
double tmp;
if ((a - 0.5) <= -1e+16) {
tmp = t_1;
} else if ((a - 0.5) <= -0.4) {
tmp = y + fma(b, -0.5, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(x + fma(b, a, y)) tmp = 0.0 if (Float64(a - 0.5) <= -1e+16) tmp = t_1; elseif (Float64(a - 0.5) <= -0.4) tmp = Float64(y + fma(b, -0.5, x)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(b * a + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a - 0.5), $MachinePrecision], -1e+16], t$95$1, If[LessEqual[N[(a - 0.5), $MachinePrecision], -0.4], N[(y + N[(b * -0.5 + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \mathsf{fma}\left(b, a, y\right)\\
\mathbf{if}\;a - 0.5 \leq -1 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a - 0.5 \leq -0.4:\\
\;\;\;\;y + \mathsf{fma}\left(b, -0.5, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (-.f64 a #s(literal 1/2 binary64)) < -1e16 or -0.40000000000000002 < (-.f64 a #s(literal 1/2 binary64)) Initial program 99.9%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval99.9
Applied egg-rr99.9%
Taylor expanded in z around 0
associate-+r+N/A
+-commutativeN/A
distribute-rgt-inN/A
metadata-evalN/A
sub-negN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6482.3
Simplified82.3%
Taylor expanded in a around inf
Simplified82.3%
if -1e16 < (-.f64 a #s(literal 1/2 binary64)) < -0.40000000000000002Initial program 99.8%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval99.8
Applied egg-rr99.8%
Taylor expanded in z around 0
associate-+r+N/A
+-commutativeN/A
distribute-rgt-inN/A
metadata-evalN/A
sub-negN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6473.7
Simplified73.7%
associate-+r+N/A
*-commutativeN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
metadata-evalN/A
sub-negN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6473.7
Applied egg-rr73.7%
Taylor expanded in a around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6473.3
Simplified73.3%
Final simplification77.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (fma b a y))))
(if (<= (- a 0.5) -1e+16)
t_1
(if (<= (- a 0.5) -0.4) (+ x (fma b -0.5 y)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + fma(b, a, y);
double tmp;
if ((a - 0.5) <= -1e+16) {
tmp = t_1;
} else if ((a - 0.5) <= -0.4) {
tmp = x + fma(b, -0.5, y);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(x + fma(b, a, y)) tmp = 0.0 if (Float64(a - 0.5) <= -1e+16) tmp = t_1; elseif (Float64(a - 0.5) <= -0.4) tmp = Float64(x + fma(b, -0.5, y)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(b * a + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a - 0.5), $MachinePrecision], -1e+16], t$95$1, If[LessEqual[N[(a - 0.5), $MachinePrecision], -0.4], N[(x + N[(b * -0.5 + y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \mathsf{fma}\left(b, a, y\right)\\
\mathbf{if}\;a - 0.5 \leq -1 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a - 0.5 \leq -0.4:\\
\;\;\;\;x + \mathsf{fma}\left(b, -0.5, y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (-.f64 a #s(literal 1/2 binary64)) < -1e16 or -0.40000000000000002 < (-.f64 a #s(literal 1/2 binary64)) Initial program 99.9%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval99.9
Applied egg-rr99.9%
Taylor expanded in z around 0
associate-+r+N/A
+-commutativeN/A
distribute-rgt-inN/A
metadata-evalN/A
sub-negN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6482.3
Simplified82.3%
Taylor expanded in a around inf
Simplified82.3%
if -1e16 < (-.f64 a #s(literal 1/2 binary64)) < -0.40000000000000002Initial program 99.8%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval99.8
Applied egg-rr99.8%
Taylor expanded in z around 0
associate-+r+N/A
+-commutativeN/A
distribute-rgt-inN/A
metadata-evalN/A
sub-negN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6473.7
Simplified73.7%
Taylor expanded in a around 0
Simplified73.2%
(FPCore (x y z t a b) :precision binary64 (if (<= (+ x y) -2e+85) (+ x (* b a)) (if (<= (+ x y) 2e-24) (* b (+ a -0.5)) (+ y (* b a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x + y) <= -2e+85) {
tmp = x + (b * a);
} else if ((x + y) <= 2e-24) {
tmp = b * (a + -0.5);
} else {
tmp = y + (b * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((x + y) <= (-2d+85)) then
tmp = x + (b * a)
else if ((x + y) <= 2d-24) then
tmp = b * (a + (-0.5d0))
else
tmp = y + (b * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x + y) <= -2e+85) {
tmp = x + (b * a);
} else if ((x + y) <= 2e-24) {
tmp = b * (a + -0.5);
} else {
tmp = y + (b * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (x + y) <= -2e+85: tmp = x + (b * a) elif (x + y) <= 2e-24: tmp = b * (a + -0.5) else: tmp = y + (b * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(x + y) <= -2e+85) tmp = Float64(x + Float64(b * a)); elseif (Float64(x + y) <= 2e-24) tmp = Float64(b * Float64(a + -0.5)); else tmp = Float64(y + Float64(b * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((x + y) <= -2e+85) tmp = x + (b * a); elseif ((x + y) <= 2e-24) tmp = b * (a + -0.5); else tmp = y + (b * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(x + y), $MachinePrecision], -2e+85], N[(x + N[(b * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x + y), $MachinePrecision], 2e-24], N[(b * N[(a + -0.5), $MachinePrecision]), $MachinePrecision], N[(y + N[(b * a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x + y \leq -2 \cdot 10^{+85}:\\
\;\;\;\;x + b \cdot a\\
\mathbf{elif}\;x + y \leq 2 \cdot 10^{-24}:\\
\;\;\;\;b \cdot \left(a + -0.5\right)\\
\mathbf{else}:\\
\;\;\;\;y + b \cdot a\\
\end{array}
\end{array}
if (+.f64 x y) < -2e85Initial program 99.9%
Taylor expanded in x around inf
Simplified54.0%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6449.5
Simplified49.5%
if -2e85 < (+.f64 x y) < 1.99999999999999985e-24Initial program 99.8%
Taylor expanded in b around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6457.6
Simplified57.6%
if 1.99999999999999985e-24 < (+.f64 x y) Initial program 99.9%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval99.9
Applied egg-rr99.9%
Taylor expanded in z around 0
associate-+r+N/A
+-commutativeN/A
distribute-rgt-inN/A
metadata-evalN/A
sub-negN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6483.2
Simplified83.2%
associate-+r+N/A
*-commutativeN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
metadata-evalN/A
sub-negN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6483.2
Applied egg-rr83.2%
Taylor expanded in a around inf
*-lowering-*.f6450.4
Simplified50.4%
Final simplification52.4%
(FPCore (x y z t a b) :precision binary64 (+ y (fma b (+ a -0.5) x)))
double code(double x, double y, double z, double t, double a, double b) {
return y + fma(b, (a + -0.5), x);
}
function code(x, y, z, t, a, b) return Float64(y + fma(b, Float64(a + -0.5), x)) end
code[x_, y_, z_, t_, a_, b_] := N[(y + N[(b * N[(a + -0.5), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y + \mathsf{fma}\left(b, a + -0.5, x\right)
\end{array}
Initial program 99.9%
Taylor expanded in z around 0
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6478.1
Simplified78.1%
(FPCore (x y z t a b) :precision binary64 (+ x (fma b (+ a -0.5) y)))
double code(double x, double y, double z, double t, double a, double b) {
return x + fma(b, (a + -0.5), y);
}
function code(x, y, z, t, a, b) return Float64(x + fma(b, Float64(a + -0.5), y)) end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(b * N[(a + -0.5), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \mathsf{fma}\left(b, a + -0.5, y\right)
\end{array}
Initial program 99.9%
*-commutativeN/A
sub-negN/A
distribute-lft-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
metadata-eval99.9
Applied egg-rr99.9%
Taylor expanded in z around 0
associate-+r+N/A
+-commutativeN/A
distribute-rgt-inN/A
metadata-evalN/A
sub-negN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6478.1
Simplified78.1%
(FPCore (x y z t a b) :precision binary64 (+ x y))
double code(double x, double y, double z, double t, double a, double b) {
return x + y;
}
real(8) function code(x, y, z, t, a, b)
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
code = x + y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + y;
}
def code(x, y, z, t, a, b): return x + y
function code(x, y, z, t, a, b) return Float64(x + y) end
function tmp = code(x, y, z, t, a, b) tmp = x + y; end
code[x_, y_, z_, t_, a_, b_] := N[(x + y), $MachinePrecision]
\begin{array}{l}
\\
x + y
\end{array}
Initial program 99.9%
Taylor expanded in b around 0
cancel-sign-sub-invN/A
associate-+r+N/A
associate-+l+N/A
cancel-sign-sub-invN/A
*-rgt-identityN/A
distribute-lft-out--N/A
+-commutativeN/A
sub-negN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f6464.0
Simplified64.0%
Taylor expanded in z around 0
+-commutativeN/A
+-lowering-+.f6442.6
Simplified42.6%
Final simplification42.6%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
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
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 99.9%
Taylor expanded in x around inf
Simplified21.9%
(FPCore (x y z t a b) :precision binary64 (+ (+ (+ x y) (/ (* (- 1.0 (pow (log t) 2.0)) z) (+ 1.0 (log t)))) (* (- a 0.5) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x + y) + (((1.0 - pow(log(t), 2.0)) * z) / (1.0 + log(t)))) + ((a - 0.5) * b);
}
real(8) function code(x, y, z, t, a, b)
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
code = ((x + y) + (((1.0d0 - (log(t) ** 2.0d0)) * z) / (1.0d0 + log(t)))) + ((a - 0.5d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x + y) + (((1.0 - Math.pow(Math.log(t), 2.0)) * z) / (1.0 + Math.log(t)))) + ((a - 0.5) * b);
}
def code(x, y, z, t, a, b): return ((x + y) + (((1.0 - math.pow(math.log(t), 2.0)) * z) / (1.0 + math.log(t)))) + ((a - 0.5) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x + y) + Float64(Float64(Float64(1.0 - (log(t) ^ 2.0)) * z) / Float64(1.0 + log(t)))) + Float64(Float64(a - 0.5) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x + y) + (((1.0 - (log(t) ^ 2.0)) * z) / (1.0 + log(t)))) + ((a - 0.5) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x + y), $MachinePrecision] + N[(N[(N[(1.0 - N[Power[N[Log[t], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision] / N[(1.0 + N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x + y\right) + \frac{\left(1 - {\log t}^{2}\right) \cdot z}{1 + \log t}\right) + \left(a - 0.5\right) \cdot b
\end{array}
herbie shell --seed 2024204
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, A"
:precision binary64
:alt
(! :herbie-platform default (+ (+ (+ x y) (/ (* (- 1 (pow (log t) 2)) z) (+ 1 (log t)))) (* (- a 1/2) b)))
(+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))