
(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 14 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 (+ x y)) (- (fma (+ a -0.5) (log t) (log z)) t)))
double code(double x, double y, double z, double t, double a) {
return log((x + y)) + (fma((a + -0.5), log(t), log(z)) - t);
}
function code(x, y, z, t, a) return Float64(log(Float64(x + y)) + Float64(fma(Float64(a + -0.5), log(t), log(z)) - t)) end
code[x_, y_, z_, t_, a_] := N[(N[Log[N[(x + y), $MachinePrecision]], $MachinePrecision] + N[(N[(N[(a + -0.5), $MachinePrecision] * N[Log[t], $MachinePrecision] + N[Log[z], $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\log \left(x + y\right) + \left(\mathsf{fma}\left(a + -0.5, \log t, \log z\right) - t\right)
\end{array}
Initial program 99.6%
associate--l+99.6%
associate-+l+99.6%
+-commutative99.6%
associate-+r-99.6%
fma-def99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Final simplification99.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= (- a 0.5) -100.0) (not (<= (- a 0.5) -0.4))) (- (+ (log y) (* a (log t))) t) (- (+ (log z) (+ (log (+ x y)) (* -0.5 (log t)))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a - 0.5) <= -100.0) || !((a - 0.5) <= -0.4)) {
tmp = (log(y) + (a * log(t))) - t;
} else {
tmp = (log(z) + (log((x + 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) <= (-100.0d0)) .or. (.not. ((a - 0.5d0) <= (-0.4d0)))) then
tmp = (log(y) + (a * log(t))) - t
else
tmp = (log(z) + (log((x + 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) <= -100.0) || !((a - 0.5) <= -0.4)) {
tmp = (Math.log(y) + (a * Math.log(t))) - t;
} else {
tmp = (Math.log(z) + (Math.log((x + y)) + (-0.5 * Math.log(t)))) - t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if ((a - 0.5) <= -100.0) or not ((a - 0.5) <= -0.4): tmp = (math.log(y) + (a * math.log(t))) - t else: tmp = (math.log(z) + (math.log((x + y)) + (-0.5 * math.log(t)))) - t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((Float64(a - 0.5) <= -100.0) || !(Float64(a - 0.5) <= -0.4)) tmp = Float64(Float64(log(y) + Float64(a * log(t))) - t); else tmp = Float64(Float64(log(z) + Float64(log(Float64(x + 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) <= -100.0) || ~(((a - 0.5) <= -0.4))) tmp = (log(y) + (a * log(t))) - t; else tmp = (log(z) + (log((x + 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], -100.0], N[Not[LessEqual[N[(a - 0.5), $MachinePrecision], -0.4]], $MachinePrecision]], N[(N[(N[Log[y], $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision], N[(N[(N[Log[z], $MachinePrecision] + N[(N[Log[N[(x + y), $MachinePrecision]], $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 -100 \lor \neg \left(a - 0.5 \leq -0.4\right):\\
\;\;\;\;\left(\log y + a \cdot \log t\right) - t\\
\mathbf{else}:\\
\;\;\;\;\left(\log z + \left(\log \left(x + y\right) + -0.5 \cdot \log t\right)\right) - t\\
\end{array}
\end{array}
if (-.f64 a 1/2) < -100 or -0.40000000000000002 < (-.f64 a 1/2) Initial program 99.7%
associate--l+99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+r-99.7%
fma-def99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in a around inf 99.2%
*-commutative99.2%
Simplified99.2%
Taylor expanded in x around 0 75.2%
if -100 < (-.f64 a 1/2) < -0.40000000000000002Initial program 99.4%
associate--l+99.4%
associate-+l+99.5%
+-commutative99.5%
associate-+r-99.5%
fma-def99.5%
sub-neg99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in a around 0 97.1%
Final simplification84.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= (- a 0.5) -100.0) (not (<= (- a 0.5) -0.4))) (- (+ (log y) (* a (log t))) t) (- (+ (log y) (+ (log z) (* -0.5 (log t)))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a - 0.5) <= -100.0) || !((a - 0.5) <= -0.4)) {
tmp = (log(y) + (a * log(t))) - t;
} else {
tmp = (log(y) + (log(z) + (-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) <= (-100.0d0)) .or. (.not. ((a - 0.5d0) <= (-0.4d0)))) then
tmp = (log(y) + (a * log(t))) - t
else
tmp = (log(y) + (log(z) + ((-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) <= -100.0) || !((a - 0.5) <= -0.4)) {
tmp = (Math.log(y) + (a * Math.log(t))) - t;
} else {
tmp = (Math.log(y) + (Math.log(z) + (-0.5 * Math.log(t)))) - t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if ((a - 0.5) <= -100.0) or not ((a - 0.5) <= -0.4): tmp = (math.log(y) + (a * math.log(t))) - t else: tmp = (math.log(y) + (math.log(z) + (-0.5 * math.log(t)))) - t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((Float64(a - 0.5) <= -100.0) || !(Float64(a - 0.5) <= -0.4)) tmp = Float64(Float64(log(y) + Float64(a * log(t))) - t); else tmp = Float64(Float64(log(y) + Float64(log(z) + 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) <= -100.0) || ~(((a - 0.5) <= -0.4))) tmp = (log(y) + (a * log(t))) - t; else tmp = (log(y) + (log(z) + (-0.5 * log(t)))) - t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[N[(a - 0.5), $MachinePrecision], -100.0], N[Not[LessEqual[N[(a - 0.5), $MachinePrecision], -0.4]], $MachinePrecision]], N[(N[(N[Log[y], $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision], N[(N[(N[Log[y], $MachinePrecision] + N[(N[Log[z], $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 -100 \lor \neg \left(a - 0.5 \leq -0.4\right):\\
\;\;\;\;\left(\log y + a \cdot \log t\right) - t\\
\mathbf{else}:\\
\;\;\;\;\left(\log y + \left(\log z + -0.5 \cdot \log t\right)\right) - t\\
\end{array}
\end{array}
if (-.f64 a 1/2) < -100 or -0.40000000000000002 < (-.f64 a 1/2) Initial program 99.7%
associate--l+99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+r-99.7%
fma-def99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in a around inf 99.2%
*-commutative99.2%
Simplified99.2%
Taylor expanded in x around 0 75.2%
if -100 < (-.f64 a 1/2) < -0.40000000000000002Initial program 99.4%
associate--l+99.4%
associate-+l+99.5%
+-commutative99.5%
associate-+r-99.5%
fma-def99.5%
sub-neg99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in a around 0 97.1%
Taylor expanded in x around 0 62.6%
Final simplification69.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= (- a 0.5) -100.0) (not (<= (- a 0.5) -0.4))) (- (+ (log y) (* a (log t))) 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) <= -100.0) || !((a - 0.5) <= -0.4)) {
tmp = (log(y) + (a * log(t))) - 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) <= (-100.0d0)) .or. (.not. ((a - 0.5d0) <= (-0.4d0)))) then
tmp = (log(y) + (a * log(t))) - 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) <= -100.0) || !((a - 0.5) <= -0.4)) {
tmp = (Math.log(y) + (a * Math.log(t))) - 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) <= -100.0) or not ((a - 0.5) <= -0.4): tmp = (math.log(y) + (a * math.log(t))) - 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) <= -100.0) || !(Float64(a - 0.5) <= -0.4)) tmp = Float64(Float64(log(y) + Float64(a * log(t))) - 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) <= -100.0) || ~(((a - 0.5) <= -0.4))) tmp = (log(y) + (a * log(t))) - 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], -100.0], N[Not[LessEqual[N[(a - 0.5), $MachinePrecision], -0.4]], $MachinePrecision]], N[(N[(N[Log[y], $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t), $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 -100 \lor \neg \left(a - 0.5 \leq -0.4\right):\\
\;\;\;\;\left(\log y + a \cdot \log t\right) - 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) < -100 or -0.40000000000000002 < (-.f64 a 1/2) Initial program 99.7%
associate--l+99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+r-99.7%
fma-def99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in a around inf 99.2%
*-commutative99.2%
Simplified99.2%
Taylor expanded in x around 0 75.2%
if -100 < (-.f64 a 1/2) < -0.40000000000000002Initial program 99.4%
associate--l+99.4%
associate-+l+99.5%
+-commutative99.5%
associate-+r-99.5%
fma-def99.5%
sub-neg99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in a around 0 97.1%
Taylor expanded in x around 0 62.6%
+-commutative62.6%
Simplified62.6%
Final simplification69.9%
(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(log(Float64(x + y)) + 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[(N[Log[N[(x + y), $MachinePrecision]], $MachinePrecision] + N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision] + N[(N[(a + -0.5), $MachinePrecision] * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\log \left(x + y\right) + \left(\log z - t\right)\right) + \left(a + -0.5\right) \cdot \log t
\end{array}
Initial program 99.6%
cancel-sign-sub99.6%
cancel-sign-sub-inv99.6%
associate--l+99.6%
remove-double-neg99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Final simplification99.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.65) (not (<= a 4.5e-5))) (- (+ (log y) (* a (log t))) t) (+ (- (log z) t) (log (* y (pow t -0.5))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.65) || !(a <= 4.5e-5)) {
tmp = (log(y) + (a * log(t))) - t;
} else {
tmp = (log(z) - t) + log((y * pow(t, -0.5)));
}
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 <= (-1.65d0)) .or. (.not. (a <= 4.5d-5))) then
tmp = (log(y) + (a * log(t))) - t
else
tmp = (log(z) - t) + log((y * (t ** (-0.5d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.65) || !(a <= 4.5e-5)) {
tmp = (Math.log(y) + (a * Math.log(t))) - t;
} else {
tmp = (Math.log(z) - t) + Math.log((y * Math.pow(t, -0.5)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.65) or not (a <= 4.5e-5): tmp = (math.log(y) + (a * math.log(t))) - t else: tmp = (math.log(z) - t) + math.log((y * math.pow(t, -0.5))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.65) || !(a <= 4.5e-5)) tmp = Float64(Float64(log(y) + Float64(a * log(t))) - t); else tmp = Float64(Float64(log(z) - t) + log(Float64(y * (t ^ -0.5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.65) || ~((a <= 4.5e-5))) tmp = (log(y) + (a * log(t))) - t; else tmp = (log(z) - t) + log((y * (t ^ -0.5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.65], N[Not[LessEqual[a, 4.5e-5]], $MachinePrecision]], N[(N[(N[Log[y], $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision], N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[Log[N[(y * N[Power[t, -0.5], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.65 \lor \neg \left(a \leq 4.5 \cdot 10^{-5}\right):\\
\;\;\;\;\left(\log y + a \cdot \log t\right) - t\\
\mathbf{else}:\\
\;\;\;\;\left(\log z - t\right) + \log \left(y \cdot {t}^{-0.5}\right)\\
\end{array}
\end{array}
if a < -1.6499999999999999 or 4.50000000000000028e-5 < a Initial program 99.7%
associate--l+99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+r-99.7%
fma-def99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in a around inf 98.2%
*-commutative98.2%
Simplified98.2%
Taylor expanded in x around 0 73.8%
if -1.6499999999999999 < a < 4.50000000000000028e-5Initial program 99.4%
associate--l+99.4%
associate-+l+99.4%
+-commutative99.4%
associate-+r-99.4%
fma-def99.4%
sub-neg99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in a around 0 98.2%
Taylor expanded in x around 0 64.2%
+-commutative64.2%
Simplified64.2%
Taylor expanded in z around 0 64.3%
sub-neg64.3%
associate-+l+64.3%
associate-+r+64.3%
+-commutative64.3%
neg-mul-164.3%
+-commutative64.3%
neg-mul-164.3%
associate-+r+64.3%
sub-neg64.3%
associate-+l+64.3%
log-pow64.3%
exp-to-pow64.3%
log-prod58.8%
*-commutative58.8%
Simplified58.8%
Final simplification67.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.55e-163) (not (<= a 7.6))) (- (+ (log y) (* a (log t))) t) (- (+ (* (+ a -0.5) (log t)) (log (* y z))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.55e-163) || !(a <= 7.6)) {
tmp = (log(y) + (a * log(t))) - t;
} else {
tmp = (((a + -0.5) * log(t)) + log((y * z))) - 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 <= (-1.55d-163)) .or. (.not. (a <= 7.6d0))) then
tmp = (log(y) + (a * log(t))) - t
else
tmp = (((a + (-0.5d0)) * log(t)) + log((y * z))) - 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 <= -1.55e-163) || !(a <= 7.6)) {
tmp = (Math.log(y) + (a * Math.log(t))) - t;
} else {
tmp = (((a + -0.5) * Math.log(t)) + Math.log((y * z))) - t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.55e-163) or not (a <= 7.6): tmp = (math.log(y) + (a * math.log(t))) - t else: tmp = (((a + -0.5) * math.log(t)) + math.log((y * z))) - t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.55e-163) || !(a <= 7.6)) tmp = Float64(Float64(log(y) + Float64(a * log(t))) - t); else tmp = Float64(Float64(Float64(Float64(a + -0.5) * log(t)) + log(Float64(y * z))) - t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.55e-163) || ~((a <= 7.6))) tmp = (log(y) + (a * log(t))) - t; else tmp = (((a + -0.5) * log(t)) + log((y * z))) - t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.55e-163], N[Not[LessEqual[a, 7.6]], $MachinePrecision]], N[(N[(N[Log[y], $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision], N[(N[(N[(N[(a + -0.5), $MachinePrecision] * N[Log[t], $MachinePrecision]), $MachinePrecision] + N[Log[N[(y * z), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.55 \cdot 10^{-163} \lor \neg \left(a \leq 7.6\right):\\
\;\;\;\;\left(\log y + a \cdot \log t\right) - t\\
\mathbf{else}:\\
\;\;\;\;\left(\left(a + -0.5\right) \cdot \log t + \log \left(y \cdot z\right)\right) - t\\
\end{array}
\end{array}
if a < -1.54999999999999987e-163 or 7.5999999999999996 < a Initial program 99.7%
associate--l+99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+r-99.7%
fma-def99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in a around inf 96.7%
*-commutative96.7%
Simplified96.7%
Taylor expanded in x around 0 73.5%
if -1.54999999999999987e-163 < a < 7.5999999999999996Initial program 99.3%
cancel-sign-sub99.3%
cancel-sign-sub-inv99.3%
associate--l+99.4%
remove-double-neg99.4%
sub-neg99.4%
metadata-eval99.4%
Simplified99.4%
add-sqr-sqrt55.9%
pow255.9%
Applied egg-rr55.9%
Taylor expanded in x around 0 62.1%
associate-+r+62.1%
log-prod44.9%
associate--l+44.9%
log-prod62.1%
remove-double-neg62.1%
log-rec62.1%
mul-1-neg62.1%
+-commutative62.1%
associate--l+62.1%
Simplified44.9%
Final simplification63.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.38e-163) (not (<= a 0.00125))) (- (+ (log y) (* a (log t))) t) (- (+ (* -0.5 (log t)) (log (* y z))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.38e-163) || !(a <= 0.00125)) {
tmp = (log(y) + (a * log(t))) - t;
} else {
tmp = ((-0.5 * log(t)) + log((y * z))) - 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 <= (-1.38d-163)) .or. (.not. (a <= 0.00125d0))) then
tmp = (log(y) + (a * log(t))) - t
else
tmp = (((-0.5d0) * log(t)) + log((y * z))) - 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 <= -1.38e-163) || !(a <= 0.00125)) {
tmp = (Math.log(y) + (a * Math.log(t))) - t;
} else {
tmp = ((-0.5 * Math.log(t)) + Math.log((y * z))) - t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.38e-163) or not (a <= 0.00125): tmp = (math.log(y) + (a * math.log(t))) - t else: tmp = ((-0.5 * math.log(t)) + math.log((y * z))) - t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.38e-163) || !(a <= 0.00125)) tmp = Float64(Float64(log(y) + Float64(a * log(t))) - t); else tmp = Float64(Float64(Float64(-0.5 * log(t)) + log(Float64(y * z))) - t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.38e-163) || ~((a <= 0.00125))) tmp = (log(y) + (a * log(t))) - t; else tmp = ((-0.5 * log(t)) + log((y * z))) - t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.38e-163], N[Not[LessEqual[a, 0.00125]], $MachinePrecision]], N[(N[(N[Log[y], $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision], N[(N[(N[(-0.5 * N[Log[t], $MachinePrecision]), $MachinePrecision] + N[Log[N[(y * z), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.38 \cdot 10^{-163} \lor \neg \left(a \leq 0.00125\right):\\
\;\;\;\;\left(\log y + a \cdot \log t\right) - t\\
\mathbf{else}:\\
\;\;\;\;\left(-0.5 \cdot \log t + \log \left(y \cdot z\right)\right) - t\\
\end{array}
\end{array}
if a < -1.37999999999999999e-163 or 0.00125000000000000003 < a Initial program 99.7%
associate--l+99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+r-99.7%
fma-def99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in a around inf 96.7%
*-commutative96.7%
Simplified96.7%
Taylor expanded in x around 0 73.5%
if -1.37999999999999999e-163 < a < 0.00125000000000000003Initial program 99.3%
associate--l+99.4%
associate-+l+99.4%
+-commutative99.4%
associate-+r-99.4%
fma-def99.4%
sub-neg99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in a around 0 96.7%
associate-+r+96.6%
log-prod74.8%
+-commutative74.8%
Simplified74.8%
Taylor expanded in y around inf 61.2%
mul-1-neg29.1%
log-rec29.1%
remove-double-neg29.1%
log-prod20.3%
Simplified43.9%
Final simplification62.9%
(FPCore (x y z t a) :precision binary64 (if (<= t 8e-81) (+ (* (+ a -0.5) (log t)) (log (* y z))) (- (+ (log y) (* a (log t))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 8e-81) {
tmp = ((a + -0.5) * log(t)) + log((y * z));
} else {
tmp = (log(y) + (a * 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 (t <= 8d-81) then
tmp = ((a + (-0.5d0)) * log(t)) + log((y * z))
else
tmp = (log(y) + (a * 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 (t <= 8e-81) {
tmp = ((a + -0.5) * Math.log(t)) + Math.log((y * z));
} else {
tmp = (Math.log(y) + (a * Math.log(t))) - t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= 8e-81: tmp = ((a + -0.5) * math.log(t)) + math.log((y * z)) else: tmp = (math.log(y) + (a * math.log(t))) - t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= 8e-81) tmp = Float64(Float64(Float64(a + -0.5) * log(t)) + log(Float64(y * z))); else tmp = Float64(Float64(log(y) + Float64(a * log(t))) - t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= 8e-81) tmp = ((a + -0.5) * log(t)) + log((y * z)); else tmp = (log(y) + (a * log(t))) - t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 8e-81], N[(N[(N[(a + -0.5), $MachinePrecision] * N[Log[t], $MachinePrecision]), $MachinePrecision] + N[Log[N[(y * z), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[(N[Log[y], $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 8 \cdot 10^{-81}:\\
\;\;\;\;\left(a + -0.5\right) \cdot \log t + \log \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\log y + a \cdot \log t\right) - t\\
\end{array}
\end{array}
if t < 7.9999999999999997e-81Initial program 99.2%
cancel-sign-sub99.2%
cancel-sign-sub-inv99.2%
associate--l+99.2%
remove-double-neg99.2%
sub-neg99.2%
metadata-eval99.2%
Simplified99.2%
Taylor expanded in t around 0 99.2%
log-prod77.0%
+-commutative77.0%
Simplified77.0%
Taylor expanded in y around inf 60.1%
mul-1-neg60.1%
log-rec60.1%
remove-double-neg60.1%
log-prod46.6%
Simplified46.6%
if 7.9999999999999997e-81 < t Initial program 99.8%
associate--l+99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+r-99.8%
fma-def99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in a around inf 91.0%
*-commutative91.0%
Simplified91.0%
Taylor expanded in x around 0 70.5%
Final simplification62.1%
(FPCore (x y z t a) :precision binary64 (if (<= t 3.4e+30) (+ (log (+ x y)) (* a (log t))) (- t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 3.4e+30) {
tmp = log((x + y)) + (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 (t <= 3.4d+30) then
tmp = log((x + y)) + (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 (t <= 3.4e+30) {
tmp = Math.log((x + y)) + (a * Math.log(t));
} else {
tmp = -t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= 3.4e+30: tmp = math.log((x + y)) + (a * math.log(t)) else: tmp = -t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= 3.4e+30) tmp = Float64(log(Float64(x + y)) + 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 (t <= 3.4e+30) tmp = log((x + y)) + (a * log(t)); else tmp = -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 3.4e+30], N[(N[Log[N[(x + y), $MachinePrecision]], $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], (-t)]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3.4 \cdot 10^{+30}:\\
\;\;\;\;\log \left(x + y\right) + a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;-t\\
\end{array}
\end{array}
if t < 3.4000000000000002e30Initial program 99.3%
associate--l+99.3%
associate-+l+99.3%
+-commutative99.3%
associate-+r-99.3%
fma-def99.3%
sub-neg99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in a around inf 61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in t around 0 61.3%
+-commutative61.3%
Simplified61.3%
if 3.4000000000000002e30 < t Initial program 99.9%
associate--l+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r-99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in t around inf 74.3%
neg-mul-174.3%
Simplified74.3%
Final simplification67.4%
(FPCore (x y z t a) :precision binary64 (- (+ (log y) (* a (log t))) t))
double code(double x, double y, double z, double t, double a) {
return (log(y) + (a * log(t))) - 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(y) + (a * log(t))) - t
end function
public static double code(double x, double y, double z, double t, double a) {
return (Math.log(y) + (a * Math.log(t))) - t;
}
def code(x, y, z, t, a): return (math.log(y) + (a * math.log(t))) - t
function code(x, y, z, t, a) return Float64(Float64(log(y) + Float64(a * log(t))) - t) end
function tmp = code(x, y, z, t, a) tmp = (log(y) + (a * log(t))) - t; end
code[x_, y_, z_, t_, a_] := N[(N[(N[Log[y], $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]
\begin{array}{l}
\\
\left(\log y + a \cdot \log t\right) - t
\end{array}
Initial program 99.6%
associate--l+99.6%
associate-+l+99.6%
+-commutative99.6%
associate-+r-99.6%
fma-def99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in a around inf 79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in x around 0 61.0%
Final simplification61.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= (- a 0.5) -5e+56) (not (<= (- a 0.5) 1e+52))) (* a (log t)) (- (log (+ x y)) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a - 0.5) <= -5e+56) || !((a - 0.5) <= 1e+52)) {
tmp = a * log(t);
} else {
tmp = log((x + y)) - 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) <= (-5d+56)) .or. (.not. ((a - 0.5d0) <= 1d+52))) then
tmp = a * log(t)
else
tmp = log((x + y)) - 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) <= -5e+56) || !((a - 0.5) <= 1e+52)) {
tmp = a * Math.log(t);
} else {
tmp = Math.log((x + y)) - t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if ((a - 0.5) <= -5e+56) or not ((a - 0.5) <= 1e+52): tmp = a * math.log(t) else: tmp = math.log((x + y)) - t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((Float64(a - 0.5) <= -5e+56) || !(Float64(a - 0.5) <= 1e+52)) tmp = Float64(a * log(t)); else tmp = Float64(log(Float64(x + y)) - t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (((a - 0.5) <= -5e+56) || ~(((a - 0.5) <= 1e+52))) tmp = a * log(t); else tmp = log((x + y)) - t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[N[(a - 0.5), $MachinePrecision], -5e+56], N[Not[LessEqual[N[(a - 0.5), $MachinePrecision], 1e+52]], $MachinePrecision]], N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision], N[(N[Log[N[(x + y), $MachinePrecision]], $MachinePrecision] - t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a - 0.5 \leq -5 \cdot 10^{+56} \lor \neg \left(a - 0.5 \leq 10^{+52}\right):\\
\;\;\;\;a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;\log \left(x + y\right) - t\\
\end{array}
\end{array}
if (-.f64 a 1/2) < -5.00000000000000024e56 or 9.9999999999999999e51 < (-.f64 a 1/2) Initial program 99.6%
cancel-sign-sub99.6%
cancel-sign-sub-inv99.6%
associate--l+99.6%
remove-double-neg99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
add-cube-cbrt99.3%
pow399.3%
Applied egg-rr99.3%
Taylor expanded in t around inf 80.7%
+-commutative80.7%
Simplified80.7%
Taylor expanded in a around inf 80.7%
if -5.00000000000000024e56 < (-.f64 a 1/2) < 9.9999999999999999e51Initial program 99.5%
associate--l+99.5%
associate-+l+99.5%
+-commutative99.5%
associate-+r-99.5%
fma-def99.5%
sub-neg99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in a around inf 61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in a around 0 56.8%
+-commutative56.8%
Simplified56.8%
Final simplification68.4%
(FPCore (x y z t a) :precision binary64 (if (<= t 2.9e+30) (* a (log t)) (- t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 2.9e+30) {
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 (t <= 2.9d+30) 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 (t <= 2.9e+30) {
tmp = a * Math.log(t);
} else {
tmp = -t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= 2.9e+30: tmp = a * math.log(t) else: tmp = -t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= 2.9e+30) 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 (t <= 2.9e+30) tmp = a * log(t); else tmp = -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 2.9e+30], N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision], (-t)]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.9 \cdot 10^{+30}:\\
\;\;\;\;a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;-t\\
\end{array}
\end{array}
if t < 2.8999999999999998e30Initial program 99.3%
cancel-sign-sub99.3%
cancel-sign-sub-inv99.3%
associate--l+99.3%
remove-double-neg99.3%
sub-neg99.3%
metadata-eval99.3%
Simplified99.3%
add-cube-cbrt98.8%
pow398.8%
Applied egg-rr98.8%
Taylor expanded in t around inf 61.8%
+-commutative61.8%
Simplified61.8%
Taylor expanded in a around inf 56.3%
if 2.8999999999999998e30 < t Initial program 99.9%
associate--l+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r-99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in t around inf 74.3%
neg-mul-174.3%
Simplified74.3%
Final simplification64.8%
(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%
associate-+l+99.6%
+-commutative99.6%
associate-+r-99.6%
fma-def99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in t around inf 37.0%
neg-mul-137.0%
Simplified37.0%
Final simplification37.0%
(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 2023297
(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))))