
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp = code(x, y, z, t, a, b, c, i)
tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
Initial program 99.9%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (- b 0.5) (log c))) (t_2 (+ (* y i) (+ t_1 (+ z a)))))
(if (<= t_1 -1e+65)
t_2
(if (<= t_1 2e+163) (+ (* y i) (+ (* x (log y)) (+ a (+ z t)))) t_2))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (b - 0.5) * log(c);
double t_2 = (y * i) + (t_1 + (z + a));
double tmp;
if (t_1 <= -1e+65) {
tmp = t_2;
} else if (t_1 <= 2e+163) {
tmp = (y * i) + ((x * log(y)) + (a + (z + t)));
} else {
tmp = t_2;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b - 0.5d0) * log(c)
t_2 = (y * i) + (t_1 + (z + a))
if (t_1 <= (-1d+65)) then
tmp = t_2
else if (t_1 <= 2d+163) then
tmp = (y * i) + ((x * log(y)) + (a + (z + t)))
else
tmp = t_2
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (b - 0.5) * Math.log(c);
double t_2 = (y * i) + (t_1 + (z + a));
double tmp;
if (t_1 <= -1e+65) {
tmp = t_2;
} else if (t_1 <= 2e+163) {
tmp = (y * i) + ((x * Math.log(y)) + (a + (z + t)));
} else {
tmp = t_2;
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): t_1 = (b - 0.5) * math.log(c) t_2 = (y * i) + (t_1 + (z + a)) tmp = 0 if t_1 <= -1e+65: tmp = t_2 elif t_1 <= 2e+163: tmp = (y * i) + ((x * math.log(y)) + (a + (z + t))) else: tmp = t_2 return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(b - 0.5) * log(c)) t_2 = Float64(Float64(y * i) + Float64(t_1 + Float64(z + a))) tmp = 0.0 if (t_1 <= -1e+65) tmp = t_2; elseif (t_1 <= 2e+163) tmp = Float64(Float64(y * i) + Float64(Float64(x * log(y)) + Float64(a + Float64(z + t)))); else tmp = t_2; end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
t_1 = (b - 0.5) * log(c);
t_2 = (y * i) + (t_1 + (z + a));
tmp = 0.0;
if (t_1 <= -1e+65)
tmp = t_2;
elseif (t_1 <= 2e+163)
tmp = (y * i) + ((x * log(y)) + (a + (z + t)));
else
tmp = t_2;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * i), $MachinePrecision] + N[(t$95$1 + N[(z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+65], t$95$2, If[LessEqual[t$95$1, 2e+163], N[(N[(y * i), $MachinePrecision] + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := \left(b - 0.5\right) \cdot \log c\\
t_2 := y \cdot i + \left(t\_1 + \left(z + a\right)\right)\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+65}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+163}:\\
\;\;\;\;y \cdot i + \left(x \cdot \log y + \left(a + \left(z + t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c)) < -9.9999999999999999e64 or 1.9999999999999999e163 < (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c)) Initial program 99.9%
Taylor expanded in z around inf
Simplified87.8%
if -9.9999999999999999e64 < (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c)) < 1.9999999999999999e163Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6497.1%
Simplified97.1%
Taylor expanded in b around 0
associate-+r+N/A
associate-+r+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6495.0%
Simplified95.0%
Final simplification92.8%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* x (log y))) (t_2 (+ a (+ z t))) (t_3 (* (- b 0.5) (log c))))
(if (<= x -1.5e+129)
(+ (* y i) (+ t_1 t_2))
(if (<= x 2.1e+137) (+ (* y i) (+ t_3 t_2)) (+ (* y i) (+ t_1 t_3))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x * log(y);
double t_2 = a + (z + t);
double t_3 = (b - 0.5) * log(c);
double tmp;
if (x <= -1.5e+129) {
tmp = (y * i) + (t_1 + t_2);
} else if (x <= 2.1e+137) {
tmp = (y * i) + (t_3 + t_2);
} else {
tmp = (y * i) + (t_1 + t_3);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * log(y)
t_2 = a + (z + t)
t_3 = (b - 0.5d0) * log(c)
if (x <= (-1.5d+129)) then
tmp = (y * i) + (t_1 + t_2)
else if (x <= 2.1d+137) then
tmp = (y * i) + (t_3 + t_2)
else
tmp = (y * i) + (t_1 + t_3)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x * Math.log(y);
double t_2 = a + (z + t);
double t_3 = (b - 0.5) * Math.log(c);
double tmp;
if (x <= -1.5e+129) {
tmp = (y * i) + (t_1 + t_2);
} else if (x <= 2.1e+137) {
tmp = (y * i) + (t_3 + t_2);
} else {
tmp = (y * i) + (t_1 + t_3);
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): t_1 = x * math.log(y) t_2 = a + (z + t) t_3 = (b - 0.5) * math.log(c) tmp = 0 if x <= -1.5e+129: tmp = (y * i) + (t_1 + t_2) elif x <= 2.1e+137: tmp = (y * i) + (t_3 + t_2) else: tmp = (y * i) + (t_1 + t_3) return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = Float64(x * log(y)) t_2 = Float64(a + Float64(z + t)) t_3 = Float64(Float64(b - 0.5) * log(c)) tmp = 0.0 if (x <= -1.5e+129) tmp = Float64(Float64(y * i) + Float64(t_1 + t_2)); elseif (x <= 2.1e+137) tmp = Float64(Float64(y * i) + Float64(t_3 + t_2)); else tmp = Float64(Float64(y * i) + Float64(t_1 + t_3)); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
t_1 = x * log(y);
t_2 = a + (z + t);
t_3 = (b - 0.5) * log(c);
tmp = 0.0;
if (x <= -1.5e+129)
tmp = (y * i) + (t_1 + t_2);
elseif (x <= 2.1e+137)
tmp = (y * i) + (t_3 + t_2);
else
tmp = (y * i) + (t_1 + t_3);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.5e+129], N[(N[(y * i), $MachinePrecision] + N[(t$95$1 + t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.1e+137], N[(N[(y * i), $MachinePrecision] + N[(t$95$3 + t$95$2), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(t$95$1 + t$95$3), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
t_2 := a + \left(z + t\right)\\
t_3 := \left(b - 0.5\right) \cdot \log c\\
\mathbf{if}\;x \leq -1.5 \cdot 10^{+129}:\\
\;\;\;\;y \cdot i + \left(t\_1 + t\_2\right)\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{+137}:\\
\;\;\;\;y \cdot i + \left(t\_3 + t\_2\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(t\_1 + t\_3\right)\\
\end{array}
\end{array}
if x < -1.50000000000000015e129Initial program 99.8%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6499.8%
Simplified99.8%
Taylor expanded in b around 0
associate-+r+N/A
associate-+r+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6491.9%
Simplified91.9%
if -1.50000000000000015e129 < x < 2.0999999999999999e137Initial program 99.9%
Taylor expanded in x around 0
Simplified97.6%
if 2.0999999999999999e137 < x Initial program 99.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
log-lowering-log.f6493.0%
Simplified93.0%
Final simplification96.3%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (+ (+ (+ (* x (log y)) z) t) a) (* b (log c)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + (((((x * log(y)) + z) + t) + a) + (b * log(c)));
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
code = (y * i) + (((((x * log(y)) + z) + t) + a) + (b * log(c)))
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + (((((x * Math.log(y)) + z) + t) + a) + (b * Math.log(c)));
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): return (y * i) + (((((x * math.log(y)) + z) + t) + a) + (b * math.log(c)))
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(b * log(c)))) end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp = code(x, y, z, t, a, b, c, i)
tmp = (y * i) + (((((x * log(y)) + z) + t) + a) + (b * log(c)));
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
y \cdot i + \left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + b \cdot \log c\right)
\end{array}
Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6498.0%
Simplified98.0%
Final simplification98.0%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(if (<= a 3e-188)
(+ z (* y i))
(if (<= a 4.8e-22)
(+ z (* (log c) (+ b -0.5)))
(if (<= a 2.05e+68)
(+ (* y i) (* b (log c)))
(if (<= a 3e+93) (* x (+ (log y) (/ z x))) (+ a (* y i)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 3e-188) {
tmp = z + (y * i);
} else if (a <= 4.8e-22) {
tmp = z + (log(c) * (b + -0.5));
} else if (a <= 2.05e+68) {
tmp = (y * i) + (b * log(c));
} else if (a <= 3e+93) {
tmp = x * (log(y) + (z / x));
} else {
tmp = a + (y * i);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (a <= 3d-188) then
tmp = z + (y * i)
else if (a <= 4.8d-22) then
tmp = z + (log(c) * (b + (-0.5d0)))
else if (a <= 2.05d+68) then
tmp = (y * i) + (b * log(c))
else if (a <= 3d+93) then
tmp = x * (log(y) + (z / x))
else
tmp = a + (y * i)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 3e-188) {
tmp = z + (y * i);
} else if (a <= 4.8e-22) {
tmp = z + (Math.log(c) * (b + -0.5));
} else if (a <= 2.05e+68) {
tmp = (y * i) + (b * Math.log(c));
} else if (a <= 3e+93) {
tmp = x * (Math.log(y) + (z / x));
} else {
tmp = a + (y * i);
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 3e-188: tmp = z + (y * i) elif a <= 4.8e-22: tmp = z + (math.log(c) * (b + -0.5)) elif a <= 2.05e+68: tmp = (y * i) + (b * math.log(c)) elif a <= 3e+93: tmp = x * (math.log(y) + (z / x)) else: tmp = a + (y * i) return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 3e-188) tmp = Float64(z + Float64(y * i)); elseif (a <= 4.8e-22) tmp = Float64(z + Float64(log(c) * Float64(b + -0.5))); elseif (a <= 2.05e+68) tmp = Float64(Float64(y * i) + Float64(b * log(c))); elseif (a <= 3e+93) tmp = Float64(x * Float64(log(y) + Float64(z / x))); else tmp = Float64(a + Float64(y * i)); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
tmp = 0.0;
if (a <= 3e-188)
tmp = z + (y * i);
elseif (a <= 4.8e-22)
tmp = z + (log(c) * (b + -0.5));
elseif (a <= 2.05e+68)
tmp = (y * i) + (b * log(c));
elseif (a <= 3e+93)
tmp = x * (log(y) + (z / x));
else
tmp = a + (y * i);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 3e-188], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.8e-22], N[(z + N[(N[Log[c], $MachinePrecision] * N[(b + -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.05e+68], N[(N[(y * i), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3e+93], N[(x * N[(N[Log[y], $MachinePrecision] + N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;a \leq 3 \cdot 10^{-188}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{-22}:\\
\;\;\;\;z + \log c \cdot \left(b + -0.5\right)\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{+68}:\\
\;\;\;\;y \cdot i + b \cdot \log c\\
\mathbf{elif}\;a \leq 3 \cdot 10^{+93}:\\
\;\;\;\;x \cdot \left(\log y + \frac{z}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if a < 3.00000000000000017e-188Initial program 99.9%
Taylor expanded in z around inf
Simplified44.8%
if 3.00000000000000017e-188 < a < 4.80000000000000005e-22Initial program 99.9%
Taylor expanded in z around inf
Simplified72.0%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6448.8%
Simplified48.8%
if 4.80000000000000005e-22 < a < 2.05e68Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6436.8%
Simplified36.8%
if 2.05e68 < a < 2.99999999999999978e93Initial program 99.7%
Taylor expanded in y around 0
associate-+r+N/A
sum4-defineN/A
cancel-sign-subN/A
log-recN/A
unsub-negN/A
mul-1-negN/A
+-commutativeN/A
sum4-defineN/A
associate-+r+N/A
associate-+r+N/A
Simplified90.8%
Taylor expanded in z around inf
Simplified42.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f6435.6%
Simplified35.6%
if 2.99999999999999978e93 < a Initial program 99.8%
Taylor expanded in a around inf
Simplified55.0%
Final simplification46.0%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ z (* y i))))
(if (<= a 2.2e-187)
t_1
(if (<= a 2.1e-104)
(+ z (* (log c) (+ b -0.5)))
(if (<= a 1.5e+77)
t_1
(if (<= a 8e+147) (+ a (+ (* x (log y)) t)) (+ a (* y i))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = z + (y * i);
double tmp;
if (a <= 2.2e-187) {
tmp = t_1;
} else if (a <= 2.1e-104) {
tmp = z + (log(c) * (b + -0.5));
} else if (a <= 1.5e+77) {
tmp = t_1;
} else if (a <= 8e+147) {
tmp = a + ((x * log(y)) + t);
} else {
tmp = a + (y * i);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = z + (y * i)
if (a <= 2.2d-187) then
tmp = t_1
else if (a <= 2.1d-104) then
tmp = z + (log(c) * (b + (-0.5d0)))
else if (a <= 1.5d+77) then
tmp = t_1
else if (a <= 8d+147) then
tmp = a + ((x * log(y)) + t)
else
tmp = a + (y * i)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = z + (y * i);
double tmp;
if (a <= 2.2e-187) {
tmp = t_1;
} else if (a <= 2.1e-104) {
tmp = z + (Math.log(c) * (b + -0.5));
} else if (a <= 1.5e+77) {
tmp = t_1;
} else if (a <= 8e+147) {
tmp = a + ((x * Math.log(y)) + t);
} else {
tmp = a + (y * i);
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): t_1 = z + (y * i) tmp = 0 if a <= 2.2e-187: tmp = t_1 elif a <= 2.1e-104: tmp = z + (math.log(c) * (b + -0.5)) elif a <= 1.5e+77: tmp = t_1 elif a <= 8e+147: tmp = a + ((x * math.log(y)) + t) else: tmp = a + (y * i) return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = Float64(z + Float64(y * i)) tmp = 0.0 if (a <= 2.2e-187) tmp = t_1; elseif (a <= 2.1e-104) tmp = Float64(z + Float64(log(c) * Float64(b + -0.5))); elseif (a <= 1.5e+77) tmp = t_1; elseif (a <= 8e+147) tmp = Float64(a + Float64(Float64(x * log(y)) + t)); else tmp = Float64(a + Float64(y * i)); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
t_1 = z + (y * i);
tmp = 0.0;
if (a <= 2.2e-187)
tmp = t_1;
elseif (a <= 2.1e-104)
tmp = z + (log(c) * (b + -0.5));
elseif (a <= 1.5e+77)
tmp = t_1;
elseif (a <= 8e+147)
tmp = a + ((x * log(y)) + t);
else
tmp = a + (y * i);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, 2.2e-187], t$95$1, If[LessEqual[a, 2.1e-104], N[(z + N[(N[Log[c], $MachinePrecision] * N[(b + -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.5e+77], t$95$1, If[LessEqual[a, 8e+147], N[(a + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := z + y \cdot i\\
\mathbf{if}\;a \leq 2.2 \cdot 10^{-187}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-104}:\\
\;\;\;\;z + \log c \cdot \left(b + -0.5\right)\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 8 \cdot 10^{+147}:\\
\;\;\;\;a + \left(x \cdot \log y + t\right)\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if a < 2.20000000000000008e-187 or 2.09999999999999999e-104 < a < 1.4999999999999999e77Initial program 99.9%
Taylor expanded in z around inf
Simplified46.7%
if 2.20000000000000008e-187 < a < 2.09999999999999999e-104Initial program 99.9%
Taylor expanded in z around inf
Simplified58.1%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6448.9%
Simplified48.9%
if 1.4999999999999999e77 < a < 7.9999999999999998e147Initial program 99.6%
Taylor expanded in y around 0
associate-+r+N/A
sum4-defineN/A
cancel-sign-subN/A
log-recN/A
unsub-negN/A
mul-1-negN/A
+-commutativeN/A
sum4-defineN/A
associate-+r+N/A
associate-+r+N/A
Simplified97.1%
Taylor expanded in z around 0
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6486.1%
Simplified86.1%
Taylor expanded in x around inf
*-lowering-*.f64N/A
log-lowering-log.f6470.3%
Simplified70.3%
if 7.9999999999999998e147 < a Initial program 99.8%
Taylor expanded in a around inf
Simplified66.2%
Final simplification50.2%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ z (* y i))))
(if (<= a 1.8e-175)
t_1
(if (<= a 1.7e-104)
(+ a (* b (log c)))
(if (<= a 4.8e+78)
t_1
(if (<= a 2.2e+148) (+ a (+ (* x (log y)) t)) (+ a (* y i))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = z + (y * i);
double tmp;
if (a <= 1.8e-175) {
tmp = t_1;
} else if (a <= 1.7e-104) {
tmp = a + (b * log(c));
} else if (a <= 4.8e+78) {
tmp = t_1;
} else if (a <= 2.2e+148) {
tmp = a + ((x * log(y)) + t);
} else {
tmp = a + (y * i);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = z + (y * i)
if (a <= 1.8d-175) then
tmp = t_1
else if (a <= 1.7d-104) then
tmp = a + (b * log(c))
else if (a <= 4.8d+78) then
tmp = t_1
else if (a <= 2.2d+148) then
tmp = a + ((x * log(y)) + t)
else
tmp = a + (y * i)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = z + (y * i);
double tmp;
if (a <= 1.8e-175) {
tmp = t_1;
} else if (a <= 1.7e-104) {
tmp = a + (b * Math.log(c));
} else if (a <= 4.8e+78) {
tmp = t_1;
} else if (a <= 2.2e+148) {
tmp = a + ((x * Math.log(y)) + t);
} else {
tmp = a + (y * i);
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): t_1 = z + (y * i) tmp = 0 if a <= 1.8e-175: tmp = t_1 elif a <= 1.7e-104: tmp = a + (b * math.log(c)) elif a <= 4.8e+78: tmp = t_1 elif a <= 2.2e+148: tmp = a + ((x * math.log(y)) + t) else: tmp = a + (y * i) return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = Float64(z + Float64(y * i)) tmp = 0.0 if (a <= 1.8e-175) tmp = t_1; elseif (a <= 1.7e-104) tmp = Float64(a + Float64(b * log(c))); elseif (a <= 4.8e+78) tmp = t_1; elseif (a <= 2.2e+148) tmp = Float64(a + Float64(Float64(x * log(y)) + t)); else tmp = Float64(a + Float64(y * i)); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
t_1 = z + (y * i);
tmp = 0.0;
if (a <= 1.8e-175)
tmp = t_1;
elseif (a <= 1.7e-104)
tmp = a + (b * log(c));
elseif (a <= 4.8e+78)
tmp = t_1;
elseif (a <= 2.2e+148)
tmp = a + ((x * log(y)) + t);
else
tmp = a + (y * i);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, 1.8e-175], t$95$1, If[LessEqual[a, 1.7e-104], N[(a + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.8e+78], t$95$1, If[LessEqual[a, 2.2e+148], N[(a + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := z + y \cdot i\\
\mathbf{if}\;a \leq 1.8 \cdot 10^{-175}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{-104}:\\
\;\;\;\;a + b \cdot \log c\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{+148}:\\
\;\;\;\;a + \left(x \cdot \log y + t\right)\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if a < 1.8e-175 or 1.70000000000000008e-104 < a < 4.7999999999999997e78Initial program 99.9%
Taylor expanded in z around inf
Simplified46.4%
if 1.8e-175 < a < 1.70000000000000008e-104Initial program 99.8%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6494.6%
Simplified94.6%
Taylor expanded in a around inf
Simplified51.3%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6440.4%
Simplified40.4%
if 4.7999999999999997e78 < a < 2.1999999999999999e148Initial program 99.6%
Taylor expanded in y around 0
associate-+r+N/A
sum4-defineN/A
cancel-sign-subN/A
log-recN/A
unsub-negN/A
mul-1-negN/A
+-commutativeN/A
sum4-defineN/A
associate-+r+N/A
associate-+r+N/A
Simplified99.6%
Taylor expanded in z around 0
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6493.9%
Simplified93.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
log-lowering-log.f6476.6%
Simplified76.6%
if 2.1999999999999999e148 < a Initial program 99.8%
Taylor expanded in a around inf
Simplified66.2%
Final simplification49.4%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y i) (+ a (* b (log c))))))
(if (<= (- b 0.5) -2e+186)
t_1
(if (<= (- b 0.5) 5e+146)
(+ (* y i) (+ (* x (log y)) (+ a (+ z t))))
t_1))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * i) + (a + (b * log(c)));
double tmp;
if ((b - 0.5) <= -2e+186) {
tmp = t_1;
} else if ((b - 0.5) <= 5e+146) {
tmp = (y * i) + ((x * log(y)) + (a + (z + t)));
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (y * i) + (a + (b * log(c)))
if ((b - 0.5d0) <= (-2d+186)) then
tmp = t_1
else if ((b - 0.5d0) <= 5d+146) then
tmp = (y * i) + ((x * log(y)) + (a + (z + t)))
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * i) + (a + (b * Math.log(c)));
double tmp;
if ((b - 0.5) <= -2e+186) {
tmp = t_1;
} else if ((b - 0.5) <= 5e+146) {
tmp = (y * i) + ((x * Math.log(y)) + (a + (z + t)));
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): t_1 = (y * i) + (a + (b * math.log(c))) tmp = 0 if (b - 0.5) <= -2e+186: tmp = t_1 elif (b - 0.5) <= 5e+146: tmp = (y * i) + ((x * math.log(y)) + (a + (z + t))) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * i) + Float64(a + Float64(b * log(c)))) tmp = 0.0 if (Float64(b - 0.5) <= -2e+186) tmp = t_1; elseif (Float64(b - 0.5) <= 5e+146) tmp = Float64(Float64(y * i) + Float64(Float64(x * log(y)) + Float64(a + Float64(z + t)))); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
t_1 = (y * i) + (a + (b * log(c)));
tmp = 0.0;
if ((b - 0.5) <= -2e+186)
tmp = t_1;
elseif ((b - 0.5) <= 5e+146)
tmp = (y * i) + ((x * log(y)) + (a + (z + t)));
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * i), $MachinePrecision] + N[(a + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b - 0.5), $MachinePrecision], -2e+186], t$95$1, If[LessEqual[N[(b - 0.5), $MachinePrecision], 5e+146], N[(N[(y * i), $MachinePrecision] + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := y \cdot i + \left(a + b \cdot \log c\right)\\
\mathbf{if}\;b - 0.5 \leq -2 \cdot 10^{+186}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b - 0.5 \leq 5 \cdot 10^{+146}:\\
\;\;\;\;y \cdot i + \left(x \cdot \log y + \left(a + \left(z + t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (-.f64 b #s(literal 1/2 binary64)) < -1.99999999999999996e186 or 4.9999999999999999e146 < (-.f64 b #s(literal 1/2 binary64)) Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6499.9%
Simplified99.9%
Taylor expanded in a around inf
Simplified78.9%
if -1.99999999999999996e186 < (-.f64 b #s(literal 1/2 binary64)) < 4.9999999999999999e146Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6497.4%
Simplified97.4%
Taylor expanded in b around 0
associate-+r+N/A
associate-+r+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6493.2%
Simplified93.2%
Final simplification90.2%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ z (* y i))))
(if (<= a 2.7e-175)
t_1
(if (<= a 1.8e-104)
(+ a (* b (log c)))
(if (<= a 4.1e+78)
t_1
(if (<= a 5.2e+146) (+ (* x (log y)) a) (+ a (* y i))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = z + (y * i);
double tmp;
if (a <= 2.7e-175) {
tmp = t_1;
} else if (a <= 1.8e-104) {
tmp = a + (b * log(c));
} else if (a <= 4.1e+78) {
tmp = t_1;
} else if (a <= 5.2e+146) {
tmp = (x * log(y)) + a;
} else {
tmp = a + (y * i);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = z + (y * i)
if (a <= 2.7d-175) then
tmp = t_1
else if (a <= 1.8d-104) then
tmp = a + (b * log(c))
else if (a <= 4.1d+78) then
tmp = t_1
else if (a <= 5.2d+146) then
tmp = (x * log(y)) + a
else
tmp = a + (y * i)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = z + (y * i);
double tmp;
if (a <= 2.7e-175) {
tmp = t_1;
} else if (a <= 1.8e-104) {
tmp = a + (b * Math.log(c));
} else if (a <= 4.1e+78) {
tmp = t_1;
} else if (a <= 5.2e+146) {
tmp = (x * Math.log(y)) + a;
} else {
tmp = a + (y * i);
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): t_1 = z + (y * i) tmp = 0 if a <= 2.7e-175: tmp = t_1 elif a <= 1.8e-104: tmp = a + (b * math.log(c)) elif a <= 4.1e+78: tmp = t_1 elif a <= 5.2e+146: tmp = (x * math.log(y)) + a else: tmp = a + (y * i) return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = Float64(z + Float64(y * i)) tmp = 0.0 if (a <= 2.7e-175) tmp = t_1; elseif (a <= 1.8e-104) tmp = Float64(a + Float64(b * log(c))); elseif (a <= 4.1e+78) tmp = t_1; elseif (a <= 5.2e+146) tmp = Float64(Float64(x * log(y)) + a); else tmp = Float64(a + Float64(y * i)); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
t_1 = z + (y * i);
tmp = 0.0;
if (a <= 2.7e-175)
tmp = t_1;
elseif (a <= 1.8e-104)
tmp = a + (b * log(c));
elseif (a <= 4.1e+78)
tmp = t_1;
elseif (a <= 5.2e+146)
tmp = (x * log(y)) + a;
else
tmp = a + (y * i);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, 2.7e-175], t$95$1, If[LessEqual[a, 1.8e-104], N[(a + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.1e+78], t$95$1, If[LessEqual[a, 5.2e+146], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := z + y \cdot i\\
\mathbf{if}\;a \leq 2.7 \cdot 10^{-175}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-104}:\\
\;\;\;\;a + b \cdot \log c\\
\mathbf{elif}\;a \leq 4.1 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{+146}:\\
\;\;\;\;x \cdot \log y + a\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if a < 2.69999999999999999e-175 or 1.7999999999999999e-104 < a < 4.0999999999999997e78Initial program 99.9%
Taylor expanded in z around inf
Simplified46.4%
if 2.69999999999999999e-175 < a < 1.7999999999999999e-104Initial program 99.8%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6494.6%
Simplified94.6%
Taylor expanded in a around inf
Simplified51.3%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6440.4%
Simplified40.4%
if 4.0999999999999997e78 < a < 5.20000000000000028e146Initial program 99.6%
Taylor expanded in y around 0
associate-+r+N/A
sum4-defineN/A
cancel-sign-subN/A
log-recN/A
unsub-negN/A
mul-1-negN/A
+-commutativeN/A
sum4-defineN/A
associate-+r+N/A
associate-+r+N/A
Simplified99.6%
Taylor expanded in a around inf
Simplified41.7%
if 5.20000000000000028e146 < a Initial program 99.8%
Taylor expanded in a around inf
Simplified66.2%
Final simplification47.9%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ z (* y i))))
(if (<= a 2.7e-175)
t_1
(if (<= a 1.7e-104)
(* b (log c))
(if (<= a 1.15e+77)
t_1
(if (<= a 1.1e+148) (+ (* x (log y)) a) (+ a (* y i))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = z + (y * i);
double tmp;
if (a <= 2.7e-175) {
tmp = t_1;
} else if (a <= 1.7e-104) {
tmp = b * log(c);
} else if (a <= 1.15e+77) {
tmp = t_1;
} else if (a <= 1.1e+148) {
tmp = (x * log(y)) + a;
} else {
tmp = a + (y * i);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = z + (y * i)
if (a <= 2.7d-175) then
tmp = t_1
else if (a <= 1.7d-104) then
tmp = b * log(c)
else if (a <= 1.15d+77) then
tmp = t_1
else if (a <= 1.1d+148) then
tmp = (x * log(y)) + a
else
tmp = a + (y * i)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = z + (y * i);
double tmp;
if (a <= 2.7e-175) {
tmp = t_1;
} else if (a <= 1.7e-104) {
tmp = b * Math.log(c);
} else if (a <= 1.15e+77) {
tmp = t_1;
} else if (a <= 1.1e+148) {
tmp = (x * Math.log(y)) + a;
} else {
tmp = a + (y * i);
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): t_1 = z + (y * i) tmp = 0 if a <= 2.7e-175: tmp = t_1 elif a <= 1.7e-104: tmp = b * math.log(c) elif a <= 1.15e+77: tmp = t_1 elif a <= 1.1e+148: tmp = (x * math.log(y)) + a else: tmp = a + (y * i) return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = Float64(z + Float64(y * i)) tmp = 0.0 if (a <= 2.7e-175) tmp = t_1; elseif (a <= 1.7e-104) tmp = Float64(b * log(c)); elseif (a <= 1.15e+77) tmp = t_1; elseif (a <= 1.1e+148) tmp = Float64(Float64(x * log(y)) + a); else tmp = Float64(a + Float64(y * i)); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
t_1 = z + (y * i);
tmp = 0.0;
if (a <= 2.7e-175)
tmp = t_1;
elseif (a <= 1.7e-104)
tmp = b * log(c);
elseif (a <= 1.15e+77)
tmp = t_1;
elseif (a <= 1.1e+148)
tmp = (x * log(y)) + a;
else
tmp = a + (y * i);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, 2.7e-175], t$95$1, If[LessEqual[a, 1.7e-104], N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.15e+77], t$95$1, If[LessEqual[a, 1.1e+148], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := z + y \cdot i\\
\mathbf{if}\;a \leq 2.7 \cdot 10^{-175}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{-104}:\\
\;\;\;\;b \cdot \log c\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{+148}:\\
\;\;\;\;x \cdot \log y + a\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if a < 2.69999999999999999e-175 or 1.70000000000000008e-104 < a < 1.14999999999999997e77Initial program 99.9%
Taylor expanded in z around inf
Simplified46.1%
if 2.69999999999999999e-175 < a < 1.70000000000000008e-104Initial program 99.8%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6440.5%
Simplified40.5%
if 1.14999999999999997e77 < a < 1.0999999999999999e148Initial program 99.6%
Taylor expanded in y around 0
associate-+r+N/A
sum4-defineN/A
cancel-sign-subN/A
log-recN/A
unsub-negN/A
mul-1-negN/A
+-commutativeN/A
sum4-defineN/A
associate-+r+N/A
associate-+r+N/A
Simplified97.1%
Taylor expanded in a around inf
Simplified38.6%
if 1.0999999999999999e148 < a Initial program 99.8%
Taylor expanded in a around inf
Simplified66.2%
Final simplification47.5%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (+ z t))) (t_2 (+ (* y i) (+ (* x (log y)) t_1))))
(if (<= x -1.7e+129)
t_2
(if (<= x 2.8e+63) (+ (* y i) (+ (* (- b 0.5) (log c)) t_1)) t_2))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a + (z + t);
double t_2 = (y * i) + ((x * log(y)) + t_1);
double tmp;
if (x <= -1.7e+129) {
tmp = t_2;
} else if (x <= 2.8e+63) {
tmp = (y * i) + (((b - 0.5) * log(c)) + t_1);
} else {
tmp = t_2;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a + (z + t)
t_2 = (y * i) + ((x * log(y)) + t_1)
if (x <= (-1.7d+129)) then
tmp = t_2
else if (x <= 2.8d+63) then
tmp = (y * i) + (((b - 0.5d0) * log(c)) + t_1)
else
tmp = t_2
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a + (z + t);
double t_2 = (y * i) + ((x * Math.log(y)) + t_1);
double tmp;
if (x <= -1.7e+129) {
tmp = t_2;
} else if (x <= 2.8e+63) {
tmp = (y * i) + (((b - 0.5) * Math.log(c)) + t_1);
} else {
tmp = t_2;
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): t_1 = a + (z + t) t_2 = (y * i) + ((x * math.log(y)) + t_1) tmp = 0 if x <= -1.7e+129: tmp = t_2 elif x <= 2.8e+63: tmp = (y * i) + (((b - 0.5) * math.log(c)) + t_1) else: tmp = t_2 return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = Float64(a + Float64(z + t)) t_2 = Float64(Float64(y * i) + Float64(Float64(x * log(y)) + t_1)) tmp = 0.0 if (x <= -1.7e+129) tmp = t_2; elseif (x <= 2.8e+63) tmp = Float64(Float64(y * i) + Float64(Float64(Float64(b - 0.5) * log(c)) + t_1)); else tmp = t_2; end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
t_1 = a + (z + t);
t_2 = (y * i) + ((x * log(y)) + t_1);
tmp = 0.0;
if (x <= -1.7e+129)
tmp = t_2;
elseif (x <= 2.8e+63)
tmp = (y * i) + (((b - 0.5) * log(c)) + t_1);
else
tmp = t_2;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * i), $MachinePrecision] + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.7e+129], t$95$2, If[LessEqual[x, 2.8e+63], N[(N[(y * i), $MachinePrecision] + N[(N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := a + \left(z + t\right)\\
t_2 := y \cdot i + \left(x \cdot \log y + t\_1\right)\\
\mathbf{if}\;x \leq -1.7 \cdot 10^{+129}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 2.8 \cdot 10^{+63}:\\
\;\;\;\;y \cdot i + \left(\left(b - 0.5\right) \cdot \log c + t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -1.70000000000000009e129 or 2.79999999999999987e63 < x Initial program 99.8%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6499.8%
Simplified99.8%
Taylor expanded in b around 0
associate-+r+N/A
associate-+r+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6489.9%
Simplified89.9%
if -1.70000000000000009e129 < x < 2.79999999999999987e63Initial program 99.9%
Taylor expanded in x around 0
Simplified99.0%
Final simplification96.0%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(if (<= a 8.2e-190)
(+ z (* y i))
(if (<= a 1.6e-64)
(+ z (* (log c) (+ b -0.5)))
(if (<= a 9.6e+95) (+ (* x (log y)) (* y i)) (+ a (* y i))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 8.2e-190) {
tmp = z + (y * i);
} else if (a <= 1.6e-64) {
tmp = z + (log(c) * (b + -0.5));
} else if (a <= 9.6e+95) {
tmp = (x * log(y)) + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (a <= 8.2d-190) then
tmp = z + (y * i)
else if (a <= 1.6d-64) then
tmp = z + (log(c) * (b + (-0.5d0)))
else if (a <= 9.6d+95) then
tmp = (x * log(y)) + (y * i)
else
tmp = a + (y * i)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 8.2e-190) {
tmp = z + (y * i);
} else if (a <= 1.6e-64) {
tmp = z + (Math.log(c) * (b + -0.5));
} else if (a <= 9.6e+95) {
tmp = (x * Math.log(y)) + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 8.2e-190: tmp = z + (y * i) elif a <= 1.6e-64: tmp = z + (math.log(c) * (b + -0.5)) elif a <= 9.6e+95: tmp = (x * math.log(y)) + (y * i) else: tmp = a + (y * i) return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 8.2e-190) tmp = Float64(z + Float64(y * i)); elseif (a <= 1.6e-64) tmp = Float64(z + Float64(log(c) * Float64(b + -0.5))); elseif (a <= 9.6e+95) tmp = Float64(Float64(x * log(y)) + Float64(y * i)); else tmp = Float64(a + Float64(y * i)); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
tmp = 0.0;
if (a <= 8.2e-190)
tmp = z + (y * i);
elseif (a <= 1.6e-64)
tmp = z + (log(c) * (b + -0.5));
elseif (a <= 9.6e+95)
tmp = (x * log(y)) + (y * i);
else
tmp = a + (y * i);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 8.2e-190], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e-64], N[(z + N[(N[Log[c], $MachinePrecision] * N[(b + -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.6e+95], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;a \leq 8.2 \cdot 10^{-190}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-64}:\\
\;\;\;\;z + \log c \cdot \left(b + -0.5\right)\\
\mathbf{elif}\;a \leq 9.6 \cdot 10^{+95}:\\
\;\;\;\;x \cdot \log y + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if a < 8.2000000000000004e-190Initial program 99.9%
Taylor expanded in z around inf
Simplified44.8%
if 8.2000000000000004e-190 < a < 1.59999999999999988e-64Initial program 99.9%
Taylor expanded in z around inf
Simplified68.4%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6455.8%
Simplified55.8%
if 1.59999999999999988e-64 < a < 9.6000000000000002e95Initial program 99.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
log-lowering-log.f6450.8%
Simplified50.8%
if 9.6000000000000002e95 < a Initial program 99.8%
Taylor expanded in a around inf
Simplified55.0%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (if (<= a 5e+78) (+ (* y i) (+ z (* (- b 0.5) (log c)))) (if (<= a 1.15e+94) (+ (* x (log y)) z) (+ (* y i) (+ a (* b (log c)))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 5e+78) {
tmp = (y * i) + (z + ((b - 0.5) * log(c)));
} else if (a <= 1.15e+94) {
tmp = (x * log(y)) + z;
} else {
tmp = (y * i) + (a + (b * log(c)));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (a <= 5d+78) then
tmp = (y * i) + (z + ((b - 0.5d0) * log(c)))
else if (a <= 1.15d+94) then
tmp = (x * log(y)) + z
else
tmp = (y * i) + (a + (b * log(c)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 5e+78) {
tmp = (y * i) + (z + ((b - 0.5) * Math.log(c)));
} else if (a <= 1.15e+94) {
tmp = (x * Math.log(y)) + z;
} else {
tmp = (y * i) + (a + (b * Math.log(c)));
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 5e+78: tmp = (y * i) + (z + ((b - 0.5) * math.log(c))) elif a <= 1.15e+94: tmp = (x * math.log(y)) + z else: tmp = (y * i) + (a + (b * math.log(c))) return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 5e+78) tmp = Float64(Float64(y * i) + Float64(z + Float64(Float64(b - 0.5) * log(c)))); elseif (a <= 1.15e+94) tmp = Float64(Float64(x * log(y)) + z); else tmp = Float64(Float64(y * i) + Float64(a + Float64(b * log(c)))); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
tmp = 0.0;
if (a <= 5e+78)
tmp = (y * i) + (z + ((b - 0.5) * log(c)));
elseif (a <= 1.15e+94)
tmp = (x * log(y)) + z;
else
tmp = (y * i) + (a + (b * log(c)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 5e+78], N[(N[(y * i), $MachinePrecision] + N[(z + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.15e+94], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;a \leq 5 \cdot 10^{+78}:\\
\;\;\;\;y \cdot i + \left(z + \left(b - 0.5\right) \cdot \log c\right)\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{+94}:\\
\;\;\;\;x \cdot \log y + z\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + b \cdot \log c\right)\\
\end{array}
\end{array}
if a < 4.99999999999999984e78Initial program 99.9%
Taylor expanded in z around inf
Simplified61.8%
if 4.99999999999999984e78 < a < 1.15e94Initial program 99.6%
Taylor expanded in y around 0
associate-+r+N/A
sum4-defineN/A
cancel-sign-subN/A
log-recN/A
unsub-negN/A
mul-1-negN/A
+-commutativeN/A
sum4-defineN/A
associate-+r+N/A
associate-+r+N/A
Simplified99.6%
Taylor expanded in z around inf
Simplified26.3%
if 1.15e94 < a Initial program 99.8%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6499.8%
Simplified99.8%
Taylor expanded in a around inf
Simplified67.3%
Final simplification62.0%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (if (<= y 7.5e-11) (+ (+ a (+ z t)) (* (log c) (+ b -0.5))) (+ (* y i) (+ a (* b (log c))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 7.5e-11) {
tmp = (a + (z + t)) + (log(c) * (b + -0.5));
} else {
tmp = (y * i) + (a + (b * log(c)));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= 7.5d-11) then
tmp = (a + (z + t)) + (log(c) * (b + (-0.5d0)))
else
tmp = (y * i) + (a + (b * log(c)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 7.5e-11) {
tmp = (a + (z + t)) + (Math.log(c) * (b + -0.5));
} else {
tmp = (y * i) + (a + (b * Math.log(c)));
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 7.5e-11: tmp = (a + (z + t)) + (math.log(c) * (b + -0.5)) else: tmp = (y * i) + (a + (b * math.log(c))) return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 7.5e-11) tmp = Float64(Float64(a + Float64(z + t)) + Float64(log(c) * Float64(b + -0.5))); else tmp = Float64(Float64(y * i) + Float64(a + Float64(b * log(c)))); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
tmp = 0.0;
if (y <= 7.5e-11)
tmp = (a + (z + t)) + (log(c) * (b + -0.5));
else
tmp = (y * i) + (a + (b * log(c)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 7.5e-11], N[(N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b + -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq 7.5 \cdot 10^{-11}:\\
\;\;\;\;\left(a + \left(z + t\right)\right) + \log c \cdot \left(b + -0.5\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + b \cdot \log c\right)\\
\end{array}
\end{array}
if y < 7.5e-11Initial program 99.9%
Taylor expanded in y around 0
associate-+r+N/A
sum4-defineN/A
cancel-sign-subN/A
log-recN/A
unsub-negN/A
mul-1-negN/A
+-commutativeN/A
sum4-defineN/A
associate-+r+N/A
associate-+r+N/A
Simplified95.6%
Taylor expanded in x around 0
associate-+r+N/A
associate-+r+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6475.9%
Simplified75.9%
if 7.5e-11 < y Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6499.9%
Simplified99.9%
Taylor expanded in a around inf
Simplified61.0%
Final simplification68.1%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (if (<= z -2.45e+251) (+ z (* y i)) (+ (* y i) (+ a (* (- b 0.5) (log c))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2.45e+251) {
tmp = z + (y * i);
} else {
tmp = (y * i) + (a + ((b - 0.5) * log(c)));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (z <= (-2.45d+251)) then
tmp = z + (y * i)
else
tmp = (y * i) + (a + ((b - 0.5d0) * log(c)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2.45e+251) {
tmp = z + (y * i);
} else {
tmp = (y * i) + (a + ((b - 0.5) * Math.log(c)));
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -2.45e+251: tmp = z + (y * i) else: tmp = (y * i) + (a + ((b - 0.5) * math.log(c))) return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -2.45e+251) tmp = Float64(z + Float64(y * i)); else tmp = Float64(Float64(y * i) + Float64(a + Float64(Float64(b - 0.5) * log(c)))); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
tmp = 0.0;
if (z <= -2.45e+251)
tmp = z + (y * i);
else
tmp = (y * i) + (a + ((b - 0.5) * log(c)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -2.45e+251], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.45 \cdot 10^{+251}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \left(b - 0.5\right) \cdot \log c\right)\\
\end{array}
\end{array}
if z < -2.44999999999999977e251Initial program 100.0%
Taylor expanded in z around inf
Simplified95.0%
if -2.44999999999999977e251 < z Initial program 99.9%
Taylor expanded in a around inf
Simplified54.8%
Final simplification56.6%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (if (<= z -2.45e+251) (+ z (* y i)) (+ (* y i) (+ a (* b (log c))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2.45e+251) {
tmp = z + (y * i);
} else {
tmp = (y * i) + (a + (b * log(c)));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (z <= (-2.45d+251)) then
tmp = z + (y * i)
else
tmp = (y * i) + (a + (b * log(c)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2.45e+251) {
tmp = z + (y * i);
} else {
tmp = (y * i) + (a + (b * Math.log(c)));
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -2.45e+251: tmp = z + (y * i) else: tmp = (y * i) + (a + (b * math.log(c))) return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -2.45e+251) tmp = Float64(z + Float64(y * i)); else tmp = Float64(Float64(y * i) + Float64(a + Float64(b * log(c)))); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
tmp = 0.0;
if (z <= -2.45e+251)
tmp = z + (y * i);
else
tmp = (y * i) + (a + (b * log(c)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -2.45e+251], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.45 \cdot 10^{+251}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + b \cdot \log c\right)\\
\end{array}
\end{array}
if z < -2.44999999999999977e251Initial program 100.0%
Taylor expanded in z around inf
Simplified95.0%
if -2.44999999999999977e251 < z Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6497.9%
Simplified97.9%
Taylor expanded in a around inf
Simplified52.8%
Final simplification54.6%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ z (* y i))))
(if (<= a 2.4e-175)
t_1
(if (<= a 1.7e-104)
(* b (log c))
(if (<= a 1.52e+90) t_1 (+ a (* y i)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = z + (y * i);
double tmp;
if (a <= 2.4e-175) {
tmp = t_1;
} else if (a <= 1.7e-104) {
tmp = b * log(c);
} else if (a <= 1.52e+90) {
tmp = t_1;
} else {
tmp = a + (y * i);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = z + (y * i)
if (a <= 2.4d-175) then
tmp = t_1
else if (a <= 1.7d-104) then
tmp = b * log(c)
else if (a <= 1.52d+90) then
tmp = t_1
else
tmp = a + (y * i)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = z + (y * i);
double tmp;
if (a <= 2.4e-175) {
tmp = t_1;
} else if (a <= 1.7e-104) {
tmp = b * Math.log(c);
} else if (a <= 1.52e+90) {
tmp = t_1;
} else {
tmp = a + (y * i);
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): t_1 = z + (y * i) tmp = 0 if a <= 2.4e-175: tmp = t_1 elif a <= 1.7e-104: tmp = b * math.log(c) elif a <= 1.52e+90: tmp = t_1 else: tmp = a + (y * i) return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = Float64(z + Float64(y * i)) tmp = 0.0 if (a <= 2.4e-175) tmp = t_1; elseif (a <= 1.7e-104) tmp = Float64(b * log(c)); elseif (a <= 1.52e+90) tmp = t_1; else tmp = Float64(a + Float64(y * i)); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
t_1 = z + (y * i);
tmp = 0.0;
if (a <= 2.4e-175)
tmp = t_1;
elseif (a <= 1.7e-104)
tmp = b * log(c);
elseif (a <= 1.52e+90)
tmp = t_1;
else
tmp = a + (y * i);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, 2.4e-175], t$95$1, If[LessEqual[a, 1.7e-104], N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.52e+90], t$95$1, N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := z + y \cdot i\\
\mathbf{if}\;a \leq 2.4 \cdot 10^{-175}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{-104}:\\
\;\;\;\;b \cdot \log c\\
\mathbf{elif}\;a \leq 1.52 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if a < 2.4e-175 or 1.70000000000000008e-104 < a < 1.52000000000000009e90Initial program 99.9%
Taylor expanded in z around inf
Simplified45.9%
if 2.4e-175 < a < 1.70000000000000008e-104Initial program 99.8%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6440.5%
Simplified40.5%
if 1.52000000000000009e90 < a Initial program 99.7%
Taylor expanded in a around inf
Simplified52.3%
Final simplification46.5%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (if (<= a 2e-64) z (if (<= a 9.2e+198) (* y i) (+ t a))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 2e-64) {
tmp = z;
} else if (a <= 9.2e+198) {
tmp = y * i;
} else {
tmp = t + a;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (a <= 2d-64) then
tmp = z
else if (a <= 9.2d+198) then
tmp = y * i
else
tmp = t + a
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 2e-64) {
tmp = z;
} else if (a <= 9.2e+198) {
tmp = y * i;
} else {
tmp = t + a;
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 2e-64: tmp = z elif a <= 9.2e+198: tmp = y * i else: tmp = t + a return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 2e-64) tmp = z; elseif (a <= 9.2e+198) tmp = Float64(y * i); else tmp = Float64(t + a); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
tmp = 0.0;
if (a <= 2e-64)
tmp = z;
elseif (a <= 9.2e+198)
tmp = y * i;
else
tmp = t + a;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 2e-64], z, If[LessEqual[a, 9.2e+198], N[(y * i), $MachinePrecision], N[(t + a), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;a \leq 2 \cdot 10^{-64}:\\
\;\;\;\;z\\
\mathbf{elif}\;a \leq 9.2 \cdot 10^{+198}:\\
\;\;\;\;y \cdot i\\
\mathbf{else}:\\
\;\;\;\;t + a\\
\end{array}
\end{array}
if a < 1.99999999999999993e-64Initial program 99.9%
Taylor expanded in z around inf
Simplified20.4%
if 1.99999999999999993e-64 < a < 9.2000000000000002e198Initial program 99.8%
Taylor expanded in y around inf
*-lowering-*.f6432.2%
Simplified32.2%
if 9.2000000000000002e198 < a Initial program 99.8%
Taylor expanded in y around 0
associate-+r+N/A
sum4-defineN/A
cancel-sign-subN/A
log-recN/A
unsub-negN/A
mul-1-negN/A
+-commutativeN/A
sum4-defineN/A
associate-+r+N/A
associate-+r+N/A
Simplified66.8%
Taylor expanded in z around 0
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6460.5%
Simplified60.5%
Taylor expanded in t around inf
Simplified43.0%
Final simplification24.4%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (if (<= a 1.7e-64) z (if (<= a 2.4e+199) (* y i) a)))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 1.7e-64) {
tmp = z;
} else if (a <= 2.4e+199) {
tmp = y * i;
} else {
tmp = a;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (a <= 1.7d-64) then
tmp = z
else if (a <= 2.4d+199) then
tmp = y * i
else
tmp = a
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 1.7e-64) {
tmp = z;
} else if (a <= 2.4e+199) {
tmp = y * i;
} else {
tmp = a;
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 1.7e-64: tmp = z elif a <= 2.4e+199: tmp = y * i else: tmp = a return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 1.7e-64) tmp = z; elseif (a <= 2.4e+199) tmp = Float64(y * i); else tmp = a; end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
tmp = 0.0;
if (a <= 1.7e-64)
tmp = z;
elseif (a <= 2.4e+199)
tmp = y * i;
else
tmp = a;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 1.7e-64], z, If[LessEqual[a, 2.4e+199], N[(y * i), $MachinePrecision], a]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.7 \cdot 10^{-64}:\\
\;\;\;\;z\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{+199}:\\
\;\;\;\;y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < 1.70000000000000006e-64Initial program 99.9%
Taylor expanded in z around inf
Simplified20.4%
if 1.70000000000000006e-64 < a < 2.40000000000000015e199Initial program 99.8%
Taylor expanded in y around inf
*-lowering-*.f6432.2%
Simplified32.2%
if 2.40000000000000015e199 < a Initial program 99.8%
Taylor expanded in a around inf
Simplified43.6%
Final simplification24.4%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (if (<= a 1.36e+90) (+ z (* y i)) (+ a (* y i))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 1.36e+90) {
tmp = z + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (a <= 1.36d+90) then
tmp = z + (y * i)
else
tmp = a + (y * i)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 1.36e+90) {
tmp = z + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 1.36e+90: tmp = z + (y * i) else: tmp = a + (y * i) return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 1.36e+90) tmp = Float64(z + Float64(y * i)); else tmp = Float64(a + Float64(y * i)); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
tmp = 0.0;
if (a <= 1.36e+90)
tmp = z + (y * i);
else
tmp = a + (y * i);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 1.36e+90], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.36 \cdot 10^{+90}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if a < 1.3600000000000001e90Initial program 99.9%
Taylor expanded in z around inf
Simplified44.2%
if 1.3600000000000001e90 < a Initial program 99.7%
Taylor expanded in a around inf
Simplified52.3%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (if (<= z -7.2e+255) z (+ a (* y i))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -7.2e+255) {
tmp = z;
} else {
tmp = a + (y * i);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (z <= (-7.2d+255)) then
tmp = z
else
tmp = a + (y * i)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -7.2e+255) {
tmp = z;
} else {
tmp = a + (y * i);
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -7.2e+255: tmp = z else: tmp = a + (y * i) return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -7.2e+255) tmp = z; else tmp = Float64(a + Float64(y * i)); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
tmp = 0.0;
if (z <= -7.2e+255)
tmp = z;
else
tmp = a + (y * i);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -7.2e+255], z, N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.2 \cdot 10^{+255}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if z < -7.1999999999999998e255Initial program 100.0%
Taylor expanded in z around inf
Simplified90.0%
if -7.1999999999999998e255 < z Initial program 99.9%
Taylor expanded in a around inf
Simplified37.7%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (if (<= a 1.8e+83) z a))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 1.8e+83) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (a <= 1.8d+83) then
tmp = z
else
tmp = a
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 1.8e+83) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 1.8e+83: tmp = z else: tmp = a return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 1.8e+83) tmp = z; else tmp = a; end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
tmp = 0.0;
if (a <= 1.8e+83)
tmp = z;
else
tmp = a;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 1.8e+83], z, a]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.8 \cdot 10^{+83}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < 1.7999999999999999e83Initial program 99.9%
Taylor expanded in z around inf
Simplified20.2%
if 1.7999999999999999e83 < a Initial program 99.8%
Taylor expanded in a around inf
Simplified26.5%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 a)
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
code = a
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): return a
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) return a end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp = code(x, y, z, t, a, b, c, i)
tmp = a;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := a
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
a
\end{array}
Initial program 99.9%
Taylor expanded in a around inf
Simplified12.3%
herbie shell --seed 2024140
(FPCore (x y z t a b c i)
:name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, B"
:precision binary64
(+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))