
(FPCore (x y z t) :precision binary64 (+ (- (- (* x (log y)) y) z) (log t)))
double code(double x, double y, double z, double t) {
return (((x * log(y)) - y) - z) + log(t);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (((x * log(y)) - y) - z) + log(t)
end function
public static double code(double x, double y, double z, double t) {
return (((x * Math.log(y)) - y) - z) + Math.log(t);
}
def code(x, y, z, t): return (((x * math.log(y)) - y) - z) + math.log(t)
function code(x, y, z, t) return Float64(Float64(Float64(Float64(x * log(y)) - y) - z) + log(t)) end
function tmp = code(x, y, z, t) tmp = (((x * log(y)) - y) - z) + log(t); end
code[x_, y_, z_, t_] := N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision] + N[Log[t], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot \log y - y\right) - z\right) + \log t
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ (- (- (* x (log y)) y) z) (log t)))
double code(double x, double y, double z, double t) {
return (((x * log(y)) - y) - z) + log(t);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (((x * log(y)) - y) - z) + log(t)
end function
public static double code(double x, double y, double z, double t) {
return (((x * Math.log(y)) - y) - z) + Math.log(t);
}
def code(x, y, z, t): return (((x * math.log(y)) - y) - z) + math.log(t)
function code(x, y, z, t) return Float64(Float64(Float64(Float64(x * log(y)) - y) - z) + log(t)) end
function tmp = code(x, y, z, t) tmp = (((x * log(y)) - y) - z) + log(t); end
code[x_, y_, z_, t_] := N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision] + N[Log[t], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot \log y - y\right) - z\right) + \log t
\end{array}
(FPCore (x y z t) :precision binary64 (+ (- (- (* x (log y)) y) z) (log t)))
double code(double x, double y, double z, double t) {
return (((x * log(y)) - y) - z) + log(t);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (((x * log(y)) - y) - z) + log(t)
end function
public static double code(double x, double y, double z, double t) {
return (((x * Math.log(y)) - y) - z) + Math.log(t);
}
def code(x, y, z, t): return (((x * math.log(y)) - y) - z) + math.log(t)
function code(x, y, z, t) return Float64(Float64(Float64(Float64(x * log(y)) - y) - z) + log(t)) end
function tmp = code(x, y, z, t) tmp = (((x * log(y)) - y) - z) + log(t); end
code[x_, y_, z_, t_] := N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision] + N[Log[t], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot \log y - y\right) - z\right) + \log t
\end{array}
Initial program 99.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (log y)))
(t_2 (- (- t_1 y) z))
(t_3 (/ 1.0 (/ 1.0 (- t_1 (+ y z))))))
(if (<= t_2 -500000.0)
t_3
(if (<= t_2 10000000.0) (fma x (log y) (log t)) t_3))))
double code(double x, double y, double z, double t) {
double t_1 = x * log(y);
double t_2 = (t_1 - y) - z;
double t_3 = 1.0 / (1.0 / (t_1 - (y + z)));
double tmp;
if (t_2 <= -500000.0) {
tmp = t_3;
} else if (t_2 <= 10000000.0) {
tmp = fma(x, log(y), log(t));
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(x * log(y)) t_2 = Float64(Float64(t_1 - y) - z) t_3 = Float64(1.0 / Float64(1.0 / Float64(t_1 - Float64(y + z)))) tmp = 0.0 if (t_2 <= -500000.0) tmp = t_3; elseif (t_2 <= 10000000.0) tmp = fma(x, log(y), log(t)); else tmp = t_3; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t$95$1 - y), $MachinePrecision] - z), $MachinePrecision]}, Block[{t$95$3 = N[(1.0 / N[(1.0 / N[(t$95$1 - N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -500000.0], t$95$3, If[LessEqual[t$95$2, 10000000.0], N[(x * N[Log[y], $MachinePrecision] + N[Log[t], $MachinePrecision]), $MachinePrecision], t$95$3]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
t_2 := \left(t\_1 - y\right) - z\\
t_3 := \frac{1}{\frac{1}{t\_1 - \left(y + z\right)}}\\
\mathbf{if}\;t\_2 \leq -500000:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_2 \leq 10000000:\\
\;\;\;\;\mathsf{fma}\left(x, \log y, \log t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if (-.f64 (-.f64 (*.f64 x (log.f64 y)) y) z) < -5e5 or 1e7 < (-.f64 (-.f64 (*.f64 x (log.f64 y)) y) z) Initial program 99.9%
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-log.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
Applied egg-rr99.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6499.1
Simplified99.1%
if -5e5 < (-.f64 (-.f64 (*.f64 x (log.f64 y)) y) z) < 1e7Initial program 100.0%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
lower-fma.f64N/A
lower-log.f64N/A
unsub-negN/A
lower--.f64N/A
lower-log.f6499.0
Simplified99.0%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f64N/A
lower-log.f64N/A
lower-log.f6495.4
Simplified95.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (* x (log y)) y)))
(if (<= t_1 -1e+179)
(fma x (log y) (- y))
(if (<= t_1 0.05) (- (- (log t) z) y) (fma x (log y) (- z))))))
double code(double x, double y, double z, double t) {
double t_1 = (x * log(y)) - y;
double tmp;
if (t_1 <= -1e+179) {
tmp = fma(x, log(y), -y);
} else if (t_1 <= 0.05) {
tmp = (log(t) - z) - y;
} else {
tmp = fma(x, log(y), -z);
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(Float64(x * log(y)) - y) tmp = 0.0 if (t_1 <= -1e+179) tmp = fma(x, log(y), Float64(-y)); elseif (t_1 <= 0.05) tmp = Float64(Float64(log(t) - z) - y); else tmp = fma(x, log(y), Float64(-z)); end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+179], N[(x * N[Log[y], $MachinePrecision] + (-y)), $MachinePrecision], If[LessEqual[t$95$1, 0.05], N[(N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision], N[(x * N[Log[y], $MachinePrecision] + (-z)), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y - y\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+179}:\\
\;\;\;\;\mathsf{fma}\left(x, \log y, -y\right)\\
\mathbf{elif}\;t\_1 \leq 0.05:\\
\;\;\;\;\left(\log t - z\right) - y\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x, \log y, -z\right)\\
\end{array}
\end{array}
if (-.f64 (*.f64 x (log.f64 y)) y) < -9.9999999999999998e178Initial program 99.9%
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-log.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
Applied egg-rr99.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6499.7
Simplified99.7%
Taylor expanded in z around 0
sub-negN/A
lower-fma.f64N/A
lower-log.f64N/A
lower-neg.f6496.2
Simplified96.2%
if -9.9999999999999998e178 < (-.f64 (*.f64 x (log.f64 y)) y) < 0.050000000000000003Initial program 100.0%
Taylor expanded in x around 0
+-commutativeN/A
associate--r+N/A
unsub-negN/A
lower--.f64N/A
unsub-negN/A
lower--.f64N/A
lower-log.f6491.8
Simplified91.8%
if 0.050000000000000003 < (-.f64 (*.f64 x (log.f64 y)) y) Initial program 99.8%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
lower-fma.f64N/A
lower-log.f64N/A
unsub-negN/A
lower--.f64N/A
lower-log.f6499.8
Simplified99.8%
Taylor expanded in z around inf
mul-1-negN/A
lower-neg.f6498.6
Simplified98.6%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (- (* x (log y)) y)) (t_2 (fma x (log y) (- y)))) (if (<= t_1 -1e+179) t_2 (if (<= t_1 5e+58) (- (- (log t) z) y) t_2))))
double code(double x, double y, double z, double t) {
double t_1 = (x * log(y)) - y;
double t_2 = fma(x, log(y), -y);
double tmp;
if (t_1 <= -1e+179) {
tmp = t_2;
} else if (t_1 <= 5e+58) {
tmp = (log(t) - z) - y;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(Float64(x * log(y)) - y) t_2 = fma(x, log(y), Float64(-y)) tmp = 0.0 if (t_1 <= -1e+179) tmp = t_2; elseif (t_1 <= 5e+58) tmp = Float64(Float64(log(t) - z) - y); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[Log[y], $MachinePrecision] + (-y)), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+179], t$95$2, If[LessEqual[t$95$1, 5e+58], N[(N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y - y\\
t_2 := \mathsf{fma}\left(x, \log y, -y\right)\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+179}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+58}:\\
\;\;\;\;\left(\log t - z\right) - y\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (-.f64 (*.f64 x (log.f64 y)) y) < -9.9999999999999998e178 or 4.99999999999999986e58 < (-.f64 (*.f64 x (log.f64 y)) y) Initial program 99.9%
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-log.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
Applied egg-rr99.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6499.6
Simplified99.6%
Taylor expanded in z around 0
sub-negN/A
lower-fma.f64N/A
lower-log.f64N/A
lower-neg.f6486.9
Simplified86.9%
if -9.9999999999999998e178 < (-.f64 (*.f64 x (log.f64 y)) y) < 4.99999999999999986e58Initial program 100.0%
Taylor expanded in x around 0
+-commutativeN/A
associate--r+N/A
unsub-negN/A
lower--.f64N/A
unsub-negN/A
lower--.f64N/A
lower-log.f6490.8
Simplified90.8%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (- (- (* x (log y)) y) z)) (t_2 (- (- y) z))) (if (<= t_1 -500000.0) t_2 (if (<= t_1 0.05) (log t) t_2))))
double code(double x, double y, double z, double t) {
double t_1 = ((x * log(y)) - y) - z;
double t_2 = -y - z;
double tmp;
if (t_1 <= -500000.0) {
tmp = t_2;
} else if (t_1 <= 0.05) {
tmp = log(t);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * log(y)) - y) - z
t_2 = -y - z
if (t_1 <= (-500000.0d0)) then
tmp = t_2
else if (t_1 <= 0.05d0) then
tmp = log(t)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = ((x * Math.log(y)) - y) - z;
double t_2 = -y - z;
double tmp;
if (t_1 <= -500000.0) {
tmp = t_2;
} else if (t_1 <= 0.05) {
tmp = Math.log(t);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t): t_1 = ((x * math.log(y)) - y) - z t_2 = -y - z tmp = 0 if t_1 <= -500000.0: tmp = t_2 elif t_1 <= 0.05: tmp = math.log(t) else: tmp = t_2 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(Float64(x * log(y)) - y) - z) t_2 = Float64(Float64(-y) - z) tmp = 0.0 if (t_1 <= -500000.0) tmp = t_2; elseif (t_1 <= 0.05) tmp = log(t); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = ((x * log(y)) - y) - z; t_2 = -y - z; tmp = 0.0; if (t_1 <= -500000.0) tmp = t_2; elseif (t_1 <= 0.05) tmp = log(t); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision]}, Block[{t$95$2 = N[((-y) - z), $MachinePrecision]}, If[LessEqual[t$95$1, -500000.0], t$95$2, If[LessEqual[t$95$1, 0.05], N[Log[t], $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \log y - y\right) - z\\
t_2 := \left(-y\right) - z\\
\mathbf{if}\;t\_1 \leq -500000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 0.05:\\
\;\;\;\;\log t\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (-.f64 (-.f64 (*.f64 x (log.f64 y)) y) z) < -5e5 or 0.050000000000000003 < (-.f64 (-.f64 (*.f64 x (log.f64 y)) y) z) Initial program 99.9%
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-log.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
Applied egg-rr99.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6498.6
Simplified98.6%
Taylor expanded in x around 0
mul-1-negN/A
distribute-neg-inN/A
unsub-negN/A
lower--.f64N/A
lower-neg.f6469.9
Simplified69.9%
if -5e5 < (-.f64 (-.f64 (*.f64 x (log.f64 y)) y) z) < 0.050000000000000003Initial program 99.9%
Taylor expanded in z around inf
mul-1-negN/A
lower-neg.f6490.9
Simplified90.9%
Taylor expanded in z around 0
lower-log.f6490.2
Simplified90.2%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* x (log y))) (t_2 (- t_1 y))) (if (<= t_2 -1e+17) (- (- y) z) (if (<= t_2 5e+58) (- (log t) z) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = x * log(y);
double t_2 = t_1 - y;
double tmp;
if (t_2 <= -1e+17) {
tmp = -y - z;
} else if (t_2 <= 5e+58) {
tmp = log(t) - z;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * log(y)
t_2 = t_1 - y
if (t_2 <= (-1d+17)) then
tmp = -y - z
else if (t_2 <= 5d+58) then
tmp = log(t) - z
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * Math.log(y);
double t_2 = t_1 - y;
double tmp;
if (t_2 <= -1e+17) {
tmp = -y - z;
} else if (t_2 <= 5e+58) {
tmp = Math.log(t) - z;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * math.log(y) t_2 = t_1 - y tmp = 0 if t_2 <= -1e+17: tmp = -y - z elif t_2 <= 5e+58: tmp = math.log(t) - z else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x * log(y)) t_2 = Float64(t_1 - y) tmp = 0.0 if (t_2 <= -1e+17) tmp = Float64(Float64(-y) - z); elseif (t_2 <= 5e+58) tmp = Float64(log(t) - z); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * log(y); t_2 = t_1 - y; tmp = 0.0; if (t_2 <= -1e+17) tmp = -y - z; elseif (t_2 <= 5e+58) tmp = log(t) - z; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - y), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+17], N[((-y) - z), $MachinePrecision], If[LessEqual[t$95$2, 5e+58], N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
t_2 := t\_1 - y\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{+17}:\\
\;\;\;\;\left(-y\right) - z\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+58}:\\
\;\;\;\;\log t - z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (-.f64 (*.f64 x (log.f64 y)) y) < -1e17Initial program 99.9%
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-log.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
Applied egg-rr99.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6499.6
Simplified99.6%
Taylor expanded in x around 0
mul-1-negN/A
distribute-neg-inN/A
unsub-negN/A
lower--.f64N/A
lower-neg.f6476.8
Simplified76.8%
if -1e17 < (-.f64 (*.f64 x (log.f64 y)) y) < 4.99999999999999986e58Initial program 100.0%
Taylor expanded in z around inf
mul-1-negN/A
lower-neg.f6493.2
Simplified93.2%
lift-neg.f64N/A
lift-log.f64N/A
+-commutativeN/A
lift-neg.f64N/A
sub-negN/A
lift--.f6493.2
Applied egg-rr93.2%
if 4.99999999999999986e58 < (-.f64 (*.f64 x (log.f64 y)) y) Initial program 99.8%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6471.2
Simplified71.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (log y))))
(if (<= (- t_1 y) -1e+17)
(/ 1.0 (/ 1.0 (- t_1 (+ y z))))
(+ (log t) (- t_1 z)))))
double code(double x, double y, double z, double t) {
double t_1 = x * log(y);
double tmp;
if ((t_1 - y) <= -1e+17) {
tmp = 1.0 / (1.0 / (t_1 - (y + z)));
} else {
tmp = log(t) + (t_1 - z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x * log(y)
if ((t_1 - y) <= (-1d+17)) then
tmp = 1.0d0 / (1.0d0 / (t_1 - (y + z)))
else
tmp = log(t) + (t_1 - z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * Math.log(y);
double tmp;
if ((t_1 - y) <= -1e+17) {
tmp = 1.0 / (1.0 / (t_1 - (y + z)));
} else {
tmp = Math.log(t) + (t_1 - z);
}
return tmp;
}
def code(x, y, z, t): t_1 = x * math.log(y) tmp = 0 if (t_1 - y) <= -1e+17: tmp = 1.0 / (1.0 / (t_1 - (y + z))) else: tmp = math.log(t) + (t_1 - z) return tmp
function code(x, y, z, t) t_1 = Float64(x * log(y)) tmp = 0.0 if (Float64(t_1 - y) <= -1e+17) tmp = Float64(1.0 / Float64(1.0 / Float64(t_1 - Float64(y + z)))); else tmp = Float64(log(t) + Float64(t_1 - z)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * log(y); tmp = 0.0; if ((t_1 - y) <= -1e+17) tmp = 1.0 / (1.0 / (t_1 - (y + z))); else tmp = log(t) + (t_1 - z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$1 - y), $MachinePrecision], -1e+17], N[(1.0 / N[(1.0 / N[(t$95$1 - N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Log[t], $MachinePrecision] + N[(t$95$1 - z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;t\_1 - y \leq -1 \cdot 10^{+17}:\\
\;\;\;\;\frac{1}{\frac{1}{t\_1 - \left(y + z\right)}}\\
\mathbf{else}:\\
\;\;\;\;\log t + \left(t\_1 - z\right)\\
\end{array}
\end{array}
if (-.f64 (*.f64 x (log.f64 y)) y) < -1e17Initial program 99.9%
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-log.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
Applied egg-rr99.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6499.6
Simplified99.6%
if -1e17 < (-.f64 (*.f64 x (log.f64 y)) y) Initial program 99.9%
Taylor expanded in y around 0
lower--.f64N/A
lower-*.f64N/A
lower-log.f6499.6
Simplified99.6%
Final simplification99.6%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (log y))))
(if (<= (- t_1 y) -1e+17)
(/ 1.0 (/ 1.0 (- t_1 (+ y z))))
(fma x (log y) (- (log t) z)))))
double code(double x, double y, double z, double t) {
double t_1 = x * log(y);
double tmp;
if ((t_1 - y) <= -1e+17) {
tmp = 1.0 / (1.0 / (t_1 - (y + z)));
} else {
tmp = fma(x, log(y), (log(t) - z));
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(x * log(y)) tmp = 0.0 if (Float64(t_1 - y) <= -1e+17) tmp = Float64(1.0 / Float64(1.0 / Float64(t_1 - Float64(y + z)))); else tmp = fma(x, log(y), Float64(log(t) - z)); end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$1 - y), $MachinePrecision], -1e+17], N[(1.0 / N[(1.0 / N[(t$95$1 - N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[Log[y], $MachinePrecision] + N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;t\_1 - y \leq -1 \cdot 10^{+17}:\\
\;\;\;\;\frac{1}{\frac{1}{t\_1 - \left(y + z\right)}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x, \log y, \log t - z\right)\\
\end{array}
\end{array}
if (-.f64 (*.f64 x (log.f64 y)) y) < -1e17Initial program 99.9%
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-log.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
Applied egg-rr99.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6499.6
Simplified99.6%
if -1e17 < (-.f64 (*.f64 x (log.f64 y)) y) Initial program 99.9%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
lower-fma.f64N/A
lower-log.f64N/A
unsub-negN/A
lower--.f64N/A
lower-log.f6499.6
Simplified99.6%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (fma z (/ (fma x (log y) (- y)) z) (- z))))
(if (<= z -250.0)
t_1
(if (<= z 0.0004) (fma x (log y) (- (log t) y)) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = fma(z, (fma(x, log(y), -y) / z), -z);
double tmp;
if (z <= -250.0) {
tmp = t_1;
} else if (z <= 0.0004) {
tmp = fma(x, log(y), (log(t) - y));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = fma(z, Float64(fma(x, log(y), Float64(-y)) / z), Float64(-z)) tmp = 0.0 if (z <= -250.0) tmp = t_1; elseif (z <= 0.0004) tmp = fma(x, log(y), Float64(log(t) - y)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(z * N[(N[(x * N[Log[y], $MachinePrecision] + (-y)), $MachinePrecision] / z), $MachinePrecision] + (-z)), $MachinePrecision]}, If[LessEqual[z, -250.0], t$95$1, If[LessEqual[z, 0.0004], N[(x * N[Log[y], $MachinePrecision] + N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(z, \frac{\mathsf{fma}\left(x, \log y, -y\right)}{z}, -z\right)\\
\mathbf{if}\;z \leq -250:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 0.0004:\\
\;\;\;\;\mathsf{fma}\left(x, \log y, \log t - y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -250 or 4.00000000000000019e-4 < z Initial program 100.0%
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-log.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
Applied egg-rr99.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6498.2
Simplified98.2%
Taylor expanded in z around inf
Simplified98.4%
if -250 < z < 4.00000000000000019e-4Initial program 99.8%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
lower-fma.f64N/A
lower-log.f64N/A
lower--.f64N/A
lower-log.f6499.6
Simplified99.6%
(FPCore (x y z t) :precision binary64 (if (<= (- (* x (log y)) y) -1e+17) (- (- y) z) (- (log t) z)))
double code(double x, double y, double z, double t) {
double tmp;
if (((x * log(y)) - y) <= -1e+17) {
tmp = -y - z;
} else {
tmp = log(t) - z;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (((x * log(y)) - y) <= (-1d+17)) then
tmp = -y - z
else
tmp = log(t) - z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((x * Math.log(y)) - y) <= -1e+17) {
tmp = -y - z;
} else {
tmp = Math.log(t) - z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x * math.log(y)) - y) <= -1e+17: tmp = -y - z else: tmp = math.log(t) - z return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(Float64(x * log(y)) - y) <= -1e+17) tmp = Float64(Float64(-y) - z); else tmp = Float64(log(t) - z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((x * log(y)) - y) <= -1e+17) tmp = -y - z; else tmp = log(t) - z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision], -1e+17], N[((-y) - z), $MachinePrecision], N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot \log y - y \leq -1 \cdot 10^{+17}:\\
\;\;\;\;\left(-y\right) - z\\
\mathbf{else}:\\
\;\;\;\;\log t - z\\
\end{array}
\end{array}
if (-.f64 (*.f64 x (log.f64 y)) y) < -1e17Initial program 99.9%
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-log.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
Applied egg-rr99.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6499.6
Simplified99.6%
Taylor expanded in x around 0
mul-1-negN/A
distribute-neg-inN/A
unsub-negN/A
lower--.f64N/A
lower-neg.f6476.8
Simplified76.8%
if -1e17 < (-.f64 (*.f64 x (log.f64 y)) y) Initial program 99.9%
Taylor expanded in z around inf
mul-1-negN/A
lower-neg.f6468.7
Simplified68.7%
lift-neg.f64N/A
lift-log.f64N/A
+-commutativeN/A
lift-neg.f64N/A
sub-negN/A
lift--.f6468.7
Applied egg-rr68.7%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (/ 1.0 (/ 1.0 (- (* x (log y)) (+ y z)))))) (if (<= x -1.22) t_1 (if (<= x 0.98) (- (- (log t) z) y) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = 1.0 / (1.0 / ((x * log(y)) - (y + z)));
double tmp;
if (x <= -1.22) {
tmp = t_1;
} else if (x <= 0.98) {
tmp = (log(t) - z) - y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = 1.0d0 / (1.0d0 / ((x * log(y)) - (y + z)))
if (x <= (-1.22d0)) then
tmp = t_1
else if (x <= 0.98d0) then
tmp = (log(t) - z) - y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = 1.0 / (1.0 / ((x * Math.log(y)) - (y + z)));
double tmp;
if (x <= -1.22) {
tmp = t_1;
} else if (x <= 0.98) {
tmp = (Math.log(t) - z) - y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = 1.0 / (1.0 / ((x * math.log(y)) - (y + z))) tmp = 0 if x <= -1.22: tmp = t_1 elif x <= 0.98: tmp = (math.log(t) - z) - y else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(1.0 / Float64(1.0 / Float64(Float64(x * log(y)) - Float64(y + z)))) tmp = 0.0 if (x <= -1.22) tmp = t_1; elseif (x <= 0.98) tmp = Float64(Float64(log(t) - z) - y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = 1.0 / (1.0 / ((x * log(y)) - (y + z))); tmp = 0.0; if (x <= -1.22) tmp = t_1; elseif (x <= 0.98) tmp = (log(t) - z) - y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(1.0 / N[(1.0 / N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.22], t$95$1, If[LessEqual[x, 0.98], N[(N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{1}{\frac{1}{x \cdot \log y - \left(y + z\right)}}\\
\mathbf{if}\;x \leq -1.22:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 0.98:\\
\;\;\;\;\left(\log t - z\right) - y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.21999999999999997 or 0.97999999999999998 < x Initial program 99.8%
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-log.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
Applied egg-rr99.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6498.7
Simplified98.7%
if -1.21999999999999997 < x < 0.97999999999999998Initial program 100.0%
Taylor expanded in x around 0
+-commutativeN/A
associate--r+N/A
unsub-negN/A
lower--.f64N/A
unsub-negN/A
lower--.f64N/A
lower-log.f6498.4
Simplified98.4%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* x (log y)))) (if (<= x -3.2e+184) t_1 (if (<= x 8.5e+167) (- (- (log t) z) y) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = x * log(y);
double tmp;
if (x <= -3.2e+184) {
tmp = t_1;
} else if (x <= 8.5e+167) {
tmp = (log(t) - z) - y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x * log(y)
if (x <= (-3.2d+184)) then
tmp = t_1
else if (x <= 8.5d+167) then
tmp = (log(t) - z) - y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * Math.log(y);
double tmp;
if (x <= -3.2e+184) {
tmp = t_1;
} else if (x <= 8.5e+167) {
tmp = (Math.log(t) - z) - y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * math.log(y) tmp = 0 if x <= -3.2e+184: tmp = t_1 elif x <= 8.5e+167: tmp = (math.log(t) - z) - y else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x * log(y)) tmp = 0.0 if (x <= -3.2e+184) tmp = t_1; elseif (x <= 8.5e+167) tmp = Float64(Float64(log(t) - z) - y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * log(y); tmp = 0.0; if (x <= -3.2e+184) tmp = t_1; elseif (x <= 8.5e+167) tmp = (log(t) - z) - y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.2e+184], t$95$1, If[LessEqual[x, 8.5e+167], N[(N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;x \leq -3.2 \cdot 10^{+184}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{+167}:\\
\;\;\;\;\left(\log t - z\right) - y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.19999999999999983e184 or 8.50000000000000007e167 < x Initial program 99.8%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6479.9
Simplified79.9%
if -3.19999999999999983e184 < x < 8.50000000000000007e167Initial program 99.9%
Taylor expanded in x around 0
+-commutativeN/A
associate--r+N/A
unsub-negN/A
lower--.f64N/A
unsub-negN/A
lower--.f64N/A
lower-log.f6487.0
Simplified87.0%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (- (- y) z))) (if (<= z -250.0) t_1 (if (<= z 430.0) (- (log t) y) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = -y - z;
double tmp;
if (z <= -250.0) {
tmp = t_1;
} else if (z <= 430.0) {
tmp = log(t) - y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = -y - z
if (z <= (-250.0d0)) then
tmp = t_1
else if (z <= 430.0d0) then
tmp = log(t) - y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = -y - z;
double tmp;
if (z <= -250.0) {
tmp = t_1;
} else if (z <= 430.0) {
tmp = Math.log(t) - y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = -y - z tmp = 0 if z <= -250.0: tmp = t_1 elif z <= 430.0: tmp = math.log(t) - y else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(-y) - z) tmp = 0.0 if (z <= -250.0) tmp = t_1; elseif (z <= 430.0) tmp = Float64(log(t) - y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = -y - z; tmp = 0.0; if (z <= -250.0) tmp = t_1; elseif (z <= 430.0) tmp = log(t) - y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[((-y) - z), $MachinePrecision]}, If[LessEqual[z, -250.0], t$95$1, If[LessEqual[z, 430.0], N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-y\right) - z\\
\mathbf{if}\;z \leq -250:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 430:\\
\;\;\;\;\log t - y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -250 or 430 < z Initial program 100.0%
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-log.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
Applied egg-rr99.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6498.2
Simplified98.2%
Taylor expanded in x around 0
mul-1-negN/A
distribute-neg-inN/A
unsub-negN/A
lower--.f64N/A
lower-neg.f6482.5
Simplified82.5%
if -250 < z < 430Initial program 99.8%
Taylor expanded in z around 0
lower--.f64N/A
lower-*.f64N/A
lower-log.f6499.6
Simplified99.6%
Taylor expanded in x around 0
lower--.f64N/A
lower-log.f6462.9
Simplified62.9%
(FPCore (x y z t) :precision binary64 (if (<= y 3.8e+58) (- z) (- y)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 3.8e+58) {
tmp = -z;
} else {
tmp = -y;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= 3.8d+58) then
tmp = -z
else
tmp = -y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= 3.8e+58) {
tmp = -z;
} else {
tmp = -y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 3.8e+58: tmp = -z else: tmp = -y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 3.8e+58) tmp = Float64(-z); else tmp = Float64(-y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 3.8e+58) tmp = -z; else tmp = -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 3.8e+58], (-z), (-y)]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.8 \cdot 10^{+58}:\\
\;\;\;\;-z\\
\mathbf{else}:\\
\;\;\;\;-y\\
\end{array}
\end{array}
if y < 3.7999999999999999e58Initial program 99.9%
Taylor expanded in z around inf
mul-1-negN/A
lower-neg.f6443.2
Simplified43.2%
if 3.7999999999999999e58 < y Initial program 100.0%
Taylor expanded in y around inf
mul-1-negN/A
lower-neg.f6474.0
Simplified74.0%
(FPCore (x y z t) :precision binary64 (- (- y) z))
double code(double x, double y, double z, double t) {
return -y - z;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = -y - z
end function
public static double code(double x, double y, double z, double t) {
return -y - z;
}
def code(x, y, z, t): return -y - z
function code(x, y, z, t) return Float64(Float64(-y) - z) end
function tmp = code(x, y, z, t) tmp = -y - z; end
code[x_, y_, z_, t_] := N[((-y) - z), $MachinePrecision]
\begin{array}{l}
\\
\left(-y\right) - z
\end{array}
Initial program 99.9%
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-log.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
Applied egg-rr99.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6487.7
Simplified87.7%
Taylor expanded in x around 0
mul-1-negN/A
distribute-neg-inN/A
unsub-negN/A
lower--.f64N/A
lower-neg.f6462.2
Simplified62.2%
(FPCore (x y z t) :precision binary64 (- y))
double code(double x, double y, double z, double t) {
return -y;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = -y
end function
public static double code(double x, double y, double z, double t) {
return -y;
}
def code(x, y, z, t): return -y
function code(x, y, z, t) return Float64(-y) end
function tmp = code(x, y, z, t) tmp = -y; end
code[x_, y_, z_, t_] := (-y)
\begin{array}{l}
\\
-y
\end{array}
Initial program 99.9%
Taylor expanded in y around inf
mul-1-negN/A
lower-neg.f6432.6
Simplified32.6%
(FPCore (x y z t) :precision binary64 z)
double code(double x, double y, double z, double t) {
return z;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = z
end function
public static double code(double x, double y, double z, double t) {
return z;
}
def code(x, y, z, t): return z
function code(x, y, z, t) return z end
function tmp = code(x, y, z, t) tmp = z; end
code[x_, y_, z_, t_] := z
\begin{array}{l}
\\
z
\end{array}
Initial program 99.9%
Taylor expanded in z around inf
mul-1-negN/A
lower-neg.f6431.8
Simplified31.8%
neg-sub0N/A
flip3--N/A
metadata-evalN/A
neg-sub0N/A
distribute-neg-fracN/A
sqr-powN/A
pow-prod-downN/A
sqr-negN/A
lift-neg.f64N/A
lift-neg.f64N/A
pow-prod-downN/A
sqr-powN/A
lift-neg.f64N/A
cube-negN/A
neg-sub0N/A
metadata-evalN/A
flip3--N/A
neg-sub0N/A
remove-double-neg2.1
Applied egg-rr2.1%
herbie shell --seed 2024212
(FPCore (x y z t)
:name "Numeric.SpecFunctions:incompleteGamma from math-functions-0.1.5.2, A"
:precision binary64
(+ (- (- (* x (log y)) y) z) (log t)))