
(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 10 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 (- (log t) (+ z (+ y (* (log (/ 1.0 y)) x)))))
double code(double x, double y, double z, double t) {
return log(t) - (z + (y + (log((1.0 / y)) * x)));
}
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) - (z + (y + (log((1.0d0 / y)) * x)))
end function
public static double code(double x, double y, double z, double t) {
return Math.log(t) - (z + (y + (Math.log((1.0 / y)) * x)));
}
def code(x, y, z, t): return math.log(t) - (z + (y + (math.log((1.0 / y)) * x)))
function code(x, y, z, t) return Float64(log(t) - Float64(z + Float64(y + Float64(log(Float64(1.0 / y)) * x)))) end
function tmp = code(x, y, z, t) tmp = log(t) - (z + (y + (log((1.0 / y)) * x))); end
code[x_, y_, z_, t_] := N[(N[Log[t], $MachinePrecision] - N[(z + N[(y + N[(N[Log[N[(1.0 / y), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\log t - \left(z + \left(y + \log \left(\frac{1}{y}\right) \cdot x\right)\right)
\end{array}
Initial program 99.8%
Taylor expanded in y around inf 99.8%
Final simplification99.8%
(FPCore (x y z t)
:precision binary64
(if (or (<= x -1.85e+64)
(and (not (<= x 2.6e+71)) (or (<= x 1.4e+138) (not (<= x 7.8e+201)))))
(+ (log t) (* x (log y)))
(- (- (log t) z) y)))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.85e+64) || (!(x <= 2.6e+71) && ((x <= 1.4e+138) || !(x <= 7.8e+201)))) {
tmp = log(t) + (x * log(y));
} else {
tmp = (log(t) - z) - 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 ((x <= (-1.85d+64)) .or. (.not. (x <= 2.6d+71)) .and. (x <= 1.4d+138) .or. (.not. (x <= 7.8d+201))) then
tmp = log(t) + (x * log(y))
else
tmp = (log(t) - z) - y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.85e+64) || (!(x <= 2.6e+71) && ((x <= 1.4e+138) || !(x <= 7.8e+201)))) {
tmp = Math.log(t) + (x * Math.log(y));
} else {
tmp = (Math.log(t) - z) - y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -1.85e+64) or (not (x <= 2.6e+71) and ((x <= 1.4e+138) or not (x <= 7.8e+201))): tmp = math.log(t) + (x * math.log(y)) else: tmp = (math.log(t) - z) - y return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -1.85e+64) || (!(x <= 2.6e+71) && ((x <= 1.4e+138) || !(x <= 7.8e+201)))) tmp = Float64(log(t) + Float64(x * log(y))); else tmp = Float64(Float64(log(t) - z) - y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -1.85e+64) || (~((x <= 2.6e+71)) && ((x <= 1.4e+138) || ~((x <= 7.8e+201))))) tmp = log(t) + (x * log(y)); else tmp = (log(t) - z) - y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1.85e+64], And[N[Not[LessEqual[x, 2.6e+71]], $MachinePrecision], Or[LessEqual[x, 1.4e+138], N[Not[LessEqual[x, 7.8e+201]], $MachinePrecision]]]], N[(N[Log[t], $MachinePrecision] + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.85 \cdot 10^{+64} \lor \neg \left(x \leq 2.6 \cdot 10^{+71}\right) \land \left(x \leq 1.4 \cdot 10^{+138} \lor \neg \left(x \leq 7.8 \cdot 10^{+201}\right)\right):\\
\;\;\;\;\log t + x \cdot \log y\\
\mathbf{else}:\\
\;\;\;\;\left(\log t - z\right) - y\\
\end{array}
\end{array}
if x < -1.84999999999999992e64 or 2.59999999999999991e71 < x < 1.4e138 or 7.8000000000000001e201 < x Initial program 99.6%
Taylor expanded in y around inf 99.6%
Taylor expanded in x around inf 79.1%
mul-1-neg79.1%
*-commutative79.1%
log-rec79.1%
distribute-rgt-neg-in79.1%
remove-double-neg79.1%
*-commutative79.1%
Simplified79.1%
if -1.84999999999999992e64 < x < 2.59999999999999991e71 or 1.4e138 < x < 7.8000000000000001e201Initial program 100.0%
Taylor expanded in x around 0 92.8%
neg-mul-192.8%
+-commutative92.8%
distribute-neg-in92.8%
sub-neg92.8%
Simplified92.8%
Taylor expanded in z around 0 92.8%
+-commutative92.8%
mul-1-neg92.8%
sub-neg92.8%
Simplified92.8%
Final simplification88.1%
(FPCore (x y z t) :precision binary64 (if (or (<= x -3.7e+62) (not (<= x 3e+70))) (+ (log t) (- (* x (log y)) y)) (- (- (log t) z) y)))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -3.7e+62) || !(x <= 3e+70)) {
tmp = log(t) + ((x * log(y)) - y);
} else {
tmp = (log(t) - z) - 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 ((x <= (-3.7d+62)) .or. (.not. (x <= 3d+70))) then
tmp = log(t) + ((x * log(y)) - y)
else
tmp = (log(t) - z) - y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -3.7e+62) || !(x <= 3e+70)) {
tmp = Math.log(t) + ((x * Math.log(y)) - y);
} else {
tmp = (Math.log(t) - z) - y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -3.7e+62) or not (x <= 3e+70): tmp = math.log(t) + ((x * math.log(y)) - y) else: tmp = (math.log(t) - z) - y return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -3.7e+62) || !(x <= 3e+70)) tmp = Float64(log(t) + Float64(Float64(x * log(y)) - y)); else tmp = Float64(Float64(log(t) - z) - y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -3.7e+62) || ~((x <= 3e+70))) tmp = log(t) + ((x * log(y)) - y); else tmp = (log(t) - z) - y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -3.7e+62], N[Not[LessEqual[x, 3e+70]], $MachinePrecision]], N[(N[Log[t], $MachinePrecision] + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision], N[(N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.7 \cdot 10^{+62} \lor \neg \left(x \leq 3 \cdot 10^{+70}\right):\\
\;\;\;\;\log t + \left(x \cdot \log y - y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\log t - z\right) - y\\
\end{array}
\end{array}
if x < -3.70000000000000014e62 or 2.99999999999999976e70 < x Initial program 99.6%
add-cbrt-cube20.6%
pow320.6%
Applied egg-rr20.6%
Taylor expanded in z around 0 85.7%
if -3.70000000000000014e62 < x < 2.99999999999999976e70Initial program 100.0%
Taylor expanded in x around 0 94.5%
neg-mul-194.5%
+-commutative94.5%
distribute-neg-in94.5%
sub-neg94.5%
Simplified94.5%
Taylor expanded in z around 0 94.5%
+-commutative94.5%
mul-1-neg94.5%
sub-neg94.5%
Simplified94.5%
Final simplification90.9%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* x (log y)))) (if (<= y 6.8e+59) (+ (log t) (- t_1 z)) (+ (log t) (- t_1 y)))))
double code(double x, double y, double z, double t) {
double t_1 = x * log(y);
double tmp;
if (y <= 6.8e+59) {
tmp = log(t) + (t_1 - z);
} else {
tmp = log(t) + (t_1 - 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) :: t_1
real(8) :: tmp
t_1 = x * log(y)
if (y <= 6.8d+59) then
tmp = log(t) + (t_1 - z)
else
tmp = log(t) + (t_1 - y)
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 (y <= 6.8e+59) {
tmp = Math.log(t) + (t_1 - z);
} else {
tmp = Math.log(t) + (t_1 - y);
}
return tmp;
}
def code(x, y, z, t): t_1 = x * math.log(y) tmp = 0 if y <= 6.8e+59: tmp = math.log(t) + (t_1 - z) else: tmp = math.log(t) + (t_1 - y) return tmp
function code(x, y, z, t) t_1 = Float64(x * log(y)) tmp = 0.0 if (y <= 6.8e+59) tmp = Float64(log(t) + Float64(t_1 - z)); else tmp = Float64(log(t) + Float64(t_1 - y)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * log(y); tmp = 0.0; if (y <= 6.8e+59) tmp = log(t) + (t_1 - z); else tmp = log(t) + (t_1 - y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 6.8e+59], N[(N[Log[t], $MachinePrecision] + N[(t$95$1 - z), $MachinePrecision]), $MachinePrecision], N[(N[Log[t], $MachinePrecision] + N[(t$95$1 - y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;y \leq 6.8 \cdot 10^{+59}:\\
\;\;\;\;\log t + \left(t_1 - z\right)\\
\mathbf{else}:\\
\;\;\;\;\log t + \left(t_1 - y\right)\\
\end{array}
\end{array}
if y < 6.80000000000000012e59Initial program 99.8%
Taylor expanded in y around 0 97.6%
if 6.80000000000000012e59 < y Initial program 99.9%
add-cbrt-cube59.8%
pow359.8%
Applied egg-rr59.8%
Taylor expanded in z around 0 82.1%
Final simplification91.3%
(FPCore (x y z t) :precision binary64 (+ (log t) (- (- (* x (log y)) y) z)))
double code(double x, double y, double z, double t) {
return log(t) + (((x * log(y)) - 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) + (((x * log(y)) - y) - z)
end function
public static double code(double x, double y, double z, double t) {
return Math.log(t) + (((x * Math.log(y)) - y) - z);
}
def code(x, y, z, t): return math.log(t) + (((x * math.log(y)) - y) - z)
function code(x, y, z, t) return Float64(log(t) + Float64(Float64(Float64(x * log(y)) - y) - z)) end
function tmp = code(x, y, z, t) tmp = log(t) + (((x * log(y)) - y) - z); end
code[x_, y_, z_, t_] := N[(N[Log[t], $MachinePrecision] + N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\log t + \left(\left(x \cdot \log y - y\right) - z\right)
\end{array}
Initial program 99.8%
Final simplification99.8%
(FPCore (x y z t) :precision binary64 (if (<= z -2060000.0) (- z) (if (<= z 2.35e+14) (- (log t) y) (- z))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2060000.0) {
tmp = -z;
} else if (z <= 2.35e+14) {
tmp = log(t) - y;
} else {
tmp = -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 (z <= (-2060000.0d0)) then
tmp = -z
else if (z <= 2.35d+14) then
tmp = log(t) - y
else
tmp = -z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2060000.0) {
tmp = -z;
} else if (z <= 2.35e+14) {
tmp = Math.log(t) - y;
} else {
tmp = -z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2060000.0: tmp = -z elif z <= 2.35e+14: tmp = math.log(t) - y else: tmp = -z return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2060000.0) tmp = Float64(-z); elseif (z <= 2.35e+14) tmp = Float64(log(t) - y); else tmp = Float64(-z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2060000.0) tmp = -z; elseif (z <= 2.35e+14) tmp = log(t) - y; else tmp = -z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2060000.0], (-z), If[LessEqual[z, 2.35e+14], N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision], (-z)]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2060000:\\
\;\;\;\;-z\\
\mathbf{elif}\;z \leq 2.35 \cdot 10^{+14}:\\
\;\;\;\;\log t - y\\
\mathbf{else}:\\
\;\;\;\;-z\\
\end{array}
\end{array}
if z < -2.06e6 or 2.35e14 < z Initial program 99.9%
Taylor expanded in x around 0 79.2%
neg-mul-179.2%
+-commutative79.2%
distribute-neg-in79.2%
sub-neg79.2%
Simplified79.2%
Taylor expanded in z around inf 61.9%
mul-1-neg61.9%
Simplified61.9%
if -2.06e6 < z < 2.35e14Initial program 99.8%
Taylor expanded in x around 0 57.1%
neg-mul-157.1%
+-commutative57.1%
distribute-neg-in57.1%
sub-neg57.1%
Simplified57.1%
Taylor expanded in z around 0 55.8%
Final simplification58.9%
(FPCore (x y z t) :precision binary64 (if (<= y 3e+59) (- (log t) z) (- y)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 3e+59) {
tmp = log(t) - 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 <= 3d+59) then
tmp = log(t) - 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 <= 3e+59) {
tmp = Math.log(t) - z;
} else {
tmp = -y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 3e+59: tmp = math.log(t) - z else: tmp = -y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 3e+59) tmp = Float64(log(t) - z); else tmp = Float64(-y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 3e+59) tmp = log(t) - z; else tmp = -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 3e+59], N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision], (-y)]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3 \cdot 10^{+59}:\\
\;\;\;\;\log t - z\\
\mathbf{else}:\\
\;\;\;\;-y\\
\end{array}
\end{array}
if y < 3e59Initial program 99.8%
Taylor expanded in z around inf 60.4%
neg-mul-160.4%
Simplified60.4%
Taylor expanded in z around 0 60.4%
mul-1-neg60.4%
+-commutative60.4%
sub-neg60.4%
Simplified60.4%
if 3e59 < y Initial program 99.9%
Taylor expanded in x around 0 76.9%
neg-mul-176.9%
+-commutative76.9%
distribute-neg-in76.9%
sub-neg76.9%
Simplified76.9%
Taylor expanded in y around inf 59.7%
neg-mul-159.7%
Simplified59.7%
Final simplification60.1%
(FPCore (x y z t) :precision binary64 (- (- (log t) z) y))
double code(double x, double y, double z, double t) {
return (log(t) - z) - 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 = (log(t) - z) - y
end function
public static double code(double x, double y, double z, double t) {
return (Math.log(t) - z) - y;
}
def code(x, y, z, t): return (math.log(t) - z) - y
function code(x, y, z, t) return Float64(Float64(log(t) - z) - y) end
function tmp = code(x, y, z, t) tmp = (log(t) - z) - y; end
code[x_, y_, z_, t_] := N[(N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision]
\begin{array}{l}
\\
\left(\log t - z\right) - y
\end{array}
Initial program 99.8%
Taylor expanded in x around 0 68.3%
neg-mul-168.3%
+-commutative68.3%
distribute-neg-in68.3%
sub-neg68.3%
Simplified68.3%
Taylor expanded in z around 0 68.3%
+-commutative68.3%
mul-1-neg68.3%
sub-neg68.3%
Simplified68.3%
Final simplification68.3%
(FPCore (x y z t) :precision binary64 (if (<= y 6.2e+59) (- z) (- y)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 6.2e+59) {
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 <= 6.2d+59) 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 <= 6.2e+59) {
tmp = -z;
} else {
tmp = -y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 6.2e+59: tmp = -z else: tmp = -y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 6.2e+59) tmp = Float64(-z); else tmp = Float64(-y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 6.2e+59) tmp = -z; else tmp = -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 6.2e+59], (-z), (-y)]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 6.2 \cdot 10^{+59}:\\
\;\;\;\;-z\\
\mathbf{else}:\\
\;\;\;\;-y\\
\end{array}
\end{array}
if y < 6.20000000000000029e59Initial program 99.8%
Taylor expanded in x around 0 62.5%
neg-mul-162.5%
+-commutative62.5%
distribute-neg-in62.5%
sub-neg62.5%
Simplified62.5%
Taylor expanded in z around inf 43.4%
mul-1-neg43.4%
Simplified43.4%
if 6.20000000000000029e59 < y Initial program 99.9%
Taylor expanded in x around 0 76.9%
neg-mul-176.9%
+-commutative76.9%
distribute-neg-in76.9%
sub-neg76.9%
Simplified76.9%
Taylor expanded in y around inf 59.7%
neg-mul-159.7%
Simplified59.7%
Final simplification50.0%
(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.8%
Taylor expanded in x around 0 68.3%
neg-mul-168.3%
+-commutative68.3%
distribute-neg-in68.3%
sub-neg68.3%
Simplified68.3%
Taylor expanded in y around inf 26.9%
neg-mul-126.9%
Simplified26.9%
Final simplification26.9%
herbie shell --seed 2023194
(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)))