
(FPCore (x y z t a) :precision binary64 (+ (- (+ (log (+ x y)) (log z)) t) (* (- a 0.5) (log t))))
double code(double x, double y, double z, double t, double a) {
return ((log((x + y)) + log(z)) - t) + ((a - 0.5) * log(t));
}
real(8) function code(x, y, z, t, a)
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
code = ((log((x + y)) + log(z)) - t) + ((a - 0.5d0) * log(t))
end function
public static double code(double x, double y, double z, double t, double a) {
return ((Math.log((x + y)) + Math.log(z)) - t) + ((a - 0.5) * Math.log(t));
}
def code(x, y, z, t, a): return ((math.log((x + y)) + math.log(z)) - t) + ((a - 0.5) * math.log(t))
function code(x, y, z, t, a) return Float64(Float64(Float64(log(Float64(x + y)) + log(z)) - t) + Float64(Float64(a - 0.5) * log(t))) end
function tmp = code(x, y, z, t, a) tmp = ((log((x + y)) + log(z)) - t) + ((a - 0.5) * log(t)); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(N[Log[N[(x + y), $MachinePrecision]], $MachinePrecision] + N[Log[z], $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\log \left(x + y\right) + \log z\right) - t\right) + \left(a - 0.5\right) \cdot \log t
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ (- (+ (log (+ x y)) (log z)) t) (* (- a 0.5) (log t))))
double code(double x, double y, double z, double t, double a) {
return ((log((x + y)) + log(z)) - t) + ((a - 0.5) * log(t));
}
real(8) function code(x, y, z, t, a)
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
code = ((log((x + y)) + log(z)) - t) + ((a - 0.5d0) * log(t))
end function
public static double code(double x, double y, double z, double t, double a) {
return ((Math.log((x + y)) + Math.log(z)) - t) + ((a - 0.5) * Math.log(t));
}
def code(x, y, z, t, a): return ((math.log((x + y)) + math.log(z)) - t) + ((a - 0.5) * math.log(t))
function code(x, y, z, t, a) return Float64(Float64(Float64(log(Float64(x + y)) + log(z)) - t) + Float64(Float64(a - 0.5) * log(t))) end
function tmp = code(x, y, z, t, a) tmp = ((log((x + y)) + log(z)) - t) + ((a - 0.5) * log(t)); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(N[Log[N[(x + y), $MachinePrecision]], $MachinePrecision] + N[Log[z], $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\log \left(x + y\right) + \log z\right) - t\right) + \left(a - 0.5\right) \cdot \log t
\end{array}
(FPCore (x y z t a) :precision binary64 (+ (- (log z) t) (fma (+ a -0.5) (log t) (log (+ x y)))))
double code(double x, double y, double z, double t, double a) {
return (log(z) - t) + fma((a + -0.5), log(t), log((x + y)));
}
function code(x, y, z, t, a) return Float64(Float64(log(z) - t) + fma(Float64(a + -0.5), log(t), log(Float64(x + y)))) end
code[x_, y_, z_, t_, a_] := N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[(N[(a + -0.5), $MachinePrecision] * N[Log[t], $MachinePrecision] + N[Log[N[(x + y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\log z - t\right) + \mathsf{fma}\left(a + -0.5, \log t, \log \left(x + y\right)\right)
\end{array}
Initial program 99.6%
associate--l+99.6%
+-commutative99.6%
associate-+l+99.6%
+-commutative99.6%
fma-def99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Final simplification99.6%
(FPCore (x y z t a) :precision binary64 (+ (log (+ x y)) (- (log z) (fma (log t) (- 0.5 a) t))))
double code(double x, double y, double z, double t, double a) {
return log((x + y)) + (log(z) - fma(log(t), (0.5 - a), t));
}
function code(x, y, z, t, a) return Float64(log(Float64(x + y)) + Float64(log(z) - fma(log(t), Float64(0.5 - a), t))) end
code[x_, y_, z_, t_, a_] := N[(N[Log[N[(x + y), $MachinePrecision]], $MachinePrecision] + N[(N[Log[z], $MachinePrecision] - N[(N[Log[t], $MachinePrecision] * N[(0.5 - a), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\log \left(x + y\right) + \left(\log z - \mathsf{fma}\left(\log t, 0.5 - a, t\right)\right)
\end{array}
Initial program 99.6%
associate-+l-99.6%
associate--l+99.6%
sub-neg99.6%
+-commutative99.6%
associate--r+99.6%
sub-neg99.6%
associate-+l-99.6%
neg-sub099.6%
associate--r+99.6%
unsub-neg99.6%
associate-+l-99.6%
neg-sub099.6%
*-commutative99.6%
distribute-rgt-neg-in99.6%
fma-def99.6%
Simplified99.6%
Final simplification99.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= (- a 0.5) -40000000000.0) (not (<= (- a 0.5) -0.2))) (+ (- (log z) t) (* a (log t))) (+ (log (+ x y)) (- (log z) (+ (* (log t) 0.5) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a - 0.5) <= -40000000000.0) || !((a - 0.5) <= -0.2)) {
tmp = (log(z) - t) + (a * log(t));
} else {
tmp = log((x + y)) + (log(z) - ((log(t) * 0.5) + t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (((a - 0.5d0) <= (-40000000000.0d0)) .or. (.not. ((a - 0.5d0) <= (-0.2d0)))) then
tmp = (log(z) - t) + (a * log(t))
else
tmp = log((x + y)) + (log(z) - ((log(t) * 0.5d0) + t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a - 0.5) <= -40000000000.0) || !((a - 0.5) <= -0.2)) {
tmp = (Math.log(z) - t) + (a * Math.log(t));
} else {
tmp = Math.log((x + y)) + (Math.log(z) - ((Math.log(t) * 0.5) + t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if ((a - 0.5) <= -40000000000.0) or not ((a - 0.5) <= -0.2): tmp = (math.log(z) - t) + (a * math.log(t)) else: tmp = math.log((x + y)) + (math.log(z) - ((math.log(t) * 0.5) + t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((Float64(a - 0.5) <= -40000000000.0) || !(Float64(a - 0.5) <= -0.2)) tmp = Float64(Float64(log(z) - t) + Float64(a * log(t))); else tmp = Float64(log(Float64(x + y)) + Float64(log(z) - Float64(Float64(log(t) * 0.5) + t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (((a - 0.5) <= -40000000000.0) || ~(((a - 0.5) <= -0.2))) tmp = (log(z) - t) + (a * log(t)); else tmp = log((x + y)) + (log(z) - ((log(t) * 0.5) + t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[N[(a - 0.5), $MachinePrecision], -40000000000.0], N[Not[LessEqual[N[(a - 0.5), $MachinePrecision], -0.2]], $MachinePrecision]], N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Log[N[(x + y), $MachinePrecision]], $MachinePrecision] + N[(N[Log[z], $MachinePrecision] - N[(N[(N[Log[t], $MachinePrecision] * 0.5), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a - 0.5 \leq -40000000000 \lor \neg \left(a - 0.5 \leq -0.2\right):\\
\;\;\;\;\left(\log z - t\right) + a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;\log \left(x + y\right) + \left(\log z - \left(\log t \cdot 0.5 + t\right)\right)\\
\end{array}
\end{array}
if (-.f64 a 1/2) < -4e10 or -0.20000000000000001 < (-.f64 a 1/2) Initial program 99.7%
associate--l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-def99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in a around inf 99.2%
*-commutative99.2%
Simplified99.2%
if -4e10 < (-.f64 a 1/2) < -0.20000000000000001Initial program 99.5%
associate-+l-99.5%
associate--l+99.5%
sub-neg99.5%
+-commutative99.5%
associate--r+99.5%
sub-neg99.5%
associate-+l-99.5%
neg-sub099.5%
associate--r+99.5%
unsub-neg99.5%
associate-+l-99.5%
neg-sub099.5%
*-commutative99.5%
distribute-rgt-neg-in99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in a around 0 98.7%
*-commutative98.7%
Simplified98.7%
Final simplification99.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= (- a 0.5) -40000000000.0) (not (<= (- a 0.5) -0.2))) (+ (- (log z) t) (* a (log t))) (+ (+ (log z) (- (log y) t)) (* -0.5 (log t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a - 0.5) <= -40000000000.0) || !((a - 0.5) <= -0.2)) {
tmp = (log(z) - t) + (a * log(t));
} else {
tmp = (log(z) + (log(y) - t)) + (-0.5 * log(t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (((a - 0.5d0) <= (-40000000000.0d0)) .or. (.not. ((a - 0.5d0) <= (-0.2d0)))) then
tmp = (log(z) - t) + (a * log(t))
else
tmp = (log(z) + (log(y) - t)) + ((-0.5d0) * log(t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a - 0.5) <= -40000000000.0) || !((a - 0.5) <= -0.2)) {
tmp = (Math.log(z) - t) + (a * Math.log(t));
} else {
tmp = (Math.log(z) + (Math.log(y) - t)) + (-0.5 * Math.log(t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if ((a - 0.5) <= -40000000000.0) or not ((a - 0.5) <= -0.2): tmp = (math.log(z) - t) + (a * math.log(t)) else: tmp = (math.log(z) + (math.log(y) - t)) + (-0.5 * math.log(t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((Float64(a - 0.5) <= -40000000000.0) || !(Float64(a - 0.5) <= -0.2)) tmp = Float64(Float64(log(z) - t) + Float64(a * log(t))); else tmp = Float64(Float64(log(z) + Float64(log(y) - t)) + Float64(-0.5 * log(t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (((a - 0.5) <= -40000000000.0) || ~(((a - 0.5) <= -0.2))) tmp = (log(z) - t) + (a * log(t)); else tmp = (log(z) + (log(y) - t)) + (-0.5 * log(t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[N[(a - 0.5), $MachinePrecision], -40000000000.0], N[Not[LessEqual[N[(a - 0.5), $MachinePrecision], -0.2]], $MachinePrecision]], N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Log[z], $MachinePrecision] + N[(N[Log[y], $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision] + N[(-0.5 * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a - 0.5 \leq -40000000000 \lor \neg \left(a - 0.5 \leq -0.2\right):\\
\;\;\;\;\left(\log z - t\right) + a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;\left(\log z + \left(\log y - t\right)\right) + -0.5 \cdot \log t\\
\end{array}
\end{array}
if (-.f64 a 1/2) < -4e10 or -0.20000000000000001 < (-.f64 a 1/2) Initial program 99.7%
associate--l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-def99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in a around inf 99.2%
*-commutative99.2%
Simplified99.2%
if -4e10 < (-.f64 a 1/2) < -0.20000000000000001Initial program 99.5%
associate--l+99.5%
sub-neg99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in x around 0 66.2%
associate--l+66.2%
Simplified66.2%
Taylor expanded in a around 0 66.1%
Final simplification83.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= (- a 0.5) -40000000000.0) (not (<= (- a 0.5) -0.2))) (+ (- (log z) t) (* a (log t))) (- (+ (log z) (+ (log y) (* -0.5 (log t)))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a - 0.5) <= -40000000000.0) || !((a - 0.5) <= -0.2)) {
tmp = (log(z) - t) + (a * log(t));
} else {
tmp = (log(z) + (log(y) + (-0.5 * log(t)))) - t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (((a - 0.5d0) <= (-40000000000.0d0)) .or. (.not. ((a - 0.5d0) <= (-0.2d0)))) then
tmp = (log(z) - t) + (a * log(t))
else
tmp = (log(z) + (log(y) + ((-0.5d0) * log(t)))) - t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a - 0.5) <= -40000000000.0) || !((a - 0.5) <= -0.2)) {
tmp = (Math.log(z) - t) + (a * Math.log(t));
} else {
tmp = (Math.log(z) + (Math.log(y) + (-0.5 * Math.log(t)))) - t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if ((a - 0.5) <= -40000000000.0) or not ((a - 0.5) <= -0.2): tmp = (math.log(z) - t) + (a * math.log(t)) else: tmp = (math.log(z) + (math.log(y) + (-0.5 * math.log(t)))) - t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((Float64(a - 0.5) <= -40000000000.0) || !(Float64(a - 0.5) <= -0.2)) tmp = Float64(Float64(log(z) - t) + Float64(a * log(t))); else tmp = Float64(Float64(log(z) + Float64(log(y) + Float64(-0.5 * log(t)))) - t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (((a - 0.5) <= -40000000000.0) || ~(((a - 0.5) <= -0.2))) tmp = (log(z) - t) + (a * log(t)); else tmp = (log(z) + (log(y) + (-0.5 * log(t)))) - t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[N[(a - 0.5), $MachinePrecision], -40000000000.0], N[Not[LessEqual[N[(a - 0.5), $MachinePrecision], -0.2]], $MachinePrecision]], N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Log[z], $MachinePrecision] + N[(N[Log[y], $MachinePrecision] + N[(-0.5 * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a - 0.5 \leq -40000000000 \lor \neg \left(a - 0.5 \leq -0.2\right):\\
\;\;\;\;\left(\log z - t\right) + a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;\left(\log z + \left(\log y + -0.5 \cdot \log t\right)\right) - t\\
\end{array}
\end{array}
if (-.f64 a 1/2) < -4e10 or -0.20000000000000001 < (-.f64 a 1/2) Initial program 99.7%
associate--l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-def99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in a around inf 99.2%
*-commutative99.2%
Simplified99.2%
if -4e10 < (-.f64 a 1/2) < -0.20000000000000001Initial program 99.5%
+-commutative99.5%
fma-def99.5%
sub-neg99.5%
metadata-eval99.5%
associate--l+99.5%
Simplified99.5%
Taylor expanded in x around 0 66.2%
Taylor expanded in a around 0 66.2%
Final simplification83.5%
(FPCore (x y z t a) :precision binary64 (+ (+ (- (log z) t) (log (+ x y))) (* (+ a -0.5) (log t))))
double code(double x, double y, double z, double t, double a) {
return ((log(z) - t) + log((x + y))) + ((a + -0.5) * log(t));
}
real(8) function code(x, y, z, t, a)
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
code = ((log(z) - t) + log((x + y))) + ((a + (-0.5d0)) * log(t))
end function
public static double code(double x, double y, double z, double t, double a) {
return ((Math.log(z) - t) + Math.log((x + y))) + ((a + -0.5) * Math.log(t));
}
def code(x, y, z, t, a): return ((math.log(z) - t) + math.log((x + y))) + ((a + -0.5) * math.log(t))
function code(x, y, z, t, a) return Float64(Float64(Float64(log(z) - t) + log(Float64(x + y))) + Float64(Float64(a + -0.5) * log(t))) end
function tmp = code(x, y, z, t, a) tmp = ((log(z) - t) + log((x + y))) + ((a + -0.5) * log(t)); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[Log[N[(x + y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(a + -0.5), $MachinePrecision] * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\log z - t\right) + \log \left(x + y\right)\right) + \left(a + -0.5\right) \cdot \log t
\end{array}
Initial program 99.6%
associate--l+99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Final simplification99.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -60000000.0) (not (<= a 9.5e-38))) (+ (- (log z) t) (* a (log t))) (- (+ (log y) (log (/ z (sqrt t)))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -60000000.0) || !(a <= 9.5e-38)) {
tmp = (log(z) - t) + (a * log(t));
} else {
tmp = (log(y) + log((z / sqrt(t)))) - t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if ((a <= (-60000000.0d0)) .or. (.not. (a <= 9.5d-38))) then
tmp = (log(z) - t) + (a * log(t))
else
tmp = (log(y) + log((z / sqrt(t)))) - t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -60000000.0) || !(a <= 9.5e-38)) {
tmp = (Math.log(z) - t) + (a * Math.log(t));
} else {
tmp = (Math.log(y) + Math.log((z / Math.sqrt(t)))) - t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -60000000.0) or not (a <= 9.5e-38): tmp = (math.log(z) - t) + (a * math.log(t)) else: tmp = (math.log(y) + math.log((z / math.sqrt(t)))) - t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -60000000.0) || !(a <= 9.5e-38)) tmp = Float64(Float64(log(z) - t) + Float64(a * log(t))); else tmp = Float64(Float64(log(y) + log(Float64(z / sqrt(t)))) - t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -60000000.0) || ~((a <= 9.5e-38))) tmp = (log(z) - t) + (a * log(t)); else tmp = (log(y) + log((z / sqrt(t)))) - t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -60000000.0], N[Not[LessEqual[a, 9.5e-38]], $MachinePrecision]], N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Log[y], $MachinePrecision] + N[Log[N[(z / N[Sqrt[t], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -60000000 \lor \neg \left(a \leq 9.5 \cdot 10^{-38}\right):\\
\;\;\;\;\left(\log z - t\right) + a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;\left(\log y + \log \left(\frac{z}{\sqrt{t}}\right)\right) - t\\
\end{array}
\end{array}
if a < -6e7 or 9.5000000000000009e-38 < a Initial program 99.7%
associate--l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-def99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in a around inf 98.7%
*-commutative98.7%
Simplified98.7%
if -6e7 < a < 9.5000000000000009e-38Initial program 99.5%
associate--l+99.5%
+-commutative99.5%
associate-+l+99.5%
+-commutative99.5%
fma-def99.5%
sub-neg99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in a around 0 99.3%
associate-+r+99.3%
+-commutative99.3%
+-commutative99.3%
log-prod75.3%
*-commutative75.3%
+-commutative75.3%
Simplified75.3%
Taylor expanded in z around 0 99.3%
associate-+r+99.3%
log-prod75.3%
log-pow75.3%
log-prod70.5%
associate-*l*73.2%
Simplified73.2%
Taylor expanded in x around 0 45.2%
associate-*l*49.3%
log-prod63.9%
sqrt-div63.9%
metadata-eval63.9%
un-div-inv63.9%
Applied egg-rr63.9%
Final simplification82.8%
(FPCore (x y z t a) :precision binary64 (+ (* (+ a -0.5) (log t)) (+ (log z) (- (log y) t))))
double code(double x, double y, double z, double t, double a) {
return ((a + -0.5) * log(t)) + (log(z) + (log(y) - t));
}
real(8) function code(x, y, z, t, a)
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
code = ((a + (-0.5d0)) * log(t)) + (log(z) + (log(y) - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return ((a + -0.5) * Math.log(t)) + (Math.log(z) + (Math.log(y) - t));
}
def code(x, y, z, t, a): return ((a + -0.5) * math.log(t)) + (math.log(z) + (math.log(y) - t))
function code(x, y, z, t, a) return Float64(Float64(Float64(a + -0.5) * log(t)) + Float64(log(z) + Float64(log(y) - t))) end
function tmp = code(x, y, z, t, a) tmp = ((a + -0.5) * log(t)) + (log(z) + (log(y) - t)); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(a + -0.5), $MachinePrecision] * N[Log[t], $MachinePrecision]), $MachinePrecision] + N[(N[Log[z], $MachinePrecision] + N[(N[Log[y], $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(a + -0.5\right) \cdot \log t + \left(\log z + \left(\log y - t\right)\right)
\end{array}
Initial program 99.6%
associate--l+99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around 0 70.0%
associate--l+70.0%
Simplified70.0%
Final simplification70.0%
(FPCore (x y z t a) :precision binary64 (if (<= t 0.0074) (+ (log (* z (+ x y))) (* (log t) (- a 0.5))) (+ (- (log z) t) (* a (log t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 0.0074) {
tmp = log((z * (x + y))) + (log(t) * (a - 0.5));
} else {
tmp = (log(z) - t) + (a * log(t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (t <= 0.0074d0) then
tmp = log((z * (x + y))) + (log(t) * (a - 0.5d0))
else
tmp = (log(z) - t) + (a * log(t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 0.0074) {
tmp = Math.log((z * (x + y))) + (Math.log(t) * (a - 0.5));
} else {
tmp = (Math.log(z) - t) + (a * Math.log(t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= 0.0074: tmp = math.log((z * (x + y))) + (math.log(t) * (a - 0.5)) else: tmp = (math.log(z) - t) + (a * math.log(t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= 0.0074) tmp = Float64(log(Float64(z * Float64(x + y))) + Float64(log(t) * Float64(a - 0.5))); else tmp = Float64(Float64(log(z) - t) + Float64(a * log(t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= 0.0074) tmp = log((z * (x + y))) + (log(t) * (a - 0.5)); else tmp = (log(z) - t) + (a * log(t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 0.0074], N[(N[Log[N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[(N[Log[t], $MachinePrecision] * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 0.0074:\\
\;\;\;\;\log \left(z \cdot \left(x + y\right)\right) + \log t \cdot \left(a - 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\log z - t\right) + a \cdot \log t\\
\end{array}
\end{array}
if t < 0.0074000000000000003Initial program 99.3%
associate-+l-99.3%
associate--l+99.3%
sub-neg99.3%
+-commutative99.3%
associate--r+99.3%
sub-neg99.3%
associate-+l-99.3%
neg-sub099.3%
associate--r+99.3%
unsub-neg99.3%
associate-+l-99.3%
neg-sub099.3%
*-commutative99.3%
distribute-rgt-neg-in99.3%
fma-def99.3%
Simplified99.3%
Taylor expanded in t around 0 98.1%
+-commutative98.1%
log-prod78.0%
*-commutative78.0%
+-commutative78.0%
*-commutative78.0%
Simplified78.0%
if 0.0074000000000000003 < t Initial program 99.9%
associate--l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in a around inf 97.0%
*-commutative97.0%
Simplified97.0%
Final simplification88.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -45000000000.0) (not (<= a 1.9e+22))) (* a (log t)) (+ (- (log z) t) (log (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -45000000000.0) || !(a <= 1.9e+22)) {
tmp = a * log(t);
} else {
tmp = (log(z) - t) + log((x + y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if ((a <= (-45000000000.0d0)) .or. (.not. (a <= 1.9d+22))) then
tmp = a * log(t)
else
tmp = (log(z) - t) + log((x + y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -45000000000.0) || !(a <= 1.9e+22)) {
tmp = a * Math.log(t);
} else {
tmp = (Math.log(z) - t) + Math.log((x + y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -45000000000.0) or not (a <= 1.9e+22): tmp = a * math.log(t) else: tmp = (math.log(z) - t) + math.log((x + y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -45000000000.0) || !(a <= 1.9e+22)) tmp = Float64(a * log(t)); else tmp = Float64(Float64(log(z) - t) + log(Float64(x + y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -45000000000.0) || ~((a <= 1.9e+22))) tmp = a * log(t); else tmp = (log(z) - t) + log((x + y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -45000000000.0], N[Not[LessEqual[a, 1.9e+22]], $MachinePrecision]], N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision], N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[Log[N[(x + y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -45000000000 \lor \neg \left(a \leq 1.9 \cdot 10^{+22}\right):\\
\;\;\;\;a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;\left(\log z - t\right) + \log \left(x + y\right)\\
\end{array}
\end{array}
if a < -4.5e10 or 1.9000000000000002e22 < a Initial program 99.7%
+-commutative99.7%
fma-def99.7%
sub-neg99.7%
metadata-eval99.7%
associate--l+99.7%
Simplified99.7%
Taylor expanded in x around 0 75.1%
Taylor expanded in a around inf 77.8%
*-commutative77.8%
Simplified77.8%
if -4.5e10 < a < 1.9000000000000002e22Initial program 99.5%
associate-+l-99.5%
associate--l+99.5%
sub-neg99.5%
+-commutative99.5%
associate--r+99.5%
sub-neg99.5%
associate-+l-99.5%
neg-sub099.5%
associate--r+99.5%
unsub-neg99.5%
associate-+l-99.5%
neg-sub099.5%
*-commutative99.5%
distribute-rgt-neg-in99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in t around inf 63.7%
Final simplification70.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -60000000.0) (not (<= a 5.4e-44))) (+ (- (log z) t) (* a (log t))) (- (log (/ (* z y) (sqrt t))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -60000000.0) || !(a <= 5.4e-44)) {
tmp = (log(z) - t) + (a * log(t));
} else {
tmp = log(((z * y) / sqrt(t))) - t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if ((a <= (-60000000.0d0)) .or. (.not. (a <= 5.4d-44))) then
tmp = (log(z) - t) + (a * log(t))
else
tmp = log(((z * y) / sqrt(t))) - t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -60000000.0) || !(a <= 5.4e-44)) {
tmp = (Math.log(z) - t) + (a * Math.log(t));
} else {
tmp = Math.log(((z * y) / Math.sqrt(t))) - t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -60000000.0) or not (a <= 5.4e-44): tmp = (math.log(z) - t) + (a * math.log(t)) else: tmp = math.log(((z * y) / math.sqrt(t))) - t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -60000000.0) || !(a <= 5.4e-44)) tmp = Float64(Float64(log(z) - t) + Float64(a * log(t))); else tmp = Float64(log(Float64(Float64(z * y) / sqrt(t))) - t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -60000000.0) || ~((a <= 5.4e-44))) tmp = (log(z) - t) + (a * log(t)); else tmp = log(((z * y) / sqrt(t))) - t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -60000000.0], N[Not[LessEqual[a, 5.4e-44]], $MachinePrecision]], N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Log[N[(N[(z * y), $MachinePrecision] / N[Sqrt[t], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -60000000 \lor \neg \left(a \leq 5.4 \cdot 10^{-44}\right):\\
\;\;\;\;\left(\log z - t\right) + a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;\log \left(\frac{z \cdot y}{\sqrt{t}}\right) - t\\
\end{array}
\end{array}
if a < -6e7 or 5.3999999999999998e-44 < a Initial program 99.7%
associate--l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-def99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in a around inf 97.5%
*-commutative97.5%
Simplified97.5%
if -6e7 < a < 5.3999999999999998e-44Initial program 99.4%
associate--l+99.4%
+-commutative99.4%
associate-+l+99.5%
+-commutative99.5%
fma-def99.5%
sub-neg99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in a around 0 99.3%
associate-+r+99.3%
+-commutative99.3%
+-commutative99.3%
log-prod76.4%
*-commutative76.4%
+-commutative76.4%
Simplified76.4%
Taylor expanded in z around 0 99.3%
associate-+r+99.3%
log-prod76.4%
log-pow76.4%
log-prod71.5%
associate-*l*74.2%
Simplified74.2%
Taylor expanded in x around 0 46.2%
sqrt-div46.2%
metadata-eval46.2%
un-div-inv46.2%
Applied egg-rr46.2%
Final simplification74.7%
(FPCore (x y z t a) :precision binary64 (if (<= t 0.005) (+ (log (* z y)) (* (log t) (- a 0.5))) (+ (- (log z) t) (* a (log t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 0.005) {
tmp = log((z * y)) + (log(t) * (a - 0.5));
} else {
tmp = (log(z) - t) + (a * log(t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (t <= 0.005d0) then
tmp = log((z * y)) + (log(t) * (a - 0.5d0))
else
tmp = (log(z) - t) + (a * log(t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 0.005) {
tmp = Math.log((z * y)) + (Math.log(t) * (a - 0.5));
} else {
tmp = (Math.log(z) - t) + (a * Math.log(t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= 0.005: tmp = math.log((z * y)) + (math.log(t) * (a - 0.5)) else: tmp = (math.log(z) - t) + (a * math.log(t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= 0.005) tmp = Float64(log(Float64(z * y)) + Float64(log(t) * Float64(a - 0.5))); else tmp = Float64(Float64(log(z) - t) + Float64(a * log(t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= 0.005) tmp = log((z * y)) + (log(t) * (a - 0.5)); else tmp = (log(z) - t) + (a * log(t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 0.005], N[(N[Log[N[(z * y), $MachinePrecision]], $MachinePrecision] + N[(N[Log[t], $MachinePrecision] * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 0.005:\\
\;\;\;\;\log \left(z \cdot y\right) + \log t \cdot \left(a - 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\log z - t\right) + a \cdot \log t\\
\end{array}
\end{array}
if t < 0.0050000000000000001Initial program 99.3%
+-commutative99.3%
fma-def99.3%
sub-neg99.3%
metadata-eval99.3%
associate--l+99.3%
Simplified99.3%
Taylor expanded in x around 0 68.2%
Taylor expanded in z around inf 68.2%
mul-1-neg68.2%
log-rec68.2%
remove-double-neg68.2%
log-prod51.5%
Simplified51.5%
Taylor expanded in t around 0 50.4%
if 0.0050000000000000001 < t Initial program 99.9%
associate--l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in a around inf 97.0%
*-commutative97.0%
Simplified97.0%
Final simplification75.3%
(FPCore (x y z t a) :precision binary64 (+ (- (log z) t) (* a (log t))))
double code(double x, double y, double z, double t, double a) {
return (log(z) - t) + (a * log(t));
}
real(8) function code(x, y, z, t, a)
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
code = (log(z) - t) + (a * log(t))
end function
public static double code(double x, double y, double z, double t, double a) {
return (Math.log(z) - t) + (a * Math.log(t));
}
def code(x, y, z, t, a): return (math.log(z) - t) + (a * math.log(t))
function code(x, y, z, t, a) return Float64(Float64(log(z) - t) + Float64(a * log(t))) end
function tmp = code(x, y, z, t, a) tmp = (log(z) - t) + (a * log(t)); end
code[x_, y_, z_, t_, a_] := N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\log z - t\right) + a \cdot \log t
\end{array}
Initial program 99.6%
associate--l+99.6%
+-commutative99.6%
associate-+l+99.6%
+-commutative99.6%
fma-def99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in a around inf 80.8%
*-commutative80.8%
Simplified80.8%
Final simplification80.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -43000000000.0) (not (<= a 8e+21))) (* a (log t)) (- t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -43000000000.0) || !(a <= 8e+21)) {
tmp = a * log(t);
} else {
tmp = -t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if ((a <= (-43000000000.0d0)) .or. (.not. (a <= 8d+21))) then
tmp = a * log(t)
else
tmp = -t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -43000000000.0) || !(a <= 8e+21)) {
tmp = a * Math.log(t);
} else {
tmp = -t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -43000000000.0) or not (a <= 8e+21): tmp = a * math.log(t) else: tmp = -t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -43000000000.0) || !(a <= 8e+21)) tmp = Float64(a * log(t)); else tmp = Float64(-t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -43000000000.0) || ~((a <= 8e+21))) tmp = a * log(t); else tmp = -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -43000000000.0], N[Not[LessEqual[a, 8e+21]], $MachinePrecision]], N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision], (-t)]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -43000000000 \lor \neg \left(a \leq 8 \cdot 10^{+21}\right):\\
\;\;\;\;a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;-t\\
\end{array}
\end{array}
if a < -4.3e10 or 8e21 < a Initial program 99.7%
+-commutative99.7%
fma-def99.7%
sub-neg99.7%
metadata-eval99.7%
associate--l+99.7%
Simplified99.7%
Taylor expanded in x around 0 75.1%
Taylor expanded in a around inf 77.8%
*-commutative77.8%
Simplified77.8%
if -4.3e10 < a < 8e21Initial program 99.5%
associate--l+99.5%
+-commutative99.5%
associate-+l+99.6%
+-commutative99.6%
fma-def99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in t around inf 56.5%
neg-mul-156.5%
Simplified56.5%
Final simplification67.3%
(FPCore (x y z t a) :precision binary64 (- t))
double code(double x, double y, double z, double t, double a) {
return -t;
}
real(8) function code(x, y, z, t, a)
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
code = -t
end function
public static double code(double x, double y, double z, double t, double a) {
return -t;
}
def code(x, y, z, t, a): return -t
function code(x, y, z, t, a) return Float64(-t) end
function tmp = code(x, y, z, t, a) tmp = -t; end
code[x_, y_, z_, t_, a_] := (-t)
\begin{array}{l}
\\
-t
\end{array}
Initial program 99.6%
associate--l+99.6%
+-commutative99.6%
associate-+l+99.6%
+-commutative99.6%
fma-def99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in t around inf 39.4%
neg-mul-139.4%
Simplified39.4%
Final simplification39.4%
(FPCore (x y z t a) :precision binary64 (+ (log (+ x y)) (+ (- (log z) t) (* (- a 0.5) (log t)))))
double code(double x, double y, double z, double t, double a) {
return log((x + y)) + ((log(z) - t) + ((a - 0.5) * log(t)));
}
real(8) function code(x, y, z, t, a)
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
code = log((x + y)) + ((log(z) - t) + ((a - 0.5d0) * log(t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return Math.log((x + y)) + ((Math.log(z) - t) + ((a - 0.5) * Math.log(t)));
}
def code(x, y, z, t, a): return math.log((x + y)) + ((math.log(z) - t) + ((a - 0.5) * math.log(t)))
function code(x, y, z, t, a) return Float64(log(Float64(x + y)) + Float64(Float64(log(z) - t) + Float64(Float64(a - 0.5) * log(t)))) end
function tmp = code(x, y, z, t, a) tmp = log((x + y)) + ((log(z) - t) + ((a - 0.5) * log(t))); end
code[x_, y_, z_, t_, a_] := N[(N[Log[N[(x + y), $MachinePrecision]], $MachinePrecision] + N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\log \left(x + y\right) + \left(\left(\log z - t\right) + \left(a - 0.5\right) \cdot \log t\right)
\end{array}
herbie shell --seed 2023224
(FPCore (x y z t a)
:name "Numeric.SpecFunctions:logGammaL from math-functions-0.1.5.2"
:precision binary64
:herbie-target
(+ (log (+ x y)) (+ (- (log z) t) (* (- a 0.5) (log t))))
(+ (- (+ (log (+ x y)) (log z)) t) (* (- a 0.5) (log t))))