
(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 21 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}
(FPCore (x y z t a b c i) :precision binary64 (fma y i (fma (+ b -0.5) (log c) (+ z (fma x (log y) (+ t a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return fma(y, i, fma((b + -0.5), log(c), (z + fma(x, log(y), (t + a)))));
}
function code(x, y, z, t, a, b, c, i) return fma(y, i, fma(Float64(b + -0.5), log(c), Float64(z + fma(x, log(y), Float64(t + a))))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(y * i + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + N[(z + N[(x * N[Log[y], $MachinePrecision] + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y, i, \mathsf{fma}\left(b + -0.5, \log c, z + \mathsf{fma}\left(x, \log y, t + a\right)\right)\right)
\end{array}
Initial program 99.4%
associate-+l+99.4%
associate-+l+99.4%
+-commutative99.4%
associate-+l+99.4%
+-commutative99.4%
associate-+l+99.4%
+-commutative99.4%
associate-+l+99.4%
+-commutative99.4%
fma-define99.5%
+-commutative99.5%
fma-define99.5%
Simplified99.5%
Final simplification99.5%
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ t a) (fma x (log y) z)) (+ (* (+ 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 ((t + a) + fma(x, log(y), z)) + (((b + -0.5) * log(c)) + (y * i));
}
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(t + a) + fma(x, log(y), z)) + Float64(Float64(Float64(b + -0.5) * log(c)) + Float64(y * i))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(t + a), $MachinePrecision] + N[(x * N[Log[y], $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(t + a\right) + \mathsf{fma}\left(x, \log y, z\right)\right) + \left(\left(b + -0.5\right) \cdot \log c + y \cdot i\right)
\end{array}
Initial program 99.4%
associate-+l+99.4%
associate-+l+99.4%
fma-define99.4%
sub-neg99.4%
metadata-eval99.4%
Simplified99.4%
Final simplification99.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (log c) (- b 0.5))))
(if (<= x -2.75e+240)
(+ (* y i) (* x (+ (log y) (/ a x))))
(if (<= x 1.76e+78)
(+ (* y i) (+ a (+ t (+ z t_1))))
(+ a (+ t (+ z (+ (* x (log y)) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = log(c) * (b - 0.5);
double tmp;
if (x <= -2.75e+240) {
tmp = (y * i) + (x * (log(y) + (a / x)));
} else if (x <= 1.76e+78) {
tmp = (y * i) + (a + (t + (z + t_1)));
} else {
tmp = a + (t + (z + ((x * log(y)) + t_1)));
}
return tmp;
}
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 = log(c) * (b - 0.5d0)
if (x <= (-2.75d+240)) then
tmp = (y * i) + (x * (log(y) + (a / x)))
else if (x <= 1.76d+78) then
tmp = (y * i) + (a + (t + (z + t_1)))
else
tmp = a + (t + (z + ((x * log(y)) + t_1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = Math.log(c) * (b - 0.5);
double tmp;
if (x <= -2.75e+240) {
tmp = (y * i) + (x * (Math.log(y) + (a / x)));
} else if (x <= 1.76e+78) {
tmp = (y * i) + (a + (t + (z + t_1)));
} else {
tmp = a + (t + (z + ((x * Math.log(y)) + t_1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = math.log(c) * (b - 0.5) tmp = 0 if x <= -2.75e+240: tmp = (y * i) + (x * (math.log(y) + (a / x))) elif x <= 1.76e+78: tmp = (y * i) + (a + (t + (z + t_1))) else: tmp = a + (t + (z + ((x * math.log(y)) + t_1))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(log(c) * Float64(b - 0.5)) tmp = 0.0 if (x <= -2.75e+240) tmp = Float64(Float64(y * i) + Float64(x * Float64(log(y) + Float64(a / x)))); elseif (x <= 1.76e+78) tmp = Float64(Float64(y * i) + Float64(a + Float64(t + Float64(z + t_1)))); else tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(x * log(y)) + t_1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = log(c) * (b - 0.5); tmp = 0.0; if (x <= -2.75e+240) tmp = (y * i) + (x * (log(y) + (a / x))); elseif (x <= 1.76e+78) tmp = (y * i) + (a + (t + (z + t_1))); else tmp = a + (t + (z + ((x * log(y)) + t_1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.75e+240], N[(N[(y * i), $MachinePrecision] + N[(x * N[(N[Log[y], $MachinePrecision] + N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.76e+78], N[(N[(y * i), $MachinePrecision] + N[(a + N[(t + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(z + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right)\\
\mathbf{if}\;x \leq -2.75 \cdot 10^{+240}:\\
\;\;\;\;y \cdot i + x \cdot \left(\log y + \frac{a}{x}\right)\\
\mathbf{elif}\;x \leq 1.76 \cdot 10^{+78}:\\
\;\;\;\;y \cdot i + \left(a + \left(t + \left(z + t\_1\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + \left(x \cdot \log y + t\_1\right)\right)\right)\\
\end{array}
\end{array}
if x < -2.75e240Initial program 99.7%
Taylor expanded in x around -inf 99.6%
mul-1-neg99.6%
distribute-lft-out99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in a around inf 87.8%
if -2.75e240 < x < 1.76e78Initial program 99.9%
Taylor expanded in x around 0 95.8%
if 1.76e78 < x Initial program 97.7%
Taylor expanded in y around 0 88.3%
Final simplification93.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (log c) (- b 0.5))))
(if (<= x -3.15e+240)
(+ (* y i) (* x (+ (log y) (/ (* b (log c)) x))))
(if (<= x 4.5e+85)
(+ (* y i) (+ a (+ t (+ z t_1))))
(+ a (+ t (+ z (+ (* x (log y)) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = log(c) * (b - 0.5);
double tmp;
if (x <= -3.15e+240) {
tmp = (y * i) + (x * (log(y) + ((b * log(c)) / x)));
} else if (x <= 4.5e+85) {
tmp = (y * i) + (a + (t + (z + t_1)));
} else {
tmp = a + (t + (z + ((x * log(y)) + t_1)));
}
return tmp;
}
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 = log(c) * (b - 0.5d0)
if (x <= (-3.15d+240)) then
tmp = (y * i) + (x * (log(y) + ((b * log(c)) / x)))
else if (x <= 4.5d+85) then
tmp = (y * i) + (a + (t + (z + t_1)))
else
tmp = a + (t + (z + ((x * log(y)) + t_1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = Math.log(c) * (b - 0.5);
double tmp;
if (x <= -3.15e+240) {
tmp = (y * i) + (x * (Math.log(y) + ((b * Math.log(c)) / x)));
} else if (x <= 4.5e+85) {
tmp = (y * i) + (a + (t + (z + t_1)));
} else {
tmp = a + (t + (z + ((x * Math.log(y)) + t_1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = math.log(c) * (b - 0.5) tmp = 0 if x <= -3.15e+240: tmp = (y * i) + (x * (math.log(y) + ((b * math.log(c)) / x))) elif x <= 4.5e+85: tmp = (y * i) + (a + (t + (z + t_1))) else: tmp = a + (t + (z + ((x * math.log(y)) + t_1))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(log(c) * Float64(b - 0.5)) tmp = 0.0 if (x <= -3.15e+240) tmp = Float64(Float64(y * i) + Float64(x * Float64(log(y) + Float64(Float64(b * log(c)) / x)))); elseif (x <= 4.5e+85) tmp = Float64(Float64(y * i) + Float64(a + Float64(t + Float64(z + t_1)))); else tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(x * log(y)) + t_1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = log(c) * (b - 0.5); tmp = 0.0; if (x <= -3.15e+240) tmp = (y * i) + (x * (log(y) + ((b * log(c)) / x))); elseif (x <= 4.5e+85) tmp = (y * i) + (a + (t + (z + t_1))); else tmp = a + (t + (z + ((x * log(y)) + t_1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.15e+240], N[(N[(y * i), $MachinePrecision] + N[(x * N[(N[Log[y], $MachinePrecision] + N[(N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.5e+85], N[(N[(y * i), $MachinePrecision] + N[(a + N[(t + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(z + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right)\\
\mathbf{if}\;x \leq -3.15 \cdot 10^{+240}:\\
\;\;\;\;y \cdot i + x \cdot \left(\log y + \frac{b \cdot \log c}{x}\right)\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{+85}:\\
\;\;\;\;y \cdot i + \left(a + \left(t + \left(z + t\_1\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + \left(x \cdot \log y + t\_1\right)\right)\right)\\
\end{array}
\end{array}
if x < -3.14999999999999985e240Initial program 99.7%
Taylor expanded in x around -inf 99.6%
mul-1-neg99.6%
distribute-lft-out99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in b around inf 94.8%
if -3.14999999999999985e240 < x < 4.50000000000000007e85Initial program 99.9%
Taylor expanded in x around 0 95.8%
if 4.50000000000000007e85 < x Initial program 97.7%
Taylor expanded in y around 0 88.3%
Final simplification94.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (log c) (- b 0.5))))
(if (<= a 4.4e+123)
(+ (* y i) (+ t (+ z (+ (* x (log y)) t_1))))
(+ (* y i) (+ a (+ t (+ z t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = log(c) * (b - 0.5);
double tmp;
if (a <= 4.4e+123) {
tmp = (y * i) + (t + (z + ((x * log(y)) + t_1)));
} else {
tmp = (y * i) + (a + (t + (z + t_1)));
}
return tmp;
}
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 = log(c) * (b - 0.5d0)
if (a <= 4.4d+123) then
tmp = (y * i) + (t + (z + ((x * log(y)) + t_1)))
else
tmp = (y * i) + (a + (t + (z + t_1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = Math.log(c) * (b - 0.5);
double tmp;
if (a <= 4.4e+123) {
tmp = (y * i) + (t + (z + ((x * Math.log(y)) + t_1)));
} else {
tmp = (y * i) + (a + (t + (z + t_1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = math.log(c) * (b - 0.5) tmp = 0 if a <= 4.4e+123: tmp = (y * i) + (t + (z + ((x * math.log(y)) + t_1))) else: tmp = (y * i) + (a + (t + (z + t_1))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(log(c) * Float64(b - 0.5)) tmp = 0.0 if (a <= 4.4e+123) tmp = Float64(Float64(y * i) + Float64(t + Float64(z + Float64(Float64(x * log(y)) + t_1)))); else tmp = Float64(Float64(y * i) + Float64(a + Float64(t + Float64(z + t_1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = log(c) * (b - 0.5); tmp = 0.0; if (a <= 4.4e+123) tmp = (y * i) + (t + (z + ((x * log(y)) + t_1))); else tmp = (y * i) + (a + (t + (z + t_1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, 4.4e+123], N[(N[(y * i), $MachinePrecision] + N[(t + N[(z + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(t + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right)\\
\mathbf{if}\;a \leq 4.4 \cdot 10^{+123}:\\
\;\;\;\;y \cdot i + \left(t + \left(z + \left(x \cdot \log y + t\_1\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \left(t + \left(z + t\_1\right)\right)\right)\\
\end{array}
\end{array}
if a < 4.39999999999999984e123Initial program 99.4%
Taylor expanded in a around 0 89.5%
if 4.39999999999999984e123 < a Initial program 99.9%
Taylor expanded in x around 0 91.3%
Final simplification89.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -8e+149) (+ (* y i) (+ a (+ t (+ z (* (log c) (- b 0.5)))))) (+ (+ (* (+ b -0.5) (log c)) (* y i)) (+ (+ t a) (* x (log y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -8e+149) {
tmp = (y * i) + (a + (t + (z + (log(c) * (b - 0.5)))));
} else {
tmp = (((b + -0.5) * log(c)) + (y * i)) + ((t + a) + (x * log(y)));
}
return tmp;
}
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 <= (-8d+149)) then
tmp = (y * i) + (a + (t + (z + (log(c) * (b - 0.5d0)))))
else
tmp = (((b + (-0.5d0)) * log(c)) + (y * i)) + ((t + a) + (x * log(y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -8e+149) {
tmp = (y * i) + (a + (t + (z + (Math.log(c) * (b - 0.5)))));
} else {
tmp = (((b + -0.5) * Math.log(c)) + (y * i)) + ((t + a) + (x * Math.log(y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -8e+149: tmp = (y * i) + (a + (t + (z + (math.log(c) * (b - 0.5))))) else: tmp = (((b + -0.5) * math.log(c)) + (y * i)) + ((t + a) + (x * math.log(y))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -8e+149) tmp = Float64(Float64(y * i) + Float64(a + Float64(t + Float64(z + Float64(log(c) * Float64(b - 0.5)))))); else tmp = Float64(Float64(Float64(Float64(b + -0.5) * log(c)) + Float64(y * i)) + Float64(Float64(t + a) + Float64(x * log(y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -8e+149) tmp = (y * i) + (a + (t + (z + (log(c) * (b - 0.5))))); else tmp = (((b + -0.5) * log(c)) + (y * i)) + ((t + a) + (x * log(y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -8e+149], N[(N[(y * i), $MachinePrecision] + N[(a + N[(t + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision] + N[(N[(t + a), $MachinePrecision] + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{+149}:\\
\;\;\;\;y \cdot i + \left(a + \left(t + \left(z + \log c \cdot \left(b - 0.5\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b + -0.5\right) \cdot \log c + y \cdot i\right) + \left(\left(t + a\right) + x \cdot \log y\right)\\
\end{array}
\end{array}
if z < -8.00000000000000039e149Initial program 99.9%
Taylor expanded in x around 0 90.5%
if -8.00000000000000039e149 < z Initial program 99.4%
associate-+l+99.4%
associate-+l+99.4%
fma-define99.4%
sub-neg99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in x around inf 89.5%
Taylor expanded in z around 0 88.9%
associate-+r+88.9%
Simplified88.9%
Final simplification89.1%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (* (log c) (- b 0.5)) (+ a (+ t (+ z (* x (log y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((log(c) * (b - 0.5)) + (a + (t + (z + (x * log(y))))));
}
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) + ((log(c) * (b - 0.5d0)) + (a + (t + (z + (x * log(y))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((Math.log(c) * (b - 0.5)) + (a + (t + (z + (x * Math.log(y))))));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + ((math.log(c) * (b - 0.5)) + (a + (t + (z + (x * math.log(y))))))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(Float64(log(c) * Float64(b - 0.5)) + Float64(a + Float64(t + Float64(z + Float64(x * log(y))))))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + ((log(c) * (b - 0.5)) + (a + (t + (z + (x * log(y)))))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision] + N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right)\right)
\end{array}
Initial program 99.4%
Final simplification99.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (+ t (+ z (* x (log y)))))) (t_2 (+ (* y i) (* b (log c)))))
(if (<= b -5e+188)
t_2
(if (<= b -0.049)
t_1
(if (<= b -1.4e-230)
(+ (* y i) (* z (+ (/ a z) 1.0)))
(if (<= b -2.7e-285)
t_1
(if (<= b 3.4e+95)
(+ (* y i) (* a (+ (+ (/ t a) (/ z a)) 1.0)))
(if (<= b 1.95e+171) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a + (t + (z + (x * log(y))));
double t_2 = (y * i) + (b * log(c));
double tmp;
if (b <= -5e+188) {
tmp = t_2;
} else if (b <= -0.049) {
tmp = t_1;
} else if (b <= -1.4e-230) {
tmp = (y * i) + (z * ((a / z) + 1.0));
} else if (b <= -2.7e-285) {
tmp = t_1;
} else if (b <= 3.4e+95) {
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0));
} else if (b <= 1.95e+171) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
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 + (t + (z + (x * log(y))))
t_2 = (y * i) + (b * log(c))
if (b <= (-5d+188)) then
tmp = t_2
else if (b <= (-0.049d0)) then
tmp = t_1
else if (b <= (-1.4d-230)) then
tmp = (y * i) + (z * ((a / z) + 1.0d0))
else if (b <= (-2.7d-285)) then
tmp = t_1
else if (b <= 3.4d+95) then
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0d0))
else if (b <= 1.95d+171) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a + (t + (z + (x * Math.log(y))));
double t_2 = (y * i) + (b * Math.log(c));
double tmp;
if (b <= -5e+188) {
tmp = t_2;
} else if (b <= -0.049) {
tmp = t_1;
} else if (b <= -1.4e-230) {
tmp = (y * i) + (z * ((a / z) + 1.0));
} else if (b <= -2.7e-285) {
tmp = t_1;
} else if (b <= 3.4e+95) {
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0));
} else if (b <= 1.95e+171) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a + (t + (z + (x * math.log(y)))) t_2 = (y * i) + (b * math.log(c)) tmp = 0 if b <= -5e+188: tmp = t_2 elif b <= -0.049: tmp = t_1 elif b <= -1.4e-230: tmp = (y * i) + (z * ((a / z) + 1.0)) elif b <= -2.7e-285: tmp = t_1 elif b <= 3.4e+95: tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0)) elif b <= 1.95e+171: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) t_2 = Float64(Float64(y * i) + Float64(b * log(c))) tmp = 0.0 if (b <= -5e+188) tmp = t_2; elseif (b <= -0.049) tmp = t_1; elseif (b <= -1.4e-230) tmp = Float64(Float64(y * i) + Float64(z * Float64(Float64(a / z) + 1.0))); elseif (b <= -2.7e-285) tmp = t_1; elseif (b <= 3.4e+95) tmp = Float64(Float64(y * i) + Float64(a * Float64(Float64(Float64(t / a) + Float64(z / a)) + 1.0))); elseif (b <= 1.95e+171) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = a + (t + (z + (x * log(y)))); t_2 = (y * i) + (b * log(c)); tmp = 0.0; if (b <= -5e+188) tmp = t_2; elseif (b <= -0.049) tmp = t_1; elseif (b <= -1.4e-230) tmp = (y * i) + (z * ((a / z) + 1.0)); elseif (b <= -2.7e-285) tmp = t_1; elseif (b <= 3.4e+95) tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0)); elseif (b <= 1.95e+171) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * i), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5e+188], t$95$2, If[LessEqual[b, -0.049], t$95$1, If[LessEqual[b, -1.4e-230], N[(N[(y * i), $MachinePrecision] + N[(z * N[(N[(a / z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.7e-285], t$95$1, If[LessEqual[b, 3.4e+95], N[(N[(y * i), $MachinePrecision] + N[(a * N[(N[(N[(t / a), $MachinePrecision] + N[(z / a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.95e+171], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(t + \left(z + x \cdot \log y\right)\right)\\
t_2 := y \cdot i + b \cdot \log c\\
\mathbf{if}\;b \leq -5 \cdot 10^{+188}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -0.049:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.4 \cdot 10^{-230}:\\
\;\;\;\;y \cdot i + z \cdot \left(\frac{a}{z} + 1\right)\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-285}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{+95}:\\
\;\;\;\;y \cdot i + a \cdot \left(\left(\frac{t}{a} + \frac{z}{a}\right) + 1\right)\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{+171}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -5.0000000000000001e188 or 1.95e171 < b Initial program 99.7%
Taylor expanded in x around -inf 72.3%
mul-1-neg72.3%
distribute-lft-out72.3%
sub-neg72.3%
metadata-eval72.3%
Simplified72.3%
Taylor expanded in b around inf 74.3%
mul-1-neg74.3%
*-commutative74.3%
distribute-rgt-neg-in74.3%
Simplified74.3%
if -5.0000000000000001e188 < b < -0.049000000000000002 or -1.4e-230 < b < -2.6999999999999998e-285 or 3.40000000000000022e95 < b < 1.95e171Initial program 99.8%
Taylor expanded in y around 0 87.8%
Taylor expanded in x around inf 78.5%
if -0.049000000000000002 < b < -1.4e-230Initial program 99.9%
Taylor expanded in z around inf 74.2%
associate-/l*74.2%
sub-neg74.2%
metadata-eval74.2%
associate-/l*74.2%
Simplified74.2%
Taylor expanded in a around inf 61.1%
if -2.6999999999999998e-285 < b < 3.40000000000000022e95Initial program 98.8%
Taylor expanded in a around inf 78.1%
associate-/l*78.1%
sub-neg78.1%
metadata-eval78.1%
Simplified78.1%
Taylor expanded in z around inf 66.0%
Final simplification70.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* b (log c))) (t_2 (+ a (+ t (+ z (* x (log y)))))))
(if (<= b -2.15e+185)
(+ (* y i) t_1)
(if (<= b -0.046)
t_2
(if (<= b -2.1e-230)
(+ (* y i) (* z (+ (/ a z) 1.0)))
(if (<= b -2.7e-285)
t_2
(if (<= b 8.4e+96)
(+ (* y i) (* a (+ (+ (/ t a) (/ z a)) 1.0)))
(if (<= b 6.8e+170) t_2 (+ (* y i) (+ t t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = b * log(c);
double t_2 = a + (t + (z + (x * log(y))));
double tmp;
if (b <= -2.15e+185) {
tmp = (y * i) + t_1;
} else if (b <= -0.046) {
tmp = t_2;
} else if (b <= -2.1e-230) {
tmp = (y * i) + (z * ((a / z) + 1.0));
} else if (b <= -2.7e-285) {
tmp = t_2;
} else if (b <= 8.4e+96) {
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0));
} else if (b <= 6.8e+170) {
tmp = t_2;
} else {
tmp = (y * i) + (t + t_1);
}
return tmp;
}
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 * log(c)
t_2 = a + (t + (z + (x * log(y))))
if (b <= (-2.15d+185)) then
tmp = (y * i) + t_1
else if (b <= (-0.046d0)) then
tmp = t_2
else if (b <= (-2.1d-230)) then
tmp = (y * i) + (z * ((a / z) + 1.0d0))
else if (b <= (-2.7d-285)) then
tmp = t_2
else if (b <= 8.4d+96) then
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0d0))
else if (b <= 6.8d+170) then
tmp = t_2
else
tmp = (y * i) + (t + t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = b * Math.log(c);
double t_2 = a + (t + (z + (x * Math.log(y))));
double tmp;
if (b <= -2.15e+185) {
tmp = (y * i) + t_1;
} else if (b <= -0.046) {
tmp = t_2;
} else if (b <= -2.1e-230) {
tmp = (y * i) + (z * ((a / z) + 1.0));
} else if (b <= -2.7e-285) {
tmp = t_2;
} else if (b <= 8.4e+96) {
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0));
} else if (b <= 6.8e+170) {
tmp = t_2;
} else {
tmp = (y * i) + (t + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = b * math.log(c) t_2 = a + (t + (z + (x * math.log(y)))) tmp = 0 if b <= -2.15e+185: tmp = (y * i) + t_1 elif b <= -0.046: tmp = t_2 elif b <= -2.1e-230: tmp = (y * i) + (z * ((a / z) + 1.0)) elif b <= -2.7e-285: tmp = t_2 elif b <= 8.4e+96: tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0)) elif b <= 6.8e+170: tmp = t_2 else: tmp = (y * i) + (t + t_1) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(b * log(c)) t_2 = Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) tmp = 0.0 if (b <= -2.15e+185) tmp = Float64(Float64(y * i) + t_1); elseif (b <= -0.046) tmp = t_2; elseif (b <= -2.1e-230) tmp = Float64(Float64(y * i) + Float64(z * Float64(Float64(a / z) + 1.0))); elseif (b <= -2.7e-285) tmp = t_2; elseif (b <= 8.4e+96) tmp = Float64(Float64(y * i) + Float64(a * Float64(Float64(Float64(t / a) + Float64(z / a)) + 1.0))); elseif (b <= 6.8e+170) tmp = t_2; else tmp = Float64(Float64(y * i) + Float64(t + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = b * log(c); t_2 = a + (t + (z + (x * log(y)))); tmp = 0.0; if (b <= -2.15e+185) tmp = (y * i) + t_1; elseif (b <= -0.046) tmp = t_2; elseif (b <= -2.1e-230) tmp = (y * i) + (z * ((a / z) + 1.0)); elseif (b <= -2.7e-285) tmp = t_2; elseif (b <= 8.4e+96) tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0)); elseif (b <= 6.8e+170) tmp = t_2; else tmp = (y * i) + (t + t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.15e+185], N[(N[(y * i), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, -0.046], t$95$2, If[LessEqual[b, -2.1e-230], N[(N[(y * i), $MachinePrecision] + N[(z * N[(N[(a / z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.7e-285], t$95$2, If[LessEqual[b, 8.4e+96], N[(N[(y * i), $MachinePrecision] + N[(a * N[(N[(N[(t / a), $MachinePrecision] + N[(z / a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.8e+170], t$95$2, N[(N[(y * i), $MachinePrecision] + N[(t + t$95$1), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \log c\\
t_2 := a + \left(t + \left(z + x \cdot \log y\right)\right)\\
\mathbf{if}\;b \leq -2.15 \cdot 10^{+185}:\\
\;\;\;\;y \cdot i + t\_1\\
\mathbf{elif}\;b \leq -0.046:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2.1 \cdot 10^{-230}:\\
\;\;\;\;y \cdot i + z \cdot \left(\frac{a}{z} + 1\right)\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-285}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 8.4 \cdot 10^{+96}:\\
\;\;\;\;y \cdot i + a \cdot \left(\left(\frac{t}{a} + \frac{z}{a}\right) + 1\right)\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{+170}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(t + t\_1\right)\\
\end{array}
\end{array}
if b < -2.15e185Initial program 99.6%
Taylor expanded in x around -inf 74.2%
mul-1-neg74.2%
distribute-lft-out74.2%
sub-neg74.2%
metadata-eval74.2%
Simplified74.2%
Taylor expanded in b around inf 72.4%
mul-1-neg72.4%
*-commutative72.4%
distribute-rgt-neg-in72.4%
Simplified72.4%
if -2.15e185 < b < -0.045999999999999999 or -2.0999999999999998e-230 < b < -2.6999999999999998e-285 or 8.4000000000000005e96 < b < 6.8000000000000003e170Initial program 99.8%
Taylor expanded in y around 0 87.8%
Taylor expanded in x around inf 78.5%
if -0.045999999999999999 < b < -2.0999999999999998e-230Initial program 99.9%
Taylor expanded in z around inf 74.2%
associate-/l*74.2%
sub-neg74.2%
metadata-eval74.2%
associate-/l*74.2%
Simplified74.2%
Taylor expanded in a around inf 61.1%
if -2.6999999999999998e-285 < b < 8.4000000000000005e96Initial program 98.8%
Taylor expanded in a around inf 78.1%
associate-/l*78.1%
sub-neg78.1%
metadata-eval78.1%
Simplified78.1%
Taylor expanded in z around inf 66.0%
if 6.8000000000000003e170 < b Initial program 99.8%
Taylor expanded in a around inf 72.4%
associate-/l*72.4%
sub-neg72.4%
metadata-eval72.4%
Simplified72.4%
Taylor expanded in b around inf 67.2%
*-commutative67.2%
Simplified67.2%
Taylor expanded in z around 0 67.2%
*-commutative67.2%
associate-*r/67.1%
Simplified67.1%
Taylor expanded in a around 0 80.6%
+-commutative80.6%
Simplified80.6%
Final simplification70.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (+ t (+ z (* (log c) (- b 0.5)))))))
(if (<= i -2.35e+29)
(+ (* y i) (* a (+ (+ (/ t a) (/ z a)) 1.0)))
(if (<= i 5.1e+109)
t_1
(if (<= i 9.5e+191)
(+ (* y i) (* x (log y)))
(if (<= i 9e+269) t_1 (+ (* y i) (* b (log c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a + (t + (z + (log(c) * (b - 0.5))));
double tmp;
if (i <= -2.35e+29) {
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0));
} else if (i <= 5.1e+109) {
tmp = t_1;
} else if (i <= 9.5e+191) {
tmp = (y * i) + (x * log(y));
} else if (i <= 9e+269) {
tmp = t_1;
} else {
tmp = (y * i) + (b * log(c));
}
return tmp;
}
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 = a + (t + (z + (log(c) * (b - 0.5d0))))
if (i <= (-2.35d+29)) then
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0d0))
else if (i <= 5.1d+109) then
tmp = t_1
else if (i <= 9.5d+191) then
tmp = (y * i) + (x * log(y))
else if (i <= 9d+269) then
tmp = t_1
else
tmp = (y * i) + (b * log(c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a + (t + (z + (Math.log(c) * (b - 0.5))));
double tmp;
if (i <= -2.35e+29) {
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0));
} else if (i <= 5.1e+109) {
tmp = t_1;
} else if (i <= 9.5e+191) {
tmp = (y * i) + (x * Math.log(y));
} else if (i <= 9e+269) {
tmp = t_1;
} else {
tmp = (y * i) + (b * Math.log(c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a + (t + (z + (math.log(c) * (b - 0.5)))) tmp = 0 if i <= -2.35e+29: tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0)) elif i <= 5.1e+109: tmp = t_1 elif i <= 9.5e+191: tmp = (y * i) + (x * math.log(y)) elif i <= 9e+269: tmp = t_1 else: tmp = (y * i) + (b * math.log(c)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a + Float64(t + Float64(z + Float64(log(c) * Float64(b - 0.5))))) tmp = 0.0 if (i <= -2.35e+29) tmp = Float64(Float64(y * i) + Float64(a * Float64(Float64(Float64(t / a) + Float64(z / a)) + 1.0))); elseif (i <= 5.1e+109) tmp = t_1; elseif (i <= 9.5e+191) tmp = Float64(Float64(y * i) + Float64(x * log(y))); elseif (i <= 9e+269) tmp = t_1; else tmp = Float64(Float64(y * i) + Float64(b * log(c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = a + (t + (z + (log(c) * (b - 0.5)))); tmp = 0.0; if (i <= -2.35e+29) tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0)); elseif (i <= 5.1e+109) tmp = t_1; elseif (i <= 9.5e+191) tmp = (y * i) + (x * log(y)); elseif (i <= 9e+269) tmp = t_1; else tmp = (y * i) + (b * log(c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a + N[(t + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.35e+29], N[(N[(y * i), $MachinePrecision] + N[(a * N[(N[(N[(t / a), $MachinePrecision] + N[(z / a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.1e+109], t$95$1, If[LessEqual[i, 9.5e+191], N[(N[(y * i), $MachinePrecision] + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9e+269], t$95$1, N[(N[(y * i), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(t + \left(z + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\mathbf{if}\;i \leq -2.35 \cdot 10^{+29}:\\
\;\;\;\;y \cdot i + a \cdot \left(\left(\frac{t}{a} + \frac{z}{a}\right) + 1\right)\\
\mathbf{elif}\;i \leq 5.1 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 9.5 \cdot 10^{+191}:\\
\;\;\;\;y \cdot i + x \cdot \log y\\
\mathbf{elif}\;i \leq 9 \cdot 10^{+269}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + b \cdot \log c\\
\end{array}
\end{array}
if i < -2.3500000000000001e29Initial program 98.0%
Taylor expanded in a around inf 67.1%
associate-/l*67.1%
sub-neg67.1%
metadata-eval67.1%
Simplified67.1%
Taylor expanded in z around inf 63.2%
if -2.3500000000000001e29 < i < 5.0999999999999999e109 or 9.4999999999999998e191 < i < 9.0000000000000004e269Initial program 99.8%
associate-+l+99.8%
associate-+l+99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in x around inf 87.2%
Taylor expanded in x around 0 85.7%
associate-+r+85.7%
Simplified85.7%
Taylor expanded in y around 0 78.3%
if 5.0999999999999999e109 < i < 9.4999999999999998e191Initial program 99.9%
Taylor expanded in x around -inf 92.6%
mul-1-neg92.6%
distribute-lft-out92.6%
sub-neg92.6%
metadata-eval92.6%
Simplified92.6%
Taylor expanded in x around inf 82.7%
associate-*r*82.7%
neg-mul-182.7%
Simplified82.7%
if 9.0000000000000004e269 < i Initial program 99.7%
Taylor expanded in x around -inf 83.7%
mul-1-neg83.7%
distribute-lft-out83.7%
sub-neg83.7%
metadata-eval83.7%
Simplified83.7%
Taylor expanded in b around inf 97.3%
mul-1-neg97.3%
*-commutative97.3%
distribute-rgt-neg-in97.3%
Simplified97.3%
Final simplification76.5%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= i -4e+181)
(+ (* y i) (* x (+ (log y) (/ z x))))
(if (<= i -3.6e+30)
(+ (* y i) (* z (+ (/ a z) 1.0)))
(if (<= i 7e+34)
(+ a (+ t (+ z (* (log c) (- b 0.5)))))
(+ (* y i) (* z (+ (* b (/ (log c) z)) 1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (i <= -4e+181) {
tmp = (y * i) + (x * (log(y) + (z / x)));
} else if (i <= -3.6e+30) {
tmp = (y * i) + (z * ((a / z) + 1.0));
} else if (i <= 7e+34) {
tmp = a + (t + (z + (log(c) * (b - 0.5))));
} else {
tmp = (y * i) + (z * ((b * (log(c) / z)) + 1.0));
}
return tmp;
}
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 <= (-4d+181)) then
tmp = (y * i) + (x * (log(y) + (z / x)))
else if (i <= (-3.6d+30)) then
tmp = (y * i) + (z * ((a / z) + 1.0d0))
else if (i <= 7d+34) then
tmp = a + (t + (z + (log(c) * (b - 0.5d0))))
else
tmp = (y * i) + (z * ((b * (log(c) / z)) + 1.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (i <= -4e+181) {
tmp = (y * i) + (x * (Math.log(y) + (z / x)));
} else if (i <= -3.6e+30) {
tmp = (y * i) + (z * ((a / z) + 1.0));
} else if (i <= 7e+34) {
tmp = a + (t + (z + (Math.log(c) * (b - 0.5))));
} else {
tmp = (y * i) + (z * ((b * (Math.log(c) / z)) + 1.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if i <= -4e+181: tmp = (y * i) + (x * (math.log(y) + (z / x))) elif i <= -3.6e+30: tmp = (y * i) + (z * ((a / z) + 1.0)) elif i <= 7e+34: tmp = a + (t + (z + (math.log(c) * (b - 0.5)))) else: tmp = (y * i) + (z * ((b * (math.log(c) / z)) + 1.0)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (i <= -4e+181) tmp = Float64(Float64(y * i) + Float64(x * Float64(log(y) + Float64(z / x)))); elseif (i <= -3.6e+30) tmp = Float64(Float64(y * i) + Float64(z * Float64(Float64(a / z) + 1.0))); elseif (i <= 7e+34) tmp = Float64(a + Float64(t + Float64(z + Float64(log(c) * Float64(b - 0.5))))); else tmp = Float64(Float64(y * i) + Float64(z * Float64(Float64(b * Float64(log(c) / z)) + 1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (i <= -4e+181) tmp = (y * i) + (x * (log(y) + (z / x))); elseif (i <= -3.6e+30) tmp = (y * i) + (z * ((a / z) + 1.0)); elseif (i <= 7e+34) tmp = a + (t + (z + (log(c) * (b - 0.5)))); else tmp = (y * i) + (z * ((b * (log(c) / z)) + 1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[i, -4e+181], N[(N[(y * i), $MachinePrecision] + N[(x * N[(N[Log[y], $MachinePrecision] + N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.6e+30], N[(N[(y * i), $MachinePrecision] + N[(z * N[(N[(a / z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7e+34], N[(a + N[(t + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(z * N[(N[(b * N[(N[Log[c], $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -4 \cdot 10^{+181}:\\
\;\;\;\;y \cdot i + x \cdot \left(\log y + \frac{z}{x}\right)\\
\mathbf{elif}\;i \leq -3.6 \cdot 10^{+30}:\\
\;\;\;\;y \cdot i + z \cdot \left(\frac{a}{z} + 1\right)\\
\mathbf{elif}\;i \leq 7 \cdot 10^{+34}:\\
\;\;\;\;a + \left(t + \left(z + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + z \cdot \left(b \cdot \frac{\log c}{z} + 1\right)\\
\end{array}
\end{array}
if i < -3.9999999999999997e181Initial program 100.0%
Taylor expanded in x around -inf 59.0%
mul-1-neg59.0%
distribute-lft-out59.0%
sub-neg59.0%
metadata-eval59.0%
Simplified59.0%
Taylor expanded in z around inf 71.0%
if -3.9999999999999997e181 < i < -3.6000000000000002e30Initial program 96.1%
Taylor expanded in z around inf 77.1%
associate-/l*77.1%
sub-neg77.1%
metadata-eval77.1%
associate-/l*77.1%
Simplified77.1%
Taylor expanded in a around inf 68.6%
if -3.6000000000000002e30 < i < 6.99999999999999996e34Initial program 99.8%
associate-+l+99.8%
associate-+l+99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in x around inf 84.1%
Taylor expanded in x around 0 84.8%
associate-+r+84.8%
Simplified84.8%
Taylor expanded in y around 0 79.9%
if 6.99999999999999996e34 < i Initial program 99.8%
Taylor expanded in a around inf 76.2%
associate-/l*76.2%
sub-neg76.2%
metadata-eval76.2%
Simplified76.2%
Taylor expanded in b around inf 70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in z around inf 52.4%
associate-/l*49.2%
*-commutative49.2%
associate-*r/49.2%
Simplified49.2%
Taylor expanded in b around inf 56.3%
associate-/l*56.3%
Simplified56.3%
Final simplification72.3%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= x -6.3e+240)
(+ (* y i) (* x (+ (log y) (/ a x))))
(if (<= x 1.25e+225)
(+ (* y i) (+ a (+ t (+ z (* (log c) (- b 0.5))))))
(+ a (+ t (+ z (* x (log y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (x <= -6.3e+240) {
tmp = (y * i) + (x * (log(y) + (a / x)));
} else if (x <= 1.25e+225) {
tmp = (y * i) + (a + (t + (z + (log(c) * (b - 0.5)))));
} else {
tmp = a + (t + (z + (x * log(y))));
}
return tmp;
}
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 <= (-6.3d+240)) then
tmp = (y * i) + (x * (log(y) + (a / x)))
else if (x <= 1.25d+225) then
tmp = (y * i) + (a + (t + (z + (log(c) * (b - 0.5d0)))))
else
tmp = a + (t + (z + (x * log(y))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (x <= -6.3e+240) {
tmp = (y * i) + (x * (Math.log(y) + (a / x)));
} else if (x <= 1.25e+225) {
tmp = (y * i) + (a + (t + (z + (Math.log(c) * (b - 0.5)))));
} else {
tmp = a + (t + (z + (x * Math.log(y))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if x <= -6.3e+240: tmp = (y * i) + (x * (math.log(y) + (a / x))) elif x <= 1.25e+225: tmp = (y * i) + (a + (t + (z + (math.log(c) * (b - 0.5))))) else: tmp = a + (t + (z + (x * math.log(y)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (x <= -6.3e+240) tmp = Float64(Float64(y * i) + Float64(x * Float64(log(y) + Float64(a / x)))); elseif (x <= 1.25e+225) tmp = Float64(Float64(y * i) + Float64(a + Float64(t + Float64(z + Float64(log(c) * Float64(b - 0.5)))))); else tmp = Float64(a + Float64(t + Float64(z + Float64(x * log(y))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (x <= -6.3e+240) tmp = (y * i) + (x * (log(y) + (a / x))); elseif (x <= 1.25e+225) tmp = (y * i) + (a + (t + (z + (log(c) * (b - 0.5))))); else tmp = a + (t + (z + (x * log(y)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[x, -6.3e+240], N[(N[(y * i), $MachinePrecision] + N[(x * N[(N[Log[y], $MachinePrecision] + N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.25e+225], N[(N[(y * i), $MachinePrecision] + N[(a + N[(t + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.3 \cdot 10^{+240}:\\
\;\;\;\;y \cdot i + x \cdot \left(\log y + \frac{a}{x}\right)\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+225}:\\
\;\;\;\;y \cdot i + \left(a + \left(t + \left(z + \log c \cdot \left(b - 0.5\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + x \cdot \log y\right)\right)\\
\end{array}
\end{array}
if x < -6.2999999999999997e240Initial program 99.7%
Taylor expanded in x around -inf 99.6%
mul-1-neg99.6%
distribute-lft-out99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in a around inf 87.8%
if -6.2999999999999997e240 < x < 1.24999999999999995e225Initial program 99.9%
Taylor expanded in x around 0 93.7%
if 1.24999999999999995e225 < x Initial program 92.5%
Taylor expanded in y around 0 92.5%
Taylor expanded in x around inf 85.9%
Final simplification92.9%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= i -1.04e+33)
(+ (* y i) (* a (+ (+ (/ t a) (/ z a)) 1.0)))
(if (<= i 6.8e+34)
(+ a (+ t (+ z (* (log c) (- b 0.5)))))
(+ (* y i) (* z (+ (* b (/ (log c) z)) 1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (i <= -1.04e+33) {
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0));
} else if (i <= 6.8e+34) {
tmp = a + (t + (z + (log(c) * (b - 0.5))));
} else {
tmp = (y * i) + (z * ((b * (log(c) / z)) + 1.0));
}
return tmp;
}
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 <= (-1.04d+33)) then
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0d0))
else if (i <= 6.8d+34) then
tmp = a + (t + (z + (log(c) * (b - 0.5d0))))
else
tmp = (y * i) + (z * ((b * (log(c) / z)) + 1.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (i <= -1.04e+33) {
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0));
} else if (i <= 6.8e+34) {
tmp = a + (t + (z + (Math.log(c) * (b - 0.5))));
} else {
tmp = (y * i) + (z * ((b * (Math.log(c) / z)) + 1.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if i <= -1.04e+33: tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0)) elif i <= 6.8e+34: tmp = a + (t + (z + (math.log(c) * (b - 0.5)))) else: tmp = (y * i) + (z * ((b * (math.log(c) / z)) + 1.0)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (i <= -1.04e+33) tmp = Float64(Float64(y * i) + Float64(a * Float64(Float64(Float64(t / a) + Float64(z / a)) + 1.0))); elseif (i <= 6.8e+34) tmp = Float64(a + Float64(t + Float64(z + Float64(log(c) * Float64(b - 0.5))))); else tmp = Float64(Float64(y * i) + Float64(z * Float64(Float64(b * Float64(log(c) / z)) + 1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (i <= -1.04e+33) tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0)); elseif (i <= 6.8e+34) tmp = a + (t + (z + (log(c) * (b - 0.5)))); else tmp = (y * i) + (z * ((b * (log(c) / z)) + 1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[i, -1.04e+33], N[(N[(y * i), $MachinePrecision] + N[(a * N[(N[(N[(t / a), $MachinePrecision] + N[(z / a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.8e+34], N[(a + N[(t + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(z * N[(N[(b * N[(N[Log[c], $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.04 \cdot 10^{+33}:\\
\;\;\;\;y \cdot i + a \cdot \left(\left(\frac{t}{a} + \frac{z}{a}\right) + 1\right)\\
\mathbf{elif}\;i \leq 6.8 \cdot 10^{+34}:\\
\;\;\;\;a + \left(t + \left(z + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + z \cdot \left(b \cdot \frac{\log c}{z} + 1\right)\\
\end{array}
\end{array}
if i < -1.0400000000000001e33Initial program 98.0%
Taylor expanded in a around inf 67.1%
associate-/l*67.1%
sub-neg67.1%
metadata-eval67.1%
Simplified67.1%
Taylor expanded in z around inf 63.2%
if -1.0400000000000001e33 < i < 6.7999999999999999e34Initial program 99.8%
associate-+l+99.8%
associate-+l+99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in x around inf 84.1%
Taylor expanded in x around 0 84.8%
associate-+r+84.8%
Simplified84.8%
Taylor expanded in y around 0 79.9%
if 6.7999999999999999e34 < i Initial program 99.8%
Taylor expanded in a around inf 76.2%
associate-/l*76.2%
sub-neg76.2%
metadata-eval76.2%
Simplified76.2%
Taylor expanded in b around inf 70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in z around inf 52.4%
associate-/l*49.2%
*-commutative49.2%
associate-*r/49.2%
Simplified49.2%
Taylor expanded in b around inf 56.3%
associate-/l*56.3%
Simplified56.3%
Final simplification71.0%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= i -1.72e-43)
(+ (* y i) (* a (+ (+ (/ t a) (/ z a)) 1.0)))
(if (<= i 1.2e+34)
(+ a (+ t (+ z (* x (log y)))))
(+ (* y i) (* z (+ (/ a z) 1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (i <= -1.72e-43) {
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0));
} else if (i <= 1.2e+34) {
tmp = a + (t + (z + (x * log(y))));
} else {
tmp = (y * i) + (z * ((a / z) + 1.0));
}
return tmp;
}
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 <= (-1.72d-43)) then
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0d0))
else if (i <= 1.2d+34) then
tmp = a + (t + (z + (x * log(y))))
else
tmp = (y * i) + (z * ((a / z) + 1.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (i <= -1.72e-43) {
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0));
} else if (i <= 1.2e+34) {
tmp = a + (t + (z + (x * Math.log(y))));
} else {
tmp = (y * i) + (z * ((a / z) + 1.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if i <= -1.72e-43: tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0)) elif i <= 1.2e+34: tmp = a + (t + (z + (x * math.log(y)))) else: tmp = (y * i) + (z * ((a / z) + 1.0)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (i <= -1.72e-43) tmp = Float64(Float64(y * i) + Float64(a * Float64(Float64(Float64(t / a) + Float64(z / a)) + 1.0))); elseif (i <= 1.2e+34) tmp = Float64(a + Float64(t + Float64(z + Float64(x * log(y))))); else tmp = Float64(Float64(y * i) + Float64(z * Float64(Float64(a / z) + 1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (i <= -1.72e-43) tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0)); elseif (i <= 1.2e+34) tmp = a + (t + (z + (x * log(y)))); else tmp = (y * i) + (z * ((a / z) + 1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[i, -1.72e-43], N[(N[(y * i), $MachinePrecision] + N[(a * N[(N[(N[(t / a), $MachinePrecision] + N[(z / a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.2e+34], N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(z * N[(N[(a / z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.72 \cdot 10^{-43}:\\
\;\;\;\;y \cdot i + a \cdot \left(\left(\frac{t}{a} + \frac{z}{a}\right) + 1\right)\\
\mathbf{elif}\;i \leq 1.2 \cdot 10^{+34}:\\
\;\;\;\;a + \left(t + \left(z + x \cdot \log y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + z \cdot \left(\frac{a}{z} + 1\right)\\
\end{array}
\end{array}
if i < -1.72000000000000005e-43Initial program 98.4%
Taylor expanded in a around inf 70.4%
associate-/l*70.4%
sub-neg70.4%
metadata-eval70.4%
Simplified70.4%
Taylor expanded in z around inf 61.4%
if -1.72000000000000005e-43 < i < 1.19999999999999993e34Initial program 99.8%
Taylor expanded in y around 0 96.1%
Taylor expanded in x around inf 70.2%
if 1.19999999999999993e34 < i Initial program 99.8%
Taylor expanded in z around inf 65.1%
associate-/l*65.0%
sub-neg65.0%
metadata-eval65.0%
associate-/l*65.0%
Simplified65.0%
Taylor expanded in a around inf 43.6%
Final simplification61.6%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= z -4.9e+206) (and (not (<= z -6.6e+174)) (<= z -1.18e+151))) z (+ a (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((z <= -4.9e+206) || (!(z <= -6.6e+174) && (z <= -1.18e+151))) {
tmp = z;
} else {
tmp = a + (y * i);
}
return tmp;
}
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 <= (-4.9d+206)) .or. (.not. (z <= (-6.6d+174))) .and. (z <= (-1.18d+151))) then
tmp = z
else
tmp = a + (y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((z <= -4.9e+206) || (!(z <= -6.6e+174) && (z <= -1.18e+151))) {
tmp = z;
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (z <= -4.9e+206) or (not (z <= -6.6e+174) and (z <= -1.18e+151)): tmp = z else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((z <= -4.9e+206) || (!(z <= -6.6e+174) && (z <= -1.18e+151))) tmp = z; else tmp = Float64(a + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((z <= -4.9e+206) || (~((z <= -6.6e+174)) && (z <= -1.18e+151))) tmp = z; else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[z, -4.9e+206], And[N[Not[LessEqual[z, -6.6e+174]], $MachinePrecision], LessEqual[z, -1.18e+151]]], z, N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.9 \cdot 10^{+206} \lor \neg \left(z \leq -6.6 \cdot 10^{+174}\right) \land z \leq -1.18 \cdot 10^{+151}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if z < -4.9e206 or -6.6000000000000001e174 < z < -1.18000000000000005e151Initial program 99.9%
Taylor expanded in z around inf 54.3%
if -4.9e206 < z < -6.6000000000000001e174 or -1.18000000000000005e151 < z Initial program 99.4%
Taylor expanded in x around -inf 75.3%
mul-1-neg75.3%
distribute-lft-out75.3%
sub-neg75.3%
metadata-eval75.3%
Simplified75.3%
Taylor expanded in a around inf 39.1%
mul-1-neg39.1%
Simplified39.1%
Final simplification40.4%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -3.1e+143) (+ (* y i) (* z (+ (* a (/ 1.0 z)) 1.0))) (+ (* y i) (* a (+ (+ (/ t a) (/ z a)) 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -3.1e+143) {
tmp = (y * i) + (z * ((a * (1.0 / z)) + 1.0));
} else {
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0));
}
return tmp;
}
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.1d+143)) then
tmp = (y * i) + (z * ((a * (1.0d0 / z)) + 1.0d0))
else
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0d0))
end if
code = tmp
end function
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.1e+143) {
tmp = (y * i) + (z * ((a * (1.0 / z)) + 1.0));
} else {
tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -3.1e+143: tmp = (y * i) + (z * ((a * (1.0 / z)) + 1.0)) else: tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -3.1e+143) tmp = Float64(Float64(y * i) + Float64(z * Float64(Float64(a * Float64(1.0 / z)) + 1.0))); else tmp = Float64(Float64(y * i) + Float64(a * Float64(Float64(Float64(t / a) + Float64(z / a)) + 1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -3.1e+143) tmp = (y * i) + (z * ((a * (1.0 / z)) + 1.0)); else tmp = (y * i) + (a * (((t / a) + (z / a)) + 1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -3.1e+143], N[(N[(y * i), $MachinePrecision] + N[(z * N[(N[(a * N[(1.0 / z), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a * N[(N[(N[(t / a), $MachinePrecision] + N[(z / a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.1 \cdot 10^{+143}:\\
\;\;\;\;y \cdot i + z \cdot \left(a \cdot \frac{1}{z} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + a \cdot \left(\left(\frac{t}{a} + \frac{z}{a}\right) + 1\right)\\
\end{array}
\end{array}
if z < -3.0999999999999999e143Initial program 99.9%
Taylor expanded in a around inf 50.6%
associate-/l*50.6%
sub-neg50.6%
metadata-eval50.6%
Simplified50.6%
Taylor expanded in b around inf 44.2%
*-commutative44.2%
Simplified44.2%
Taylor expanded in z around inf 75.0%
associate-/l*75.0%
*-commutative75.0%
associate-*r/75.0%
Simplified75.0%
Taylor expanded in a around inf 76.5%
if -3.0999999999999999e143 < z Initial program 99.4%
Taylor expanded in a around inf 74.5%
associate-/l*74.5%
sub-neg74.5%
metadata-eval74.5%
Simplified74.5%
Taylor expanded in z around inf 51.2%
Final simplification54.2%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -2.25e+143) (+ z (* y i)) (+ (* y i) (* a (+ (/ t a) 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2.25e+143) {
tmp = z + (y * i);
} else {
tmp = (y * i) + (a * ((t / a) + 1.0));
}
return tmp;
}
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.25d+143)) then
tmp = z + (y * i)
else
tmp = (y * i) + (a * ((t / a) + 1.0d0))
end if
code = tmp
end function
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.25e+143) {
tmp = z + (y * i);
} else {
tmp = (y * i) + (a * ((t / a) + 1.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -2.25e+143: tmp = z + (y * i) else: tmp = (y * i) + (a * ((t / a) + 1.0)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -2.25e+143) tmp = Float64(z + Float64(y * i)); else tmp = Float64(Float64(y * i) + Float64(a * Float64(Float64(t / a) + 1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -2.25e+143) tmp = z + (y * i); else tmp = (y * i) + (a * ((t / a) + 1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -2.25e+143], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a * N[(N[(t / a), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.25 \cdot 10^{+143}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + a \cdot \left(\frac{t}{a} + 1\right)\\
\end{array}
\end{array}
if z < -2.2499999999999998e143Initial program 100.0%
Taylor expanded in x around -inf 68.3%
mul-1-neg68.3%
distribute-lft-out68.3%
sub-neg68.3%
metadata-eval68.3%
Simplified68.3%
Taylor expanded in z around inf 66.3%
mul-1-neg66.3%
Simplified66.3%
if -2.2499999999999998e143 < z Initial program 99.4%
Taylor expanded in a around inf 74.4%
associate-/l*74.4%
sub-neg74.4%
metadata-eval74.4%
Simplified74.4%
Taylor expanded in b around inf 64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in z around 0 56.1%
*-commutative56.1%
associate-*r/56.1%
Simplified56.1%
Taylor expanded in b around 0 43.5%
Final simplification46.3%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -860000000.0) (+ (* y i) (* z (+ (/ a z) 1.0))) (+ (* y i) (* a (+ (/ t a) 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -860000000.0) {
tmp = (y * i) + (z * ((a / z) + 1.0));
} else {
tmp = (y * i) + (a * ((t / a) + 1.0));
}
return tmp;
}
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 <= (-860000000.0d0)) then
tmp = (y * i) + (z * ((a / z) + 1.0d0))
else
tmp = (y * i) + (a * ((t / a) + 1.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -860000000.0) {
tmp = (y * i) + (z * ((a / z) + 1.0));
} else {
tmp = (y * i) + (a * ((t / a) + 1.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -860000000.0: tmp = (y * i) + (z * ((a / z) + 1.0)) else: tmp = (y * i) + (a * ((t / a) + 1.0)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -860000000.0) tmp = Float64(Float64(y * i) + Float64(z * Float64(Float64(a / z) + 1.0))); else tmp = Float64(Float64(y * i) + Float64(a * Float64(Float64(t / a) + 1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -860000000.0) tmp = (y * i) + (z * ((a / z) + 1.0)); else tmp = (y * i) + (a * ((t / a) + 1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -860000000.0], N[(N[(y * i), $MachinePrecision] + N[(z * N[(N[(a / z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a * N[(N[(t / a), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -860000000:\\
\;\;\;\;y \cdot i + z \cdot \left(\frac{a}{z} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + a \cdot \left(\frac{t}{a} + 1\right)\\
\end{array}
\end{array}
if z < -8.6e8Initial program 99.9%
Taylor expanded in z around inf 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around inf 69.7%
if -8.6e8 < z Initial program 99.3%
Taylor expanded in a around inf 74.0%
associate-/l*74.0%
sub-neg74.0%
metadata-eval74.0%
Simplified74.0%
Taylor expanded in b around inf 62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in z around 0 54.2%
*-commutative54.2%
associate-*r/54.2%
Simplified54.2%
Taylor expanded in b around 0 42.1%
Final simplification47.9%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -8.2e+149) (+ z (* y i)) (+ a (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -8.2e+149) {
tmp = z + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
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 <= (-8.2d+149)) then
tmp = z + (y * i)
else
tmp = a + (y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -8.2e+149) {
tmp = z + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -8.2e+149: tmp = z + (y * i) else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -8.2e+149) tmp = Float64(z + Float64(y * i)); else tmp = Float64(a + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -8.2e+149) tmp = z + (y * i); else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -8.2e+149], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.2 \cdot 10^{+149}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if z < -8.1999999999999992e149Initial program 99.9%
Taylor expanded in x around -inf 67.2%
mul-1-neg67.2%
distribute-lft-out67.2%
sub-neg67.2%
metadata-eval67.2%
Simplified67.2%
Taylor expanded in z around inf 68.3%
mul-1-neg68.3%
Simplified68.3%
if -8.1999999999999992e149 < z Initial program 99.4%
Taylor expanded in x around -inf 74.7%
mul-1-neg74.7%
distribute-lft-out74.7%
sub-neg74.7%
metadata-eval74.7%
Simplified74.7%
Taylor expanded in a around inf 39.3%
mul-1-neg39.3%
Simplified39.3%
Final simplification42.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 4.5e+131) z a))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 4.5e+131) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
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 <= 4.5d+131) then
tmp = z
else
tmp = a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 4.5e+131) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 4.5e+131: tmp = z else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 4.5e+131) tmp = z; else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (a <= 4.5e+131) tmp = z; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 4.5e+131], z, a]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 4.5 \cdot 10^{+131}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < 4.5000000000000002e131Initial program 99.4%
Taylor expanded in z around inf 17.7%
if 4.5000000000000002e131 < a Initial program 99.9%
Taylor expanded in a around inf 50.1%
Final simplification23.0%
(FPCore (x y z t a b c i) :precision binary64 a)
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a;
}
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
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a;
}
def code(x, y, z, t, a, b, c, i): return a
function code(x, y, z, t, a, b, c, i) return a end
function tmp = code(x, y, z, t, a, b, c, i) tmp = a; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := a
\begin{array}{l}
\\
a
\end{array}
Initial program 99.4%
Taylor expanded in a around inf 17.0%
Final simplification17.0%
herbie shell --seed 2024076
(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)))