
(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 19 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 (+ (+ (fma x (log y) z) (+ t a)) (+ (* y i) (* (+ 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) {
return (fma(x, log(y), z) + (t + a)) + ((y * i) + ((b + -0.5) * 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(fma(x, log(y), z) + Float64(t + a)) + Float64(Float64(y * i) + Float64(Float64(b + -0.5) * 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[(N[(x * N[Log[y], $MachinePrecision] + z), $MachinePrecision] + N[(t + a), $MachinePrecision]), $MachinePrecision] + N[(N[(y * i), $MachinePrecision] + 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])\\
\\
\left(\mathsf{fma}\left(x, \log y, z\right) + \left(t + a\right)\right) + \left(y \cdot i + \left(b + -0.5\right) \cdot \log c\right)
\end{array}
Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Final simplification99.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 (if (or (<= i -2.7e+87) (not (<= i 1.3e+54))) (+ (+ (* y i) (* (+ b -0.5) (log c))) (+ z (+ t a))) (+ a (+ t (+ z (+ (* x (log y)) (* (log c) (- b 0.5))))))))
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 ((i <= -2.7e+87) || !(i <= 1.3e+54)) {
tmp = ((y * i) + ((b + -0.5) * log(c))) + (z + (t + a));
} else {
tmp = a + (t + (z + ((x * log(y)) + (log(c) * (b - 0.5)))));
}
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 ((i <= (-2.7d+87)) .or. (.not. (i <= 1.3d+54))) then
tmp = ((y * i) + ((b + (-0.5d0)) * log(c))) + (z + (t + a))
else
tmp = a + (t + (z + ((x * log(y)) + (log(c) * (b - 0.5d0)))))
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 ((i <= -2.7e+87) || !(i <= 1.3e+54)) {
tmp = ((y * i) + ((b + -0.5) * Math.log(c))) + (z + (t + a));
} else {
tmp = a + (t + (z + ((x * Math.log(y)) + (Math.log(c) * (b - 0.5)))));
}
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 (i <= -2.7e+87) or not (i <= 1.3e+54): tmp = ((y * i) + ((b + -0.5) * math.log(c))) + (z + (t + a)) else: tmp = a + (t + (z + ((x * math.log(y)) + (math.log(c) * (b - 0.5))))) 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 ((i <= -2.7e+87) || !(i <= 1.3e+54)) tmp = Float64(Float64(Float64(y * i) + Float64(Float64(b + -0.5) * log(c))) + Float64(z + Float64(t + a))); else tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(x * log(y)) + Float64(log(c) * Float64(b - 0.5)))))); 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 ((i <= -2.7e+87) || ~((i <= 1.3e+54)))
tmp = ((y * i) + ((b + -0.5) * log(c))) + (z + (t + a));
else
tmp = a + (t + (z + ((x * log(y)) + (log(c) * (b - 0.5)))));
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[Or[LessEqual[i, -2.7e+87], N[Not[LessEqual[i, 1.3e+54]], $MachinePrecision]], N[(N[(N[(y * i), $MachinePrecision] + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(z + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $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}\;i \leq -2.7 \cdot 10^{+87} \lor \neg \left(i \leq 1.3 \cdot 10^{+54}\right):\\
\;\;\;\;\left(y \cdot i + \left(b + -0.5\right) \cdot \log c\right) + \left(z + \left(t + a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + \left(x \cdot \log y + \log c \cdot \left(b - 0.5\right)\right)\right)\right)\\
\end{array}
\end{array}
if i < -2.70000000000000007e87 or 1.30000000000000003e54 < i Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around 0 94.5%
associate-+r+94.5%
Simplified94.5%
if -2.70000000000000007e87 < i < 1.30000000000000003e54Initial program 99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in y around 0 94.3%
Final simplification94.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 (* x (log y))))
(if (<= x -8e+151)
(+ t (+ z (+ t_1 (* (log c) (- b 0.5)))))
(if (<= x 2.05e+173)
(fma y i (+ (+ z (+ t a)) (* (+ b -0.5) (log c))))
(+ (* y i) 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 = x * log(y);
double tmp;
if (x <= -8e+151) {
tmp = t + (z + (t_1 + (log(c) * (b - 0.5))));
} else if (x <= 2.05e+173) {
tmp = fma(y, i, ((z + (t + a)) + ((b + -0.5) * log(c))));
} else {
tmp = (y * i) + 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(x * log(y)) tmp = 0.0 if (x <= -8e+151) tmp = Float64(t + Float64(z + Float64(t_1 + Float64(log(c) * Float64(b - 0.5))))); elseif (x <= 2.05e+173) tmp = fma(y, i, Float64(Float64(z + Float64(t + a)) + Float64(Float64(b + -0.5) * log(c)))); else tmp = Float64(Float64(y * i) + t_1); end return 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]}, If[LessEqual[x, -8e+151], N[(t + N[(z + N[(t$95$1 + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.05e+173], N[(y * i + N[(N[(z + N[(t + a), $MachinePrecision]), $MachinePrecision] + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + t$95$1), $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\\
\mathbf{if}\;x \leq -8 \cdot 10^{+151}:\\
\;\;\;\;t + \left(z + \left(t\_1 + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\mathbf{elif}\;x \leq 2.05 \cdot 10^{+173}:\\
\;\;\;\;\mathsf{fma}\left(y, i, \left(z + \left(t + a\right)\right) + \left(b + -0.5\right) \cdot \log c\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + t\_1\\
\end{array}
\end{array}
if x < -8.00000000000000014e151Initial program 99.7%
associate-+l+99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-define99.7%
+-commutative99.7%
fma-define99.7%
Simplified99.8%
Taylor expanded in y around 0 80.0%
Taylor expanded in a around 0 77.5%
if -8.00000000000000014e151 < x < 2.04999999999999988e173Initial program 99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in x around 0 96.4%
associate-+r+96.4%
sub-neg96.4%
metadata-eval96.4%
associate-+r+96.4%
+-commutative96.4%
+-commutative96.4%
associate-+l+96.4%
+-commutative96.4%
+-commutative96.4%
Simplified96.4%
if 2.04999999999999988e173 < x Initial program 99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
Simplified99.9%
Taylor expanded in x around -inf 99.8%
Taylor expanded in i around inf 75.7%
*-commutative75.7%
Simplified75.7%
Taylor expanded in x around 0 75.7%
distribute-lft-out75.7%
*-commutative75.7%
Simplified75.7%
Final simplification91.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 (+ (* y i) (* (+ b -0.5) (log c)))))
(if (<= a 2.8e+131)
(+ t_1 (+ t (+ z (* x (log y)))))
(+ t_1 (+ z (+ 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 t_1 = (y * i) + ((b + -0.5) * log(c));
double tmp;
if (a <= 2.8e+131) {
tmp = t_1 + (t + (z + (x * log(y))));
} else {
tmp = t_1 + (z + (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) :: t_1
real(8) :: tmp
t_1 = (y * i) + ((b + (-0.5d0)) * log(c))
if (a <= 2.8d+131) then
tmp = t_1 + (t + (z + (x * log(y))))
else
tmp = t_1 + (z + (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 t_1 = (y * i) + ((b + -0.5) * Math.log(c));
double tmp;
if (a <= 2.8e+131) {
tmp = t_1 + (t + (z + (x * Math.log(y))));
} else {
tmp = t_1 + (z + (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): t_1 = (y * i) + ((b + -0.5) * math.log(c)) tmp = 0 if a <= 2.8e+131: tmp = t_1 + (t + (z + (x * math.log(y)))) else: tmp = t_1 + (z + (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) t_1 = Float64(Float64(y * i) + Float64(Float64(b + -0.5) * log(c))) tmp = 0.0 if (a <= 2.8e+131) tmp = Float64(t_1 + Float64(t + Float64(z + Float64(x * log(y))))); else tmp = Float64(t_1 + Float64(z + 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)
t_1 = (y * i) + ((b + -0.5) * log(c));
tmp = 0.0;
if (a <= 2.8e+131)
tmp = t_1 + (t + (z + (x * log(y))));
else
tmp = t_1 + (z + (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_] := Block[{t$95$1 = N[(N[(y * i), $MachinePrecision] + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, 2.8e+131], N[(t$95$1 + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(z + N[(t + a), $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}
t_1 := y \cdot i + \left(b + -0.5\right) \cdot \log c\\
\mathbf{if}\;a \leq 2.8 \cdot 10^{+131}:\\
\;\;\;\;t\_1 + \left(t + \left(z + x \cdot \log y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + \left(z + \left(t + a\right)\right)\\
\end{array}
\end{array}
if a < 2.8000000000000001e131Initial program 99.8%
associate-+l+99.8%
+-commutative99.8%
+-commutative99.8%
associate-+l+99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in a around 0 89.1%
if 2.8000000000000001e131 < a Initial program 100.0%
associate-+l+100.0%
+-commutative100.0%
+-commutative100.0%
associate-+l+100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around 0 94.3%
associate-+r+94.3%
Simplified94.3%
Final simplification89.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 (if (<= a 2.8e+131) (+ z (+ (* y i) (+ (* x (log y)) (* (log c) (- b 0.5))))) (+ (+ (* y i) (* (+ b -0.5) (log c))) (+ z (+ 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 <= 2.8e+131) {
tmp = z + ((y * i) + ((x * log(y)) + (log(c) * (b - 0.5))));
} else {
tmp = ((y * i) + ((b + -0.5) * log(c))) + (z + (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 <= 2.8d+131) then
tmp = z + ((y * i) + ((x * log(y)) + (log(c) * (b - 0.5d0))))
else
tmp = ((y * i) + ((b + (-0.5d0)) * log(c))) + (z + (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 <= 2.8e+131) {
tmp = z + ((y * i) + ((x * Math.log(y)) + (Math.log(c) * (b - 0.5))));
} else {
tmp = ((y * i) + ((b + -0.5) * Math.log(c))) + (z + (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 <= 2.8e+131: tmp = z + ((y * i) + ((x * math.log(y)) + (math.log(c) * (b - 0.5)))) else: tmp = ((y * i) + ((b + -0.5) * math.log(c))) + (z + (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 <= 2.8e+131) tmp = Float64(z + Float64(Float64(y * i) + Float64(Float64(x * log(y)) + Float64(log(c) * Float64(b - 0.5))))); else tmp = Float64(Float64(Float64(y * i) + Float64(Float64(b + -0.5) * log(c))) + Float64(z + 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 <= 2.8e+131)
tmp = z + ((y * i) + ((x * log(y)) + (log(c) * (b - 0.5))));
else
tmp = ((y * i) + ((b + -0.5) * log(c))) + (z + (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, 2.8e+131], N[(z + N[(N[(y * i), $MachinePrecision] + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y * i), $MachinePrecision] + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z + N[(t + a), $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 2.8 \cdot 10^{+131}:\\
\;\;\;\;z + \left(y \cdot i + \left(x \cdot \log y + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot i + \left(b + -0.5\right) \cdot \log c\right) + \left(z + \left(t + a\right)\right)\\
\end{array}
\end{array}
if a < 2.8000000000000001e131Initial program 99.8%
associate-+l+99.8%
+-commutative99.8%
+-commutative99.8%
associate-+l+99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in a around 0 89.1%
Taylor expanded in t around 0 75.0%
if 2.8000000000000001e131 < a Initial program 100.0%
associate-+l+100.0%
+-commutative100.0%
+-commutative100.0%
associate-+l+100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in x around 0 94.3%
associate-+r+94.3%
Simplified94.3%
Final simplification77.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 (+ (* y i) (+ (+ a (+ t (+ z (* x (log y))))) (* (log c) (- b 0.5)))))
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) + ((a + (t + (z + (x * log(y))))) + (log(c) * (b - 0.5)));
}
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) + ((a + (t + (z + (x * log(y))))) + (log(c) * (b - 0.5d0)))
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) + ((a + (t + (z + (x * Math.log(y))))) + (Math.log(c) * (b - 0.5)));
}
[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) + ((a + (t + (z + (x * math.log(y))))) + (math.log(c) * (b - 0.5)))
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(a + Float64(t + Float64(z + Float64(x * log(y))))) + Float64(log(c) * Float64(b - 0.5)))) 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) + ((a + (t + (z + (x * log(y))))) + (log(c) * (b - 0.5)));
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[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $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(a + \left(t + \left(z + x \cdot \log y\right)\right)\right) + \log c \cdot \left(b - 0.5\right)\right)
\end{array}
Initial program 99.9%
Final simplification99.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 (* x (log y))))
(if (<= x -3.2e+152)
(+ t (+ z (+ t_1 (* (log c) (- b 0.5)))))
(if (<= x 1.7e+173)
(+ (+ (* y i) (* (+ b -0.5) (log c))) (+ z (+ t a)))
(+ (* y i) 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 = x * log(y);
double tmp;
if (x <= -3.2e+152) {
tmp = t + (z + (t_1 + (log(c) * (b - 0.5))));
} else if (x <= 1.7e+173) {
tmp = ((y * i) + ((b + -0.5) * log(c))) + (z + (t + a));
} else {
tmp = (y * i) + 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 = x * log(y)
if (x <= (-3.2d+152)) then
tmp = t + (z + (t_1 + (log(c) * (b - 0.5d0))))
else if (x <= 1.7d+173) then
tmp = ((y * i) + ((b + (-0.5d0)) * log(c))) + (z + (t + a))
else
tmp = (y * i) + 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 = x * Math.log(y);
double tmp;
if (x <= -3.2e+152) {
tmp = t + (z + (t_1 + (Math.log(c) * (b - 0.5))));
} else if (x <= 1.7e+173) {
tmp = ((y * i) + ((b + -0.5) * Math.log(c))) + (z + (t + a));
} else {
tmp = (y * i) + 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 = x * math.log(y) tmp = 0 if x <= -3.2e+152: tmp = t + (z + (t_1 + (math.log(c) * (b - 0.5)))) elif x <= 1.7e+173: tmp = ((y * i) + ((b + -0.5) * math.log(c))) + (z + (t + a)) else: tmp = (y * i) + 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(x * log(y)) tmp = 0.0 if (x <= -3.2e+152) tmp = Float64(t + Float64(z + Float64(t_1 + Float64(log(c) * Float64(b - 0.5))))); elseif (x <= 1.7e+173) tmp = Float64(Float64(Float64(y * i) + Float64(Float64(b + -0.5) * log(c))) + Float64(z + Float64(t + a))); else tmp = Float64(Float64(y * i) + 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 = x * log(y);
tmp = 0.0;
if (x <= -3.2e+152)
tmp = t + (z + (t_1 + (log(c) * (b - 0.5))));
elseif (x <= 1.7e+173)
tmp = ((y * i) + ((b + -0.5) * log(c))) + (z + (t + a));
else
tmp = (y * i) + 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[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.2e+152], N[(t + N[(z + N[(t$95$1 + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.7e+173], N[(N[(N[(y * i), $MachinePrecision] + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + t$95$1), $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\\
\mathbf{if}\;x \leq -3.2 \cdot 10^{+152}:\\
\;\;\;\;t + \left(z + \left(t\_1 + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{+173}:\\
\;\;\;\;\left(y \cdot i + \left(b + -0.5\right) \cdot \log c\right) + \left(z + \left(t + a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + t\_1\\
\end{array}
\end{array}
if x < -3.20000000000000005e152Initial program 99.7%
associate-+l+99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-define99.7%
+-commutative99.7%
fma-define99.7%
Simplified99.8%
Taylor expanded in y around 0 80.0%
Taylor expanded in a around 0 77.5%
if -3.20000000000000005e152 < x < 1.70000000000000011e173Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around 0 96.3%
associate-+r+96.3%
Simplified96.3%
if 1.70000000000000011e173 < x Initial program 99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
Simplified99.9%
Taylor expanded in x around -inf 99.8%
Taylor expanded in i around inf 75.7%
*-commutative75.7%
Simplified75.7%
Taylor expanded in x around 0 75.7%
distribute-lft-out75.7%
*-commutative75.7%
Simplified75.7%
Final simplification91.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 (* x (log y))))
(if (<= x -3e+152)
(+ z (+ t_1 (* (log c) (- b 0.5))))
(if (<= x 2.05e+173)
(+ (+ (* y i) (* (+ b -0.5) (log c))) (+ z (+ t a)))
(+ (* y i) 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 = x * log(y);
double tmp;
if (x <= -3e+152) {
tmp = z + (t_1 + (log(c) * (b - 0.5)));
} else if (x <= 2.05e+173) {
tmp = ((y * i) + ((b + -0.5) * log(c))) + (z + (t + a));
} else {
tmp = (y * i) + 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 = x * log(y)
if (x <= (-3d+152)) then
tmp = z + (t_1 + (log(c) * (b - 0.5d0)))
else if (x <= 2.05d+173) then
tmp = ((y * i) + ((b + (-0.5d0)) * log(c))) + (z + (t + a))
else
tmp = (y * i) + 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 = x * Math.log(y);
double tmp;
if (x <= -3e+152) {
tmp = z + (t_1 + (Math.log(c) * (b - 0.5)));
} else if (x <= 2.05e+173) {
tmp = ((y * i) + ((b + -0.5) * Math.log(c))) + (z + (t + a));
} else {
tmp = (y * i) + 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 = x * math.log(y) tmp = 0 if x <= -3e+152: tmp = z + (t_1 + (math.log(c) * (b - 0.5))) elif x <= 2.05e+173: tmp = ((y * i) + ((b + -0.5) * math.log(c))) + (z + (t + a)) else: tmp = (y * i) + 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(x * log(y)) tmp = 0.0 if (x <= -3e+152) tmp = Float64(z + Float64(t_1 + Float64(log(c) * Float64(b - 0.5)))); elseif (x <= 2.05e+173) tmp = Float64(Float64(Float64(y * i) + Float64(Float64(b + -0.5) * log(c))) + Float64(z + Float64(t + a))); else tmp = Float64(Float64(y * i) + 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 = x * log(y);
tmp = 0.0;
if (x <= -3e+152)
tmp = z + (t_1 + (log(c) * (b - 0.5)));
elseif (x <= 2.05e+173)
tmp = ((y * i) + ((b + -0.5) * log(c))) + (z + (t + a));
else
tmp = (y * i) + 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[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3e+152], N[(z + N[(t$95$1 + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.05e+173], N[(N[(N[(y * i), $MachinePrecision] + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + t$95$1), $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\\
\mathbf{if}\;x \leq -3 \cdot 10^{+152}:\\
\;\;\;\;z + \left(t\_1 + \log c \cdot \left(b - 0.5\right)\right)\\
\mathbf{elif}\;x \leq 2.05 \cdot 10^{+173}:\\
\;\;\;\;\left(y \cdot i + \left(b + -0.5\right) \cdot \log c\right) + \left(z + \left(t + a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + t\_1\\
\end{array}
\end{array}
if x < -2.99999999999999991e152Initial program 99.7%
associate-+l+99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-define99.7%
+-commutative99.7%
fma-define99.7%
Simplified99.8%
Taylor expanded in y around 0 80.0%
Taylor expanded in a around 0 77.5%
Taylor expanded in t around 0 69.6%
if -2.99999999999999991e152 < x < 2.04999999999999988e173Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around 0 96.3%
associate-+r+96.3%
Simplified96.3%
if 2.04999999999999988e173 < x Initial program 99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
Simplified99.9%
Taylor expanded in x around -inf 99.8%
Taylor expanded in i around inf 75.7%
*-commutative75.7%
Simplified75.7%
Taylor expanded in x around 0 75.7%
distribute-lft-out75.7%
*-commutative75.7%
Simplified75.7%
Final simplification90.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 (<= x -4e+152)
(* x (+ (log y) (/ (* y i) x)))
(if (<= x 9e+172)
(+ (+ (* y i) (* (+ b -0.5) (log c))) (+ z (+ t a)))
(+ (* y i) (* x (log y))))))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 (x <= -4e+152) {
tmp = x * (log(y) + ((y * i) / x));
} else if (x <= 9e+172) {
tmp = ((y * i) + ((b + -0.5) * log(c))) + (z + (t + a));
} else {
tmp = (y * i) + (x * log(y));
}
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 (x <= (-4d+152)) then
tmp = x * (log(y) + ((y * i) / x))
else if (x <= 9d+172) then
tmp = ((y * i) + ((b + (-0.5d0)) * log(c))) + (z + (t + a))
else
tmp = (y * i) + (x * log(y))
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 (x <= -4e+152) {
tmp = x * (Math.log(y) + ((y * i) / x));
} else if (x <= 9e+172) {
tmp = ((y * i) + ((b + -0.5) * Math.log(c))) + (z + (t + a));
} else {
tmp = (y * i) + (x * Math.log(y));
}
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 x <= -4e+152: tmp = x * (math.log(y) + ((y * i) / x)) elif x <= 9e+172: tmp = ((y * i) + ((b + -0.5) * math.log(c))) + (z + (t + a)) else: tmp = (y * i) + (x * math.log(y)) 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 (x <= -4e+152) tmp = Float64(x * Float64(log(y) + Float64(Float64(y * i) / x))); elseif (x <= 9e+172) tmp = Float64(Float64(Float64(y * i) + Float64(Float64(b + -0.5) * log(c))) + Float64(z + Float64(t + a))); else tmp = Float64(Float64(y * i) + Float64(x * log(y))); 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 (x <= -4e+152)
tmp = x * (log(y) + ((y * i) / x));
elseif (x <= 9e+172)
tmp = ((y * i) + ((b + -0.5) * log(c))) + (z + (t + a));
else
tmp = (y * i) + (x * log(y));
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[x, -4e+152], N[(x * N[(N[Log[y], $MachinePrecision] + N[(N[(y * i), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9e+172], N[(N[(N[(y * i), $MachinePrecision] + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(x * N[Log[y], $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}\;x \leq -4 \cdot 10^{+152}:\\
\;\;\;\;x \cdot \left(\log y + \frac{y \cdot i}{x}\right)\\
\mathbf{elif}\;x \leq 9 \cdot 10^{+172}:\\
\;\;\;\;\left(y \cdot i + \left(b + -0.5\right) \cdot \log c\right) + \left(z + \left(t + a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + x \cdot \log y\\
\end{array}
\end{array}
if x < -4.0000000000000002e152Initial program 99.7%
associate-+l+99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-define99.7%
+-commutative99.7%
fma-define99.7%
Simplified99.8%
Taylor expanded in x around -inf 99.7%
Taylor expanded in i around inf 70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in x around inf 70.5%
neg-mul-170.5%
neg-mul-170.5%
distribute-lft-out70.5%
+-commutative70.5%
*-commutative70.5%
associate-*r/70.5%
distribute-lft-in70.5%
neg-mul-170.5%
fma-undefine70.5%
fmm-undef70.5%
associate-*r/70.5%
*-commutative70.5%
associate-*r/70.5%
associate-*r*70.5%
mul-1-neg70.5%
Simplified70.5%
if -4.0000000000000002e152 < x < 9.0000000000000004e172Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in x around 0 96.3%
associate-+r+96.3%
Simplified96.3%
if 9.0000000000000004e172 < x Initial program 99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
Simplified99.9%
Taylor expanded in x around -inf 99.8%
Taylor expanded in i around inf 75.7%
*-commutative75.7%
Simplified75.7%
Taylor expanded in x around 0 75.7%
distribute-lft-out75.7%
*-commutative75.7%
Simplified75.7%
Final simplification90.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 (* x (log y))))
(if (<= a -4.35e-265)
(+ z t_1)
(if (<= a 1.3e+110)
(+ (* (+ b -0.5) (log c)) (+ z t))
(if (<= a 3e+179) (+ (* y i) t_1) (+ a (+ z t)))))))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 tmp;
if (a <= -4.35e-265) {
tmp = z + t_1;
} else if (a <= 1.3e+110) {
tmp = ((b + -0.5) * log(c)) + (z + t);
} else if (a <= 3e+179) {
tmp = (y * i) + t_1;
} else {
tmp = a + (z + t);
}
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 = x * log(y)
if (a <= (-4.35d-265)) then
tmp = z + t_1
else if (a <= 1.3d+110) then
tmp = ((b + (-0.5d0)) * log(c)) + (z + t)
else if (a <= 3d+179) then
tmp = (y * i) + t_1
else
tmp = a + (z + t)
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 tmp;
if (a <= -4.35e-265) {
tmp = z + t_1;
} else if (a <= 1.3e+110) {
tmp = ((b + -0.5) * Math.log(c)) + (z + t);
} else if (a <= 3e+179) {
tmp = (y * i) + t_1;
} else {
tmp = a + (z + t);
}
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) tmp = 0 if a <= -4.35e-265: tmp = z + t_1 elif a <= 1.3e+110: tmp = ((b + -0.5) * math.log(c)) + (z + t) elif a <= 3e+179: tmp = (y * i) + t_1 else: tmp = a + (z + t) 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)) tmp = 0.0 if (a <= -4.35e-265) tmp = Float64(z + t_1); elseif (a <= 1.3e+110) tmp = Float64(Float64(Float64(b + -0.5) * log(c)) + Float64(z + t)); elseif (a <= 3e+179) tmp = Float64(Float64(y * i) + t_1); else tmp = Float64(a + Float64(z + t)); 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);
tmp = 0.0;
if (a <= -4.35e-265)
tmp = z + t_1;
elseif (a <= 1.3e+110)
tmp = ((b + -0.5) * log(c)) + (z + t);
elseif (a <= 3e+179)
tmp = (y * i) + t_1;
else
tmp = a + (z + t);
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]}, If[LessEqual[a, -4.35e-265], N[(z + t$95$1), $MachinePrecision], If[LessEqual[a, 1.3e+110], N[(N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision] + N[(z + t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3e+179], N[(N[(y * i), $MachinePrecision] + t$95$1), $MachinePrecision], N[(a + N[(z + t), $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\\
\mathbf{if}\;a \leq -4.35 \cdot 10^{-265}:\\
\;\;\;\;z + t\_1\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{+110}:\\
\;\;\;\;\left(b + -0.5\right) \cdot \log c + \left(z + t\right)\\
\mathbf{elif}\;a \leq 3 \cdot 10^{+179}:\\
\;\;\;\;y \cdot i + t\_1\\
\mathbf{else}:\\
\;\;\;\;a + \left(z + t\right)\\
\end{array}
\end{array}
if a < -4.3499999999999999e-265Initial program 99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around -inf 69.7%
Taylor expanded in z around inf 26.2%
Taylor expanded in x around 0 31.2%
distribute-lft-out31.2%
Simplified31.2%
if -4.3499999999999999e-265 < a < 1.3e110Initial program 99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in y around 0 83.3%
Taylor expanded in a around 0 80.5%
Taylor expanded in x around 0 61.9%
associate-+r+61.9%
+-commutative61.9%
sub-neg61.9%
metadata-eval61.9%
+-commutative61.9%
Simplified61.9%
if 1.3e110 < a < 2.9999999999999998e179Initial program 99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around -inf 81.5%
Taylor expanded in i around inf 50.5%
*-commutative50.5%
Simplified50.5%
Taylor expanded in x around 0 50.5%
distribute-lft-out50.5%
*-commutative50.5%
Simplified50.5%
if 2.9999999999999998e179 < a Initial program 100.0%
associate-+l+100.0%
associate-+l+100.0%
+-commutative100.0%
associate-+l+100.0%
+-commutative100.0%
associate-+l+100.0%
+-commutative100.0%
associate-+l+100.0%
+-commutative100.0%
fma-define100.0%
+-commutative100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in y around 0 70.3%
Taylor expanded in z around inf 54.1%
Final simplification46.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 (<= a -2.05e-265) (+ z (* x (log y))) (if (<= a 5.6e+167) (+ (* (+ b -0.5) (log c)) (+ z t)) (+ a (+ z t)))))
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 <= -2.05e-265) {
tmp = z + (x * log(y));
} else if (a <= 5.6e+167) {
tmp = ((b + -0.5) * log(c)) + (z + t);
} else {
tmp = a + (z + t);
}
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 <= (-2.05d-265)) then
tmp = z + (x * log(y))
else if (a <= 5.6d+167) then
tmp = ((b + (-0.5d0)) * log(c)) + (z + t)
else
tmp = a + (z + t)
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 <= -2.05e-265) {
tmp = z + (x * Math.log(y));
} else if (a <= 5.6e+167) {
tmp = ((b + -0.5) * Math.log(c)) + (z + t);
} else {
tmp = a + (z + t);
}
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 <= -2.05e-265: tmp = z + (x * math.log(y)) elif a <= 5.6e+167: tmp = ((b + -0.5) * math.log(c)) + (z + t) else: tmp = a + (z + t) 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 <= -2.05e-265) tmp = Float64(z + Float64(x * log(y))); elseif (a <= 5.6e+167) tmp = Float64(Float64(Float64(b + -0.5) * log(c)) + Float64(z + t)); else tmp = Float64(a + Float64(z + t)); 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 <= -2.05e-265)
tmp = z + (x * log(y));
elseif (a <= 5.6e+167)
tmp = ((b + -0.5) * log(c)) + (z + t);
else
tmp = a + (z + t);
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, -2.05e-265], N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.6e+167], N[(N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision] + N[(z + t), $MachinePrecision]), $MachinePrecision], N[(a + N[(z + t), $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 -2.05 \cdot 10^{-265}:\\
\;\;\;\;z + x \cdot \log y\\
\mathbf{elif}\;a \leq 5.6 \cdot 10^{+167}:\\
\;\;\;\;\left(b + -0.5\right) \cdot \log c + \left(z + t\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(z + t\right)\\
\end{array}
\end{array}
if a < -2.05e-265Initial program 99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around -inf 69.7%
Taylor expanded in z around inf 26.2%
Taylor expanded in x around 0 31.2%
distribute-lft-out31.2%
Simplified31.2%
if -2.05e-265 < a < 5.5999999999999998e167Initial program 99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in y around 0 82.0%
Taylor expanded in a around 0 79.5%
Taylor expanded in x around 0 61.5%
associate-+r+61.5%
+-commutative61.5%
sub-neg61.5%
metadata-eval61.5%
+-commutative61.5%
Simplified61.5%
if 5.5999999999999998e167 < a Initial program 100.0%
associate-+l+100.0%
associate-+l+100.0%
+-commutative100.0%
associate-+l+100.0%
+-commutative100.0%
associate-+l+100.0%
+-commutative100.0%
associate-+l+100.0%
+-commutative100.0%
fma-define100.0%
+-commutative100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in y around 0 68.2%
Taylor expanded in z around inf 52.5%
Final simplification46.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) (* (+ b -0.5) (log c))))) (if (<= z -3.6e+102) (+ z t_1) (+ a 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) + ((b + -0.5) * log(c));
double tmp;
if (z <= -3.6e+102) {
tmp = z + t_1;
} else {
tmp = a + 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) + ((b + (-0.5d0)) * log(c))
if (z <= (-3.6d+102)) then
tmp = z + t_1
else
tmp = a + 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) + ((b + -0.5) * Math.log(c));
double tmp;
if (z <= -3.6e+102) {
tmp = z + t_1;
} else {
tmp = a + 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) + ((b + -0.5) * math.log(c)) tmp = 0 if z <= -3.6e+102: tmp = z + t_1 else: tmp = a + 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(Float64(b + -0.5) * log(c))) tmp = 0.0 if (z <= -3.6e+102) tmp = Float64(z + t_1); else tmp = Float64(a + 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) + ((b + -0.5) * log(c));
tmp = 0.0;
if (z <= -3.6e+102)
tmp = z + t_1;
else
tmp = a + 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[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.6e+102], N[(z + t$95$1), $MachinePrecision], N[(a + t$95$1), $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 := y \cdot i + \left(b + -0.5\right) \cdot \log c\\
\mathbf{if}\;z \leq -3.6 \cdot 10^{+102}:\\
\;\;\;\;z + t\_1\\
\mathbf{else}:\\
\;\;\;\;a + t\_1\\
\end{array}
\end{array}
if z < -3.6000000000000002e102Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around inf 69.1%
if -3.6000000000000002e102 < z Initial program 99.8%
associate-+l+99.8%
+-commutative99.8%
+-commutative99.8%
associate-+l+99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in a around inf 58.7%
Final simplification60.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 (if (<= z -3.5e+197) (+ z (* x (log y))) (+ a (+ (* y i) (* (+ 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 <= -3.5e+197) {
tmp = z + (x * log(y));
} else {
tmp = a + ((y * i) + ((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 <= (-3.5d+197)) then
tmp = z + (x * log(y))
else
tmp = a + ((y * i) + ((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 <= -3.5e+197) {
tmp = z + (x * Math.log(y));
} else {
tmp = a + ((y * i) + ((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 <= -3.5e+197: tmp = z + (x * math.log(y)) else: tmp = a + ((y * i) + ((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 <= -3.5e+197) tmp = Float64(z + Float64(x * log(y))); else tmp = Float64(a + Float64(Float64(y * i) + 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 <= -3.5e+197)
tmp = z + (x * log(y));
else
tmp = a + ((y * i) + ((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, -3.5e+197], N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(N[(y * i), $MachinePrecision] + 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 -3.5 \cdot 10^{+197}:\\
\;\;\;\;z + x \cdot \log y\\
\mathbf{else}:\\
\;\;\;\;a + \left(y \cdot i + \left(b + -0.5\right) \cdot \log c\right)\\
\end{array}
\end{array}
if z < -3.49999999999999999e197Initial program 99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
Simplified100.0%
Taylor expanded in x around -inf 57.1%
Taylor expanded in z around inf 31.5%
Taylor expanded in x around 0 57.9%
distribute-lft-out57.9%
Simplified57.9%
if -3.49999999999999999e197 < z Initial program 99.8%
associate-+l+99.8%
+-commutative99.8%
+-commutative99.8%
associate-+l+99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in a around inf 58.7%
Final simplification58.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 (or (<= x -7.2e+150) (not (<= x 5.8e+172))) (+ z (* x (log y))) (+ a (+ z t))))
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 ((x <= -7.2e+150) || !(x <= 5.8e+172)) {
tmp = z + (x * log(y));
} else {
tmp = a + (z + t);
}
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 ((x <= (-7.2d+150)) .or. (.not. (x <= 5.8d+172))) then
tmp = z + (x * log(y))
else
tmp = a + (z + t)
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 ((x <= -7.2e+150) || !(x <= 5.8e+172)) {
tmp = z + (x * Math.log(y));
} else {
tmp = a + (z + t);
}
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 (x <= -7.2e+150) or not (x <= 5.8e+172): tmp = z + (x * math.log(y)) else: tmp = a + (z + t) 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 ((x <= -7.2e+150) || !(x <= 5.8e+172)) tmp = Float64(z + Float64(x * log(y))); else tmp = Float64(a + Float64(z + t)); 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 ((x <= -7.2e+150) || ~((x <= 5.8e+172)))
tmp = z + (x * log(y));
else
tmp = a + (z + t);
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[Or[LessEqual[x, -7.2e+150], N[Not[LessEqual[x, 5.8e+172]], $MachinePrecision]], N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(z + t), $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}\;x \leq -7.2 \cdot 10^{+150} \lor \neg \left(x \leq 5.8 \cdot 10^{+172}\right):\\
\;\;\;\;z + x \cdot \log y\\
\mathbf{else}:\\
\;\;\;\;a + \left(z + t\right)\\
\end{array}
\end{array}
if x < -7.19999999999999972e150 or 5.7999999999999999e172 < x Initial program 99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around -inf 99.8%
Taylor expanded in z around inf 57.1%
Taylor expanded in x around 0 57.1%
distribute-lft-out57.1%
Simplified57.1%
if -7.19999999999999972e150 < x < 5.7999999999999999e172Initial program 99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in y around 0 80.0%
Taylor expanded in z around inf 51.9%
Final simplification53.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 (if (<= z -3.9e+116) (+ z t) (if (<= z -3500.0) (* 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 (z <= -3.9e+116) {
tmp = z + t;
} else if (z <= -3500.0) {
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 (z <= (-3.9d+116)) then
tmp = z + t
else if (z <= (-3500.0d0)) 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 (z <= -3.9e+116) {
tmp = z + t;
} else if (z <= -3500.0) {
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 z <= -3.9e+116: tmp = z + t elif z <= -3500.0: 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 (z <= -3.9e+116) tmp = Float64(z + t); elseif (z <= -3500.0) 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 (z <= -3.9e+116)
tmp = z + t;
elseif (z <= -3500.0)
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[z, -3.9e+116], N[(z + t), $MachinePrecision], If[LessEqual[z, -3500.0], 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}\;z \leq -3.9 \cdot 10^{+116}:\\
\;\;\;\;z + t\\
\mathbf{elif}\;z \leq -3500:\\
\;\;\;\;y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if z < -3.90000000000000032e116Initial program 99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
Simplified100.0%
Taylor expanded in y around 0 79.0%
Taylor expanded in a around 0 70.2%
Taylor expanded in z around inf 50.8%
if -3.90000000000000032e116 < z < -3500Initial program 99.7%
associate-+l+99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-define99.7%
+-commutative99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in y around inf 27.0%
*-commutative27.0%
Simplified27.0%
if -3500 < z Initial program 99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in y around 0 80.3%
Taylor expanded in a around inf 17.3%
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 (<= z -4e+116) z (if (<= z -5000.0) (* 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 (z <= -4e+116) {
tmp = z;
} else if (z <= -5000.0) {
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 (z <= (-4d+116)) then
tmp = z
else if (z <= (-5000.0d0)) 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 (z <= -4e+116) {
tmp = z;
} else if (z <= -5000.0) {
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 z <= -4e+116: tmp = z elif z <= -5000.0: 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 (z <= -4e+116) tmp = z; elseif (z <= -5000.0) 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 (z <= -4e+116)
tmp = z;
elseif (z <= -5000.0)
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[z, -4e+116], z, If[LessEqual[z, -5000.0], 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}\;z \leq -4 \cdot 10^{+116}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq -5000:\\
\;\;\;\;y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if z < -4.00000000000000006e116Initial program 99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
Simplified100.0%
Taylor expanded in y around inf 75.0%
Simplified75.0%
Taylor expanded in x around 0 71.6%
associate-+r+71.6%
+-commutative71.6%
associate-/l*71.6%
sub-neg71.6%
metadata-eval71.6%
fma-undefine71.6%
+-commutative71.6%
associate-+l+71.6%
associate-+r+71.6%
Simplified71.6%
Taylor expanded in z around inf 39.7%
if -4.00000000000000006e116 < z < -5e3Initial program 99.7%
associate-+l+99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-define99.7%
+-commutative99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in y around inf 27.0%
*-commutative27.0%
Simplified27.0%
if -5e3 < z Initial program 99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in y around 0 80.3%
Taylor expanded in a around inf 17.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 (<= y 5.2e+142) (+ a (+ z t)) (* 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 (y <= 5.2e+142) {
tmp = a + (z + t);
} else {
tmp = 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 (y <= 5.2d+142) then
tmp = a + (z + t)
else
tmp = 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 (y <= 5.2e+142) {
tmp = a + (z + t);
} else {
tmp = 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 y <= 5.2e+142: tmp = a + (z + t) else: tmp = 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 (y <= 5.2e+142) tmp = Float64(a + Float64(z + t)); else tmp = 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 (y <= 5.2e+142)
tmp = a + (z + t);
else
tmp = 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[y, 5.2e+142], N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision], N[(y * i), $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 5.2 \cdot 10^{+142}:\\
\;\;\;\;a + \left(z + t\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i\\
\end{array}
\end{array}
if y < 5.20000000000000043e142Initial program 99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in y around 0 90.3%
Taylor expanded in z around inf 52.5%
if 5.20000000000000043e142 < y Initial program 99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define100.0%
+-commutative100.0%
fma-define99.9%
Simplified100.0%
Taylor expanded in y around inf 49.5%
*-commutative49.5%
Simplified49.5%
Final simplification51.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 (<= z -1.38e+101) 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 (z <= -1.38e+101) {
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 (z <= (-1.38d+101)) 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 (z <= -1.38e+101) {
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 z <= -1.38e+101: 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 (z <= -1.38e+101) 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 (z <= -1.38e+101)
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[z, -1.38e+101], 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}\;z \leq -1.38 \cdot 10^{+101}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if z < -1.38e101Initial program 99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
Simplified100.0%
Taylor expanded in y around inf 74.1%
Simplified74.2%
Taylor expanded in x around 0 70.9%
associate-+r+70.9%
+-commutative70.9%
associate-/l*70.9%
sub-neg70.9%
metadata-eval70.9%
fma-undefine70.9%
+-commutative70.9%
associate-+l+70.9%
associate-+r+70.9%
Simplified70.9%
Taylor expanded in z around inf 38.4%
if -1.38e101 < z Initial program 99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in y around 0 79.7%
Taylor expanded in a around inf 16.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 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%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in y around 0 79.7%
Taylor expanded in a around inf 15.0%
herbie shell --seed 2024165
(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)))