
(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 13 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.7%
associate--l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-define99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification99.7%
(FPCore (x y z t a) :precision binary64 (if (<= t 2.15e+20) (+ (log y) (+ (log z) (* (log t) (- a 0.5)))) (if (<= t 1.4e+188) (- (log (* z y)) (fma (- 0.5 a) (log t) t)) (- t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 2.15e+20) {
tmp = log(y) + (log(z) + (log(t) * (a - 0.5)));
} else if (t <= 1.4e+188) {
tmp = log((z * y)) - fma((0.5 - a), log(t), t);
} else {
tmp = -t;
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (t <= 2.15e+20) tmp = Float64(log(y) + Float64(log(z) + Float64(log(t) * Float64(a - 0.5)))); elseif (t <= 1.4e+188) tmp = Float64(log(Float64(z * y)) - fma(Float64(0.5 - a), log(t), t)); else tmp = Float64(-t); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 2.15e+20], N[(N[Log[y], $MachinePrecision] + N[(N[Log[z], $MachinePrecision] + N[(N[Log[t], $MachinePrecision] * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.4e+188], N[(N[Log[N[(z * y), $MachinePrecision]], $MachinePrecision] - N[(N[(0.5 - a), $MachinePrecision] * N[Log[t], $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision], (-t)]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.15 \cdot 10^{+20}:\\
\;\;\;\;\log y + \left(\log z + \log t \cdot \left(a - 0.5\right)\right)\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{+188}:\\
\;\;\;\;\log \left(z \cdot y\right) - \mathsf{fma}\left(0.5 - a, \log t, t\right)\\
\mathbf{else}:\\
\;\;\;\;-t\\
\end{array}
\end{array}
if t < 2.15e20Initial program 99.4%
associate--l+99.4%
+-commutative99.4%
associate-+l+99.4%
+-commutative99.4%
fma-define99.4%
sub-neg99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in x around 0 64.5%
Taylor expanded in t around 0 62.7%
if 2.15e20 < t < 1.3999999999999999e188Initial program 99.9%
associate-+l-99.9%
associate--l+99.9%
sub-neg99.9%
+-commutative99.9%
*-commutative99.9%
distribute-rgt-neg-in99.9%
fma-undefine99.9%
sub-neg99.9%
+-commutative99.9%
distribute-neg-in99.9%
metadata-eval99.9%
metadata-eval99.9%
unsub-neg99.9%
Simplified99.9%
Taylor expanded in x around 0 81.0%
sub-neg81.0%
sum-log64.0%
+-commutative64.0%
fma-define64.1%
Applied egg-rr64.1%
sub-neg64.1%
fma-undefine64.0%
*-commutative64.0%
*-commutative64.0%
fma-define64.1%
Simplified64.1%
if 1.3999999999999999e188 < t Initial program 100.0%
associate--l+100.0%
+-commutative100.0%
associate-+l+100.0%
+-commutative100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around 0 72.5%
Taylor expanded in t around inf 93.3%
mul-1-neg93.3%
Simplified93.3%
Final simplification69.2%
(FPCore (x y z t a) :precision binary64 (if (<= t 1.9e+20) (+ (log y) (+ (log z) (* (log t) (- a 0.5)))) (if (<= t 6.2e+186) (- (log (* z y)) (- t (* (+ a -0.5) (log t)))) (- t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 1.9e+20) {
tmp = log(y) + (log(z) + (log(t) * (a - 0.5)));
} else if (t <= 6.2e+186) {
tmp = log((z * y)) - (t - ((a + -0.5) * 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 <= 1.9d+20) then
tmp = log(y) + (log(z) + (log(t) * (a - 0.5d0)))
else if (t <= 6.2d+186) then
tmp = log((z * y)) - (t - ((a + (-0.5d0)) * 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 <= 1.9e+20) {
tmp = Math.log(y) + (Math.log(z) + (Math.log(t) * (a - 0.5)));
} else if (t <= 6.2e+186) {
tmp = Math.log((z * y)) - (t - ((a + -0.5) * Math.log(t)));
} else {
tmp = -t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= 1.9e+20: tmp = math.log(y) + (math.log(z) + (math.log(t) * (a - 0.5))) elif t <= 6.2e+186: tmp = math.log((z * y)) - (t - ((a + -0.5) * math.log(t))) else: tmp = -t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= 1.9e+20) tmp = Float64(log(y) + Float64(log(z) + Float64(log(t) * Float64(a - 0.5)))); elseif (t <= 6.2e+186) tmp = Float64(log(Float64(z * y)) - Float64(t - Float64(Float64(a + -0.5) * log(t)))); else tmp = Float64(-t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= 1.9e+20) tmp = log(y) + (log(z) + (log(t) * (a - 0.5))); elseif (t <= 6.2e+186) tmp = log((z * y)) - (t - ((a + -0.5) * log(t))); else tmp = -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 1.9e+20], N[(N[Log[y], $MachinePrecision] + N[(N[Log[z], $MachinePrecision] + N[(N[Log[t], $MachinePrecision] * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.2e+186], N[(N[Log[N[(z * y), $MachinePrecision]], $MachinePrecision] - N[(t - N[(N[(a + -0.5), $MachinePrecision] * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], (-t)]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.9 \cdot 10^{+20}:\\
\;\;\;\;\log y + \left(\log z + \log t \cdot \left(a - 0.5\right)\right)\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{+186}:\\
\;\;\;\;\log \left(z \cdot y\right) - \left(t - \left(a + -0.5\right) \cdot \log t\right)\\
\mathbf{else}:\\
\;\;\;\;-t\\
\end{array}
\end{array}
if t < 1.9e20Initial program 99.4%
associate--l+99.4%
+-commutative99.4%
associate-+l+99.4%
+-commutative99.4%
fma-define99.4%
sub-neg99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in x around 0 64.5%
Taylor expanded in t around 0 62.7%
if 1.9e20 < t < 6.2000000000000002e186Initial program 99.9%
add-sqr-sqrt20.2%
pow220.2%
+-commutative20.2%
sub-neg20.2%
metadata-eval20.2%
*-commutative20.2%
fma-define20.1%
+-commutative20.1%
sum-log15.1%
Applied egg-rr15.1%
Taylor expanded in x around 0 64.0%
associate--l+64.0%
sub-neg64.0%
metadata-eval64.0%
+-commutative64.0%
distribute-rgt-out64.0%
+-commutative64.0%
distribute-rgt-in64.0%
Simplified64.0%
if 6.2000000000000002e186 < t Initial program 100.0%
associate--l+100.0%
+-commutative100.0%
associate-+l+100.0%
+-commutative100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around 0 72.5%
Taylor expanded in t around inf 93.3%
mul-1-neg93.3%
Simplified93.3%
Final simplification69.2%
(FPCore (x y z t a) :precision binary64 (if (<= t 0.37) (+ (log y) (+ (log z) (* (log t) (- a 0.5)))) (+ (+ (log z) (log y)) (- (* a (log t)) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 0.37) {
tmp = log(y) + (log(z) + (log(t) * (a - 0.5)));
} else {
tmp = (log(z) + 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 <= 0.37d0) then
tmp = log(y) + (log(z) + (log(t) * (a - 0.5d0)))
else
tmp = (log(z) + 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 <= 0.37) {
tmp = Math.log(y) + (Math.log(z) + (Math.log(t) * (a - 0.5)));
} else {
tmp = (Math.log(z) + Math.log(y)) + ((a * Math.log(t)) - t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= 0.37: tmp = math.log(y) + (math.log(z) + (math.log(t) * (a - 0.5))) else: tmp = (math.log(z) + math.log(y)) + ((a * math.log(t)) - t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= 0.37) tmp = Float64(log(y) + Float64(log(z) + Float64(log(t) * Float64(a - 0.5)))); else tmp = Float64(Float64(log(z) + log(y)) + Float64(Float64(a * log(t)) - t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= 0.37) tmp = log(y) + (log(z) + (log(t) * (a - 0.5))); else tmp = (log(z) + log(y)) + ((a * log(t)) - t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 0.37], N[(N[Log[y], $MachinePrecision] + N[(N[Log[z], $MachinePrecision] + N[(N[Log[t], $MachinePrecision] * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Log[z], $MachinePrecision] + N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 0.37:\\
\;\;\;\;\log y + \left(\log z + \log t \cdot \left(a - 0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\log z + \log y\right) + \left(a \cdot \log t - t\right)\\
\end{array}
\end{array}
if t < 0.37Initial program 99.4%
associate--l+99.4%
+-commutative99.4%
associate-+l+99.4%
+-commutative99.4%
fma-define99.4%
sub-neg99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in x around 0 63.4%
Taylor expanded in t around 0 63.4%
if 0.37 < t Initial program 99.9%
associate-+l-99.9%
associate--l+99.9%
sub-neg99.9%
+-commutative99.9%
*-commutative99.9%
distribute-rgt-neg-in99.9%
fma-undefine99.9%
sub-neg99.9%
+-commutative99.9%
distribute-neg-in99.9%
metadata-eval99.9%
metadata-eval99.9%
unsub-neg99.9%
Simplified99.9%
Taylor expanded in x around 0 77.5%
Taylor expanded in a around inf 76.7%
*-commutative76.7%
neg-mul-176.7%
distribute-lft-neg-in76.7%
Simplified76.7%
Final simplification70.5%
(FPCore (x y z t a) :precision binary64 (+ (- (log z) t) (+ (log y) (* (log t) (- a 0.5)))))
double code(double x, double y, double z, double t, double a) {
return (log(z) - t) + (log(y) + (log(t) * (a - 0.5)));
}
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(y) + (log(t) * (a - 0.5d0)))
end function
public static double code(double x, double y, double z, double t, double a) {
return (Math.log(z) - t) + (Math.log(y) + (Math.log(t) * (a - 0.5)));
}
def code(x, y, z, t, a): return (math.log(z) - t) + (math.log(y) + (math.log(t) * (a - 0.5)))
function code(x, y, z, t, a) return Float64(Float64(log(z) - t) + Float64(log(y) + Float64(log(t) * Float64(a - 0.5)))) end
function tmp = code(x, y, z, t, a) tmp = (log(z) - t) + (log(y) + (log(t) * (a - 0.5))); end
code[x_, y_, z_, t_, a_] := N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] + N[(N[Log[y], $MachinePrecision] + N[(N[Log[t], $MachinePrecision] * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\log z - t\right) + \left(\log y + \log t \cdot \left(a - 0.5\right)\right)
\end{array}
Initial program 99.7%
associate--l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-define99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 70.9%
Final simplification70.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.1e+180) (not (<= a 3.1e+115))) (* a (log t)) (+ (log (* z (+ x y))) (- (* (+ a -0.5) (log t)) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.1e+180) || !(a <= 3.1e+115)) {
tmp = a * log(t);
} else {
tmp = log((z * (x + y))) + (((a + -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 <= (-3.1d+180)) .or. (.not. (a <= 3.1d+115))) then
tmp = a * log(t)
else
tmp = log((z * (x + y))) + (((a + (-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 <= -3.1e+180) || !(a <= 3.1e+115)) {
tmp = a * Math.log(t);
} else {
tmp = Math.log((z * (x + y))) + (((a + -0.5) * Math.log(t)) - t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.1e+180) or not (a <= 3.1e+115): tmp = a * math.log(t) else: tmp = math.log((z * (x + y))) + (((a + -0.5) * math.log(t)) - t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.1e+180) || !(a <= 3.1e+115)) tmp = Float64(a * log(t)); else tmp = Float64(log(Float64(z * Float64(x + y))) + Float64(Float64(Float64(a + -0.5) * log(t)) - t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -3.1e+180) || ~((a <= 3.1e+115))) tmp = a * log(t); else tmp = log((z * (x + y))) + (((a + -0.5) * log(t)) - t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3.1e+180], N[Not[LessEqual[a, 3.1e+115]], $MachinePrecision]], N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision], N[(N[Log[N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[(N[(N[(a + -0.5), $MachinePrecision] * N[Log[t], $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.1 \cdot 10^{+180} \lor \neg \left(a \leq 3.1 \cdot 10^{+115}\right):\\
\;\;\;\;a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;\log \left(z \cdot \left(x + y\right)\right) + \left(\left(a + -0.5\right) \cdot \log t - t\right)\\
\end{array}
\end{array}
if a < -3.09999999999999998e180 or 3.10000000000000005e115 < a Initial program 99.7%
associate--l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-define99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 73.7%
Taylor expanded in a around inf 89.1%
*-commutative89.1%
Simplified89.1%
if -3.09999999999999998e180 < a < 3.10000000000000005e115Initial program 99.6%
associate-+l-99.6%
+-commutative99.6%
sum-log78.8%
sub-neg78.8%
metadata-eval78.8%
*-commutative78.8%
Applied egg-rr78.8%
Final simplification81.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (log (+ x y)) (* a (log t)))))
(if (<= t 2.3e-106)
t_1
(if (<= t 1.92e-31)
(log (* (* z y) (pow t (+ a -0.5))))
(if (<= t 1.75e+46) t_1 (- t))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = log((x + y)) + (a * log(t));
double tmp;
if (t <= 2.3e-106) {
tmp = t_1;
} else if (t <= 1.92e-31) {
tmp = log(((z * y) * pow(t, (a + -0.5))));
} else if (t <= 1.75e+46) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = log((x + y)) + (a * log(t))
if (t <= 2.3d-106) then
tmp = t_1
else if (t <= 1.92d-31) then
tmp = log(((z * y) * (t ** (a + (-0.5d0)))))
else if (t <= 1.75d+46) then
tmp = t_1
else
tmp = -t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = Math.log((x + y)) + (a * Math.log(t));
double tmp;
if (t <= 2.3e-106) {
tmp = t_1;
} else if (t <= 1.92e-31) {
tmp = Math.log(((z * y) * Math.pow(t, (a + -0.5))));
} else if (t <= 1.75e+46) {
tmp = t_1;
} else {
tmp = -t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = math.log((x + y)) + (a * math.log(t)) tmp = 0 if t <= 2.3e-106: tmp = t_1 elif t <= 1.92e-31: tmp = math.log(((z * y) * math.pow(t, (a + -0.5)))) elif t <= 1.75e+46: tmp = t_1 else: tmp = -t return tmp
function code(x, y, z, t, a) t_1 = Float64(log(Float64(x + y)) + Float64(a * log(t))) tmp = 0.0 if (t <= 2.3e-106) tmp = t_1; elseif (t <= 1.92e-31) tmp = log(Float64(Float64(z * y) * (t ^ Float64(a + -0.5)))); elseif (t <= 1.75e+46) tmp = t_1; else tmp = Float64(-t); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = log((x + y)) + (a * log(t)); tmp = 0.0; if (t <= 2.3e-106) tmp = t_1; elseif (t <= 1.92e-31) tmp = log(((z * y) * (t ^ (a + -0.5)))); elseif (t <= 1.75e+46) tmp = t_1; else tmp = -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[Log[N[(x + y), $MachinePrecision]], $MachinePrecision] + N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 2.3e-106], t$95$1, If[LessEqual[t, 1.92e-31], N[Log[N[(N[(z * y), $MachinePrecision] * N[Power[t, N[(a + -0.5), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t, 1.75e+46], t$95$1, (-t)]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log \left(x + y\right) + a \cdot \log t\\
\mathbf{if}\;t \leq 2.3 \cdot 10^{-106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.92 \cdot 10^{-31}:\\
\;\;\;\;\log \left(\left(z \cdot y\right) \cdot {t}^{\left(a + -0.5\right)}\right)\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{+46}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;-t\\
\end{array}
\end{array}
if t < 2.3000000000000001e-106 or 1.9200000000000001e-31 < t < 1.74999999999999992e46Initial program 99.5%
associate-+l-99.5%
associate--l+99.5%
sub-neg99.5%
+-commutative99.5%
*-commutative99.5%
distribute-rgt-neg-in99.5%
fma-undefine99.5%
sub-neg99.5%
+-commutative99.5%
distribute-neg-in99.5%
metadata-eval99.5%
metadata-eval99.5%
unsub-neg99.5%
Simplified99.5%
Taylor expanded in a around inf 62.2%
*-commutative62.2%
Simplified62.2%
if 2.3000000000000001e-106 < t < 1.9200000000000001e-31Initial program 99.1%
associate--l+99.1%
+-commutative99.1%
associate-+l+99.4%
+-commutative99.4%
fma-define99.4%
sub-neg99.4%
metadata-eval99.4%
Simplified99.4%
+-commutative99.4%
add-log-exp65.1%
exp-sum56.3%
fma-undefine56.3%
metadata-eval56.3%
sub-neg56.3%
exp-sum56.2%
add-exp-log56.5%
sub-neg56.5%
metadata-eval56.5%
*-commutative56.5%
exp-to-pow56.4%
exp-diff56.4%
add-exp-log56.8%
Applied egg-rr56.8%
associate-*l*65.4%
*-commutative65.4%
associate-*l*65.6%
+-commutative65.6%
Simplified65.6%
Taylor expanded in t around 0 65.5%
exp-to-pow65.6%
sub-neg65.6%
metadata-eval65.6%
Simplified65.6%
Taylor expanded in x around 0 16.1%
associate-*r*16.3%
exp-to-pow16.3%
sub-neg16.3%
metadata-eval16.3%
Simplified16.3%
if 1.74999999999999992e46 < t Initial program 99.9%
associate--l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around 0 77.3%
Taylor expanded in t around inf 81.8%
mul-1-neg81.8%
Simplified81.8%
Final simplification66.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -6.5e+182) (not (<= a 1.55e+115))) (* a (log t)) (- (log (* z y)) (- t (* (+ a -0.5) (log t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -6.5e+182) || !(a <= 1.55e+115)) {
tmp = a * log(t);
} else {
tmp = log((z * y)) - (t - ((a + -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 <= (-6.5d+182)) .or. (.not. (a <= 1.55d+115))) then
tmp = a * log(t)
else
tmp = log((z * y)) - (t - ((a + (-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 <= -6.5e+182) || !(a <= 1.55e+115)) {
tmp = a * Math.log(t);
} else {
tmp = Math.log((z * y)) - (t - ((a + -0.5) * Math.log(t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -6.5e+182) or not (a <= 1.55e+115): tmp = a * math.log(t) else: tmp = math.log((z * y)) - (t - ((a + -0.5) * math.log(t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -6.5e+182) || !(a <= 1.55e+115)) tmp = Float64(a * log(t)); else tmp = Float64(log(Float64(z * y)) - Float64(t - Float64(Float64(a + -0.5) * log(t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -6.5e+182) || ~((a <= 1.55e+115))) tmp = a * log(t); else tmp = log((z * y)) - (t - ((a + -0.5) * log(t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -6.5e+182], N[Not[LessEqual[a, 1.55e+115]], $MachinePrecision]], N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision], N[(N[Log[N[(z * y), $MachinePrecision]], $MachinePrecision] - N[(t - N[(N[(a + -0.5), $MachinePrecision] * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.5 \cdot 10^{+182} \lor \neg \left(a \leq 1.55 \cdot 10^{+115}\right):\\
\;\;\;\;a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;\log \left(z \cdot y\right) - \left(t - \left(a + -0.5\right) \cdot \log t\right)\\
\end{array}
\end{array}
if a < -6.4999999999999998e182 or 1.55000000000000002e115 < a Initial program 99.7%
associate--l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-define99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 73.7%
Taylor expanded in a around inf 89.1%
*-commutative89.1%
Simplified89.1%
if -6.4999999999999998e182 < a < 1.55000000000000002e115Initial program 99.6%
add-sqr-sqrt33.3%
pow233.3%
+-commutative33.3%
sub-neg33.3%
metadata-eval33.3%
*-commutative33.3%
fma-define33.4%
+-commutative33.4%
sum-log26.8%
Applied egg-rr26.8%
Taylor expanded in x around 0 54.7%
associate--l+54.7%
sub-neg54.7%
metadata-eval54.7%
+-commutative54.7%
distribute-rgt-out54.7%
+-commutative54.7%
distribute-rgt-in54.7%
Simplified54.7%
Final simplification64.0%
(FPCore (x y z t a) :precision binary64 (if (<= t 10500.0) (+ (log (* z y)) (* (log t) (- a 0.5))) (if (<= t 1.85e+47) (+ (log (+ x y)) (* a (log t))) (- t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 10500.0) {
tmp = log((z * y)) + (log(t) * (a - 0.5));
} else if (t <= 1.85e+47) {
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 <= 10500.0d0) then
tmp = log((z * y)) + (log(t) * (a - 0.5d0))
else if (t <= 1.85d+47) 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 <= 10500.0) {
tmp = Math.log((z * y)) + (Math.log(t) * (a - 0.5));
} else if (t <= 1.85e+47) {
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 <= 10500.0: tmp = math.log((z * y)) + (math.log(t) * (a - 0.5)) elif t <= 1.85e+47: 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 <= 10500.0) tmp = Float64(log(Float64(z * y)) + Float64(log(t) * Float64(a - 0.5))); elseif (t <= 1.85e+47) 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 <= 10500.0) tmp = log((z * y)) + (log(t) * (a - 0.5)); elseif (t <= 1.85e+47) tmp = log((x + y)) + (a * log(t)); else tmp = -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 10500.0], N[(N[Log[N[(z * y), $MachinePrecision]], $MachinePrecision] + N[(N[Log[t], $MachinePrecision] * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85e+47], 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 10500:\\
\;\;\;\;\log \left(z \cdot y\right) + \log t \cdot \left(a - 0.5\right)\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+47}:\\
\;\;\;\;\log \left(x + y\right) + a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;-t\\
\end{array}
\end{array}
if t < 10500Initial program 99.4%
associate-+l-99.4%
associate--l+99.4%
sub-neg99.4%
+-commutative99.4%
*-commutative99.4%
distribute-rgt-neg-in99.4%
fma-undefine99.4%
sub-neg99.4%
+-commutative99.4%
distribute-neg-in99.4%
metadata-eval99.4%
metadata-eval99.4%
unsub-neg99.4%
Simplified99.4%
Taylor expanded in x around 0 64.1%
sub-neg64.1%
sum-log45.0%
+-commutative45.0%
fma-define45.0%
Applied egg-rr45.0%
sub-neg45.0%
fma-undefine45.0%
*-commutative45.0%
*-commutative45.0%
fma-define45.0%
Simplified45.0%
Taylor expanded in t around 0 44.3%
if 10500 < t < 1.8500000000000002e47Initial program 99.8%
associate-+l-99.8%
associate--l+99.8%
sub-neg99.8%
+-commutative99.8%
*-commutative99.8%
distribute-rgt-neg-in99.8%
fma-undefine99.8%
sub-neg99.8%
+-commutative99.8%
distribute-neg-in99.8%
metadata-eval99.8%
metadata-eval99.8%
unsub-neg99.8%
Simplified99.8%
Taylor expanded in a around inf 62.1%
*-commutative62.1%
Simplified62.1%
if 1.8500000000000002e47 < t Initial program 99.9%
associate--l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around 0 77.3%
Taylor expanded in t around inf 81.8%
mul-1-neg81.8%
Simplified81.8%
Final simplification61.8%
(FPCore (x y z t a) :precision binary64 (if (<= t 1.82e+46) (+ (log (+ x y)) (* a (log t))) (- t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 1.82e+46) {
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 <= 1.82d+46) 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 <= 1.82e+46) {
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 <= 1.82e+46: 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 <= 1.82e+46) 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 <= 1.82e+46) tmp = log((x + y)) + (a * log(t)); else tmp = -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 1.82e+46], 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 1.82 \cdot 10^{+46}:\\
\;\;\;\;\log \left(x + y\right) + a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;-t\\
\end{array}
\end{array}
if t < 1.81999999999999989e46Initial program 99.5%
associate-+l-99.5%
associate--l+99.5%
sub-neg99.5%
+-commutative99.5%
*-commutative99.5%
distribute-rgt-neg-in99.5%
fma-undefine99.5%
sub-neg99.5%
+-commutative99.5%
distribute-neg-in99.5%
metadata-eval99.5%
metadata-eval99.5%
unsub-neg99.5%
Simplified99.5%
Taylor expanded in a around inf 59.0%
*-commutative59.0%
Simplified59.0%
if 1.81999999999999989e46 < t Initial program 99.9%
associate--l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around 0 77.3%
Taylor expanded in t around inf 81.8%
mul-1-neg81.8%
Simplified81.8%
Final simplification68.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.35e+70) (not (<= a 8e+72))) (* a (log t)) (- (log (+ x y)) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.35e+70) || !(a <= 8e+72)) {
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 <= (-2.35d+70)) .or. (.not. (a <= 8d+72))) 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 <= -2.35e+70) || !(a <= 8e+72)) {
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 <= -2.35e+70) or not (a <= 8e+72): 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 ((a <= -2.35e+70) || !(a <= 8e+72)) 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 <= -2.35e+70) || ~((a <= 8e+72))) tmp = a * log(t); else tmp = log((x + y)) - t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.35e+70], N[Not[LessEqual[a, 8e+72]], $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 \leq -2.35 \cdot 10^{+70} \lor \neg \left(a \leq 8 \cdot 10^{+72}\right):\\
\;\;\;\;a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;\log \left(x + y\right) - t\\
\end{array}
\end{array}
if a < -2.3499999999999999e70 or 7.99999999999999955e72 < a Initial program 99.7%
associate--l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-define99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 74.5%
Taylor expanded in a around inf 82.3%
*-commutative82.3%
Simplified82.3%
if -2.3499999999999999e70 < a < 7.99999999999999955e72Initial program 99.6%
associate-+l-99.7%
associate--l+99.6%
sub-neg99.6%
+-commutative99.6%
*-commutative99.6%
distribute-rgt-neg-in99.6%
fma-undefine99.6%
sub-neg99.6%
+-commutative99.6%
distribute-neg-in99.6%
metadata-eval99.6%
metadata-eval99.6%
unsub-neg99.6%
Simplified99.6%
Taylor expanded in t around inf 58.6%
neg-mul-158.6%
Simplified58.6%
Final simplification68.1%
(FPCore (x y z t a) :precision binary64 (if (<= t 1.45e+46) (* a (log t)) (- t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 1.45e+46) {
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 <= 1.45d+46) 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 <= 1.45e+46) {
tmp = a * Math.log(t);
} else {
tmp = -t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= 1.45e+46: tmp = a * math.log(t) else: tmp = -t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= 1.45e+46) 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 <= 1.45e+46) tmp = a * log(t); else tmp = -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 1.45e+46], N[(a * N[Log[t], $MachinePrecision]), $MachinePrecision], (-t)]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.45 \cdot 10^{+46}:\\
\;\;\;\;a \cdot \log t\\
\mathbf{else}:\\
\;\;\;\;-t\\
\end{array}
\end{array}
if t < 1.4500000000000001e46Initial program 99.5%
associate--l+99.5%
+-commutative99.5%
associate-+l+99.5%
+-commutative99.5%
fma-define99.5%
sub-neg99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in x around 0 66.3%
Taylor expanded in a around inf 54.5%
*-commutative54.5%
Simplified54.5%
if 1.4500000000000001e46 < t Initial program 99.9%
associate--l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around 0 77.3%
Taylor expanded in t around inf 81.8%
mul-1-neg81.8%
Simplified81.8%
Final simplification65.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.7%
associate--l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-define99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 70.9%
Taylor expanded in t around inf 39.4%
mul-1-neg39.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 2024079
(FPCore (x y z t a)
:name "Numeric.SpecFunctions:logGammaL from math-functions-0.1.5.2"
:precision binary64
:alt
(+ (log (+ x y)) (+ (- (log z) t) (* (- a 0.5) (log t))))
(+ (- (+ (log (+ x y)) (log z)) t) (* (- a 0.5) (log t))))