
(FPCore (x y z t a b) :precision binary64 (+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))
double code(double x, double y, double z, double t, double a, double b) {
return (((x + y) + z) - (z * log(t))) + ((a - 0.5) * b);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (((x + y) + z) - (z * log(t))) + ((a - 0.5d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (((x + y) + z) - (z * Math.log(t))) + ((a - 0.5) * b);
}
def code(x, y, z, t, a, b): return (((x + y) + z) - (z * math.log(t))) + ((a - 0.5) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(Float64(x + y) + z) - Float64(z * log(t))) + Float64(Float64(a - 0.5) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = (((x + y) + z) - (z * log(t))) + ((a - 0.5) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(x + y), $MachinePrecision] + z), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))
double code(double x, double y, double z, double t, double a, double b) {
return (((x + y) + z) - (z * log(t))) + ((a - 0.5) * b);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (((x + y) + z) - (z * log(t))) + ((a - 0.5d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (((x + y) + z) - (z * Math.log(t))) + ((a - 0.5) * b);
}
def code(x, y, z, t, a, b): return (((x + y) + z) - (z * math.log(t))) + ((a - 0.5) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(Float64(x + y) + z) - Float64(z * log(t))) + Float64(Float64(a - 0.5) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = (((x + y) + z) - (z * log(t))) + ((a - 0.5) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(x + y), $MachinePrecision] + z), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b
\end{array}
(FPCore (x y z t a b) :precision binary64 (+ (* z (- 1.0 (log t))) (+ (+ x y) (* (+ a -0.5) b))))
double code(double x, double y, double z, double t, double a, double b) {
return (z * (1.0 - log(t))) + ((x + y) + ((a + -0.5) * b));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (z * (1.0d0 - log(t))) + ((x + y) + ((a + (-0.5d0)) * b))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (z * (1.0 - Math.log(t))) + ((x + y) + ((a + -0.5) * b));
}
def code(x, y, z, t, a, b): return (z * (1.0 - math.log(t))) + ((x + y) + ((a + -0.5) * b))
function code(x, y, z, t, a, b) return Float64(Float64(z * Float64(1.0 - log(t))) + Float64(Float64(x + y) + Float64(Float64(a + -0.5) * b))) end
function tmp = code(x, y, z, t, a, b) tmp = (z * (1.0 - log(t))) + ((x + y) + ((a + -0.5) * b)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x + y), $MachinePrecision] + N[(N[(a + -0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
z \cdot \left(1 - \log t\right) + \left(\left(x + y\right) + \left(a + -0.5\right) \cdot b\right)
\end{array}
Initial program 99.9%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.9%
Simplified99.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- a 0.5))) (t_2 (+ (+ x y) t_1)))
(if (<= t_1 -5e+45)
t_2
(if (<= t_1 5e+106) (+ x (+ (* z (- 1.0 (log t))) y)) t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double t_2 = (x + y) + t_1;
double tmp;
if (t_1 <= -5e+45) {
tmp = t_2;
} else if (t_1 <= 5e+106) {
tmp = x + ((z * (1.0 - log(t))) + y);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (a - 0.5d0)
t_2 = (x + y) + t_1
if (t_1 <= (-5d+45)) then
tmp = t_2
else if (t_1 <= 5d+106) then
tmp = x + ((z * (1.0d0 - log(t))) + y)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double t_2 = (x + y) + t_1;
double tmp;
if (t_1 <= -5e+45) {
tmp = t_2;
} else if (t_1 <= 5e+106) {
tmp = x + ((z * (1.0 - Math.log(t))) + y);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (a - 0.5) t_2 = (x + y) + t_1 tmp = 0 if t_1 <= -5e+45: tmp = t_2 elif t_1 <= 5e+106: tmp = x + ((z * (1.0 - math.log(t))) + y) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(a - 0.5)) t_2 = Float64(Float64(x + y) + t_1) tmp = 0.0 if (t_1 <= -5e+45) tmp = t_2; elseif (t_1 <= 5e+106) tmp = Float64(x + Float64(Float64(z * Float64(1.0 - log(t))) + y)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (a - 0.5); t_2 = (x + y) + t_1; tmp = 0.0; if (t_1 <= -5e+45) tmp = t_2; elseif (t_1 <= 5e+106) tmp = x + ((z * (1.0 - log(t))) + y); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + y), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+45], t$95$2, If[LessEqual[t$95$1, 5e+106], N[(x + N[(N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a - 0.5\right)\\
t_2 := \left(x + y\right) + t\_1\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+45}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+106}:\\
\;\;\;\;x + \left(z \cdot \left(1 - \log t\right) + y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -5e45 or 4.9999999999999998e106 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) Initial program 100.0%
Taylor expanded in z around 0
+-lowering-+.f6492.1%
Simplified92.1%
if -5e45 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 4.9999999999999998e106Initial program 99.8%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in b around 0
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
log-lowering-log.f6490.5%
Simplified90.5%
Final simplification91.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (log t))) (t_2 (* b (- a 0.5))))
(if (<= z -5.6e+94)
(+ (- z t_1) t_2)
(if (<= z 2.9e-28) (+ (+ x y) t_2) (+ (- (+ z (+ x y)) t_1) (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * log(t);
double t_2 = b * (a - 0.5);
double tmp;
if (z <= -5.6e+94) {
tmp = (z - t_1) + t_2;
} else if (z <= 2.9e-28) {
tmp = (x + y) + t_2;
} else {
tmp = ((z + (x + y)) - t_1) + (a * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * log(t)
t_2 = b * (a - 0.5d0)
if (z <= (-5.6d+94)) then
tmp = (z - t_1) + t_2
else if (z <= 2.9d-28) then
tmp = (x + y) + t_2
else
tmp = ((z + (x + y)) - t_1) + (a * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * Math.log(t);
double t_2 = b * (a - 0.5);
double tmp;
if (z <= -5.6e+94) {
tmp = (z - t_1) + t_2;
} else if (z <= 2.9e-28) {
tmp = (x + y) + t_2;
} else {
tmp = ((z + (x + y)) - t_1) + (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * math.log(t) t_2 = b * (a - 0.5) tmp = 0 if z <= -5.6e+94: tmp = (z - t_1) + t_2 elif z <= 2.9e-28: tmp = (x + y) + t_2 else: tmp = ((z + (x + y)) - t_1) + (a * b) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * log(t)) t_2 = Float64(b * Float64(a - 0.5)) tmp = 0.0 if (z <= -5.6e+94) tmp = Float64(Float64(z - t_1) + t_2); elseif (z <= 2.9e-28) tmp = Float64(Float64(x + y) + t_2); else tmp = Float64(Float64(Float64(z + Float64(x + y)) - t_1) + Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * log(t); t_2 = b * (a - 0.5); tmp = 0.0; if (z <= -5.6e+94) tmp = (z - t_1) + t_2; elseif (z <= 2.9e-28) tmp = (x + y) + t_2; else tmp = ((z + (x + y)) - t_1) + (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.6e+94], N[(N[(z - t$95$1), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[z, 2.9e-28], N[(N[(x + y), $MachinePrecision] + t$95$2), $MachinePrecision], N[(N[(N[(z + N[(x + y), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \log t\\
t_2 := b \cdot \left(a - 0.5\right)\\
\mathbf{if}\;z \leq -5.6 \cdot 10^{+94}:\\
\;\;\;\;\left(z - t\_1\right) + t\_2\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{-28}:\\
\;\;\;\;\left(x + y\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(\left(z + \left(x + y\right)\right) - t\_1\right) + a \cdot b\\
\end{array}
\end{array}
if z < -5.59999999999999997e94Initial program 99.8%
Taylor expanded in z around inf
Simplified89.8%
if -5.59999999999999997e94 < z < 2.90000000000000013e-28Initial program 100.0%
Taylor expanded in z around 0
+-lowering-+.f6498.0%
Simplified98.0%
if 2.90000000000000013e-28 < z Initial program 99.8%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6490.3%
Simplified90.3%
Final simplification94.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (log t))) (t_2 (* b (- a 0.5))))
(if (<= z -7e+109)
(+ (- z t_1) t_2)
(if (<= z 1.18e+117) (+ (+ x y) t_2) (- (+ z (+ x (* a b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * log(t);
double t_2 = b * (a - 0.5);
double tmp;
if (z <= -7e+109) {
tmp = (z - t_1) + t_2;
} else if (z <= 1.18e+117) {
tmp = (x + y) + t_2;
} else {
tmp = (z + (x + (a * b))) - t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * log(t)
t_2 = b * (a - 0.5d0)
if (z <= (-7d+109)) then
tmp = (z - t_1) + t_2
else if (z <= 1.18d+117) then
tmp = (x + y) + t_2
else
tmp = (z + (x + (a * b))) - t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * Math.log(t);
double t_2 = b * (a - 0.5);
double tmp;
if (z <= -7e+109) {
tmp = (z - t_1) + t_2;
} else if (z <= 1.18e+117) {
tmp = (x + y) + t_2;
} else {
tmp = (z + (x + (a * b))) - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * math.log(t) t_2 = b * (a - 0.5) tmp = 0 if z <= -7e+109: tmp = (z - t_1) + t_2 elif z <= 1.18e+117: tmp = (x + y) + t_2 else: tmp = (z + (x + (a * b))) - t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * log(t)) t_2 = Float64(b * Float64(a - 0.5)) tmp = 0.0 if (z <= -7e+109) tmp = Float64(Float64(z - t_1) + t_2); elseif (z <= 1.18e+117) tmp = Float64(Float64(x + y) + t_2); else tmp = Float64(Float64(z + Float64(x + Float64(a * b))) - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * log(t); t_2 = b * (a - 0.5); tmp = 0.0; if (z <= -7e+109) tmp = (z - t_1) + t_2; elseif (z <= 1.18e+117) tmp = (x + y) + t_2; else tmp = (z + (x + (a * b))) - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7e+109], N[(N[(z - t$95$1), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[z, 1.18e+117], N[(N[(x + y), $MachinePrecision] + t$95$2), $MachinePrecision], N[(N[(z + N[(x + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \log t\\
t_2 := b \cdot \left(a - 0.5\right)\\
\mathbf{if}\;z \leq -7 \cdot 10^{+109}:\\
\;\;\;\;\left(z - t\_1\right) + t\_2\\
\mathbf{elif}\;z \leq 1.18 \cdot 10^{+117}:\\
\;\;\;\;\left(x + y\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(z + \left(x + a \cdot b\right)\right) - t\_1\\
\end{array}
\end{array}
if z < -6.99999999999999966e109Initial program 99.8%
Taylor expanded in z around inf
Simplified89.8%
if -6.99999999999999966e109 < z < 1.18e117Initial program 100.0%
Taylor expanded in z around 0
+-lowering-+.f6492.5%
Simplified92.5%
if 1.18e117 < z Initial program 99.7%
+-commutativeN/A
sub-negN/A
metadata-evalN/A
associate-+r-N/A
--lowering--.f64N/A
+-lowering-+.f64N/A
metadata-evalN/A
sub-negN/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6499.7%
Applied egg-rr99.7%
Taylor expanded in y around 0
+-commutativeN/A
associate-+l+N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6490.2%
Simplified90.2%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6487.9%
Simplified87.9%
Final simplification91.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (log t))))
(if (<= (+ x y) 1e-23)
(- (+ z (+ x (* (+ a -0.5) b))) t_1)
(+ (- (+ z (+ x y)) t_1) (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * log(t);
double tmp;
if ((x + y) <= 1e-23) {
tmp = (z + (x + ((a + -0.5) * b))) - t_1;
} else {
tmp = ((z + (x + y)) - t_1) + (a * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = z * log(t)
if ((x + y) <= 1d-23) then
tmp = (z + (x + ((a + (-0.5d0)) * b))) - t_1
else
tmp = ((z + (x + y)) - t_1) + (a * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * Math.log(t);
double tmp;
if ((x + y) <= 1e-23) {
tmp = (z + (x + ((a + -0.5) * b))) - t_1;
} else {
tmp = ((z + (x + y)) - t_1) + (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * math.log(t) tmp = 0 if (x + y) <= 1e-23: tmp = (z + (x + ((a + -0.5) * b))) - t_1 else: tmp = ((z + (x + y)) - t_1) + (a * b) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * log(t)) tmp = 0.0 if (Float64(x + y) <= 1e-23) tmp = Float64(Float64(z + Float64(x + Float64(Float64(a + -0.5) * b))) - t_1); else tmp = Float64(Float64(Float64(z + Float64(x + y)) - t_1) + Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * log(t); tmp = 0.0; if ((x + y) <= 1e-23) tmp = (z + (x + ((a + -0.5) * b))) - t_1; else tmp = ((z + (x + y)) - t_1) + (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x + y), $MachinePrecision], 1e-23], N[(N[(z + N[(x + N[(N[(a + -0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(N[(z + N[(x + y), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \log t\\
\mathbf{if}\;x + y \leq 10^{-23}:\\
\;\;\;\;\left(z + \left(x + \left(a + -0.5\right) \cdot b\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(z + \left(x + y\right)\right) - t\_1\right) + a \cdot b\\
\end{array}
\end{array}
if (+.f64 x y) < 9.9999999999999996e-24Initial program 99.9%
+-commutativeN/A
sub-negN/A
metadata-evalN/A
associate-+r-N/A
--lowering--.f64N/A
+-lowering-+.f64N/A
metadata-evalN/A
sub-negN/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6499.9%
Applied egg-rr99.9%
Taylor expanded in y around 0
+-commutativeN/A
associate-+l+N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6484.8%
Simplified84.8%
if 9.9999999999999996e-24 < (+.f64 x y) Initial program 99.9%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6493.2%
Simplified93.2%
Final simplification87.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2.3e+159)
(- (+ z x) (* z (log t)))
(if (<= z 2.45e+179)
(+ (+ x y) (* b (- a 0.5)))
(+ (* z (- 1.0 (log t))) x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.3e+159) {
tmp = (z + x) - (z * log(t));
} else if (z <= 2.45e+179) {
tmp = (x + y) + (b * (a - 0.5));
} else {
tmp = (z * (1.0 - log(t))) + x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-2.3d+159)) then
tmp = (z + x) - (z * log(t))
else if (z <= 2.45d+179) then
tmp = (x + y) + (b * (a - 0.5d0))
else
tmp = (z * (1.0d0 - log(t))) + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.3e+159) {
tmp = (z + x) - (z * Math.log(t));
} else if (z <= 2.45e+179) {
tmp = (x + y) + (b * (a - 0.5));
} else {
tmp = (z * (1.0 - Math.log(t))) + x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -2.3e+159: tmp = (z + x) - (z * math.log(t)) elif z <= 2.45e+179: tmp = (x + y) + (b * (a - 0.5)) else: tmp = (z * (1.0 - math.log(t))) + x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.3e+159) tmp = Float64(Float64(z + x) - Float64(z * log(t))); elseif (z <= 2.45e+179) tmp = Float64(Float64(x + y) + Float64(b * Float64(a - 0.5))); else tmp = Float64(Float64(z * Float64(1.0 - log(t))) + x); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -2.3e+159) tmp = (z + x) - (z * log(t)); elseif (z <= 2.45e+179) tmp = (x + y) + (b * (a - 0.5)); else tmp = (z * (1.0 - log(t))) + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.3e+159], N[(N[(z + x), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.45e+179], N[(N[(x + y), $MachinePrecision] + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.3 \cdot 10^{+159}:\\
\;\;\;\;\left(z + x\right) - z \cdot \log t\\
\mathbf{elif}\;z \leq 2.45 \cdot 10^{+179}:\\
\;\;\;\;\left(x + y\right) + b \cdot \left(a - 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(1 - \log t\right) + x\\
\end{array}
\end{array}
if z < -2.29999999999999995e159Initial program 99.8%
+-commutativeN/A
sub-negN/A
metadata-evalN/A
associate-+r-N/A
--lowering--.f64N/A
+-lowering-+.f64N/A
metadata-evalN/A
sub-negN/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6499.8%
Applied egg-rr99.8%
Taylor expanded in y around 0
+-commutativeN/A
associate-+l+N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6493.6%
Simplified93.6%
Taylor expanded in x around inf
Simplified62.3%
if -2.29999999999999995e159 < z < 2.4499999999999999e179Initial program 99.9%
Taylor expanded in z around 0
+-lowering-+.f6490.4%
Simplified90.4%
if 2.4499999999999999e179 < z Initial program 99.7%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in b around 0
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
log-lowering-log.f6488.3%
Simplified88.3%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
log-lowering-log.f6482.7%
Simplified82.7%
Final simplification86.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (* z (- 1.0 (log t))) x)))
(if (<= z -1.95e+158)
t_1
(if (<= z 2.75e+178) (+ (+ x y) (* b (- a 0.5))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * (1.0 - log(t))) + x;
double tmp;
if (z <= -1.95e+158) {
tmp = t_1;
} else if (z <= 2.75e+178) {
tmp = (x + y) + (b * (a - 0.5));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (z * (1.0d0 - log(t))) + x
if (z <= (-1.95d+158)) then
tmp = t_1
else if (z <= 2.75d+178) then
tmp = (x + y) + (b * (a - 0.5d0))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * (1.0 - Math.log(t))) + x;
double tmp;
if (z <= -1.95e+158) {
tmp = t_1;
} else if (z <= 2.75e+178) {
tmp = (x + y) + (b * (a - 0.5));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z * (1.0 - math.log(t))) + x tmp = 0 if z <= -1.95e+158: tmp = t_1 elif z <= 2.75e+178: tmp = (x + y) + (b * (a - 0.5)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * Float64(1.0 - log(t))) + x) tmp = 0.0 if (z <= -1.95e+158) tmp = t_1; elseif (z <= 2.75e+178) tmp = Float64(Float64(x + y) + Float64(b * Float64(a - 0.5))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z * (1.0 - log(t))) + x; tmp = 0.0; if (z <= -1.95e+158) tmp = t_1; elseif (z <= 2.75e+178) tmp = (x + y) + (b * (a - 0.5)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -1.95e+158], t$95$1, If[LessEqual[z, 2.75e+178], N[(N[(x + y), $MachinePrecision] + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(1 - \log t\right) + x\\
\mathbf{if}\;z \leq -1.95 \cdot 10^{+158}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.75 \cdot 10^{+178}:\\
\;\;\;\;\left(x + y\right) + b \cdot \left(a - 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.95e158 or 2.7500000000000001e178 < z Initial program 99.8%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in b around 0
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
log-lowering-log.f6477.7%
Simplified77.7%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
log-lowering-log.f6471.5%
Simplified71.5%
if -1.95e158 < z < 2.7500000000000001e178Initial program 99.9%
Taylor expanded in z around 0
+-lowering-+.f6490.4%
Simplified90.4%
Final simplification86.2%
(FPCore (x y z t a b) :precision binary64 (if (<= z -3.2e+227) (- z (* z (log t))) (if (<= z 1.85e+182) (+ (+ x y) (* b (- a 0.5))) (* z (- 1.0 (log t))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3.2e+227) {
tmp = z - (z * log(t));
} else if (z <= 1.85e+182) {
tmp = (x + y) + (b * (a - 0.5));
} else {
tmp = z * (1.0 - log(t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-3.2d+227)) then
tmp = z - (z * log(t))
else if (z <= 1.85d+182) then
tmp = (x + y) + (b * (a - 0.5d0))
else
tmp = z * (1.0d0 - log(t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3.2e+227) {
tmp = z - (z * Math.log(t));
} else if (z <= 1.85e+182) {
tmp = (x + y) + (b * (a - 0.5));
} else {
tmp = z * (1.0 - Math.log(t));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -3.2e+227: tmp = z - (z * math.log(t)) elif z <= 1.85e+182: tmp = (x + y) + (b * (a - 0.5)) else: tmp = z * (1.0 - math.log(t)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3.2e+227) tmp = Float64(z - Float64(z * log(t))); elseif (z <= 1.85e+182) tmp = Float64(Float64(x + y) + Float64(b * Float64(a - 0.5))); else tmp = Float64(z * Float64(1.0 - log(t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -3.2e+227) tmp = z - (z * log(t)); elseif (z <= 1.85e+182) tmp = (x + y) + (b * (a - 0.5)); else tmp = z * (1.0 - log(t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3.2e+227], N[(z - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.85e+182], N[(N[(x + y), $MachinePrecision] + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.2 \cdot 10^{+227}:\\
\;\;\;\;z - z \cdot \log t\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{+182}:\\
\;\;\;\;\left(x + y\right) + b \cdot \left(a - 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(1 - \log t\right)\\
\end{array}
\end{array}
if z < -3.19999999999999988e227Initial program 99.9%
+-commutativeN/A
sub-negN/A
metadata-evalN/A
associate-+r-N/A
--lowering--.f64N/A
+-lowering-+.f64N/A
metadata-evalN/A
sub-negN/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6499.9%
Applied egg-rr99.9%
Taylor expanded in z around inf
Simplified77.9%
if -3.19999999999999988e227 < z < 1.84999999999999988e182Initial program 99.9%
Taylor expanded in z around 0
+-lowering-+.f6487.6%
Simplified87.6%
if 1.84999999999999988e182 < z Initial program 99.7%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
log-lowering-log.f6472.3%
Simplified72.3%
Final simplification85.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (- 1.0 (log t)))))
(if (<= z -1.25e+232)
t_1
(if (<= z 2.45e+181) (+ (+ x y) (* b (- a 0.5))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (1.0 - log(t));
double tmp;
if (z <= -1.25e+232) {
tmp = t_1;
} else if (z <= 2.45e+181) {
tmp = (x + y) + (b * (a - 0.5));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = z * (1.0d0 - log(t))
if (z <= (-1.25d+232)) then
tmp = t_1
else if (z <= 2.45d+181) then
tmp = (x + y) + (b * (a - 0.5d0))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (1.0 - Math.log(t));
double tmp;
if (z <= -1.25e+232) {
tmp = t_1;
} else if (z <= 2.45e+181) {
tmp = (x + y) + (b * (a - 0.5));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (1.0 - math.log(t)) tmp = 0 if z <= -1.25e+232: tmp = t_1 elif z <= 2.45e+181: tmp = (x + y) + (b * (a - 0.5)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(1.0 - log(t))) tmp = 0.0 if (z <= -1.25e+232) tmp = t_1; elseif (z <= 2.45e+181) tmp = Float64(Float64(x + y) + Float64(b * Float64(a - 0.5))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (1.0 - log(t)); tmp = 0.0; if (z <= -1.25e+232) tmp = t_1; elseif (z <= 2.45e+181) tmp = (x + y) + (b * (a - 0.5)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.25e+232], t$95$1, If[LessEqual[z, 2.45e+181], N[(N[(x + y), $MachinePrecision] + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(1 - \log t\right)\\
\mathbf{if}\;z \leq -1.25 \cdot 10^{+232}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.45 \cdot 10^{+181}:\\
\;\;\;\;\left(x + y\right) + b \cdot \left(a - 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.24999999999999997e232 or 2.44999999999999991e181 < z Initial program 99.7%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
log-lowering-log.f6475.3%
Simplified75.3%
if -1.24999999999999997e232 < z < 2.44999999999999991e181Initial program 99.9%
Taylor expanded in z around 0
+-lowering-+.f6487.3%
Simplified87.3%
Final simplification85.5%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* b (- a 0.5))) (t_2 (+ x t_1))) (if (<= t_1 -5e+45) t_2 (if (<= t_1 4e+85) (+ x y) t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double t_2 = x + t_1;
double tmp;
if (t_1 <= -5e+45) {
tmp = t_2;
} else if (t_1 <= 4e+85) {
tmp = x + y;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (a - 0.5d0)
t_2 = x + t_1
if (t_1 <= (-5d+45)) then
tmp = t_2
else if (t_1 <= 4d+85) then
tmp = x + y
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double t_2 = x + t_1;
double tmp;
if (t_1 <= -5e+45) {
tmp = t_2;
} else if (t_1 <= 4e+85) {
tmp = x + y;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (a - 0.5) t_2 = x + t_1 tmp = 0 if t_1 <= -5e+45: tmp = t_2 elif t_1 <= 4e+85: tmp = x + y else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(a - 0.5)) t_2 = Float64(x + t_1) tmp = 0.0 if (t_1 <= -5e+45) tmp = t_2; elseif (t_1 <= 4e+85) tmp = Float64(x + y); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (a - 0.5); t_2 = x + t_1; tmp = 0.0; if (t_1 <= -5e+45) tmp = t_2; elseif (t_1 <= 4e+85) tmp = x + y; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + t$95$1), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+45], t$95$2, If[LessEqual[t$95$1, 4e+85], N[(x + y), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a - 0.5\right)\\
t_2 := x + t\_1\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+45}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+85}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -5e45 or 4.0000000000000001e85 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) Initial program 100.0%
Taylor expanded in x around inf
Simplified83.4%
if -5e45 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 4.0000000000000001e85Initial program 99.8%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in b around 0
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
log-lowering-log.f6491.8%
Simplified91.8%
Taylor expanded in z around 0
+-lowering-+.f6456.3%
Simplified56.3%
Final simplification71.1%
(FPCore (x y z t a b) :precision binary64 (if (<= (+ x y) -2e+45) (+ x (* a b)) (if (<= (+ x y) 5e+166) (* (+ a -0.5) b) (+ x y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x + y) <= -2e+45) {
tmp = x + (a * b);
} else if ((x + y) <= 5e+166) {
tmp = (a + -0.5) * b;
} else {
tmp = x + y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((x + y) <= (-2d+45)) then
tmp = x + (a * b)
else if ((x + y) <= 5d+166) then
tmp = (a + (-0.5d0)) * b
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x + y) <= -2e+45) {
tmp = x + (a * b);
} else if ((x + y) <= 5e+166) {
tmp = (a + -0.5) * b;
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (x + y) <= -2e+45: tmp = x + (a * b) elif (x + y) <= 5e+166: tmp = (a + -0.5) * b else: tmp = x + y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(x + y) <= -2e+45) tmp = Float64(x + Float64(a * b)); elseif (Float64(x + y) <= 5e+166) tmp = Float64(Float64(a + -0.5) * b); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((x + y) <= -2e+45) tmp = x + (a * b); elseif ((x + y) <= 5e+166) tmp = (a + -0.5) * b; else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(x + y), $MachinePrecision], -2e+45], N[(x + N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x + y), $MachinePrecision], 5e+166], N[(N[(a + -0.5), $MachinePrecision] * b), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x + y \leq -2 \cdot 10^{+45}:\\
\;\;\;\;x + a \cdot b\\
\mathbf{elif}\;x + y \leq 5 \cdot 10^{+166}:\\
\;\;\;\;\left(a + -0.5\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if (+.f64 x y) < -1.9999999999999999e45Initial program 99.9%
Taylor expanded in x around inf
Simplified60.3%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6448.3%
Simplified48.3%
if -1.9999999999999999e45 < (+.f64 x y) < 5.0000000000000002e166Initial program 99.8%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in b around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6456.7%
Simplified56.7%
if 5.0000000000000002e166 < (+.f64 x y) Initial program 100.0%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval100.0%
Simplified100.0%
Taylor expanded in b around 0
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
log-lowering-log.f6477.4%
Simplified77.4%
Taylor expanded in z around 0
+-lowering-+.f6472.0%
Simplified72.0%
Final simplification55.2%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* (+ a -0.5) b))) (if (<= b -7.6e+81) t_1 (if (<= b 9e+43) (+ x y) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a + -0.5) * b;
double tmp;
if (b <= -7.6e+81) {
tmp = t_1;
} else if (b <= 9e+43) {
tmp = x + y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (a + (-0.5d0)) * b
if (b <= (-7.6d+81)) then
tmp = t_1
else if (b <= 9d+43) then
tmp = x + y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a + -0.5) * b;
double tmp;
if (b <= -7.6e+81) {
tmp = t_1;
} else if (b <= 9e+43) {
tmp = x + y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a + -0.5) * b tmp = 0 if b <= -7.6e+81: tmp = t_1 elif b <= 9e+43: tmp = x + y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a + -0.5) * b) tmp = 0.0 if (b <= -7.6e+81) tmp = t_1; elseif (b <= 9e+43) tmp = Float64(x + y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a + -0.5) * b; tmp = 0.0; if (b <= -7.6e+81) tmp = t_1; elseif (b <= 9e+43) tmp = x + y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a + -0.5), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -7.6e+81], t$95$1, If[LessEqual[b, 9e+43], N[(x + y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a + -0.5\right) \cdot b\\
\mathbf{if}\;b \leq -7.6 \cdot 10^{+81}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+43}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -7.599999999999999e81 or 9e43 < b Initial program 99.9%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6476.0%
Simplified76.0%
if -7.599999999999999e81 < b < 9e43Initial program 99.8%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around 0
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
log-lowering-log.f6485.0%
Simplified85.0%
Taylor expanded in z around 0
+-lowering-+.f6453.0%
Simplified53.0%
Final simplification63.7%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* b (- a 0.5)))) (if (<= (+ x y) 1e-99) (+ x t_1) (+ y t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double tmp;
if ((x + y) <= 1e-99) {
tmp = x + t_1;
} else {
tmp = y + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = b * (a - 0.5d0)
if ((x + y) <= 1d-99) then
tmp = x + t_1
else
tmp = y + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (a - 0.5);
double tmp;
if ((x + y) <= 1e-99) {
tmp = x + t_1;
} else {
tmp = y + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (a - 0.5) tmp = 0 if (x + y) <= 1e-99: tmp = x + t_1 else: tmp = y + t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(a - 0.5)) tmp = 0.0 if (Float64(x + y) <= 1e-99) tmp = Float64(x + t_1); else tmp = Float64(y + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (a - 0.5); tmp = 0.0; if ((x + y) <= 1e-99) tmp = x + t_1; else tmp = y + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x + y), $MachinePrecision], 1e-99], N[(x + t$95$1), $MachinePrecision], N[(y + t$95$1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a - 0.5\right)\\
\mathbf{if}\;x + y \leq 10^{-99}:\\
\;\;\;\;x + t\_1\\
\mathbf{else}:\\
\;\;\;\;y + t\_1\\
\end{array}
\end{array}
if (+.f64 x y) < 1e-99Initial program 99.9%
Taylor expanded in x around inf
Simplified60.6%
if 1e-99 < (+.f64 x y) Initial program 99.9%
Taylor expanded in y around inf
Simplified56.2%
Final simplification59.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.6e+87) (* a b) (if (<= b 1.06e+54) (+ x y) (* a b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.6e+87) {
tmp = a * b;
} else if (b <= 1.06e+54) {
tmp = x + y;
} else {
tmp = a * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.6d+87)) then
tmp = a * b
else if (b <= 1.06d+54) then
tmp = x + y
else
tmp = a * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.6e+87) {
tmp = a * b;
} else if (b <= 1.06e+54) {
tmp = x + y;
} else {
tmp = a * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.6e+87: tmp = a * b elif b <= 1.06e+54: tmp = x + y else: tmp = a * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.6e+87) tmp = Float64(a * b); elseif (b <= 1.06e+54) tmp = Float64(x + y); else tmp = Float64(a * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.6e+87) tmp = a * b; elseif (b <= 1.06e+54) tmp = x + y; else tmp = a * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.6e+87], N[(a * b), $MachinePrecision], If[LessEqual[b, 1.06e+54], N[(x + y), $MachinePrecision], N[(a * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.6 \cdot 10^{+87}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;b \leq 1.06 \cdot 10^{+54}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;a \cdot b\\
\end{array}
\end{array}
if b < -1.6e87 or 1.06e54 < b Initial program 99.9%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.9%
Simplified99.9%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6449.4%
Simplified49.4%
if -1.6e87 < b < 1.06e54Initial program 99.8%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around 0
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
log-lowering-log.f6482.9%
Simplified82.9%
Taylor expanded in z around 0
+-lowering-+.f6451.6%
Simplified51.6%
Final simplification50.6%
(FPCore (x y z t a b) :precision binary64 (if (<= x -6e+160) x (if (<= x 1.5e-150) (* a b) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -6e+160) {
tmp = x;
} else if (x <= 1.5e-150) {
tmp = a * b;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (x <= (-6d+160)) then
tmp = x
else if (x <= 1.5d-150) then
tmp = a * b
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -6e+160) {
tmp = x;
} else if (x <= 1.5e-150) {
tmp = a * b;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -6e+160: tmp = x elif x <= 1.5e-150: tmp = a * b else: tmp = y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -6e+160) tmp = x; elseif (x <= 1.5e-150) tmp = Float64(a * b); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -6e+160) tmp = x; elseif (x <= 1.5e-150) tmp = a * b; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -6e+160], x, If[LessEqual[x, 1.5e-150], N[(a * b), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6 \cdot 10^{+160}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{-150}:\\
\;\;\;\;a \cdot b\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if x < -5.9999999999999997e160Initial program 100.0%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around inf
Simplified60.3%
if -5.9999999999999997e160 < x < 1.5000000000000001e-150Initial program 99.9%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.9%
Simplified99.9%
Taylor expanded in a around inf
*-commutativeN/A
*-lowering-*.f6433.9%
Simplified33.9%
if 1.5000000000000001e-150 < x Initial program 99.9%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.9%
Simplified99.9%
Taylor expanded in y around inf
Simplified17.0%
Final simplification31.7%
(FPCore (x y z t a b) :precision binary64 (+ (+ x y) (* b (- a 0.5))))
double code(double x, double y, double z, double t, double a, double b) {
return (x + y) + (b * (a - 0.5));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x + y) + (b * (a - 0.5d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x + y) + (b * (a - 0.5));
}
def code(x, y, z, t, a, b): return (x + y) + (b * (a - 0.5))
function code(x, y, z, t, a, b) return Float64(Float64(x + y) + Float64(b * Float64(a - 0.5))) end
function tmp = code(x, y, z, t, a, b) tmp = (x + y) + (b * (a - 0.5)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + y), $MachinePrecision] + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) + b \cdot \left(a - 0.5\right)
\end{array}
Initial program 99.9%
Taylor expanded in z around 0
+-lowering-+.f6478.1%
Simplified78.1%
Final simplification78.1%
(FPCore (x y z t a b) :precision binary64 (if (<= x -2.75e-42) x y))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -2.75e-42) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (x <= (-2.75d-42)) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -2.75e-42) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -2.75e-42: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -2.75e-42) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -2.75e-42) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -2.75e-42], x, y]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.75 \cdot 10^{-42}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if x < -2.75e-42Initial program 100.0%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around inf
Simplified38.6%
if -2.75e-42 < x Initial program 99.9%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.9%
Simplified99.9%
Taylor expanded in y around inf
Simplified20.0%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 99.9%
+-commutativeN/A
associate--l+N/A
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
cancel-sign-sub-invN/A
distribute-rgt1-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
log-lowering-log.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around inf
Simplified19.9%
(FPCore (x y z t a b) :precision binary64 (+ (+ (+ x y) (/ (* (- 1.0 (pow (log t) 2.0)) z) (+ 1.0 (log t)))) (* (- a 0.5) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x + y) + (((1.0 - pow(log(t), 2.0)) * z) / (1.0 + log(t)))) + ((a - 0.5) * b);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = ((x + y) + (((1.0d0 - (log(t) ** 2.0d0)) * z) / (1.0d0 + log(t)))) + ((a - 0.5d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x + y) + (((1.0 - Math.pow(Math.log(t), 2.0)) * z) / (1.0 + Math.log(t)))) + ((a - 0.5) * b);
}
def code(x, y, z, t, a, b): return ((x + y) + (((1.0 - math.pow(math.log(t), 2.0)) * z) / (1.0 + math.log(t)))) + ((a - 0.5) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x + y) + Float64(Float64(Float64(1.0 - (log(t) ^ 2.0)) * z) / Float64(1.0 + log(t)))) + Float64(Float64(a - 0.5) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x + y) + (((1.0 - (log(t) ^ 2.0)) * z) / (1.0 + log(t)))) + ((a - 0.5) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x + y), $MachinePrecision] + N[(N[(N[(1.0 - N[Power[N[Log[t], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision] / N[(1.0 + N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x + y\right) + \frac{\left(1 - {\log t}^{2}\right) \cdot z}{1 + \log t}\right) + \left(a - 0.5\right) \cdot b
\end{array}
herbie shell --seed 2024160
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, A"
:precision binary64
:alt
(! :herbie-platform default (+ (+ (+ x y) (/ (* (- 1 (pow (log t) 2)) z) (+ 1 (log t)))) (* (- a 1/2) b)))
(+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))