
(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 15 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 (fma x (log y) (- (log t) (+ y z))))
double code(double x, double y, double z, double t) {
return fma(x, log(y), (log(t) - (y + z)));
}
function code(x, y, z, t) return fma(x, log(y), Float64(log(t) - Float64(y + z))) end
code[x_, y_, z_, t_] := N[(x * N[Log[y], $MachinePrecision] + N[(N[Log[t], $MachinePrecision] - N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, \log y, \log t - \left(y + z\right)\right)
\end{array}
Initial program 99.8%
Taylor expanded in x around 0 99.8%
+-commutative99.8%
associate--l+99.8%
+-commutative99.8%
associate--r-99.8%
+-commutative99.8%
associate-+r-99.8%
fma-neg99.8%
associate-+r-99.8%
+-commutative99.8%
sub-neg99.8%
log-rec99.8%
distribute-neg-in99.8%
+-commutative99.8%
log-rec99.8%
remove-double-neg99.8%
+-commutative99.8%
sub-neg99.8%
Simplified99.8%
Final simplification99.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ (log t) (* x (log y)))))
(if (<= x -1.65e+96)
(- t_1 y)
(if (<= x 4.8e-15) (- (log t) (+ y z)) (- t_1 z)))))
double code(double x, double y, double z, double t) {
double t_1 = log(t) + (x * log(y));
double tmp;
if (x <= -1.65e+96) {
tmp = t_1 - y;
} else if (x <= 4.8e-15) {
tmp = log(t) - (y + z);
} else {
tmp = 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 = log(t) + (x * log(y))
if (x <= (-1.65d+96)) then
tmp = t_1 - y
else if (x <= 4.8d-15) then
tmp = log(t) - (y + z)
else
tmp = t_1 - z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = Math.log(t) + (x * Math.log(y));
double tmp;
if (x <= -1.65e+96) {
tmp = t_1 - y;
} else if (x <= 4.8e-15) {
tmp = Math.log(t) - (y + z);
} else {
tmp = t_1 - z;
}
return tmp;
}
def code(x, y, z, t): t_1 = math.log(t) + (x * math.log(y)) tmp = 0 if x <= -1.65e+96: tmp = t_1 - y elif x <= 4.8e-15: tmp = math.log(t) - (y + z) else: tmp = t_1 - z return tmp
function code(x, y, z, t) t_1 = Float64(log(t) + Float64(x * log(y))) tmp = 0.0 if (x <= -1.65e+96) tmp = Float64(t_1 - y); elseif (x <= 4.8e-15) tmp = Float64(log(t) - Float64(y + z)); else tmp = Float64(t_1 - z); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = log(t) + (x * log(y)); tmp = 0.0; if (x <= -1.65e+96) tmp = t_1 - y; elseif (x <= 4.8e-15) tmp = log(t) - (y + z); else tmp = t_1 - z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[Log[t], $MachinePrecision] + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.65e+96], N[(t$95$1 - y), $MachinePrecision], If[LessEqual[x, 4.8e-15], N[(N[Log[t], $MachinePrecision] - N[(y + z), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log t + x \cdot \log y\\
\mathbf{if}\;x \leq -1.65 \cdot 10^{+96}:\\
\;\;\;\;t\_1 - y\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-15}:\\
\;\;\;\;\log t - \left(y + z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 - z\\
\end{array}
\end{array}
if x < -1.64999999999999992e96Initial program 99.6%
Taylor expanded in z around 0 88.3%
if -1.64999999999999992e96 < x < 4.7999999999999999e-15Initial program 100.0%
Taylor expanded in x around 0 96.0%
if 4.7999999999999999e-15 < x Initial program 99.6%
Taylor expanded in y around 0 93.4%
Final simplification94.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (log y))))
(if (<= x -3.75e+96)
(- (+ (log t) t_1) y)
(if (<= x 4.8e-15) (- (log t) (+ y z)) (- t_1 z)))))
double code(double x, double y, double z, double t) {
double t_1 = x * log(y);
double tmp;
if (x <= -3.75e+96) {
tmp = (log(t) + t_1) - y;
} else if (x <= 4.8e-15) {
tmp = log(t) - (y + z);
} else {
tmp = 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 (x <= (-3.75d+96)) then
tmp = (log(t) + t_1) - y
else if (x <= 4.8d-15) then
tmp = log(t) - (y + z)
else
tmp = 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 (x <= -3.75e+96) {
tmp = (Math.log(t) + t_1) - y;
} else if (x <= 4.8e-15) {
tmp = Math.log(t) - (y + z);
} else {
tmp = t_1 - z;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * math.log(y) tmp = 0 if x <= -3.75e+96: tmp = (math.log(t) + t_1) - y elif x <= 4.8e-15: tmp = math.log(t) - (y + z) else: tmp = t_1 - z return tmp
function code(x, y, z, t) t_1 = Float64(x * log(y)) tmp = 0.0 if (x <= -3.75e+96) tmp = Float64(Float64(log(t) + t_1) - y); elseif (x <= 4.8e-15) tmp = Float64(log(t) - Float64(y + z)); else tmp = 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 (x <= -3.75e+96) tmp = (log(t) + t_1) - y; elseif (x <= 4.8e-15) tmp = log(t) - (y + z); else tmp = 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[x, -3.75e+96], N[(N[(N[Log[t], $MachinePrecision] + t$95$1), $MachinePrecision] - y), $MachinePrecision], If[LessEqual[x, 4.8e-15], N[(N[Log[t], $MachinePrecision] - N[(y + z), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;x \leq -3.75 \cdot 10^{+96}:\\
\;\;\;\;\left(\log t + t\_1\right) - y\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-15}:\\
\;\;\;\;\log t - \left(y + z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 - z\\
\end{array}
\end{array}
if x < -3.7499999999999998e96Initial program 99.6%
Taylor expanded in z around 0 88.3%
if -3.7499999999999998e96 < x < 4.7999999999999999e-15Initial program 100.0%
Taylor expanded in x around 0 96.0%
if 4.7999999999999999e-15 < x Initial program 99.6%
Taylor expanded in x around 0 99.6%
+-commutative99.6%
associate--l+99.6%
+-commutative99.6%
associate--r-99.6%
+-commutative99.6%
associate-+r-99.6%
fma-neg99.6%
associate-+r-99.6%
+-commutative99.6%
sub-neg99.6%
log-rec99.6%
distribute-neg-in99.6%
+-commutative99.6%
log-rec99.6%
remove-double-neg99.6%
+-commutative99.6%
sub-neg99.6%
Simplified99.6%
Taylor expanded in z around inf 92.7%
neg-mul-192.7%
Simplified92.7%
Taylor expanded in y around inf 92.7%
log-rec92.7%
associate-*r*92.7%
neg-mul-192.7%
*-commutative92.7%
Simplified92.7%
Final simplification93.8%
(FPCore (x y z t) :precision binary64 (if (<= x -7.5e+151) (fma x (log y) (- z)) (if (<= x 4.8e-15) (- (log t) (+ y z)) (- (* x (log y)) z))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -7.5e+151) {
tmp = fma(x, log(y), -z);
} else if (x <= 4.8e-15) {
tmp = log(t) - (y + z);
} else {
tmp = (x * log(y)) - z;
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (x <= -7.5e+151) tmp = fma(x, log(y), Float64(-z)); elseif (x <= 4.8e-15) tmp = Float64(log(t) - Float64(y + z)); else tmp = Float64(Float64(x * log(y)) - z); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[x, -7.5e+151], N[(x * N[Log[y], $MachinePrecision] + (-z)), $MachinePrecision], If[LessEqual[x, 4.8e-15], N[(N[Log[t], $MachinePrecision] - N[(y + z), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.5 \cdot 10^{+151}:\\
\;\;\;\;\mathsf{fma}\left(x, \log y, -z\right)\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-15}:\\
\;\;\;\;\log t - \left(y + z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \log y - z\\
\end{array}
\end{array}
if x < -7.49999999999999977e151Initial program 99.6%
Taylor expanded in x around 0 99.6%
+-commutative99.6%
associate--l+99.6%
+-commutative99.6%
associate--r-99.6%
+-commutative99.6%
associate-+r-99.6%
fma-neg99.6%
associate-+r-99.6%
+-commutative99.6%
sub-neg99.6%
log-rec99.6%
distribute-neg-in99.6%
+-commutative99.6%
log-rec99.6%
remove-double-neg99.6%
+-commutative99.6%
sub-neg99.6%
Simplified99.6%
Taylor expanded in z around inf 91.9%
neg-mul-191.9%
Simplified91.9%
if -7.49999999999999977e151 < x < 4.7999999999999999e-15Initial program 100.0%
Taylor expanded in x around 0 93.8%
if 4.7999999999999999e-15 < x Initial program 99.6%
Taylor expanded in x around 0 99.6%
+-commutative99.6%
associate--l+99.6%
+-commutative99.6%
associate--r-99.6%
+-commutative99.6%
associate-+r-99.6%
fma-neg99.6%
associate-+r-99.6%
+-commutative99.6%
sub-neg99.6%
log-rec99.6%
distribute-neg-in99.6%
+-commutative99.6%
log-rec99.6%
remove-double-neg99.6%
+-commutative99.6%
sub-neg99.6%
Simplified99.6%
Taylor expanded in z around inf 92.7%
neg-mul-192.7%
Simplified92.7%
Taylor expanded in y around inf 92.7%
log-rec92.7%
associate-*r*92.7%
neg-mul-192.7%
*-commutative92.7%
Simplified92.7%
Final simplification93.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
(let* ((t_1 (- (log t) z)) (t_2 (- (log t) y)) (t_3 (+ (* x (log y)) z)))
(if (<= x -8.6e+105)
t_3
(if (<= x -2.2e+30)
t_1
(if (<= x -2.55e-70)
t_2
(if (<= x 1.65e-236)
t_1
(if (<= x 2.5e-194)
t_2
(if (<= x 8.5e-111)
t_1
(if (<= x 3.5e-15)
t_2
(if (<= x 7000000000.0) (- z) t_3))))))))))
double code(double x, double y, double z, double t) {
double t_1 = log(t) - z;
double t_2 = log(t) - y;
double t_3 = (x * log(y)) + z;
double tmp;
if (x <= -8.6e+105) {
tmp = t_3;
} else if (x <= -2.2e+30) {
tmp = t_1;
} else if (x <= -2.55e-70) {
tmp = t_2;
} else if (x <= 1.65e-236) {
tmp = t_1;
} else if (x <= 2.5e-194) {
tmp = t_2;
} else if (x <= 8.5e-111) {
tmp = t_1;
} else if (x <= 3.5e-15) {
tmp = t_2;
} else if (x <= 7000000000.0) {
tmp = -z;
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = log(t) - z
t_2 = log(t) - y
t_3 = (x * log(y)) + z
if (x <= (-8.6d+105)) then
tmp = t_3
else if (x <= (-2.2d+30)) then
tmp = t_1
else if (x <= (-2.55d-70)) then
tmp = t_2
else if (x <= 1.65d-236) then
tmp = t_1
else if (x <= 2.5d-194) then
tmp = t_2
else if (x <= 8.5d-111) then
tmp = t_1
else if (x <= 3.5d-15) then
tmp = t_2
else if (x <= 7000000000.0d0) then
tmp = -z
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = Math.log(t) - z;
double t_2 = Math.log(t) - y;
double t_3 = (x * Math.log(y)) + z;
double tmp;
if (x <= -8.6e+105) {
tmp = t_3;
} else if (x <= -2.2e+30) {
tmp = t_1;
} else if (x <= -2.55e-70) {
tmp = t_2;
} else if (x <= 1.65e-236) {
tmp = t_1;
} else if (x <= 2.5e-194) {
tmp = t_2;
} else if (x <= 8.5e-111) {
tmp = t_1;
} else if (x <= 3.5e-15) {
tmp = t_2;
} else if (x <= 7000000000.0) {
tmp = -z;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t): t_1 = math.log(t) - z t_2 = math.log(t) - y t_3 = (x * math.log(y)) + z tmp = 0 if x <= -8.6e+105: tmp = t_3 elif x <= -2.2e+30: tmp = t_1 elif x <= -2.55e-70: tmp = t_2 elif x <= 1.65e-236: tmp = t_1 elif x <= 2.5e-194: tmp = t_2 elif x <= 8.5e-111: tmp = t_1 elif x <= 3.5e-15: tmp = t_2 elif x <= 7000000000.0: tmp = -z else: tmp = t_3 return tmp
function code(x, y, z, t) t_1 = Float64(log(t) - z) t_2 = Float64(log(t) - y) t_3 = Float64(Float64(x * log(y)) + z) tmp = 0.0 if (x <= -8.6e+105) tmp = t_3; elseif (x <= -2.2e+30) tmp = t_1; elseif (x <= -2.55e-70) tmp = t_2; elseif (x <= 1.65e-236) tmp = t_1; elseif (x <= 2.5e-194) tmp = t_2; elseif (x <= 8.5e-111) tmp = t_1; elseif (x <= 3.5e-15) tmp = t_2; elseif (x <= 7000000000.0) tmp = Float64(-z); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = log(t) - z; t_2 = log(t) - y; t_3 = (x * log(y)) + z; tmp = 0.0; if (x <= -8.6e+105) tmp = t_3; elseif (x <= -2.2e+30) tmp = t_1; elseif (x <= -2.55e-70) tmp = t_2; elseif (x <= 1.65e-236) tmp = t_1; elseif (x <= 2.5e-194) tmp = t_2; elseif (x <= 8.5e-111) tmp = t_1; elseif (x <= 3.5e-15) tmp = t_2; elseif (x <= 7000000000.0) tmp = -z; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision]}, Block[{t$95$2 = N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]}, If[LessEqual[x, -8.6e+105], t$95$3, If[LessEqual[x, -2.2e+30], t$95$1, If[LessEqual[x, -2.55e-70], t$95$2, If[LessEqual[x, 1.65e-236], t$95$1, If[LessEqual[x, 2.5e-194], t$95$2, If[LessEqual[x, 8.5e-111], t$95$1, If[LessEqual[x, 3.5e-15], t$95$2, If[LessEqual[x, 7000000000.0], (-z), t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log t - z\\
t_2 := \log t - y\\
t_3 := x \cdot \log y + z\\
\mathbf{if}\;x \leq -8.6 \cdot 10^{+105}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq -2.2 \cdot 10^{+30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.55 \cdot 10^{-70}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-236}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-194}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{-111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{-15}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 7000000000:\\
\;\;\;\;-z\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if x < -8.6000000000000003e105 or 7e9 < x Initial program 99.6%
Taylor expanded in x around 0 99.6%
+-commutative99.6%
associate--l+99.6%
+-commutative99.6%
associate--r-99.6%
+-commutative99.6%
associate-+r-99.6%
fma-neg99.6%
associate-+r-99.6%
+-commutative99.6%
sub-neg99.6%
log-rec99.6%
distribute-neg-in99.6%
+-commutative99.6%
log-rec99.6%
remove-double-neg99.6%
+-commutative99.6%
sub-neg99.6%
Simplified99.6%
Taylor expanded in z around inf 88.4%
neg-mul-188.4%
Simplified88.4%
fma-undefine88.3%
add-sqr-sqrt39.7%
sqrt-unprod66.4%
sqr-neg66.4%
sqrt-unprod40.8%
add-sqr-sqrt72.6%
Applied egg-rr72.6%
if -8.6000000000000003e105 < x < -2.2e30 or -2.55000000000000013e-70 < x < 1.6500000000000001e-236 or 2.5000000000000001e-194 < x < 8.5000000000000003e-111Initial program 100.0%
Taylor expanded in z around inf 68.5%
neg-mul-168.5%
Simplified68.5%
Taylor expanded in z around 0 68.5%
neg-mul-168.5%
sub-neg68.5%
Simplified68.5%
if -2.2e30 < x < -2.55000000000000013e-70 or 1.6500000000000001e-236 < x < 2.5000000000000001e-194 or 8.5000000000000003e-111 < x < 3.5000000000000001e-15Initial program 99.9%
Taylor expanded in y around inf 79.3%
mul-1-neg79.3%
Simplified79.3%
if 3.5000000000000001e-15 < x < 7e9Initial program 100.0%
add0100.0%
flip3-+100.0%
metadata-eval100.0%
add0100.0%
pow2100.0%
metadata-eval100.0%
Applied egg-rr100.0%
clear-num100.0%
inv-pow100.0%
sub0-neg100.0%
mul0-rgt100.0%
sub-neg100.0%
--rgt-identity100.0%
clear-num100.0%
pow-div100.0%
metadata-eval100.0%
pow1100.0%
Applied egg-rr100.0%
Taylor expanded in z around inf 100.0%
neg-mul-1100.0%
Simplified100.0%
Final simplification72.6%
(FPCore (x y z t) :precision binary64 (if (or (<= x -5.5e+153) (not (<= x 2.7e+84))) (+ (* x (log y)) z) (- (log t) (+ y z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -5.5e+153) || !(x <= 2.7e+84)) {
tmp = (x * log(y)) + z;
} 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 <= (-5.5d+153)) .or. (.not. (x <= 2.7d+84))) then
tmp = (x * log(y)) + z
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 <= -5.5e+153) || !(x <= 2.7e+84)) {
tmp = (x * Math.log(y)) + z;
} else {
tmp = Math.log(t) - (y + z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -5.5e+153) or not (x <= 2.7e+84): tmp = (x * math.log(y)) + z else: tmp = math.log(t) - (y + z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -5.5e+153) || !(x <= 2.7e+84)) tmp = Float64(Float64(x * log(y)) + z); 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 <= -5.5e+153) || ~((x <= 2.7e+84))) tmp = (x * log(y)) + z; else tmp = log(t) - (y + z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -5.5e+153], N[Not[LessEqual[x, 2.7e+84]], $MachinePrecision]], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision], N[(N[Log[t], $MachinePrecision] - N[(y + z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \cdot 10^{+153} \lor \neg \left(x \leq 2.7 \cdot 10^{+84}\right):\\
\;\;\;\;x \cdot \log y + z\\
\mathbf{else}:\\
\;\;\;\;\log t - \left(y + z\right)\\
\end{array}
\end{array}
if x < -5.5000000000000003e153 or 2.7e84 < x Initial program 99.6%
Taylor expanded in x around 0 99.6%
+-commutative99.6%
associate--l+99.6%
+-commutative99.6%
associate--r-99.6%
+-commutative99.6%
associate-+r-99.6%
fma-neg99.6%
associate-+r-99.6%
+-commutative99.6%
sub-neg99.6%
log-rec99.6%
distribute-neg-in99.6%
+-commutative99.6%
log-rec99.6%
remove-double-neg99.6%
+-commutative99.6%
sub-neg99.6%
Simplified99.6%
Taylor expanded in z around inf 96.2%
neg-mul-196.2%
Simplified96.2%
fma-undefine96.2%
add-sqr-sqrt41.5%
sqrt-unprod72.5%
sqr-neg72.5%
sqrt-unprod47.0%
add-sqr-sqrt81.8%
Applied egg-rr81.8%
if -5.5000000000000003e153 < x < 2.7e84Initial program 99.9%
Taylor expanded in x around 0 90.7%
Final simplification87.8%
(FPCore (x y z t) :precision binary64 (if (or (<= x -9e+151) (not (<= x 4.8e-15))) (- (* x (log y)) z) (- (log t) (+ y z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -9e+151) || !(x <= 4.8e-15)) {
tmp = (x * log(y)) - z;
} 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 <= (-9d+151)) .or. (.not. (x <= 4.8d-15))) then
tmp = (x * log(y)) - z
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 <= -9e+151) || !(x <= 4.8e-15)) {
tmp = (x * Math.log(y)) - z;
} else {
tmp = Math.log(t) - (y + z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -9e+151) or not (x <= 4.8e-15): tmp = (x * math.log(y)) - z else: tmp = math.log(t) - (y + z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -9e+151) || !(x <= 4.8e-15)) tmp = Float64(Float64(x * log(y)) - z); 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 <= -9e+151) || ~((x <= 4.8e-15))) tmp = (x * log(y)) - z; else tmp = log(t) - (y + z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -9e+151], N[Not[LessEqual[x, 4.8e-15]], $MachinePrecision]], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision], N[(N[Log[t], $MachinePrecision] - N[(y + z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9 \cdot 10^{+151} \lor \neg \left(x \leq 4.8 \cdot 10^{-15}\right):\\
\;\;\;\;x \cdot \log y - z\\
\mathbf{else}:\\
\;\;\;\;\log t - \left(y + z\right)\\
\end{array}
\end{array}
if x < -8.9999999999999997e151 or 4.7999999999999999e-15 < x Initial program 99.6%
Taylor expanded in x around 0 99.6%
+-commutative99.6%
associate--l+99.6%
+-commutative99.6%
associate--r-99.6%
+-commutative99.6%
associate-+r-99.6%
fma-neg99.6%
associate-+r-99.6%
+-commutative99.6%
sub-neg99.6%
log-rec99.6%
distribute-neg-in99.6%
+-commutative99.6%
log-rec99.6%
remove-double-neg99.6%
+-commutative99.6%
sub-neg99.6%
Simplified99.6%
Taylor expanded in z around inf 92.4%
neg-mul-192.4%
Simplified92.4%
Taylor expanded in y around inf 92.4%
log-rec92.4%
associate-*r*92.4%
neg-mul-192.4%
*-commutative92.4%
Simplified92.4%
if -8.9999999999999997e151 < x < 4.7999999999999999e-15Initial program 100.0%
Taylor expanded in x around 0 93.8%
Final simplification93.3%
(FPCore (x y z t) :precision binary64 (if (<= y 3.8e-49) (- z) (if (<= y 2.1e-13) (+ (log t) z) (if (<= y 2e+59) (- z) (- y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 3.8e-49) {
tmp = -z;
} else if (y <= 2.1e-13) {
tmp = log(t) + z;
} else if (y <= 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 <= 3.8d-49) then
tmp = -z
else if (y <= 2.1d-13) then
tmp = log(t) + z
else if (y <= 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 <= 3.8e-49) {
tmp = -z;
} else if (y <= 2.1e-13) {
tmp = Math.log(t) + z;
} else if (y <= 2e+59) {
tmp = -z;
} else {
tmp = -y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 3.8e-49: tmp = -z elif y <= 2.1e-13: tmp = math.log(t) + z elif y <= 2e+59: tmp = -z else: tmp = -y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 3.8e-49) tmp = Float64(-z); elseif (y <= 2.1e-13) tmp = Float64(log(t) + z); elseif (y <= 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 <= 3.8e-49) tmp = -z; elseif (y <= 2.1e-13) tmp = log(t) + z; elseif (y <= 2e+59) tmp = -z; else tmp = -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 3.8e-49], (-z), If[LessEqual[y, 2.1e-13], N[(N[Log[t], $MachinePrecision] + z), $MachinePrecision], If[LessEqual[y, 2e+59], (-z), (-y)]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.8 \cdot 10^{-49}:\\
\;\;\;\;-z\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{-13}:\\
\;\;\;\;\log t + z\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+59}:\\
\;\;\;\;-z\\
\mathbf{else}:\\
\;\;\;\;-y\\
\end{array}
\end{array}
if y < 3.7999999999999997e-49 or 2.09999999999999989e-13 < y < 1.99999999999999994e59Initial program 99.8%
add099.8%
flip3-+37.8%
metadata-eval37.8%
add037.8%
pow237.8%
metadata-eval37.8%
Applied egg-rr37.8%
clear-num37.8%
inv-pow37.8%
sub0-neg37.8%
mul0-rgt37.8%
sub-neg37.8%
--rgt-identity37.8%
clear-num37.8%
pow-div99.7%
metadata-eval99.7%
pow199.7%
Applied egg-rr99.7%
Taylor expanded in z around inf 41.1%
neg-mul-141.1%
Simplified41.1%
if 3.7999999999999997e-49 < y < 2.09999999999999989e-13Initial program 100.0%
Taylor expanded in z around inf 60.3%
neg-mul-160.3%
Simplified60.3%
*-un-lft-identity60.3%
add-sqr-sqrt48.3%
sqrt-unprod55.3%
sqr-neg55.3%
sqrt-unprod12.4%
add-sqr-sqrt47.5%
Applied egg-rr47.5%
*-lft-identity47.5%
+-commutative47.5%
Simplified47.5%
if 1.99999999999999994e59 < y Initial program 99.8%
add099.8%
flip3-+40.9%
metadata-eval40.9%
add040.9%
pow240.9%
metadata-eval40.9%
Applied egg-rr40.9%
clear-num40.9%
inv-pow40.9%
sub0-neg40.9%
mul0-rgt40.9%
sub-neg40.9%
--rgt-identity40.9%
clear-num40.9%
pow-div99.8%
metadata-eval99.8%
pow199.8%
Applied egg-rr99.8%
Taylor expanded in y around inf 61.6%
neg-mul-161.6%
Simplified61.6%
Final simplification50.0%
(FPCore (x y z t) :precision binary64 (if (<= y 1.8e-49) (- z) (if (<= y 6.2e-13) (log t) (if (<= y 1.02e+57) (- z) (- y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 1.8e-49) {
tmp = -z;
} else if (y <= 6.2e-13) {
tmp = log(t);
} else if (y <= 1.02e+57) {
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 <= 1.8d-49) then
tmp = -z
else if (y <= 6.2d-13) then
tmp = log(t)
else if (y <= 1.02d+57) 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 <= 1.8e-49) {
tmp = -z;
} else if (y <= 6.2e-13) {
tmp = Math.log(t);
} else if (y <= 1.02e+57) {
tmp = -z;
} else {
tmp = -y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 1.8e-49: tmp = -z elif y <= 6.2e-13: tmp = math.log(t) elif y <= 1.02e+57: tmp = -z else: tmp = -y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 1.8e-49) tmp = Float64(-z); elseif (y <= 6.2e-13) tmp = log(t); elseif (y <= 1.02e+57) tmp = Float64(-z); else tmp = Float64(-y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 1.8e-49) tmp = -z; elseif (y <= 6.2e-13) tmp = log(t); elseif (y <= 1.02e+57) tmp = -z; else tmp = -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 1.8e-49], (-z), If[LessEqual[y, 6.2e-13], N[Log[t], $MachinePrecision], If[LessEqual[y, 1.02e+57], (-z), (-y)]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.8 \cdot 10^{-49}:\\
\;\;\;\;-z\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-13}:\\
\;\;\;\;\log t\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{+57}:\\
\;\;\;\;-z\\
\mathbf{else}:\\
\;\;\;\;-y\\
\end{array}
\end{array}
if y < 1.79999999999999985e-49 or 6.1999999999999998e-13 < y < 1.02e57Initial program 99.8%
add099.8%
flip3-+37.8%
metadata-eval37.8%
add037.8%
pow237.8%
metadata-eval37.8%
Applied egg-rr37.8%
clear-num37.8%
inv-pow37.8%
sub0-neg37.8%
mul0-rgt37.8%
sub-neg37.8%
--rgt-identity37.8%
clear-num37.8%
pow-div99.7%
metadata-eval99.7%
pow199.7%
Applied egg-rr99.7%
Taylor expanded in z around inf 41.1%
neg-mul-141.1%
Simplified41.1%
if 1.79999999999999985e-49 < y < 6.1999999999999998e-13Initial program 100.0%
Taylor expanded in z around inf 60.3%
neg-mul-160.3%
Simplified60.3%
Taylor expanded in z around 0 47.4%
if 1.02e57 < y Initial program 99.8%
add099.8%
flip3-+40.9%
metadata-eval40.9%
add040.9%
pow240.9%
metadata-eval40.9%
Applied egg-rr40.9%
clear-num40.9%
inv-pow40.9%
sub0-neg40.9%
mul0-rgt40.9%
sub-neg40.9%
--rgt-identity40.9%
clear-num40.9%
pow-div99.8%
metadata-eval99.8%
pow199.8%
Applied egg-rr99.8%
Taylor expanded in y around inf 61.6%
neg-mul-161.6%
Simplified61.6%
Final simplification50.0%
(FPCore (x y z t) :precision binary64 (if (<= y 5.3e+57) (+ (log t) (- y z)) (- (log t) y)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 5.3e+57) {
tmp = log(t) + (y - 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 <= 5.3d+57) then
tmp = log(t) + (y - 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 <= 5.3e+57) {
tmp = Math.log(t) + (y - z);
} else {
tmp = Math.log(t) - y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 5.3e+57: tmp = math.log(t) + (y - z) else: tmp = math.log(t) - y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 5.3e+57) tmp = Float64(log(t) + Float64(y - z)); else tmp = Float64(log(t) - y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 5.3e+57) tmp = log(t) + (y - z); else tmp = log(t) - y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 5.3e+57], N[(N[Log[t], $MachinePrecision] + N[(y - z), $MachinePrecision]), $MachinePrecision], N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 5.3 \cdot 10^{+57}:\\
\;\;\;\;\log t + \left(y - z\right)\\
\mathbf{else}:\\
\;\;\;\;\log t - y\\
\end{array}
\end{array}
if y < 5.29999999999999986e57Initial program 99.8%
+-commutative99.8%
add-log-exp25.0%
sum-log25.0%
sub-neg25.0%
sub-neg25.0%
associate-+r+25.0%
sub-neg25.0%
exp-sum23.6%
*-commutative23.6%
exp-to-pow23.6%
add-sqr-sqrt0.0%
sqrt-unprod23.7%
sqr-neg23.7%
sqrt-unprod23.7%
add-sqr-sqrt23.7%
Applied egg-rr23.7%
Taylor expanded in x around 0 23.9%
log-prod23.9%
rem-log-exp57.4%
Simplified57.4%
if 5.29999999999999986e57 < y Initial program 99.8%
Taylor expanded in y around inf 61.6%
mul-1-neg61.6%
Simplified61.6%
Final simplification59.1%
(FPCore (x y z t) :precision binary64 (if (<= y 2.35e+122) (- (log t) z) (- y)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 2.35e+122) {
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 <= 2.35d+122) 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 <= 2.35e+122) {
tmp = Math.log(t) - z;
} else {
tmp = -y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 2.35e+122: tmp = math.log(t) - z else: tmp = -y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 2.35e+122) 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 <= 2.35e+122) tmp = log(t) - z; else tmp = -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 2.35e+122], N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision], (-y)]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.35 \cdot 10^{+122}:\\
\;\;\;\;\log t - z\\
\mathbf{else}:\\
\;\;\;\;-y\\
\end{array}
\end{array}
if y < 2.35000000000000012e122Initial program 99.8%
Taylor expanded in z around inf 53.4%
neg-mul-153.4%
Simplified53.4%
Taylor expanded in z around 0 53.4%
neg-mul-153.4%
sub-neg53.4%
Simplified53.4%
if 2.35000000000000012e122 < y Initial program 99.8%
add099.8%
flip3-+44.5%
metadata-eval44.5%
add044.5%
pow244.5%
metadata-eval44.5%
Applied egg-rr44.5%
clear-num44.5%
inv-pow44.5%
sub0-neg44.5%
mul0-rgt44.5%
sub-neg44.5%
--rgt-identity44.5%
clear-num44.5%
pow-div99.8%
metadata-eval99.8%
pow199.8%
Applied egg-rr99.8%
Taylor expanded in y around inf 72.4%
neg-mul-172.4%
Simplified72.4%
Final simplification59.1%
(FPCore (x y z t) :precision binary64 (if (<= y 2.15e+57) (- z) (- y)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 2.15e+57) {
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 <= 2.15d+57) 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 <= 2.15e+57) {
tmp = -z;
} else {
tmp = -y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 2.15e+57: tmp = -z else: tmp = -y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 2.15e+57) tmp = Float64(-z); else tmp = Float64(-y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 2.15e+57) tmp = -z; else tmp = -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 2.15e+57], (-z), (-y)]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.15 \cdot 10^{+57}:\\
\;\;\;\;-z\\
\mathbf{else}:\\
\;\;\;\;-y\\
\end{array}
\end{array}
if y < 2.15000000000000016e57Initial program 99.8%
add099.8%
flip3-+38.9%
metadata-eval38.9%
add038.9%
pow238.9%
metadata-eval38.9%
Applied egg-rr38.9%
clear-num38.9%
inv-pow38.9%
sub0-neg38.9%
mul0-rgt38.9%
sub-neg38.9%
--rgt-identity38.9%
clear-num38.9%
pow-div99.7%
metadata-eval99.7%
pow199.7%
Applied egg-rr99.7%
Taylor expanded in z around inf 38.1%
neg-mul-138.1%
Simplified38.1%
if 2.15000000000000016e57 < y Initial program 99.8%
add099.8%
flip3-+40.9%
metadata-eval40.9%
add040.9%
pow240.9%
metadata-eval40.9%
Applied egg-rr40.9%
clear-num40.9%
inv-pow40.9%
sub0-neg40.9%
mul0-rgt40.9%
sub-neg40.9%
--rgt-identity40.9%
clear-num40.9%
pow-div99.8%
metadata-eval99.8%
pow199.8%
Applied egg-rr99.8%
Taylor expanded in y around inf 61.6%
neg-mul-161.6%
Simplified61.6%
Final simplification47.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.8%
add099.8%
flip3-+39.7%
metadata-eval39.7%
add039.7%
pow239.7%
metadata-eval39.7%
Applied egg-rr39.7%
clear-num39.7%
inv-pow39.7%
sub0-neg39.7%
mul0-rgt39.7%
sub-neg39.7%
--rgt-identity39.7%
clear-num39.7%
pow-div99.8%
metadata-eval99.8%
pow199.8%
Applied egg-rr99.8%
Taylor expanded in y around inf 27.8%
neg-mul-127.8%
Simplified27.8%
Final simplification27.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.8%
+-commutative99.8%
add-log-exp17.4%
sum-log17.4%
sub-neg17.4%
sub-neg17.4%
associate-+r+17.4%
sub-neg17.4%
exp-sum16.1%
*-commutative16.1%
exp-to-pow16.1%
add-sqr-sqrt0.0%
sqrt-unprod14.6%
sqr-neg14.6%
sqrt-unprod14.6%
add-sqr-sqrt14.6%
Applied egg-rr14.6%
Taylor expanded in x around 0 14.8%
log-prod14.8%
add-log-exp40.0%
sub-neg40.0%
add-sqr-sqrt21.9%
sqrt-unprod16.7%
sqr-neg16.7%
sqrt-unprod5.0%
add-sqr-sqrt12.5%
Applied egg-rr12.5%
associate-+r+12.5%
+-commutative12.5%
Simplified12.5%
Taylor expanded in z around inf 2.4%
Final simplification2.4%
herbie shell --seed 2024034
(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)))