
(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 20 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 (- 1.0 (log t))) (fma (+ a -0.5) b (+ x y))))
double code(double x, double y, double z, double t, double a, double b) {
return (z * (1.0 - log(t))) + fma((a + -0.5), b, (x + y));
}
function code(x, y, z, t, a, b) return Float64(Float64(z * Float64(1.0 - log(t))) + fma(Float64(a + -0.5), b, Float64(x + y))) end
code[x_, y_, z_, t_, a_, b_] := N[(N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a + -0.5), $MachinePrecision] * b + N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
z \cdot \left(1 - \log t\right) + \mathsf{fma}\left(a + -0.5, b, x + y\right)
\end{array}
Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- a 0.5))))
(if (<= t_1 -5e+30)
(+ x (* b (- (+ a (/ y b)) 0.5)))
(if (<= t_1 2e+57) (+ (* z (- 1.0 (log t))) (+ x y)) (+ x (+ y t_1))))))
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+30) {
tmp = x + (b * ((a + (y / b)) - 0.5));
} else if (t_1 <= 2e+57) {
tmp = (z * (1.0 - log(t))) + (x + y);
} else {
tmp = x + (y + t_1);
}
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+30)) then
tmp = x + (b * ((a + (y / b)) - 0.5d0))
else if (t_1 <= 2d+57) then
tmp = (z * (1.0d0 - log(t))) + (x + y)
else
tmp = x + (y + t_1)
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+30) {
tmp = x + (b * ((a + (y / b)) - 0.5));
} else if (t_1 <= 2e+57) {
tmp = (z * (1.0 - Math.log(t))) + (x + y);
} else {
tmp = x + (y + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (a - 0.5) tmp = 0 if t_1 <= -5e+30: tmp = x + (b * ((a + (y / b)) - 0.5)) elif t_1 <= 2e+57: tmp = (z * (1.0 - math.log(t))) + (x + y) else: tmp = x + (y + t_1) 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+30) tmp = Float64(x + Float64(b * Float64(Float64(a + Float64(y / b)) - 0.5))); elseif (t_1 <= 2e+57) tmp = Float64(Float64(z * Float64(1.0 - log(t))) + Float64(x + y)); else tmp = Float64(x + Float64(y + t_1)); 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+30) tmp = x + (b * ((a + (y / b)) - 0.5)); elseif (t_1 <= 2e+57) tmp = (z * (1.0 - log(t))) + (x + y); else tmp = x + (y + t_1); 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+30], N[(x + N[(b * N[(N[(a + N[(y / b), $MachinePrecision]), $MachinePrecision] - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+57], N[(N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x + y), $MachinePrecision]), $MachinePrecision], N[(x + N[(y + t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a - 0.5\right)\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+30}:\\
\;\;\;\;x + b \cdot \left(\left(a + \frac{y}{b}\right) - 0.5\right)\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+57}:\\
\;\;\;\;z \cdot \left(1 - \log t\right) + \left(x + y\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y + t\_1\right)\\
\end{array}
\end{array}
if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -4.9999999999999998e30Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around 0 90.9%
associate-+r+90.9%
sub-neg90.9%
metadata-eval90.9%
*-commutative90.9%
associate-+l+90.9%
+-commutative90.9%
fma-define90.9%
Simplified90.9%
Taylor expanded in b around inf 90.9%
if -4.9999999999999998e30 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 2.0000000000000001e57Initial program 99.8%
+-commutative99.8%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around 0 95.7%
if 2.0000000000000001e57 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 93.3%
Final simplification93.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- a 0.5))))
(if (<= (+ x y) -1e-103)
(- (+ x (+ z t_1)) (* z (log t)))
(+ (* z (- 1.0 (log t))) (+ y t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double tmp;
if ((x + y) <= -1e-103) {
tmp = (x + (z + t_1)) - (z * log(t));
} else {
tmp = (z * (1.0 - log(t))) + (y + t_1);
}
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 ((x + y) <= (-1d-103)) then
tmp = (x + (z + t_1)) - (z * log(t))
else
tmp = (z * (1.0d0 - log(t))) + (y + t_1)
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 ((x + y) <= -1e-103) {
tmp = (x + (z + t_1)) - (z * Math.log(t));
} else {
tmp = (z * (1.0 - Math.log(t))) + (y + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (a - 0.5) tmp = 0 if (x + y) <= -1e-103: tmp = (x + (z + t_1)) - (z * math.log(t)) else: tmp = (z * (1.0 - math.log(t))) + (y + t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(a - 0.5)) tmp = 0.0 if (Float64(x + y) <= -1e-103) tmp = Float64(Float64(x + Float64(z + t_1)) - Float64(z * log(t))); else tmp = Float64(Float64(z * Float64(1.0 - log(t))) + Float64(y + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (a - 0.5); tmp = 0.0; if ((x + y) <= -1e-103) tmp = (x + (z + t_1)) - (z * log(t)); else tmp = (z * (1.0 - log(t))) + (y + t_1); 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[N[(x + y), $MachinePrecision], -1e-103], N[(N[(x + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y + t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a - 0.5\right)\\
\mathbf{if}\;x + y \leq -1 \cdot 10^{-103}:\\
\;\;\;\;\left(x + \left(z + t\_1\right)\right) - z \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(1 - \log t\right) + \left(y + t\_1\right)\\
\end{array}
\end{array}
if (+.f64 x y) < -9.99999999999999958e-104Initial program 99.9%
Taylor expanded in y around 0 78.1%
if -9.99999999999999958e-104 < (+.f64 x y) Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around 0 80.1%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (+ y (* b (- a 0.5))))) (if (<= (+ x y) -5e+76) (+ x t_1) (+ (* z (- 1.0 (log t))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (b * (a - 0.5));
double tmp;
if ((x + y) <= -5e+76) {
tmp = x + t_1;
} else {
tmp = (z * (1.0 - log(t))) + t_1;
}
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 = y + (b * (a - 0.5d0))
if ((x + y) <= (-5d+76)) then
tmp = x + t_1
else
tmp = (z * (1.0d0 - log(t))) + t_1
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 = y + (b * (a - 0.5));
double tmp;
if ((x + y) <= -5e+76) {
tmp = x + t_1;
} else {
tmp = (z * (1.0 - Math.log(t))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (b * (a - 0.5)) tmp = 0 if (x + y) <= -5e+76: tmp = x + t_1 else: tmp = (z * (1.0 - math.log(t))) + t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(b * Float64(a - 0.5))) tmp = 0.0 if (Float64(x + y) <= -5e+76) tmp = Float64(x + t_1); else tmp = Float64(Float64(z * Float64(1.0 - log(t))) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y + (b * (a - 0.5)); tmp = 0.0; if ((x + y) <= -5e+76) tmp = x + t_1; else tmp = (z * (1.0 - log(t))) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x + y), $MachinePrecision], -5e+76], N[(x + t$95$1), $MachinePrecision], N[(N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + b \cdot \left(a - 0.5\right)\\
\mathbf{if}\;x + y \leq -5 \cdot 10^{+76}:\\
\;\;\;\;x + t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(1 - \log t\right) + t\_1\\
\end{array}
\end{array}
if (+.f64 x y) < -4.99999999999999991e76Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 89.3%
if -4.99999999999999991e76 < (+.f64 x y) Initial program 99.8%
+-commutative99.8%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around 0 80.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -2.15e+114) (not (<= z 1.92e+183))) (+ (* z (- 1.0 (log t))) (* a b)) (+ x (fma (+ a -0.5) b y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.15e+114) || !(z <= 1.92e+183)) {
tmp = (z * (1.0 - log(t))) + (a * b);
} else {
tmp = x + fma((a + -0.5), b, y);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2.15e+114) || !(z <= 1.92e+183)) tmp = Float64(Float64(z * Float64(1.0 - log(t))) + Float64(a * b)); else tmp = Float64(x + fma(Float64(a + -0.5), b, y)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.15e+114], N[Not[LessEqual[z, 1.92e+183]], $MachinePrecision]], N[(N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(a + -0.5), $MachinePrecision] * b + y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.15 \cdot 10^{+114} \lor \neg \left(z \leq 1.92 \cdot 10^{+183}\right):\\
\;\;\;\;z \cdot \left(1 - \log t\right) + a \cdot b\\
\mathbf{else}:\\
\;\;\;\;x + \mathsf{fma}\left(a + -0.5, b, y\right)\\
\end{array}
\end{array}
if z < -2.15e114 or 1.92000000000000008e183 < z Initial program 99.7%
+-commutative99.7%
associate--l+99.7%
associate-+r+99.7%
+-commutative99.7%
*-lft-identity99.7%
metadata-eval99.7%
*-commutative99.7%
distribute-rgt-out--99.7%
metadata-eval99.7%
fma-define99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 93.8%
Taylor expanded in a around inf 80.5%
*-commutative80.5%
Simplified80.5%
if -2.15e114 < z < 1.92000000000000008e183Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--100.0%
metadata-eval100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around 0 90.5%
associate-+r+90.5%
sub-neg90.5%
metadata-eval90.5%
*-commutative90.5%
associate-+l+90.5%
+-commutative90.5%
fma-define90.5%
Simplified90.5%
Final simplification88.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.05e+178) (not (<= z 2.9e+252))) (* z (- 1.0 (log t))) (+ x (fma (+ a -0.5) b y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.05e+178) || !(z <= 2.9e+252)) {
tmp = z * (1.0 - log(t));
} else {
tmp = x + fma((a + -0.5), b, y);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.05e+178) || !(z <= 2.9e+252)) tmp = Float64(z * Float64(1.0 - log(t))); else tmp = Float64(x + fma(Float64(a + -0.5), b, y)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.05e+178], N[Not[LessEqual[z, 2.9e+252]], $MachinePrecision]], N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(a + -0.5), $MachinePrecision] * b + y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{+178} \lor \neg \left(z \leq 2.9 \cdot 10^{+252}\right):\\
\;\;\;\;z \cdot \left(1 - \log t\right)\\
\mathbf{else}:\\
\;\;\;\;x + \mathsf{fma}\left(a + -0.5, b, y\right)\\
\end{array}
\end{array}
if z < -1.0499999999999999e178 or 2.89999999999999996e252 < z Initial program 99.6%
Taylor expanded in a around 0 99.6%
Taylor expanded in z around inf 69.9%
if -1.0499999999999999e178 < z < 2.89999999999999996e252Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 86.5%
associate-+r+86.5%
sub-neg86.5%
metadata-eval86.5%
*-commutative86.5%
associate-+l+86.5%
+-commutative86.5%
fma-define86.5%
Simplified86.5%
Final simplification84.7%
(FPCore (x y z t a b) :precision binary64 (if (<= z -7.8e+176) (- (+ z x) (* z (log t))) (if (<= z 2.8e+252) (+ x (fma (+ a -0.5) b y)) (* z (- 1.0 (log t))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -7.8e+176) {
tmp = (z + x) - (z * log(t));
} else if (z <= 2.8e+252) {
tmp = x + fma((a + -0.5), b, y);
} else {
tmp = z * (1.0 - log(t));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -7.8e+176) tmp = Float64(Float64(z + x) - Float64(z * log(t))); elseif (z <= 2.8e+252) tmp = Float64(x + fma(Float64(a + -0.5), b, y)); else tmp = Float64(z * Float64(1.0 - log(t))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -7.8e+176], N[(N[(z + x), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e+252], N[(x + N[(N[(a + -0.5), $MachinePrecision] * b + y), $MachinePrecision]), $MachinePrecision], N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.8 \cdot 10^{+176}:\\
\;\;\;\;\left(z + x\right) - z \cdot \log t\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{+252}:\\
\;\;\;\;x + \mathsf{fma}\left(a + -0.5, b, y\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(1 - \log t\right)\\
\end{array}
\end{array}
if z < -7.8000000000000003e176Initial program 99.6%
Taylor expanded in a around 0 99.6%
Taylor expanded in z around inf 64.4%
if -7.8000000000000003e176 < z < 2.80000000000000003e252Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 86.5%
associate-+r+86.5%
sub-neg86.5%
metadata-eval86.5%
*-commutative86.5%
associate-+l+86.5%
+-commutative86.5%
fma-define86.5%
Simplified86.5%
if 2.80000000000000003e252 < z Initial program 99.8%
Taylor expanded in a around 0 99.8%
Taylor expanded in z around inf 85.5%
Final simplification84.6%
(FPCore (x y z t a b) :precision binary64 (- (+ x (+ y (+ z (+ (* -0.5 b) (* a b))))) (* z (log t))))
double code(double x, double y, double z, double t, double a, double b) {
return (x + (y + (z + ((-0.5 * b) + (a * b))))) - (z * log(t));
}
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 + (((-0.5d0) * b) + (a * b))))) - (z * log(t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x + (y + (z + ((-0.5 * b) + (a * b))))) - (z * Math.log(t));
}
def code(x, y, z, t, a, b): return (x + (y + (z + ((-0.5 * b) + (a * b))))) - (z * math.log(t))
function code(x, y, z, t, a, b) return Float64(Float64(x + Float64(y + Float64(z + Float64(Float64(-0.5 * b) + Float64(a * b))))) - Float64(z * log(t))) end
function tmp = code(x, y, z, t, a, b) tmp = (x + (y + (z + ((-0.5 * b) + (a * b))))) - (z * log(t)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + N[(y + N[(z + N[(N[(-0.5 * b), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + \left(y + \left(z + \left(-0.5 \cdot b + a \cdot b\right)\right)\right)\right) - z \cdot \log t
\end{array}
Initial program 99.9%
Taylor expanded in a around 0 99.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.4e+178) (not (<= z 2.3e+253))) (* z (- 1.0 (log t))) (+ x (+ y (* b (- a 0.5))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.4e+178) || !(z <= 2.3e+253)) {
tmp = z * (1.0 - log(t));
} else {
tmp = x + (y + (b * (a - 0.5)));
}
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 <= (-1.4d+178)) .or. (.not. (z <= 2.3d+253))) then
tmp = z * (1.0d0 - log(t))
else
tmp = x + (y + (b * (a - 0.5d0)))
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 <= -1.4e+178) || !(z <= 2.3e+253)) {
tmp = z * (1.0 - Math.log(t));
} else {
tmp = x + (y + (b * (a - 0.5)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.4e+178) or not (z <= 2.3e+253): tmp = z * (1.0 - math.log(t)) else: tmp = x + (y + (b * (a - 0.5))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.4e+178) || !(z <= 2.3e+253)) tmp = Float64(z * Float64(1.0 - log(t))); else tmp = Float64(x + Float64(y + Float64(b * Float64(a - 0.5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.4e+178) || ~((z <= 2.3e+253))) tmp = z * (1.0 - log(t)); else tmp = x + (y + (b * (a - 0.5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.4e+178], N[Not[LessEqual[z, 2.3e+253]], $MachinePrecision]], N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+178} \lor \neg \left(z \leq 2.3 \cdot 10^{+253}\right):\\
\;\;\;\;z \cdot \left(1 - \log t\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y + b \cdot \left(a - 0.5\right)\right)\\
\end{array}
\end{array}
if z < -1.39999999999999997e178 or 2.3e253 < z Initial program 99.6%
Taylor expanded in a around 0 99.6%
Taylor expanded in z around inf 69.9%
if -1.39999999999999997e178 < z < 2.3e253Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 86.5%
Final simplification84.7%
(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
(if (<= b -1.6e+108)
(* a b)
(if (<= b -2.5e+42)
(+ x y)
(if (<= b -1.2e+24)
(* a b)
(if (<= b 9.2e+30)
(+ x y)
(if (or (<= b 3e+208) (not (<= b 1.6e+262))) (* a b) (* -0.5 b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.6e+108) {
tmp = a * b;
} else if (b <= -2.5e+42) {
tmp = x + y;
} else if (b <= -1.2e+24) {
tmp = a * b;
} else if (b <= 9.2e+30) {
tmp = x + y;
} else if ((b <= 3e+208) || !(b <= 1.6e+262)) {
tmp = a * b;
} else {
tmp = -0.5 * b;
}
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 (b <= (-1.6d+108)) then
tmp = a * b
else if (b <= (-2.5d+42)) then
tmp = x + y
else if (b <= (-1.2d+24)) then
tmp = a * b
else if (b <= 9.2d+30) then
tmp = x + y
else if ((b <= 3d+208) .or. (.not. (b <= 1.6d+262))) then
tmp = a * b
else
tmp = (-0.5d0) * b
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 (b <= -1.6e+108) {
tmp = a * b;
} else if (b <= -2.5e+42) {
tmp = x + y;
} else if (b <= -1.2e+24) {
tmp = a * b;
} else if (b <= 9.2e+30) {
tmp = x + y;
} else if ((b <= 3e+208) || !(b <= 1.6e+262)) {
tmp = a * b;
} else {
tmp = -0.5 * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.6e+108: tmp = a * b elif b <= -2.5e+42: tmp = x + y elif b <= -1.2e+24: tmp = a * b elif b <= 9.2e+30: tmp = x + y elif (b <= 3e+208) or not (b <= 1.6e+262): tmp = a * b else: tmp = -0.5 * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.6e+108) tmp = Float64(a * b); elseif (b <= -2.5e+42) tmp = Float64(x + y); elseif (b <= -1.2e+24) tmp = Float64(a * b); elseif (b <= 9.2e+30) tmp = Float64(x + y); elseif ((b <= 3e+208) || !(b <= 1.6e+262)) tmp = Float64(a * b); else tmp = Float64(-0.5 * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.6e+108) tmp = a * b; elseif (b <= -2.5e+42) tmp = x + y; elseif (b <= -1.2e+24) tmp = a * b; elseif (b <= 9.2e+30) tmp = x + y; elseif ((b <= 3e+208) || ~((b <= 1.6e+262))) tmp = a * b; else tmp = -0.5 * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.6e+108], N[(a * b), $MachinePrecision], If[LessEqual[b, -2.5e+42], N[(x + y), $MachinePrecision], If[LessEqual[b, -1.2e+24], N[(a * b), $MachinePrecision], If[LessEqual[b, 9.2e+30], N[(x + y), $MachinePrecision], If[Or[LessEqual[b, 3e+208], N[Not[LessEqual[b, 1.6e+262]], $MachinePrecision]], N[(a * b), $MachinePrecision], N[(-0.5 * b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.6 \cdot 10^{+108}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{+42}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;b \leq -1.2 \cdot 10^{+24}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{+30}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;b \leq 3 \cdot 10^{+208} \lor \neg \left(b \leq 1.6 \cdot 10^{+262}\right):\\
\;\;\;\;a \cdot b\\
\mathbf{else}:\\
\;\;\;\;-0.5 \cdot b\\
\end{array}
\end{array}
if b < -1.6e108 or -2.50000000000000003e42 < b < -1.2e24 or 9.2e30 < b < 2.99999999999999995e208 or 1.5999999999999999e262 < b Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in a around inf 52.7%
*-commutative52.7%
Simplified52.7%
if -1.6e108 < b < -2.50000000000000003e42 or -1.2e24 < b < 9.2e30Initial program 99.9%
+-commutative99.9%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around 0 89.5%
Taylor expanded in z around 0 61.0%
+-commutative61.0%
Simplified61.0%
if 2.99999999999999995e208 < b < 1.5999999999999999e262Initial program 99.8%
+-commutative99.8%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.8%
metadata-eval99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in b around inf 80.7%
Taylor expanded in a around 0 55.8%
Final simplification57.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- a 0.5))))
(if (<= b -6.4e+102)
t_1
(if (<= b -1e+64)
(+ x y)
(if (<= b -6.2e+21)
(+ y (* a b))
(if (<= b 1.55e-10)
(+ x y)
(if (<= b 2.7e+144) (+ x (* a b)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double tmp;
if (b <= -6.4e+102) {
tmp = t_1;
} else if (b <= -1e+64) {
tmp = x + y;
} else if (b <= -6.2e+21) {
tmp = y + (a * b);
} else if (b <= 1.55e-10) {
tmp = x + y;
} else if (b <= 2.7e+144) {
tmp = x + (a * b);
} else {
tmp = t_1;
}
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 (b <= (-6.4d+102)) then
tmp = t_1
else if (b <= (-1d+64)) then
tmp = x + y
else if (b <= (-6.2d+21)) then
tmp = y + (a * b)
else if (b <= 1.55d-10) then
tmp = x + y
else if (b <= 2.7d+144) then
tmp = x + (a * b)
else
tmp = t_1
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 (b <= -6.4e+102) {
tmp = t_1;
} else if (b <= -1e+64) {
tmp = x + y;
} else if (b <= -6.2e+21) {
tmp = y + (a * b);
} else if (b <= 1.55e-10) {
tmp = x + y;
} else if (b <= 2.7e+144) {
tmp = x + (a * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (a - 0.5) tmp = 0 if b <= -6.4e+102: tmp = t_1 elif b <= -1e+64: tmp = x + y elif b <= -6.2e+21: tmp = y + (a * b) elif b <= 1.55e-10: tmp = x + y elif b <= 2.7e+144: tmp = x + (a * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(a - 0.5)) tmp = 0.0 if (b <= -6.4e+102) tmp = t_1; elseif (b <= -1e+64) tmp = Float64(x + y); elseif (b <= -6.2e+21) tmp = Float64(y + Float64(a * b)); elseif (b <= 1.55e-10) tmp = Float64(x + y); elseif (b <= 2.7e+144) tmp = Float64(x + Float64(a * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (a - 0.5); tmp = 0.0; if (b <= -6.4e+102) tmp = t_1; elseif (b <= -1e+64) tmp = x + y; elseif (b <= -6.2e+21) tmp = y + (a * b); elseif (b <= 1.55e-10) tmp = x + y; elseif (b <= 2.7e+144) tmp = x + (a * b); else tmp = t_1; 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[b, -6.4e+102], t$95$1, If[LessEqual[b, -1e+64], N[(x + y), $MachinePrecision], If[LessEqual[b, -6.2e+21], N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.55e-10], N[(x + y), $MachinePrecision], If[LessEqual[b, 2.7e+144], N[(x + N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a - 0.5\right)\\
\mathbf{if}\;b \leq -6.4 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1 \cdot 10^{+64}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;b \leq -6.2 \cdot 10^{+21}:\\
\;\;\;\;y + a \cdot b\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{-10}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{+144}:\\
\;\;\;\;x + a \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -6.3999999999999999e102 or 2.70000000000000015e144 < b Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around inf 79.7%
if -6.3999999999999999e102 < b < -1.00000000000000002e64 or -6.2e21 < b < 1.55000000000000008e-10Initial program 99.8%
+-commutative99.8%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around 0 93.1%
Taylor expanded in z around 0 63.2%
+-commutative63.2%
Simplified63.2%
if -1.00000000000000002e64 < b < -6.2e21Initial program 99.9%
Taylor expanded in y around inf 91.2%
Taylor expanded in y around inf 81.8%
Taylor expanded in a around inf 72.9%
if 1.55000000000000008e-10 < b < 2.70000000000000015e144Initial program 99.9%
Taylor expanded in y around 0 78.3%
Taylor expanded in z around 0 68.0%
Taylor expanded in a around inf 62.5%
Final simplification69.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- a 0.5))))
(if (<= b -6.1e+102)
t_1
(if (<= b -7e+65)
(+ x y)
(if (<= b -2.85e+22)
t_1
(if (<= b 8.5e-11)
(+ x y)
(if (<= b 2.6e+144) (+ x (* a b)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double tmp;
if (b <= -6.1e+102) {
tmp = t_1;
} else if (b <= -7e+65) {
tmp = x + y;
} else if (b <= -2.85e+22) {
tmp = t_1;
} else if (b <= 8.5e-11) {
tmp = x + y;
} else if (b <= 2.6e+144) {
tmp = x + (a * b);
} else {
tmp = t_1;
}
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 (b <= (-6.1d+102)) then
tmp = t_1
else if (b <= (-7d+65)) then
tmp = x + y
else if (b <= (-2.85d+22)) then
tmp = t_1
else if (b <= 8.5d-11) then
tmp = x + y
else if (b <= 2.6d+144) then
tmp = x + (a * b)
else
tmp = t_1
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 (b <= -6.1e+102) {
tmp = t_1;
} else if (b <= -7e+65) {
tmp = x + y;
} else if (b <= -2.85e+22) {
tmp = t_1;
} else if (b <= 8.5e-11) {
tmp = x + y;
} else if (b <= 2.6e+144) {
tmp = x + (a * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (a - 0.5) tmp = 0 if b <= -6.1e+102: tmp = t_1 elif b <= -7e+65: tmp = x + y elif b <= -2.85e+22: tmp = t_1 elif b <= 8.5e-11: tmp = x + y elif b <= 2.6e+144: tmp = x + (a * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(a - 0.5)) tmp = 0.0 if (b <= -6.1e+102) tmp = t_1; elseif (b <= -7e+65) tmp = Float64(x + y); elseif (b <= -2.85e+22) tmp = t_1; elseif (b <= 8.5e-11) tmp = Float64(x + y); elseif (b <= 2.6e+144) tmp = Float64(x + Float64(a * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (a - 0.5); tmp = 0.0; if (b <= -6.1e+102) tmp = t_1; elseif (b <= -7e+65) tmp = x + y; elseif (b <= -2.85e+22) tmp = t_1; elseif (b <= 8.5e-11) tmp = x + y; elseif (b <= 2.6e+144) tmp = x + (a * b); else tmp = t_1; 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[b, -6.1e+102], t$95$1, If[LessEqual[b, -7e+65], N[(x + y), $MachinePrecision], If[LessEqual[b, -2.85e+22], t$95$1, If[LessEqual[b, 8.5e-11], N[(x + y), $MachinePrecision], If[LessEqual[b, 2.6e+144], N[(x + N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a - 0.5\right)\\
\mathbf{if}\;b \leq -6.1 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7 \cdot 10^{+65}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;b \leq -2.85 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{-11}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+144}:\\
\;\;\;\;x + a \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -6.1000000000000002e102 or -7.0000000000000002e65 < b < -2.8499999999999999e22 or 2.5999999999999999e144 < b Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around inf 77.5%
if -6.1000000000000002e102 < b < -7.0000000000000002e65 or -2.8499999999999999e22 < b < 8.50000000000000037e-11Initial program 99.8%
+-commutative99.8%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around 0 93.1%
Taylor expanded in z around 0 63.2%
+-commutative63.2%
Simplified63.2%
if 8.50000000000000037e-11 < b < 2.5999999999999999e144Initial program 99.9%
Taylor expanded in y around 0 78.3%
Taylor expanded in z around 0 68.0%
Taylor expanded in a around inf 62.5%
Final simplification68.5%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= b -7e+102)
(and (not (<= b -1.15e+66))
(or (<= b -4.7e+24) (not (<= b 2.8e+31)))))
(* b (- a 0.5))
(+ x y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -7e+102) || (!(b <= -1.15e+66) && ((b <= -4.7e+24) || !(b <= 2.8e+31)))) {
tmp = b * (a - 0.5);
} else {
tmp = x + 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 ((b <= (-7d+102)) .or. (.not. (b <= (-1.15d+66))) .and. (b <= (-4.7d+24)) .or. (.not. (b <= 2.8d+31))) then
tmp = b * (a - 0.5d0)
else
tmp = x + 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 ((b <= -7e+102) || (!(b <= -1.15e+66) && ((b <= -4.7e+24) || !(b <= 2.8e+31)))) {
tmp = b * (a - 0.5);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -7e+102) or (not (b <= -1.15e+66) and ((b <= -4.7e+24) or not (b <= 2.8e+31))): tmp = b * (a - 0.5) else: tmp = x + y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -7e+102) || (!(b <= -1.15e+66) && ((b <= -4.7e+24) || !(b <= 2.8e+31)))) tmp = Float64(b * Float64(a - 0.5)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -7e+102) || (~((b <= -1.15e+66)) && ((b <= -4.7e+24) || ~((b <= 2.8e+31))))) tmp = b * (a - 0.5); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -7e+102], And[N[Not[LessEqual[b, -1.15e+66]], $MachinePrecision], Or[LessEqual[b, -4.7e+24], N[Not[LessEqual[b, 2.8e+31]], $MachinePrecision]]]], N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7 \cdot 10^{+102} \lor \neg \left(b \leq -1.15 \cdot 10^{+66}\right) \land \left(b \leq -4.7 \cdot 10^{+24} \lor \neg \left(b \leq 2.8 \cdot 10^{+31}\right)\right):\\
\;\;\;\;b \cdot \left(a - 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if b < -7.00000000000000021e102 or -1.15e66 < b < -4.7e24 or 2.80000000000000017e31 < b Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around inf 71.9%
if -7.00000000000000021e102 < b < -1.15e66 or -4.7e24 < b < 2.80000000000000017e31Initial program 99.8%
+-commutative99.8%
associate--l+99.8%
associate-+r+99.8%
+-commutative99.8%
*-lft-identity99.8%
metadata-eval99.8%
*-commutative99.8%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around 0 91.3%
Taylor expanded in z around 0 62.2%
+-commutative62.2%
Simplified62.2%
Final simplification67.0%
(FPCore (x y z t a b) :precision binary64 (if (<= x -3.5e+43) x (if (<= x 4.6e-218) (* a b) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -3.5e+43) {
tmp = x;
} else if (x <= 4.6e-218) {
tmp = a * b;
} 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 (x <= (-3.5d+43)) then
tmp = x
else if (x <= 4.6d-218) then
tmp = a * b
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 (x <= -3.5e+43) {
tmp = x;
} else if (x <= 4.6e-218) {
tmp = a * b;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -3.5e+43: tmp = x elif x <= 4.6e-218: tmp = a * b else: tmp = y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -3.5e+43) tmp = x; elseif (x <= 4.6e-218) tmp = Float64(a * b); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -3.5e+43) tmp = x; elseif (x <= 4.6e-218) tmp = a * b; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -3.5e+43], x, If[LessEqual[x, 4.6e-218], N[(a * b), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.5 \cdot 10^{+43}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-218}:\\
\;\;\;\;a \cdot b\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if x < -3.5000000000000001e43Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around inf 47.6%
if -3.5000000000000001e43 < x < 4.59999999999999989e-218Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in a around inf 24.6%
*-commutative24.6%
Simplified24.6%
if 4.59999999999999989e-218 < x Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in y around inf 16.9%
Final simplification26.4%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* b (- a 0.5)))) (if (<= x -1.7e+34) (+ x t_1) (+ y t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double tmp;
if (x <= -1.7e+34) {
tmp = x + t_1;
} else {
tmp = y + t_1;
}
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 (x <= (-1.7d+34)) then
tmp = x + t_1
else
tmp = y + t_1
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 (x <= -1.7e+34) {
tmp = x + t_1;
} else {
tmp = y + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (a - 0.5) tmp = 0 if x <= -1.7e+34: tmp = x + t_1 else: tmp = y + t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(a - 0.5)) tmp = 0.0 if (x <= -1.7e+34) tmp = Float64(x + t_1); else tmp = Float64(y + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (a - 0.5); tmp = 0.0; if (x <= -1.7e+34) tmp = x + t_1; else tmp = y + t_1; 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[x, -1.7e+34], N[(x + t$95$1), $MachinePrecision], N[(y + t$95$1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a - 0.5\right)\\
\mathbf{if}\;x \leq -1.7 \cdot 10^{+34}:\\
\;\;\;\;x + t\_1\\
\mathbf{else}:\\
\;\;\;\;y + t\_1\\
\end{array}
\end{array}
if x < -1.7e34Initial program 99.9%
Taylor expanded in y around 0 88.7%
Taylor expanded in z around 0 77.3%
if -1.7e34 < x Initial program 99.9%
Taylor expanded in y around inf 85.8%
Taylor expanded in y around inf 62.2%
Final simplification65.6%
(FPCore (x y z t a b) :precision binary64 (if (<= y 2.9e+61) (+ x (* b (- a 0.5))) (+ y (* a b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 2.9e+61) {
tmp = x + (b * (a - 0.5));
} else {
tmp = y + (a * b);
}
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 (y <= 2.9d+61) then
tmp = x + (b * (a - 0.5d0))
else
tmp = y + (a * b)
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 (y <= 2.9e+61) {
tmp = x + (b * (a - 0.5));
} else {
tmp = y + (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 2.9e+61: tmp = x + (b * (a - 0.5)) else: tmp = y + (a * b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 2.9e+61) tmp = Float64(x + Float64(b * Float64(a - 0.5))); else tmp = Float64(y + Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 2.9e+61) tmp = x + (b * (a - 0.5)); else tmp = y + (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 2.9e+61], N[(x + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.9 \cdot 10^{+61}:\\
\;\;\;\;x + b \cdot \left(a - 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;y + a \cdot b\\
\end{array}
\end{array}
if y < 2.9000000000000001e61Initial program 99.9%
Taylor expanded in y around 0 87.1%
Taylor expanded in z around 0 65.4%
if 2.9000000000000001e61 < y Initial program 100.0%
Taylor expanded in y around inf 100.0%
Taylor expanded in y around inf 72.3%
Taylor expanded in a around inf 67.9%
(FPCore (x y z t a b) :precision binary64 (+ x (+ y (* b (- a 0.5)))))
double code(double x, double y, double z, double t, double a, double b) {
return x + (y + (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 = x + (y + (b * (a - 0.5d0)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + (y + (b * (a - 0.5)));
}
def code(x, y, z, t, a, b): return x + (y + (b * (a - 0.5)))
function code(x, y, z, t, a, b) return Float64(x + Float64(y + Float64(b * Float64(a - 0.5)))) end
function tmp = code(x, y, z, t, a, b) tmp = x + (y + (b * (a - 0.5))); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(y + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y + b \cdot \left(a - 0.5\right)\right)
\end{array}
Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 80.5%
(FPCore (x y z t a b) :precision binary64 (if (<= x -1.75e+33) x y))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -1.75e+33) {
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 (x <= (-1.75d+33)) 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 (x <= -1.75e+33) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -1.75e+33: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -1.75e+33) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -1.75e+33) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -1.75e+33], x, y]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.75 \cdot 10^{+33}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if x < -1.75000000000000005e33Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around inf 46.9%
if -1.75000000000000005e33 < x Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in y around inf 21.0%
(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%
+-commutative99.9%
associate--l+99.9%
associate-+r+99.9%
+-commutative99.9%
*-lft-identity99.9%
metadata-eval99.9%
*-commutative99.9%
distribute-rgt-out--99.9%
metadata-eval99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around inf 24.3%
(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 2024110
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, A"
:precision binary64
:alt
(+ (+ (+ x y) (/ (* (- 1.0 (pow (log t) 2.0)) z) (+ 1.0 (log t)))) (* (- a 0.5) b))
(+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))