
(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 22 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.5%
associate-+l+99.5%
associate-+l+99.5%
+-commutative99.5%
associate-+l+99.5%
+-commutative99.5%
associate-+l+99.5%
+-commutative99.5%
associate-+l+99.5%
+-commutative99.5%
fma-define99.5%
+-commutative99.5%
fma-define99.5%
Simplified99.5%
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ a (+ t (+ z (* x (log y))))) (* (- b 0.5) (* 2.0 (log (sqrt c))))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((a + (t + (z + (x * log(y))))) + ((b - 0.5) * (2.0 * log(sqrt(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 = ((a + (t + (z + (x * log(y))))) + ((b - 0.5d0) * (2.0d0 * log(sqrt(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 ((a + (t + (z + (x * Math.log(y))))) + ((b - 0.5) * (2.0 * Math.log(Math.sqrt(c))))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return ((a + (t + (z + (x * math.log(y))))) + ((b - 0.5) * (2.0 * math.log(math.sqrt(c))))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) + Float64(Float64(b - 0.5) * Float64(2.0 * log(sqrt(c))))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((a + (t + (z + (x * log(y))))) + ((b - 0.5) * (2.0 * log(sqrt(c))))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[(2.0 * N[Log[N[Sqrt[c], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right) + \left(b - 0.5\right) \cdot \left(2 \cdot \log \left(\sqrt{c}\right)\right)\right) + y \cdot i
\end{array}
Initial program 99.5%
add-sqr-sqrt99.5%
log-prod99.5%
Applied egg-rr99.5%
count-299.5%
Simplified99.5%
Final simplification99.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (log c) (- b 0.5))))
(if (<= x -1.4e+159)
(* x (+ (log y) (/ (* y i) x)))
(if (<= x 4.6e+161)
(fma y i (+ a (+ t (+ z t_1))))
(+ (* y i) (+ (* 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 <= -1.4e+159) {
tmp = x * (log(y) + ((y * i) / x));
} else if (x <= 4.6e+161) {
tmp = fma(y, i, (a + (t + (z + t_1))));
} else {
tmp = (y * i) + ((x * 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 <= -1.4e+159) tmp = Float64(x * Float64(log(y) + Float64(Float64(y * i) / x))); elseif (x <= 4.6e+161) tmp = fma(y, i, Float64(a + Float64(t + Float64(z + t_1)))); else tmp = Float64(Float64(y * i) + Float64(Float64(x * log(y)) + t_1)); end return 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, -1.4e+159], N[(x * N[(N[Log[y], $MachinePrecision] + N[(N[(y * i), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e+161], N[(y * i + N[(a + N[(t + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right)\\
\mathbf{if}\;x \leq -1.4 \cdot 10^{+159}:\\
\;\;\;\;x \cdot \left(\log y + \frac{y \cdot i}{x}\right)\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{+161}:\\
\;\;\;\;\mathsf{fma}\left(y, i, a + \left(t + \left(z + t\_1\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(x \cdot \log y + t\_1\right)\\
\end{array}
\end{array}
if x < -1.4000000000000001e159Initial program 96.1%
associate-+l+96.1%
associate-+l+96.1%
+-commutative96.1%
associate-+l+96.1%
+-commutative96.1%
associate-+l+96.1%
+-commutative96.1%
associate-+l+96.1%
+-commutative96.1%
fma-define96.3%
+-commutative96.3%
fma-define96.3%
Simplified96.3%
Taylor expanded in x around -inf 99.6%
Taylor expanded in i around inf 87.7%
if -1.4000000000000001e159 < x < 4.5999999999999999e161Initial 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 94.8%
if 4.5999999999999999e161 < x Initial program 99.7%
add-cube-cbrt99.2%
pow399.0%
Applied egg-rr99.0%
Taylor expanded in a around inf 75.2%
associate-/l*75.2%
Simplified75.2%
Taylor expanded in x around inf 89.0%
Final simplification93.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (log c) (- b 0.5))))
(if (<= x -1.4e+159)
(* x (+ (log y) (/ (* y i) x)))
(if (<= x 3.7e+161)
(+ (* y i) (+ t_1 (+ a (+ z t))))
(+ (* y i) (+ (* 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 <= -1.4e+159) {
tmp = x * (log(y) + ((y * i) / x));
} else if (x <= 3.7e+161) {
tmp = (y * i) + (t_1 + (a + (z + t)));
} else {
tmp = (y * i) + ((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 <= (-1.4d+159)) then
tmp = x * (log(y) + ((y * i) / x))
else if (x <= 3.7d+161) then
tmp = (y * i) + (t_1 + (a + (z + t)))
else
tmp = (y * i) + ((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 <= -1.4e+159) {
tmp = x * (Math.log(y) + ((y * i) / x));
} else if (x <= 3.7e+161) {
tmp = (y * i) + (t_1 + (a + (z + t)));
} else {
tmp = (y * i) + ((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 <= -1.4e+159: tmp = x * (math.log(y) + ((y * i) / x)) elif x <= 3.7e+161: tmp = (y * i) + (t_1 + (a + (z + t))) else: tmp = (y * i) + ((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 <= -1.4e+159) tmp = Float64(x * Float64(log(y) + Float64(Float64(y * i) / x))); elseif (x <= 3.7e+161) tmp = Float64(Float64(y * i) + Float64(t_1 + Float64(a + Float64(z + t)))); else tmp = Float64(Float64(y * i) + 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 <= -1.4e+159) tmp = x * (log(y) + ((y * i) / x)); elseif (x <= 3.7e+161) tmp = (y * i) + (t_1 + (a + (z + t))); else tmp = (y * i) + ((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, -1.4e+159], N[(x * N[(N[Log[y], $MachinePrecision] + N[(N[(y * i), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.7e+161], N[(N[(y * i), $MachinePrecision] + N[(t$95$1 + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right)\\
\mathbf{if}\;x \leq -1.4 \cdot 10^{+159}:\\
\;\;\;\;x \cdot \left(\log y + \frac{y \cdot i}{x}\right)\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{+161}:\\
\;\;\;\;y \cdot i + \left(t\_1 + \left(a + \left(z + t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(x \cdot \log y + t\_1\right)\\
\end{array}
\end{array}
if x < -1.4000000000000001e159Initial program 96.1%
associate-+l+96.1%
associate-+l+96.1%
+-commutative96.1%
associate-+l+96.1%
+-commutative96.1%
associate-+l+96.1%
+-commutative96.1%
associate-+l+96.1%
+-commutative96.1%
fma-define96.3%
+-commutative96.3%
fma-define96.3%
Simplified96.3%
Taylor expanded in x around -inf 99.6%
Taylor expanded in i around inf 87.7%
if -1.4000000000000001e159 < x < 3.69999999999999979e161Initial program 99.9%
Taylor expanded in x around 0 94.8%
if 3.69999999999999979e161 < x Initial program 99.7%
add-cube-cbrt99.2%
pow399.0%
Applied egg-rr99.0%
Taylor expanded in a around inf 75.2%
associate-/l*75.2%
Simplified75.2%
Taylor expanded in x around inf 89.0%
Final simplification93.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (log c) (- b 0.5))))
(if (<= y 7.5e+91)
(+ a (+ t (+ z (+ (* x (log y)) t_1))))
(fma 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 (y <= 7.5e+91) {
tmp = a + (t + (z + ((x * log(y)) + t_1)));
} else {
tmp = fma(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 (y <= 7.5e+91) tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(x * log(y)) + t_1)))); else tmp = fma(y, i, Float64(a + Float64(t + Float64(z + t_1)))); end return 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[y, 7.5e+91], N[(a + N[(t + N[(z + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * i + 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}\;y \leq 7.5 \cdot 10^{+91}:\\
\;\;\;\;a + \left(t + \left(z + \left(x \cdot \log y + t\_1\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, i, a + \left(t + \left(z + t\_1\right)\right)\right)\\
\end{array}
\end{array}
if y < 7.50000000000000033e91Initial 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 93.6%
if 7.50000000000000033e91 < y Initial program 98.9%
associate-+l+98.9%
associate-+l+98.9%
+-commutative98.9%
associate-+l+98.9%
+-commutative98.9%
associate-+l+98.9%
+-commutative98.9%
associate-+l+98.9%
+-commutative98.9%
fma-define98.9%
+-commutative98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in x around 0 91.5%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (+ a (+ t (+ z (* x (log y))))) (* (log c) (- b 0.5)))))
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)));
}
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
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)));
}
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)))
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
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
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}
\\
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.5%
Final simplification99.5%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (+ a (+ t (+ z (* x (log y))))) (* b (log c)))))
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))))) + (b * log(c)));
}
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))))) + (b * log(c)))
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) + ((a + (t + (z + (x * Math.log(y))))) + (b * Math.log(c)));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + ((a + (t + (z + (x * math.log(y))))) + (b * math.log(c)))
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(b * log(c)))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + ((a + (t + (z + (x * log(y))))) + (b * log(c))); end
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[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(\left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right) + b \cdot \log c\right)
\end{array}
Initial program 99.5%
Taylor expanded in b around inf 97.3%
*-commutative97.3%
Simplified97.3%
Final simplification97.3%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (+ a (+ z (* x (log y)))) (* b (log c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((a + (z + (x * log(y)))) + (b * log(c)));
}
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 + (z + (x * log(y)))) + (b * log(c)))
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) + ((a + (z + (x * Math.log(y)))) + (b * Math.log(c)));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + ((a + (z + (x * math.log(y)))) + (b * math.log(c)))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(Float64(a + Float64(z + Float64(x * log(y)))) + Float64(b * log(c)))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + ((a + (z + (x * log(y)))) + (b * log(c))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(N[(a + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(\left(a + \left(z + x \cdot \log y\right)\right) + b \cdot \log c\right)
\end{array}
Initial program 99.5%
add-cube-cbrt99.2%
pow399.2%
Applied egg-rr99.2%
Taylor expanded in b around inf 97.0%
Taylor expanded in t around 0 87.8%
Final simplification87.8%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -1.4e+159) (not (<= x 7e+204))) (* x (+ (log y) (/ (* y i) x))) (+ (* y i) (+ (* (log c) (- b 0.5)) (+ a (+ z t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -1.4e+159) || !(x <= 7e+204)) {
tmp = x * (log(y) + ((y * i) / x));
} else {
tmp = (y * i) + ((log(c) * (b - 0.5)) + (a + (z + t)));
}
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 <= (-1.4d+159)) .or. (.not. (x <= 7d+204))) then
tmp = x * (log(y) + ((y * i) / x))
else
tmp = (y * i) + ((log(c) * (b - 0.5d0)) + (a + (z + t)))
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 <= -1.4e+159) || !(x <= 7e+204)) {
tmp = x * (Math.log(y) + ((y * i) / x));
} else {
tmp = (y * i) + ((Math.log(c) * (b - 0.5)) + (a + (z + t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -1.4e+159) or not (x <= 7e+204): tmp = x * (math.log(y) + ((y * i) / x)) else: tmp = (y * i) + ((math.log(c) * (b - 0.5)) + (a + (z + t))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -1.4e+159) || !(x <= 7e+204)) tmp = Float64(x * Float64(log(y) + Float64(Float64(y * i) / x))); else tmp = Float64(Float64(y * i) + Float64(Float64(log(c) * Float64(b - 0.5)) + Float64(a + Float64(z + t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -1.4e+159) || ~((x <= 7e+204))) tmp = x * (log(y) + ((y * i) / x)); else tmp = (y * i) + ((log(c) * (b - 0.5)) + (a + (z + t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -1.4e+159], N[Not[LessEqual[x, 7e+204]], $MachinePrecision]], N[(x * N[(N[Log[y], $MachinePrecision] + N[(N[(y * i), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.4 \cdot 10^{+159} \lor \neg \left(x \leq 7 \cdot 10^{+204}\right):\\
\;\;\;\;x \cdot \left(\log y + \frac{y \cdot i}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(z + t\right)\right)\right)\\
\end{array}
\end{array}
if x < -1.4000000000000001e159 or 6.99999999999999978e204 < x Initial program 97.9%
associate-+l+97.9%
associate-+l+97.9%
+-commutative97.9%
associate-+l+97.9%
+-commutative97.9%
associate-+l+97.9%
+-commutative97.9%
associate-+l+97.9%
+-commutative97.9%
fma-define97.9%
+-commutative97.9%
fma-define97.9%
Simplified97.9%
Taylor expanded in x around -inf 99.7%
Taylor expanded in i around inf 81.9%
if -1.4000000000000001e159 < x < 6.99999999999999978e204Initial program 99.9%
Taylor expanded in x around 0 92.1%
Final simplification89.9%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -1.1e+159) (not (<= x 2.5e+204))) (* x (+ (log y) (/ (* y i) x))) (+ a (+ z (+ (* y i) (* (log c) (- b 0.5)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -1.1e+159) || !(x <= 2.5e+204)) {
tmp = x * (log(y) + ((y * i) / x));
} else {
tmp = a + (z + ((y * i) + (log(c) * (b - 0.5))));
}
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 <= (-1.1d+159)) .or. (.not. (x <= 2.5d+204))) then
tmp = x * (log(y) + ((y * i) / x))
else
tmp = a + (z + ((y * i) + (log(c) * (b - 0.5d0))))
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 <= -1.1e+159) || !(x <= 2.5e+204)) {
tmp = x * (Math.log(y) + ((y * i) / x));
} else {
tmp = a + (z + ((y * i) + (Math.log(c) * (b - 0.5))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -1.1e+159) or not (x <= 2.5e+204): tmp = x * (math.log(y) + ((y * i) / x)) else: tmp = a + (z + ((y * i) + (math.log(c) * (b - 0.5)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -1.1e+159) || !(x <= 2.5e+204)) tmp = Float64(x * Float64(log(y) + Float64(Float64(y * i) / x))); else tmp = Float64(a + Float64(z + Float64(Float64(y * i) + Float64(log(c) * Float64(b - 0.5))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -1.1e+159) || ~((x <= 2.5e+204))) tmp = x * (log(y) + ((y * i) / x)); else tmp = a + (z + ((y * i) + (log(c) * (b - 0.5)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -1.1e+159], N[Not[LessEqual[x, 2.5e+204]], $MachinePrecision]], N[(x * N[(N[Log[y], $MachinePrecision] + N[(N[(y * i), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(z + N[(N[(y * i), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.1 \cdot 10^{+159} \lor \neg \left(x \leq 2.5 \cdot 10^{+204}\right):\\
\;\;\;\;x \cdot \left(\log y + \frac{y \cdot i}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(z + \left(y \cdot i + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\end{array}
\end{array}
if x < -1.1e159 or 2.50000000000000004e204 < x Initial program 97.9%
associate-+l+97.9%
associate-+l+97.9%
+-commutative97.9%
associate-+l+97.9%
+-commutative97.9%
associate-+l+97.9%
+-commutative97.9%
associate-+l+97.9%
+-commutative97.9%
fma-define97.9%
+-commutative97.9%
fma-define97.9%
Simplified97.9%
Taylor expanded in x around -inf 99.7%
Taylor expanded in i around inf 81.9%
if -1.1e159 < x < 2.50000000000000004e204Initial 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 92.1%
Taylor expanded in t around 0 80.6%
Final simplification80.9%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -1.4e+159) (not (<= x 5.2e+204))) (+ (* x (log y)) (* y i)) (+ a (+ z (+ (* y i) (* (log c) (- b 0.5)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -1.4e+159) || !(x <= 5.2e+204)) {
tmp = (x * log(y)) + (y * i);
} else {
tmp = a + (z + ((y * i) + (log(c) * (b - 0.5))));
}
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 <= (-1.4d+159)) .or. (.not. (x <= 5.2d+204))) then
tmp = (x * log(y)) + (y * i)
else
tmp = a + (z + ((y * i) + (log(c) * (b - 0.5d0))))
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 <= -1.4e+159) || !(x <= 5.2e+204)) {
tmp = (x * Math.log(y)) + (y * i);
} else {
tmp = a + (z + ((y * i) + (Math.log(c) * (b - 0.5))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -1.4e+159) or not (x <= 5.2e+204): tmp = (x * math.log(y)) + (y * i) else: tmp = a + (z + ((y * i) + (math.log(c) * (b - 0.5)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -1.4e+159) || !(x <= 5.2e+204)) tmp = Float64(Float64(x * log(y)) + Float64(y * i)); else tmp = Float64(a + Float64(z + Float64(Float64(y * i) + Float64(log(c) * Float64(b - 0.5))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -1.4e+159) || ~((x <= 5.2e+204))) tmp = (x * log(y)) + (y * i); else tmp = a + (z + ((y * i) + (log(c) * (b - 0.5)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -1.4e+159], N[Not[LessEqual[x, 5.2e+204]], $MachinePrecision]], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(a + N[(z + N[(N[(y * i), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.4 \cdot 10^{+159} \lor \neg \left(x \leq 5.2 \cdot 10^{+204}\right):\\
\;\;\;\;x \cdot \log y + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a + \left(z + \left(y \cdot i + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\end{array}
\end{array}
if x < -1.4000000000000001e159 or 5.2000000000000002e204 < x Initial program 97.9%
add-exp-log56.1%
Applied egg-rr56.1%
Taylor expanded in x around inf 80.0%
if -1.4000000000000001e159 < x < 5.2000000000000002e204Initial 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 92.1%
Taylor expanded in t around 0 80.6%
Final simplification80.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* x (log y)) (* y i))))
(if (<= x -5.2e-7)
t_1
(if (<= x 6e+36)
(+ a (+ (+ z t) (* -0.5 (log c))))
(if (<= x 8.2e+121) (+ z (* (log c) (- b 0.5))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x * log(y)) + (y * i);
double tmp;
if (x <= -5.2e-7) {
tmp = t_1;
} else if (x <= 6e+36) {
tmp = a + ((z + t) + (-0.5 * log(c)));
} else if (x <= 8.2e+121) {
tmp = z + (log(c) * (b - 0.5));
} else {
tmp = 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 = (x * log(y)) + (y * i)
if (x <= (-5.2d-7)) then
tmp = t_1
else if (x <= 6d+36) then
tmp = a + ((z + t) + ((-0.5d0) * log(c)))
else if (x <= 8.2d+121) then
tmp = z + (log(c) * (b - 0.5d0))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x * Math.log(y)) + (y * i);
double tmp;
if (x <= -5.2e-7) {
tmp = t_1;
} else if (x <= 6e+36) {
tmp = a + ((z + t) + (-0.5 * Math.log(c)));
} else if (x <= 8.2e+121) {
tmp = z + (Math.log(c) * (b - 0.5));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x * math.log(y)) + (y * i) tmp = 0 if x <= -5.2e-7: tmp = t_1 elif x <= 6e+36: tmp = a + ((z + t) + (-0.5 * math.log(c))) elif x <= 8.2e+121: tmp = z + (math.log(c) * (b - 0.5)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x * log(y)) + Float64(y * i)) tmp = 0.0 if (x <= -5.2e-7) tmp = t_1; elseif (x <= 6e+36) tmp = Float64(a + Float64(Float64(z + t) + Float64(-0.5 * log(c)))); elseif (x <= 8.2e+121) tmp = Float64(z + Float64(log(c) * Float64(b - 0.5))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x * log(y)) + (y * i); tmp = 0.0; if (x <= -5.2e-7) tmp = t_1; elseif (x <= 6e+36) tmp = a + ((z + t) + (-0.5 * log(c))); elseif (x <= 8.2e+121) tmp = z + (log(c) * (b - 0.5)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.2e-7], t$95$1, If[LessEqual[x, 6e+36], N[(a + N[(N[(z + t), $MachinePrecision] + N[(-0.5 * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.2e+121], N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y + y \cdot i\\
\mathbf{if}\;x \leq -5.2 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 6 \cdot 10^{+36}:\\
\;\;\;\;a + \left(\left(z + t\right) + -0.5 \cdot \log c\right)\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{+121}:\\
\;\;\;\;z + \log c \cdot \left(b - 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -5.19999999999999998e-7 or 8.2e121 < x Initial program 98.8%
add-exp-log56.4%
Applied egg-rr56.4%
Taylor expanded in x around inf 71.7%
if -5.19999999999999998e-7 < x < 6e36Initial 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 99.9%
Taylor expanded in y around 0 73.3%
Taylor expanded in b around 0 56.9%
associate-+r+56.9%
Simplified56.9%
if 6e36 < x < 8.2e121Initial 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 x around 0 92.4%
Taylor expanded in y around 0 92.4%
Taylor expanded in a around 0 92.4%
Taylor expanded in t around 0 69.9%
Final simplification63.8%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -1.9e+41) (not (<= x 6e+133))) (+ (* x (log y)) (* y i)) (+ (* y i) (+ a (* b (log c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -1.9e+41) || !(x <= 6e+133)) {
tmp = (x * log(y)) + (y * i);
} else {
tmp = (y * i) + (a + (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) :: tmp
if ((x <= (-1.9d+41)) .or. (.not. (x <= 6d+133))) then
tmp = (x * log(y)) + (y * i)
else
tmp = (y * i) + (a + (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 tmp;
if ((x <= -1.9e+41) || !(x <= 6e+133)) {
tmp = (x * Math.log(y)) + (y * i);
} else {
tmp = (y * i) + (a + (b * Math.log(c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -1.9e+41) or not (x <= 6e+133): tmp = (x * math.log(y)) + (y * i) else: tmp = (y * i) + (a + (b * math.log(c))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -1.9e+41) || !(x <= 6e+133)) tmp = Float64(Float64(x * log(y)) + Float64(y * i)); else tmp = Float64(Float64(y * i) + Float64(a + Float64(b * log(c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -1.9e+41) || ~((x <= 6e+133))) tmp = (x * log(y)) + (y * i); else tmp = (y * i) + (a + (b * log(c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -1.9e+41], N[Not[LessEqual[x, 6e+133]], $MachinePrecision]], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.9 \cdot 10^{+41} \lor \neg \left(x \leq 6 \cdot 10^{+133}\right):\\
\;\;\;\;x \cdot \log y + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + b \cdot \log c\right)\\
\end{array}
\end{array}
if x < -1.9000000000000001e41 or 6.00000000000000013e133 < x Initial program 98.7%
add-exp-log55.4%
Applied egg-rr55.4%
Taylor expanded in x around inf 71.1%
if -1.9000000000000001e41 < x < 6.00000000000000013e133Initial program 99.9%
add-cube-cbrt99.9%
pow399.9%
Applied egg-rr99.9%
Taylor expanded in b around inf 96.3%
Taylor expanded in a around inf 63.4%
Final simplification66.4%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -3.2e-9) (not (<= x 7.5e+127))) (+ (* x (log y)) (* y i)) (+ z (* (log c) (- b 0.5)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -3.2e-9) || !(x <= 7.5e+127)) {
tmp = (x * log(y)) + (y * i);
} else {
tmp = z + (log(c) * (b - 0.5));
}
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 <= (-3.2d-9)) .or. (.not. (x <= 7.5d+127))) then
tmp = (x * log(y)) + (y * i)
else
tmp = z + (log(c) * (b - 0.5d0))
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 <= -3.2e-9) || !(x <= 7.5e+127)) {
tmp = (x * Math.log(y)) + (y * i);
} else {
tmp = z + (Math.log(c) * (b - 0.5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -3.2e-9) or not (x <= 7.5e+127): tmp = (x * math.log(y)) + (y * i) else: tmp = z + (math.log(c) * (b - 0.5)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -3.2e-9) || !(x <= 7.5e+127)) tmp = Float64(Float64(x * log(y)) + Float64(y * i)); else tmp = Float64(z + Float64(log(c) * Float64(b - 0.5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -3.2e-9) || ~((x <= 7.5e+127))) tmp = (x * log(y)) + (y * i); else tmp = z + (log(c) * (b - 0.5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -3.2e-9], N[Not[LessEqual[x, 7.5e+127]], $MachinePrecision]], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.2 \cdot 10^{-9} \lor \neg \left(x \leq 7.5 \cdot 10^{+127}\right):\\
\;\;\;\;x \cdot \log y + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;z + \log c \cdot \left(b - 0.5\right)\\
\end{array}
\end{array}
if x < -3.20000000000000012e-9 or 7.4999999999999996e127 < x Initial program 98.8%
add-exp-log56.4%
Applied egg-rr56.4%
Taylor expanded in x around inf 71.7%
if -3.20000000000000012e-9 < x < 7.4999999999999996e127Initial 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 99.3%
Taylor expanded in y around 0 75.0%
Taylor expanded in a around 0 56.9%
Taylor expanded in t around 0 43.8%
Final simplification55.6%
(FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (* (log c) (- b 0.5)))) (if (<= a 1.25e+160) (+ (* y i) (+ z t_1)) (+ (* y i) (+ a 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 <= 1.25e+160) {
tmp = (y * i) + (z + t_1);
} else {
tmp = (y * i) + (a + 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 <= 1.25d+160) then
tmp = (y * i) + (z + t_1)
else
tmp = (y * i) + (a + 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 <= 1.25e+160) {
tmp = (y * i) + (z + t_1);
} else {
tmp = (y * i) + (a + 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 <= 1.25e+160: tmp = (y * i) + (z + t_1) else: tmp = (y * i) + (a + 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 <= 1.25e+160) tmp = Float64(Float64(y * i) + Float64(z + t_1)); else tmp = Float64(Float64(y * i) + Float64(a + 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 <= 1.25e+160) tmp = (y * i) + (z + t_1); else tmp = (y * i) + (a + 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, 1.25e+160], N[(N[(y * i), $MachinePrecision] + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right)\\
\mathbf{if}\;a \leq 1.25 \cdot 10^{+160}:\\
\;\;\;\;y \cdot i + \left(z + t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + t\_1\right)\\
\end{array}
\end{array}
if a < 1.25e160Initial program 99.8%
add-cube-cbrt99.6%
pow399.5%
Applied egg-rr99.5%
Taylor expanded in z around inf 62.4%
if 1.25e160 < a Initial program 96.6%
add-cube-cbrt96.5%
pow396.5%
Applied egg-rr96.5%
Taylor expanded in a around inf 75.7%
Final simplification63.9%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -5.5e+100) (+ (* y i) (+ z (* b (log c)))) (+ (* y i) (+ a (* (log c) (- b 0.5))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -5.5e+100) {
tmp = (y * i) + (z + (b * log(c)));
} else {
tmp = (y * i) + (a + (log(c) * (b - 0.5)));
}
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 <= (-5.5d+100)) then
tmp = (y * i) + (z + (b * log(c)))
else
tmp = (y * i) + (a + (log(c) * (b - 0.5d0)))
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 <= -5.5e+100) {
tmp = (y * i) + (z + (b * Math.log(c)));
} else {
tmp = (y * i) + (a + (Math.log(c) * (b - 0.5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -5.5e+100: tmp = (y * i) + (z + (b * math.log(c))) else: tmp = (y * i) + (a + (math.log(c) * (b - 0.5))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -5.5e+100) tmp = Float64(Float64(y * i) + Float64(z + Float64(b * log(c)))); else tmp = Float64(Float64(y * i) + Float64(a + Float64(log(c) * Float64(b - 0.5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -5.5e+100) tmp = (y * i) + (z + (b * log(c))); else tmp = (y * i) + (a + (log(c) * (b - 0.5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -5.5e+100], N[(N[(y * i), $MachinePrecision] + N[(z + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \cdot 10^{+100}:\\
\;\;\;\;y \cdot i + \left(z + b \cdot \log c\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \log c \cdot \left(b - 0.5\right)\right)\\
\end{array}
\end{array}
if z < -5.5000000000000002e100Initial program 99.9%
add-cube-cbrt99.7%
pow399.7%
Applied egg-rr99.7%
Taylor expanded in b around inf 99.7%
Taylor expanded in z around inf 64.2%
if -5.5000000000000002e100 < z Initial program 99.4%
add-cube-cbrt99.1%
pow399.1%
Applied egg-rr99.1%
Taylor expanded in a around inf 60.7%
Final simplification61.3%
(FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (* b (log c)))) (if (<= a 1.45e+162) (+ (* y i) (+ z t_1)) (+ (* y i) (+ a 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 tmp;
if (a <= 1.45e+162) {
tmp = (y * i) + (z + t_1);
} else {
tmp = (y * i) + (a + 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 = b * log(c)
if (a <= 1.45d+162) then
tmp = (y * i) + (z + t_1)
else
tmp = (y * i) + (a + 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 tmp;
if (a <= 1.45e+162) {
tmp = (y * i) + (z + t_1);
} else {
tmp = (y * i) + (a + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = b * math.log(c) tmp = 0 if a <= 1.45e+162: tmp = (y * i) + (z + t_1) else: tmp = (y * i) + (a + t_1) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(b * log(c)) tmp = 0.0 if (a <= 1.45e+162) tmp = Float64(Float64(y * i) + Float64(z + t_1)); else tmp = Float64(Float64(y * i) + Float64(a + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = b * log(c); tmp = 0.0; if (a <= 1.45e+162) tmp = (y * i) + (z + t_1); else tmp = (y * i) + (a + 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]}, If[LessEqual[a, 1.45e+162], N[(N[(y * i), $MachinePrecision] + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \log c\\
\mathbf{if}\;a \leq 1.45 \cdot 10^{+162}:\\
\;\;\;\;y \cdot i + \left(z + t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + t\_1\right)\\
\end{array}
\end{array}
if a < 1.45000000000000003e162Initial program 99.8%
add-cube-cbrt99.6%
pow399.5%
Applied egg-rr99.5%
Taylor expanded in b around inf 97.0%
Taylor expanded in z around inf 60.1%
if 1.45000000000000003e162 < a Initial program 96.6%
add-cube-cbrt96.5%
pow396.5%
Applied egg-rr96.5%
Taylor expanded in b around inf 96.5%
Taylor expanded in a around inf 75.7%
Final simplification61.9%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 2.05e+122) (+ z (* (log c) (- b 0.5))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 2.05e+122) {
tmp = z + (log(c) * (b - 0.5));
} else {
tmp = 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 (y <= 2.05d+122) then
tmp = z + (log(c) * (b - 0.5d0))
else
tmp = 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 (y <= 2.05e+122) {
tmp = z + (Math.log(c) * (b - 0.5));
} else {
tmp = y * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 2.05e+122: tmp = z + (math.log(c) * (b - 0.5)) else: tmp = y * i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 2.05e+122) tmp = Float64(z + Float64(log(c) * Float64(b - 0.5))); else tmp = Float64(y * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= 2.05e+122) tmp = z + (log(c) * (b - 0.5)); else tmp = y * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 2.05e+122], N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.05 \cdot 10^{+122}:\\
\;\;\;\;z + \log c \cdot \left(b - 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i\\
\end{array}
\end{array}
if y < 2.0500000000000001e122Initial 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 0 73.7%
Taylor expanded in y around 0 66.0%
Taylor expanded in a around 0 53.3%
Taylor expanded in t around 0 40.9%
if 2.0500000000000001e122 < y Initial program 98.8%
associate-+l+98.8%
associate-+l+98.8%
+-commutative98.8%
associate-+l+98.8%
+-commutative98.8%
associate-+l+98.8%
+-commutative98.8%
associate-+l+98.8%
+-commutative98.8%
fma-define98.8%
+-commutative98.8%
fma-define98.8%
Simplified98.8%
Taylor expanded in y around inf 58.9%
*-commutative58.9%
Simplified58.9%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 6.8e-12) (* x (log y)) (if (<= y 4e+68) z (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 6.8e-12) {
tmp = x * log(y);
} else if (y <= 4e+68) {
tmp = z;
} else {
tmp = 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 (y <= 6.8d-12) then
tmp = x * log(y)
else if (y <= 4d+68) then
tmp = z
else
tmp = 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 (y <= 6.8e-12) {
tmp = x * Math.log(y);
} else if (y <= 4e+68) {
tmp = z;
} else {
tmp = y * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 6.8e-12: tmp = x * math.log(y) elif y <= 4e+68: tmp = z else: tmp = y * i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 6.8e-12) tmp = Float64(x * log(y)); elseif (y <= 4e+68) tmp = z; else tmp = Float64(y * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= 6.8e-12) tmp = x * log(y); elseif (y <= 4e+68) tmp = z; else tmp = y * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 6.8e-12], N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4e+68], z, N[(y * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 6.8 \cdot 10^{-12}:\\
\;\;\;\;x \cdot \log y\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+68}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;y \cdot i\\
\end{array}
\end{array}
if y < 6.8000000000000001e-12Initial 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 72.8%
Taylor expanded in x around inf 31.6%
mul-1-neg31.6%
distribute-rgt-neg-out31.6%
Simplified31.6%
if 6.8000000000000001e-12 < y < 3.99999999999999981e68Initial 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 z around inf 31.5%
if 3.99999999999999981e68 < y Initial program 99.0%
associate-+l+99.0%
associate-+l+99.0%
+-commutative99.0%
associate-+l+99.0%
+-commutative99.0%
associate-+l+99.0%
+-commutative99.0%
associate-+l+99.0%
+-commutative99.0%
fma-define99.0%
+-commutative99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in y around inf 51.5%
*-commutative51.5%
Simplified51.5%
Final simplification40.3%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 43000000000.0) a (if (<= y 1e+72) z (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 43000000000.0) {
tmp = a;
} else if (y <= 1e+72) {
tmp = z;
} else {
tmp = 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 (y <= 43000000000.0d0) then
tmp = a
else if (y <= 1d+72) then
tmp = z
else
tmp = 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 (y <= 43000000000.0) {
tmp = a;
} else if (y <= 1e+72) {
tmp = z;
} else {
tmp = y * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 43000000000.0: tmp = a elif y <= 1e+72: tmp = z else: tmp = y * i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 43000000000.0) tmp = a; elseif (y <= 1e+72) tmp = z; else tmp = Float64(y * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= 43000000000.0) tmp = a; elseif (y <= 1e+72) tmp = z; else tmp = y * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 43000000000.0], a, If[LessEqual[y, 1e+72], z, N[(y * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 43000000000:\\
\;\;\;\;a\\
\mathbf{elif}\;y \leq 10^{+72}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;y \cdot i\\
\end{array}
\end{array}
if y < 4.3e10Initial 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 a around inf 15.1%
if 4.3e10 < y < 9.99999999999999944e71Initial 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 z around inf 31.5%
if 9.99999999999999944e71 < y Initial program 99.0%
associate-+l+99.0%
associate-+l+99.0%
+-commutative99.0%
associate-+l+99.0%
+-commutative99.0%
associate-+l+99.0%
+-commutative99.0%
associate-+l+99.0%
+-commutative99.0%
fma-define99.0%
+-commutative99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in y around inf 51.5%
*-commutative51.5%
Simplified51.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 2.7e+165) z a))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 2.7e+165) {
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 <= 2.7d+165) 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 <= 2.7e+165) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 2.7e+165: tmp = z else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 2.7e+165) 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 <= 2.7e+165) tmp = z; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 2.7e+165], z, a]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 2.7 \cdot 10^{+165}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < 2.7e165Initial 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.9%
+-commutative99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in z around inf 17.9%
if 2.7e165 < a Initial program 96.6%
associate-+l+96.6%
associate-+l+96.6%
+-commutative96.6%
associate-+l+96.6%
+-commutative96.6%
associate-+l+96.6%
+-commutative96.6%
associate-+l+96.6%
+-commutative96.6%
fma-define96.6%
+-commutative96.6%
fma-define96.6%
Simplified96.6%
Taylor expanded in a around inf 55.9%
(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.5%
associate-+l+99.5%
associate-+l+99.5%
+-commutative99.5%
associate-+l+99.5%
+-commutative99.5%
associate-+l+99.5%
+-commutative99.5%
associate-+l+99.5%
+-commutative99.5%
fma-define99.5%
+-commutative99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in a around inf 13.7%
herbie shell --seed 2024156
(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)))