
(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 11 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)))
(if (<= t_2 -3.2e+216)
(+ t_2 (log t))
(if (<= t_2 -1e+48) (- (log t) (+ y z)) (+ (log t) (- t_1 z))))))
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 <= -3.2e+216) {
tmp = t_2 + log(t);
} else if (t_2 <= -1e+48) {
tmp = log(t) - (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) :: t_2
real(8) :: tmp
t_1 = x * log(y)
t_2 = t_1 - y
if (t_2 <= (-3.2d+216)) then
tmp = t_2 + log(t)
else if (t_2 <= (-1d+48)) then
tmp = log(t) - (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 t_2 = t_1 - y;
double tmp;
if (t_2 <= -3.2e+216) {
tmp = t_2 + Math.log(t);
} else if (t_2 <= -1e+48) {
tmp = Math.log(t) - (y + z);
} else {
tmp = Math.log(t) + (t_1 - z);
}
return tmp;
}
def code(x, y, z, t): t_1 = x * math.log(y) t_2 = t_1 - y tmp = 0 if t_2 <= -3.2e+216: tmp = t_2 + math.log(t) elif t_2 <= -1e+48: tmp = math.log(t) - (y + z) else: tmp = math.log(t) + (t_1 - z) 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 <= -3.2e+216) tmp = Float64(t_2 + log(t)); elseif (t_2 <= -1e+48) tmp = Float64(log(t) - 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); t_2 = t_1 - y; tmp = 0.0; if (t_2 <= -3.2e+216) tmp = t_2 + log(t); elseif (t_2 <= -1e+48) tmp = log(t) - (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]}, Block[{t$95$2 = N[(t$95$1 - y), $MachinePrecision]}, If[LessEqual[t$95$2, -3.2e+216], N[(t$95$2 + N[Log[t], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, -1e+48], N[(N[Log[t], $MachinePrecision] - N[(y + z), $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\\
t_2 := t\_1 - y\\
\mathbf{if}\;t\_2 \leq -3.2 \cdot 10^{+216}:\\
\;\;\;\;t\_2 + \log t\\
\mathbf{elif}\;t\_2 \leq -1 \cdot 10^{+48}:\\
\;\;\;\;\log t - \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) < -3.1999999999999997e216Initial program 99.8%
Taylor expanded in z around 0 90.3%
if -3.1999999999999997e216 < (-.f64 (*.f64 x (log.f64 y)) y) < -1.00000000000000004e48Initial program 100.0%
add-cbrt-cube99.9%
pow399.9%
Applied egg-rr99.9%
Taylor expanded in x around 0 87.8%
if -1.00000000000000004e48 < (-.f64 (*.f64 x (log.f64 y)) y) Initial program 99.9%
Taylor expanded in y around 0 95.7%
Final simplification92.4%
(FPCore (x y z t) :precision binary64 (if (or (<= x -8.2e+96) (not (<= x 2.1e+28))) (+ (- (* x (log y)) y) (log t)) (- (log t) (+ y z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -8.2e+96) || !(x <= 2.1e+28)) {
tmp = ((x * log(y)) - y) + log(t);
} else {
tmp = log(t) - (y + 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 <= (-8.2d+96)) .or. (.not. (x <= 2.1d+28))) then
tmp = ((x * log(y)) - y) + log(t)
else
tmp = log(t) - (y + z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -8.2e+96) || !(x <= 2.1e+28)) {
tmp = ((x * Math.log(y)) - y) + Math.log(t);
} else {
tmp = Math.log(t) - (y + z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -8.2e+96) or not (x <= 2.1e+28): tmp = ((x * math.log(y)) - y) + math.log(t) else: tmp = math.log(t) - (y + z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -8.2e+96) || !(x <= 2.1e+28)) tmp = Float64(Float64(Float64(x * log(y)) - y) + log(t)); else tmp = Float64(log(t) - Float64(y + z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -8.2e+96) || ~((x <= 2.1e+28))) tmp = ((x * log(y)) - y) + log(t); else tmp = log(t) - (y + z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -8.2e+96], N[Not[LessEqual[x, 2.1e+28]], $MachinePrecision]], N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision] + N[Log[t], $MachinePrecision]), $MachinePrecision], N[(N[Log[t], $MachinePrecision] - N[(y + z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.2 \cdot 10^{+96} \lor \neg \left(x \leq 2.1 \cdot 10^{+28}\right):\\
\;\;\;\;\left(x \cdot \log y - y\right) + \log t\\
\mathbf{else}:\\
\;\;\;\;\log t - \left(y + z\right)\\
\end{array}
\end{array}
if x < -8.19999999999999996e96 or 2.09999999999999989e28 < x Initial program 99.8%
Taylor expanded in z around 0 87.2%
if -8.19999999999999996e96 < x < 2.09999999999999989e28Initial program 100.0%
add-cbrt-cube100.0%
pow3100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0 95.3%
Final simplification92.3%
(FPCore (x y z t) :precision binary64 (if (or (<= x -7.2e+159) (not (<= x 9.2e+123))) (+ (* x (log y)) (log t)) (- (log t) (+ y z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -7.2e+159) || !(x <= 9.2e+123)) {
tmp = (x * log(y)) + log(t);
} else {
tmp = log(t) - (y + 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 <= (-7.2d+159)) .or. (.not. (x <= 9.2d+123))) then
tmp = (x * log(y)) + log(t)
else
tmp = log(t) - (y + z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -7.2e+159) || !(x <= 9.2e+123)) {
tmp = (x * Math.log(y)) + Math.log(t);
} else {
tmp = Math.log(t) - (y + z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -7.2e+159) or not (x <= 9.2e+123): tmp = (x * math.log(y)) + math.log(t) else: tmp = math.log(t) - (y + z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -7.2e+159) || !(x <= 9.2e+123)) tmp = Float64(Float64(x * log(y)) + log(t)); else tmp = Float64(log(t) - Float64(y + z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -7.2e+159) || ~((x <= 9.2e+123))) tmp = (x * log(y)) + log(t); else tmp = log(t) - (y + z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -7.2e+159], N[Not[LessEqual[x, 9.2e+123]], $MachinePrecision]], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[Log[t], $MachinePrecision]), $MachinePrecision], N[(N[Log[t], $MachinePrecision] - N[(y + z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.2 \cdot 10^{+159} \lor \neg \left(x \leq 9.2 \cdot 10^{+123}\right):\\
\;\;\;\;x \cdot \log y + \log t\\
\mathbf{else}:\\
\;\;\;\;\log t - \left(y + z\right)\\
\end{array}
\end{array}
if x < -7.20000000000000073e159 or 9.19999999999999962e123 < x Initial program 99.7%
Taylor expanded in x around inf 78.4%
if -7.20000000000000073e159 < x < 9.19999999999999962e123Initial program 100.0%
add-cbrt-cube99.9%
pow3100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0 90.1%
Final simplification87.0%
(FPCore (x y z t) :precision binary64 (if (<= x 5.8e+232) (- (log t) (+ y z)) (log (* t (pow y x)))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= 5.8e+232) {
tmp = log(t) - (y + z);
} else {
tmp = log((t * pow(y, x)));
}
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 <= 5.8d+232) then
tmp = log(t) - (y + z)
else
tmp = log((t * (y ** x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= 5.8e+232) {
tmp = Math.log(t) - (y + z);
} else {
tmp = Math.log((t * Math.pow(y, x)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= 5.8e+232: tmp = math.log(t) - (y + z) else: tmp = math.log((t * math.pow(y, x))) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= 5.8e+232) tmp = Float64(log(t) - Float64(y + z)); else tmp = log(Float64(t * (y ^ x))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= 5.8e+232) tmp = log(t) - (y + z); else tmp = log((t * (y ^ x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, 5.8e+232], N[(N[Log[t], $MachinePrecision] - N[(y + z), $MachinePrecision]), $MachinePrecision], N[Log[N[(t * N[Power[y, x], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 5.8 \cdot 10^{+232}:\\
\;\;\;\;\log t - \left(y + z\right)\\
\mathbf{else}:\\
\;\;\;\;\log \left(t \cdot {y}^{x}\right)\\
\end{array}
\end{array}
if x < 5.80000000000000047e232Initial program 99.9%
add-cbrt-cube99.8%
pow399.8%
Applied egg-rr99.8%
Taylor expanded in x around 0 77.1%
if 5.80000000000000047e232 < x Initial program 99.6%
Taylor expanded in x around inf 99.6%
*-un-lft-identity99.6%
+-commutative99.6%
add-log-exp25.8%
sum-log25.8%
*-commutative25.8%
exp-to-pow25.8%
Applied egg-rr25.8%
*-lft-identity25.8%
Simplified25.8%
(FPCore (x y z t) :precision binary64 (if (or (<= z -8e+110) (not (<= z 8e+87))) (- z) (- (log t) y)))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -8e+110) || !(z <= 8e+87)) {
tmp = -z;
} else {
tmp = log(t) - 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 ((z <= (-8d+110)) .or. (.not. (z <= 8d+87))) then
tmp = -z
else
tmp = log(t) - y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -8e+110) || !(z <= 8e+87)) {
tmp = -z;
} else {
tmp = Math.log(t) - y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -8e+110) or not (z <= 8e+87): tmp = -z else: tmp = math.log(t) - y return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -8e+110) || !(z <= 8e+87)) tmp = Float64(-z); else tmp = Float64(log(t) - y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -8e+110) || ~((z <= 8e+87))) tmp = -z; else tmp = log(t) - y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -8e+110], N[Not[LessEqual[z, 8e+87]], $MachinePrecision]], (-z), N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{+110} \lor \neg \left(z \leq 8 \cdot 10^{+87}\right):\\
\;\;\;\;-z\\
\mathbf{else}:\\
\;\;\;\;\log t - y\\
\end{array}
\end{array}
if z < -8.0000000000000002e110 or 7.9999999999999997e87 < z Initial program 99.9%
add-cbrt-cube99.8%
pow399.8%
Applied egg-rr99.8%
Taylor expanded in z around inf 66.0%
neg-mul-166.0%
Simplified66.0%
if -8.0000000000000002e110 < z < 7.9999999999999997e87Initial program 99.9%
Taylor expanded in y around inf 59.0%
neg-mul-159.0%
Simplified59.0%
Taylor expanded in y around 0 59.0%
mul-1-neg59.0%
sub-neg59.0%
Simplified59.0%
Final simplification61.6%
(FPCore (x y z t) :precision binary64 (if (<= y 1.22e+36) (- (log t) z) (- (log t) y)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 1.22e+36) {
tmp = log(t) - z;
} else {
tmp = log(t) - 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 <= 1.22d+36) then
tmp = log(t) - z
else
tmp = log(t) - y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= 1.22e+36) {
tmp = Math.log(t) - z;
} else {
tmp = Math.log(t) - y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 1.22e+36: tmp = math.log(t) - z else: tmp = math.log(t) - y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 1.22e+36) tmp = Float64(log(t) - z); else tmp = Float64(log(t) - y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 1.22e+36) tmp = log(t) - z; else tmp = log(t) - y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 1.22e+36], N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision], N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.22 \cdot 10^{+36}:\\
\;\;\;\;\log t - z\\
\mathbf{else}:\\
\;\;\;\;\log t - y\\
\end{array}
\end{array}
if y < 1.21999999999999995e36Initial program 99.8%
Taylor expanded in z around inf 62.9%
neg-mul-162.9%
Simplified62.9%
Taylor expanded in z around 0 62.9%
neg-mul-162.9%
sub-neg62.9%
Simplified62.9%
if 1.21999999999999995e36 < y Initial program 99.9%
Taylor expanded in y around inf 63.8%
neg-mul-163.8%
Simplified63.8%
Taylor expanded in y around 0 63.8%
mul-1-neg63.8%
sub-neg63.8%
Simplified63.8%
(FPCore (x y z t) :precision binary64 (- (log t) (+ y z)))
double code(double x, double y, double z, double t) {
return log(t) - (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 = log(t) - (y + z)
end function
public static double code(double x, double y, double z, double t) {
return Math.log(t) - (y + z);
}
def code(x, y, z, t): return math.log(t) - (y + z)
function code(x, y, z, t) return Float64(log(t) - Float64(y + z)) end
function tmp = code(x, y, z, t) tmp = log(t) - (y + z); end
code[x_, y_, z_, t_] := N[(N[Log[t], $MachinePrecision] - N[(y + z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\log t - \left(y + z\right)
\end{array}
Initial program 99.9%
add-cbrt-cube99.7%
pow399.8%
Applied egg-rr99.8%
Taylor expanded in x around 0 72.4%
(FPCore (x y z t) :precision binary64 (if (<= y 5.2e+34) (- z) (- y)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 5.2e+34) {
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 <= 5.2d+34) 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 <= 5.2e+34) {
tmp = -z;
} else {
tmp = -y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 5.2e+34: tmp = -z else: tmp = -y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 5.2e+34) tmp = Float64(-z); else tmp = Float64(-y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 5.2e+34) tmp = -z; else tmp = -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 5.2e+34], (-z), (-y)]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 5.2 \cdot 10^{+34}:\\
\;\;\;\;-z\\
\mathbf{else}:\\
\;\;\;\;-y\\
\end{array}
\end{array}
if y < 5.19999999999999995e34Initial program 99.8%
add-cbrt-cube99.7%
pow399.7%
Applied egg-rr99.7%
Taylor expanded in z around inf 41.3%
neg-mul-141.3%
Simplified41.3%
if 5.19999999999999995e34 < y Initial program 99.9%
add-cbrt-cube99.8%
pow399.9%
Applied egg-rr99.9%
pow1/399.6%
cube-mult99.6%
unpow-prod-down99.6%
pow1/399.8%
pow299.8%
Applied egg-rr99.8%
unpow1/399.8%
Simplified99.8%
Taylor expanded in y around inf 63.8%
mul-1-neg63.8%
Simplified63.8%
(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%
add-cbrt-cube99.7%
pow399.8%
Applied egg-rr99.8%
pow1/352.9%
cube-mult52.9%
unpow-prod-down52.9%
pow1/399.6%
pow299.6%
Applied egg-rr99.6%
unpow1/399.7%
Simplified99.7%
Taylor expanded in y around inf 32.8%
mul-1-neg32.8%
Simplified32.8%
(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%
add-cbrt-cube99.7%
pow399.8%
Applied egg-rr99.8%
Taylor expanded in z around inf 30.5%
neg-mul-130.5%
Simplified30.5%
neg-sub030.5%
sub-neg30.5%
add-sqr-sqrt15.8%
sqrt-unprod7.3%
sqr-neg7.3%
sqrt-unprod0.9%
add-sqr-sqrt2.3%
Applied egg-rr2.3%
+-lft-identity2.3%
Simplified2.3%
herbie shell --seed 2024170
(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)))