
(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 26 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.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%
Final simplification99.9%
(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.9%
associate-+l+99.9%
associate-+l+99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= x -2.5e+104)
(+ a (+ t (+ z (fma i y (* x (log y))))))
(if (<= x 4.6e+123)
(+ a (+ t (+ z (+ (* y i) (* (log c) (- b 0.5))))))
(+ a (+ t (+ z (* x (+ (log y) (* b (/ (log c) x))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (x <= -2.5e+104) {
tmp = a + (t + (z + fma(i, y, (x * log(y)))));
} else if (x <= 4.6e+123) {
tmp = a + (t + (z + ((y * i) + (log(c) * (b - 0.5)))));
} else {
tmp = a + (t + (z + (x * (log(y) + (b * (log(c) / x))))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (x <= -2.5e+104) tmp = Float64(a + Float64(t + Float64(z + fma(i, y, Float64(x * log(y)))))); elseif (x <= 4.6e+123) tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(y * i) + Float64(log(c) * Float64(b - 0.5)))))); else tmp = Float64(a + Float64(t + Float64(z + Float64(x * Float64(log(y) + Float64(b * Float64(log(c) / x))))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[x, -2.5e+104], N[(a + N[(t + N[(z + N[(i * y + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e+123], N[(a + N[(t + N[(z + N[(N[(y * i), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(z + N[(x * N[(N[Log[y], $MachinePrecision] + N[(b * N[(N[Log[c], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.5 \cdot 10^{+104}:\\
\;\;\;\;a + \left(t + \left(z + \mathsf{fma}\left(i, y, x \cdot \log y\right)\right)\right)\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{+123}:\\
\;\;\;\;a + \left(t + \left(z + \left(y \cdot i + \log c \cdot \left(b - 0.5\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + x \cdot \left(\log y + b \cdot \frac{\log c}{x}\right)\right)\right)\\
\end{array}
\end{array}
if x < -2.4999999999999998e104Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 92.8%
fma-define92.9%
Simplified92.9%
if -2.4999999999999998e104 < x < 4.59999999999999981e123Initial program 99.9%
Taylor expanded in x around 0 97.9%
if 4.59999999999999981e123 < x Initial program 99.9%
Taylor expanded in b around inf 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in y around 0 94.7%
Taylor expanded in x around inf 94.7%
associate-/l*94.7%
Simplified94.7%
Final simplification96.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* x (log y))))
(if (<= x -1.6e+104)
(+ a (+ t (+ z (fma i y t_1))))
(if (<= x 2e+125)
(+ a (+ t (+ z (+ (* y i) (* (log c) (- b 0.5))))))
(+ a (+ t (+ z (+ t_1 (* b (log c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x * log(y);
double tmp;
if (x <= -1.6e+104) {
tmp = a + (t + (z + fma(i, y, t_1)));
} else if (x <= 2e+125) {
tmp = a + (t + (z + ((y * i) + (log(c) * (b - 0.5)))));
} else {
tmp = a + (t + (z + (t_1 + (b * log(c)))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x * log(y)) tmp = 0.0 if (x <= -1.6e+104) tmp = Float64(a + Float64(t + Float64(z + fma(i, y, t_1)))); elseif (x <= 2e+125) tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(y * i) + Float64(log(c) * Float64(b - 0.5)))))); else tmp = Float64(a + Float64(t + Float64(z + Float64(t_1 + Float64(b * log(c)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.6e+104], N[(a + N[(t + N[(z + N[(i * y + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2e+125], N[(a + N[(t + N[(z + N[(N[(y * i), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(z + N[(t$95$1 + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;x \leq -1.6 \cdot 10^{+104}:\\
\;\;\;\;a + \left(t + \left(z + \mathsf{fma}\left(i, y, t\_1\right)\right)\right)\\
\mathbf{elif}\;x \leq 2 \cdot 10^{+125}:\\
\;\;\;\;a + \left(t + \left(z + \left(y \cdot i + \log c \cdot \left(b - 0.5\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + \left(t\_1 + b \cdot \log c\right)\right)\right)\\
\end{array}
\end{array}
if x < -1.6e104Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 92.8%
fma-define92.9%
Simplified92.9%
if -1.6e104 < x < 1.9999999999999998e125Initial program 99.9%
Taylor expanded in x around 0 97.9%
if 1.9999999999999998e125 < x Initial program 99.9%
Taylor expanded in b around inf 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in y around 0 94.7%
Final simplification96.6%
(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.9%
Final simplification99.9%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (* b (log c)) (+ 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) + ((b * log(c)) + (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) + ((b * log(c)) + (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) + ((b * Math.log(c)) + (a + (t + (z + (x * Math.log(y))))));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + ((b * math.log(c)) + (a + (t + (z + (x * math.log(y))))))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(Float64(b * log(c)) + 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) + ((b * log(c)) + (a + (t + (z + (x * log(y)))))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(N[(b * N[Log[c], $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(b \cdot \log c + \left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right)\right)
\end{array}
Initial program 99.9%
Taylor expanded in b around inf 98.0%
*-commutative98.0%
Simplified98.0%
Final simplification98.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* x (log y))))
(if (<= x -2.15e+104)
(+ a (+ t (+ z (fma i y t_1))))
(if (<= x 1.9e+114)
(+ a (+ t (+ z (+ (* y i) (* (log c) (- b 0.5))))))
(+ (* 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 = x * log(y);
double tmp;
if (x <= -2.15e+104) {
tmp = a + (t + (z + fma(i, y, t_1)));
} else if (x <= 1.9e+114) {
tmp = a + (t + (z + ((y * i) + (log(c) * (b - 0.5)))));
} else {
tmp = (y * i) + (a + (t + (z + t_1)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x * log(y)) tmp = 0.0 if (x <= -2.15e+104) tmp = Float64(a + Float64(t + Float64(z + fma(i, y, t_1)))); elseif (x <= 1.9e+114) tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(y * i) + Float64(log(c) * Float64(b - 0.5)))))); else tmp = Float64(Float64(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[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.15e+104], N[(a + N[(t + N[(z + N[(i * y + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.9e+114], N[(a + N[(t + N[(z + N[(N[(y * i), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $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 := x \cdot \log y\\
\mathbf{if}\;x \leq -2.15 \cdot 10^{+104}:\\
\;\;\;\;a + \left(t + \left(z + \mathsf{fma}\left(i, y, t\_1\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{+114}:\\
\;\;\;\;a + \left(t + \left(z + \left(y \cdot i + \log c \cdot \left(b - 0.5\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \left(t + \left(z + t\_1\right)\right)\right)\\
\end{array}
\end{array}
if x < -2.1500000000000001e104Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 92.8%
fma-define92.9%
Simplified92.9%
if -2.1500000000000001e104 < x < 1.9e114Initial program 99.9%
Taylor expanded in x around 0 97.8%
if 1.9e114 < x Initial program 99.9%
Taylor expanded in b around inf 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in b around 0 88.5%
Final simplification95.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (+ t (* b (log c)))))
(t_2 (+ (* y i) (* x (log y))))
(t_3 (+ a (+ z t))))
(if (<= z -1.28e+222)
t_3
(if (<= z -9.2e+207)
t_2
(if (<= z -1.02e+176)
t_3
(if (<= z -0.016)
t_1
(if (<= z -9e-125)
t_2
(if (<= z -2.4e-266)
t_1
(if (<= z -9.2e-296)
t_2
(if (<= z 6e-138) (+ a (+ t (* y i))) t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a + (t + (b * log(c)));
double t_2 = (y * i) + (x * log(y));
double t_3 = a + (z + t);
double tmp;
if (z <= -1.28e+222) {
tmp = t_3;
} else if (z <= -9.2e+207) {
tmp = t_2;
} else if (z <= -1.02e+176) {
tmp = t_3;
} else if (z <= -0.016) {
tmp = t_1;
} else if (z <= -9e-125) {
tmp = t_2;
} else if (z <= -2.4e-266) {
tmp = t_1;
} else if (z <= -9.2e-296) {
tmp = t_2;
} else if (z <= 6e-138) {
tmp = a + (t + (y * i));
} 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) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a + (t + (b * log(c)))
t_2 = (y * i) + (x * log(y))
t_3 = a + (z + t)
if (z <= (-1.28d+222)) then
tmp = t_3
else if (z <= (-9.2d+207)) then
tmp = t_2
else if (z <= (-1.02d+176)) then
tmp = t_3
else if (z <= (-0.016d0)) then
tmp = t_1
else if (z <= (-9d-125)) then
tmp = t_2
else if (z <= (-2.4d-266)) then
tmp = t_1
else if (z <= (-9.2d-296)) then
tmp = t_2
else if (z <= 6d-138) then
tmp = a + (t + (y * i))
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 = a + (t + (b * Math.log(c)));
double t_2 = (y * i) + (x * Math.log(y));
double t_3 = a + (z + t);
double tmp;
if (z <= -1.28e+222) {
tmp = t_3;
} else if (z <= -9.2e+207) {
tmp = t_2;
} else if (z <= -1.02e+176) {
tmp = t_3;
} else if (z <= -0.016) {
tmp = t_1;
} else if (z <= -9e-125) {
tmp = t_2;
} else if (z <= -2.4e-266) {
tmp = t_1;
} else if (z <= -9.2e-296) {
tmp = t_2;
} else if (z <= 6e-138) {
tmp = a + (t + (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a + (t + (b * math.log(c))) t_2 = (y * i) + (x * math.log(y)) t_3 = a + (z + t) tmp = 0 if z <= -1.28e+222: tmp = t_3 elif z <= -9.2e+207: tmp = t_2 elif z <= -1.02e+176: tmp = t_3 elif z <= -0.016: tmp = t_1 elif z <= -9e-125: tmp = t_2 elif z <= -2.4e-266: tmp = t_1 elif z <= -9.2e-296: tmp = t_2 elif z <= 6e-138: tmp = a + (t + (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a + Float64(t + Float64(b * log(c)))) t_2 = Float64(Float64(y * i) + Float64(x * log(y))) t_3 = Float64(a + Float64(z + t)) tmp = 0.0 if (z <= -1.28e+222) tmp = t_3; elseif (z <= -9.2e+207) tmp = t_2; elseif (z <= -1.02e+176) tmp = t_3; elseif (z <= -0.016) tmp = t_1; elseif (z <= -9e-125) tmp = t_2; elseif (z <= -2.4e-266) tmp = t_1; elseif (z <= -9.2e-296) tmp = t_2; elseif (z <= 6e-138) tmp = Float64(a + Float64(t + Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = a + (t + (b * log(c))); t_2 = (y * i) + (x * log(y)); t_3 = a + (z + t); tmp = 0.0; if (z <= -1.28e+222) tmp = t_3; elseif (z <= -9.2e+207) tmp = t_2; elseif (z <= -1.02e+176) tmp = t_3; elseif (z <= -0.016) tmp = t_1; elseif (z <= -9e-125) tmp = t_2; elseif (z <= -2.4e-266) tmp = t_1; elseif (z <= -9.2e-296) tmp = t_2; elseif (z <= 6e-138) tmp = a + (t + (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a + N[(t + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * i), $MachinePrecision] + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.28e+222], t$95$3, If[LessEqual[z, -9.2e+207], t$95$2, If[LessEqual[z, -1.02e+176], t$95$3, If[LessEqual[z, -0.016], t$95$1, If[LessEqual[z, -9e-125], t$95$2, If[LessEqual[z, -2.4e-266], t$95$1, If[LessEqual[z, -9.2e-296], t$95$2, If[LessEqual[z, 6e-138], N[(a + N[(t + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(t + b \cdot \log c\right)\\
t_2 := y \cdot i + x \cdot \log y\\
t_3 := a + \left(z + t\right)\\
\mathbf{if}\;z \leq -1.28 \cdot 10^{+222}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -9.2 \cdot 10^{+207}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.02 \cdot 10^{+176}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -0.016:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -9 \cdot 10^{-125}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -2.4 \cdot 10^{-266}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -9.2 \cdot 10^{-296}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 6 \cdot 10^{-138}:\\
\;\;\;\;a + \left(t + y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.28e222 or -9.19999999999999979e207 < z < -1.02000000000000001e176Initial program 99.9%
Taylor expanded in x around 0 98.8%
Taylor expanded in z around inf 84.6%
if -1.28e222 < z < -9.19999999999999979e207 or -0.016 < z < -9.00000000000000024e-125 or -2.4e-266 < z < -9.20000000000000016e-296Initial program 99.9%
Taylor expanded in b around inf 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in x around -inf 64.5%
mul-1-neg64.5%
distribute-lft-out64.5%
+-commutative64.5%
Simplified64.5%
Taylor expanded in x around inf 36.5%
associate-*r*36.5%
neg-mul-136.5%
Simplified36.5%
Taylor expanded in x around 0 36.5%
if -1.02000000000000001e176 < z < -0.016 or -9.00000000000000024e-125 < z < -2.4e-266 or 6.0000000000000001e-138 < z Initial program 99.8%
Taylor expanded in x around 0 81.8%
Taylor expanded in b around inf 54.5%
*-commutative54.5%
Simplified54.5%
if -9.20000000000000016e-296 < z < 6.0000000000000001e-138Initial program 99.8%
Taylor expanded in x around 0 85.0%
Taylor expanded in i around inf 56.2%
Final simplification55.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* b (log c))) (t_2 (+ a (+ z t))) (t_3 (+ a (+ t (* y i)))))
(if (<= z -5.2e+227)
t_2
(if (<= z -4.9e+209)
t_1
(if (<= z -1.18e+176)
t_2
(if (<= z -6.8e+96)
t_3
(if (<= z -3.9e+50)
t_1
(if (or (<= z -5.5e-49) (not (<= z 2.65e-287)))
t_3
(* x (+ (log y) (/ a x)))))))))))
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 + (z + t);
double t_3 = a + (t + (y * i));
double tmp;
if (z <= -5.2e+227) {
tmp = t_2;
} else if (z <= -4.9e+209) {
tmp = t_1;
} else if (z <= -1.18e+176) {
tmp = t_2;
} else if (z <= -6.8e+96) {
tmp = t_3;
} else if (z <= -3.9e+50) {
tmp = t_1;
} else if ((z <= -5.5e-49) || !(z <= 2.65e-287)) {
tmp = t_3;
} else {
tmp = x * (log(y) + (a / x));
}
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) :: t_3
real(8) :: tmp
t_1 = b * log(c)
t_2 = a + (z + t)
t_3 = a + (t + (y * i))
if (z <= (-5.2d+227)) then
tmp = t_2
else if (z <= (-4.9d+209)) then
tmp = t_1
else if (z <= (-1.18d+176)) then
tmp = t_2
else if (z <= (-6.8d+96)) then
tmp = t_3
else if (z <= (-3.9d+50)) then
tmp = t_1
else if ((z <= (-5.5d-49)) .or. (.not. (z <= 2.65d-287))) then
tmp = t_3
else
tmp = x * (log(y) + (a / x))
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 + (z + t);
double t_3 = a + (t + (y * i));
double tmp;
if (z <= -5.2e+227) {
tmp = t_2;
} else if (z <= -4.9e+209) {
tmp = t_1;
} else if (z <= -1.18e+176) {
tmp = t_2;
} else if (z <= -6.8e+96) {
tmp = t_3;
} else if (z <= -3.9e+50) {
tmp = t_1;
} else if ((z <= -5.5e-49) || !(z <= 2.65e-287)) {
tmp = t_3;
} else {
tmp = x * (Math.log(y) + (a / x));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = b * math.log(c) t_2 = a + (z + t) t_3 = a + (t + (y * i)) tmp = 0 if z <= -5.2e+227: tmp = t_2 elif z <= -4.9e+209: tmp = t_1 elif z <= -1.18e+176: tmp = t_2 elif z <= -6.8e+96: tmp = t_3 elif z <= -3.9e+50: tmp = t_1 elif (z <= -5.5e-49) or not (z <= 2.65e-287): tmp = t_3 else: tmp = x * (math.log(y) + (a / x)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(b * log(c)) t_2 = Float64(a + Float64(z + t)) t_3 = Float64(a + Float64(t + Float64(y * i))) tmp = 0.0 if (z <= -5.2e+227) tmp = t_2; elseif (z <= -4.9e+209) tmp = t_1; elseif (z <= -1.18e+176) tmp = t_2; elseif (z <= -6.8e+96) tmp = t_3; elseif (z <= -3.9e+50) tmp = t_1; elseif ((z <= -5.5e-49) || !(z <= 2.65e-287)) tmp = t_3; else tmp = Float64(x * Float64(log(y) + Float64(a / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = b * log(c); t_2 = a + (z + t); t_3 = a + (t + (y * i)); tmp = 0.0; if (z <= -5.2e+227) tmp = t_2; elseif (z <= -4.9e+209) tmp = t_1; elseif (z <= -1.18e+176) tmp = t_2; elseif (z <= -6.8e+96) tmp = t_3; elseif (z <= -3.9e+50) tmp = t_1; elseif ((z <= -5.5e-49) || ~((z <= 2.65e-287))) tmp = t_3; else tmp = x * (log(y) + (a / x)); 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[(z + t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a + N[(t + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.2e+227], t$95$2, If[LessEqual[z, -4.9e+209], t$95$1, If[LessEqual[z, -1.18e+176], t$95$2, If[LessEqual[z, -6.8e+96], t$95$3, If[LessEqual[z, -3.9e+50], t$95$1, If[Or[LessEqual[z, -5.5e-49], N[Not[LessEqual[z, 2.65e-287]], $MachinePrecision]], t$95$3, N[(x * N[(N[Log[y], $MachinePrecision] + N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \log c\\
t_2 := a + \left(z + t\right)\\
t_3 := a + \left(t + y \cdot i\right)\\
\mathbf{if}\;z \leq -5.2 \cdot 10^{+227}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -4.9 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.18 \cdot 10^{+176}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -6.8 \cdot 10^{+96}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -3.9 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -5.5 \cdot 10^{-49} \lor \neg \left(z \leq 2.65 \cdot 10^{-287}\right):\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\log y + \frac{a}{x}\right)\\
\end{array}
\end{array}
if z < -5.19999999999999964e227 or -4.8999999999999998e209 < z < -1.18000000000000006e176Initial program 99.9%
Taylor expanded in x around 0 98.8%
Taylor expanded in z around inf 84.6%
if -5.19999999999999964e227 < z < -4.8999999999999998e209 or -6.8000000000000002e96 < z < -3.89999999999999967e50Initial program 99.6%
Taylor expanded in a around -inf 82.7%
Taylor expanded in b around inf 46.8%
mul-1-neg46.8%
distribute-rgt-neg-in46.8%
Simplified46.8%
if -1.18000000000000006e176 < z < -6.8000000000000002e96 or -3.89999999999999967e50 < z < -5.50000000000000031e-49 or 2.64999999999999974e-287 < z Initial program 99.9%
Taylor expanded in x around 0 84.6%
Taylor expanded in i around inf 54.0%
if -5.50000000000000031e-49 < z < 2.64999999999999974e-287Initial program 99.9%
Taylor expanded in b around inf 96.6%
*-commutative96.6%
Simplified96.6%
Taylor expanded in x around -inf 72.8%
mul-1-neg72.8%
distribute-lft-out72.8%
+-commutative72.8%
Simplified72.8%
Taylor expanded in a around inf 48.0%
Taylor expanded in y around 0 34.8%
Final simplification52.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* b (log c))) (t_2 (+ a (+ z t))))
(if (<= z -5.2e+227)
t_2
(if (<= z -4.9e+209)
t_1
(if (<= z -1.18e+176)
t_2
(if (or (<= z -0.016) (not (<= z 2.65e-287)))
(+ a (+ t t_1))
(* x (+ (log y) (/ a x)))))))))
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 + (z + t);
double tmp;
if (z <= -5.2e+227) {
tmp = t_2;
} else if (z <= -4.9e+209) {
tmp = t_1;
} else if (z <= -1.18e+176) {
tmp = t_2;
} else if ((z <= -0.016) || !(z <= 2.65e-287)) {
tmp = a + (t + t_1);
} else {
tmp = x * (log(y) + (a / x));
}
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 + (z + t)
if (z <= (-5.2d+227)) then
tmp = t_2
else if (z <= (-4.9d+209)) then
tmp = t_1
else if (z <= (-1.18d+176)) then
tmp = t_2
else if ((z <= (-0.016d0)) .or. (.not. (z <= 2.65d-287))) then
tmp = a + (t + t_1)
else
tmp = x * (log(y) + (a / x))
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 + (z + t);
double tmp;
if (z <= -5.2e+227) {
tmp = t_2;
} else if (z <= -4.9e+209) {
tmp = t_1;
} else if (z <= -1.18e+176) {
tmp = t_2;
} else if ((z <= -0.016) || !(z <= 2.65e-287)) {
tmp = a + (t + t_1);
} else {
tmp = x * (Math.log(y) + (a / x));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = b * math.log(c) t_2 = a + (z + t) tmp = 0 if z <= -5.2e+227: tmp = t_2 elif z <= -4.9e+209: tmp = t_1 elif z <= -1.18e+176: tmp = t_2 elif (z <= -0.016) or not (z <= 2.65e-287): tmp = a + (t + t_1) else: tmp = x * (math.log(y) + (a / x)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(b * log(c)) t_2 = Float64(a + Float64(z + t)) tmp = 0.0 if (z <= -5.2e+227) tmp = t_2; elseif (z <= -4.9e+209) tmp = t_1; elseif (z <= -1.18e+176) tmp = t_2; elseif ((z <= -0.016) || !(z <= 2.65e-287)) tmp = Float64(a + Float64(t + t_1)); else tmp = Float64(x * Float64(log(y) + Float64(a / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = b * log(c); t_2 = a + (z + t); tmp = 0.0; if (z <= -5.2e+227) tmp = t_2; elseif (z <= -4.9e+209) tmp = t_1; elseif (z <= -1.18e+176) tmp = t_2; elseif ((z <= -0.016) || ~((z <= 2.65e-287))) tmp = a + (t + t_1); else tmp = x * (log(y) + (a / x)); 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[(z + t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.2e+227], t$95$2, If[LessEqual[z, -4.9e+209], t$95$1, If[LessEqual[z, -1.18e+176], t$95$2, If[Or[LessEqual[z, -0.016], N[Not[LessEqual[z, 2.65e-287]], $MachinePrecision]], N[(a + N[(t + t$95$1), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Log[y], $MachinePrecision] + N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \log c\\
t_2 := a + \left(z + t\right)\\
\mathbf{if}\;z \leq -5.2 \cdot 10^{+227}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -4.9 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.18 \cdot 10^{+176}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -0.016 \lor \neg \left(z \leq 2.65 \cdot 10^{-287}\right):\\
\;\;\;\;a + \left(t + t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\log y + \frac{a}{x}\right)\\
\end{array}
\end{array}
if z < -5.19999999999999964e227 or -4.8999999999999998e209 < z < -1.18000000000000006e176Initial program 99.9%
Taylor expanded in x around 0 98.8%
Taylor expanded in z around inf 84.6%
if -5.19999999999999964e227 < z < -4.8999999999999998e209Initial program 99.7%
Taylor expanded in a around -inf 81.2%
Taylor expanded in b around inf 41.8%
mul-1-neg41.8%
distribute-rgt-neg-in41.8%
Simplified41.8%
if -1.18000000000000006e176 < z < -0.016 or 2.64999999999999974e-287 < z Initial program 99.8%
Taylor expanded in x around 0 84.6%
Taylor expanded in b around inf 52.5%
*-commutative52.5%
Simplified52.5%
if -0.016 < z < 2.64999999999999974e-287Initial program 99.9%
Taylor expanded in b around inf 97.0%
*-commutative97.0%
Simplified97.0%
Taylor expanded in x around -inf 70.5%
mul-1-neg70.5%
distribute-lft-out70.5%
+-commutative70.5%
Simplified70.5%
Taylor expanded in a around inf 45.6%
Taylor expanded in y around 0 31.0%
Final simplification49.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (+ t (+ z (* (+ b -0.5) (log c))))))
(t_2 (+ a (+ t (+ z (* x (log y)))))))
(if (<= x -2.5e+104)
t_2
(if (<= x 5.5e-242)
t_1
(if (<= x 9.2e-102)
(+ (* y i) (* b (+ (log c) (/ a b))))
(if (<= x 5.8e+112) 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 + ((b + -0.5) * log(c))));
double t_2 = a + (t + (z + (x * log(y))));
double tmp;
if (x <= -2.5e+104) {
tmp = t_2;
} else if (x <= 5.5e-242) {
tmp = t_1;
} else if (x <= 9.2e-102) {
tmp = (y * i) + (b * (log(c) + (a / b)));
} else if (x <= 5.8e+112) {
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 + ((b + (-0.5d0)) * log(c))))
t_2 = a + (t + (z + (x * log(y))))
if (x <= (-2.5d+104)) then
tmp = t_2
else if (x <= 5.5d-242) then
tmp = t_1
else if (x <= 9.2d-102) then
tmp = (y * i) + (b * (log(c) + (a / b)))
else if (x <= 5.8d+112) 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 + ((b + -0.5) * Math.log(c))));
double t_2 = a + (t + (z + (x * Math.log(y))));
double tmp;
if (x <= -2.5e+104) {
tmp = t_2;
} else if (x <= 5.5e-242) {
tmp = t_1;
} else if (x <= 9.2e-102) {
tmp = (y * i) + (b * (Math.log(c) + (a / b)));
} else if (x <= 5.8e+112) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a + (t + (z + ((b + -0.5) * math.log(c)))) t_2 = a + (t + (z + (x * math.log(y)))) tmp = 0 if x <= -2.5e+104: tmp = t_2 elif x <= 5.5e-242: tmp = t_1 elif x <= 9.2e-102: tmp = (y * i) + (b * (math.log(c) + (a / b))) elif x <= 5.8e+112: 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(Float64(b + -0.5) * log(c))))) t_2 = Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) tmp = 0.0 if (x <= -2.5e+104) tmp = t_2; elseif (x <= 5.5e-242) tmp = t_1; elseif (x <= 9.2e-102) tmp = Float64(Float64(y * i) + Float64(b * Float64(log(c) + Float64(a / b)))); elseif (x <= 5.8e+112) 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 + ((b + -0.5) * log(c)))); t_2 = a + (t + (z + (x * log(y)))); tmp = 0.0; if (x <= -2.5e+104) tmp = t_2; elseif (x <= 5.5e-242) tmp = t_1; elseif (x <= 9.2e-102) tmp = (y * i) + (b * (log(c) + (a / b))); elseif (x <= 5.8e+112) 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[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.5e+104], t$95$2, If[LessEqual[x, 5.5e-242], t$95$1, If[LessEqual[x, 9.2e-102], N[(N[(y * i), $MachinePrecision] + N[(b * N[(N[Log[c], $MachinePrecision] + N[(a / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.8e+112], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(t + \left(z + \left(b + -0.5\right) \cdot \log c\right)\right)\\
t_2 := a + \left(t + \left(z + x \cdot \log y\right)\right)\\
\mathbf{if}\;x \leq -2.5 \cdot 10^{+104}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{-242}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 9.2 \cdot 10^{-102}:\\
\;\;\;\;y \cdot i + b \cdot \left(\log c + \frac{a}{b}\right)\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{+112}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -2.4999999999999998e104 or 5.8000000000000004e112 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around 0 89.2%
Taylor expanded in b around 0 80.1%
+-commutative80.1%
Simplified80.1%
if -2.4999999999999998e104 < x < 5.4999999999999998e-242 or 9.19999999999999946e-102 < x < 5.8000000000000004e112Initial program 99.9%
Taylor expanded in x around 0 97.5%
Taylor expanded in i around 0 78.7%
+-commutative78.7%
+-commutative78.7%
sub-neg78.7%
metadata-eval78.7%
Simplified78.7%
if 5.4999999999999998e-242 < x < 9.19999999999999946e-102Initial program 99.9%
Taylor expanded in b around inf 95.7%
*-commutative95.7%
Simplified95.7%
Taylor expanded in b around inf 79.1%
associate-+r+79.1%
associate-/l*79.1%
Simplified79.1%
Taylor expanded in a around inf 74.2%
Final simplification78.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (+ t (+ z (* x (log y)))))))
(if (<= x -2.45e+104)
t_1
(if (<= x -1.45e-61)
(+ a (+ t (+ z (* b (log c)))))
(if (<= x -1.9e-189)
(+ (* y i) (* b (+ (log c) (/ z b))))
(if (<= x 3.1e+113) (+ a (+ t (+ z (* (+ b -0.5) (log c))))) t_1))))))
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 tmp;
if (x <= -2.45e+104) {
tmp = t_1;
} else if (x <= -1.45e-61) {
tmp = a + (t + (z + (b * log(c))));
} else if (x <= -1.9e-189) {
tmp = (y * i) + (b * (log(c) + (z / b)));
} else if (x <= 3.1e+113) {
tmp = a + (t + (z + ((b + -0.5) * log(c))));
} 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 = a + (t + (z + (x * log(y))))
if (x <= (-2.45d+104)) then
tmp = t_1
else if (x <= (-1.45d-61)) then
tmp = a + (t + (z + (b * log(c))))
else if (x <= (-1.9d-189)) then
tmp = (y * i) + (b * (log(c) + (z / b)))
else if (x <= 3.1d+113) then
tmp = a + (t + (z + ((b + (-0.5d0)) * log(c))))
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 = a + (t + (z + (x * Math.log(y))));
double tmp;
if (x <= -2.45e+104) {
tmp = t_1;
} else if (x <= -1.45e-61) {
tmp = a + (t + (z + (b * Math.log(c))));
} else if (x <= -1.9e-189) {
tmp = (y * i) + (b * (Math.log(c) + (z / b)));
} else if (x <= 3.1e+113) {
tmp = a + (t + (z + ((b + -0.5) * Math.log(c))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a + (t + (z + (x * math.log(y)))) tmp = 0 if x <= -2.45e+104: tmp = t_1 elif x <= -1.45e-61: tmp = a + (t + (z + (b * math.log(c)))) elif x <= -1.9e-189: tmp = (y * i) + (b * (math.log(c) + (z / b))) elif x <= 3.1e+113: tmp = a + (t + (z + ((b + -0.5) * math.log(c)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) tmp = 0.0 if (x <= -2.45e+104) tmp = t_1; elseif (x <= -1.45e-61) tmp = Float64(a + Float64(t + Float64(z + Float64(b * log(c))))); elseif (x <= -1.9e-189) tmp = Float64(Float64(y * i) + Float64(b * Float64(log(c) + Float64(z / b)))); elseif (x <= 3.1e+113) tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(b + -0.5) * log(c))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = a + (t + (z + (x * log(y)))); tmp = 0.0; if (x <= -2.45e+104) tmp = t_1; elseif (x <= -1.45e-61) tmp = a + (t + (z + (b * log(c)))); elseif (x <= -1.9e-189) tmp = (y * i) + (b * (log(c) + (z / b))); elseif (x <= 3.1e+113) tmp = a + (t + (z + ((b + -0.5) * log(c)))); else tmp = t_1; 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]}, If[LessEqual[x, -2.45e+104], t$95$1, If[LessEqual[x, -1.45e-61], N[(a + N[(t + N[(z + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.9e-189], N[(N[(y * i), $MachinePrecision] + N[(b * N[(N[Log[c], $MachinePrecision] + N[(z / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.1e+113], N[(a + N[(t + N[(z + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(t + \left(z + x \cdot \log y\right)\right)\\
\mathbf{if}\;x \leq -2.45 \cdot 10^{+104}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.45 \cdot 10^{-61}:\\
\;\;\;\;a + \left(t + \left(z + b \cdot \log c\right)\right)\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{-189}:\\
\;\;\;\;y \cdot i + b \cdot \left(\log c + \frac{z}{b}\right)\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{+113}:\\
\;\;\;\;a + \left(t + \left(z + \left(b + -0.5\right) \cdot \log c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.44999999999999993e104 or 3.09999999999999991e113 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around 0 89.2%
Taylor expanded in b around 0 80.1%
+-commutative80.1%
Simplified80.1%
if -2.44999999999999993e104 < x < -1.45e-61Initial program 99.9%
Taylor expanded in b around inf 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in y around 0 89.0%
Taylor expanded in x around 0 86.1%
+-commutative86.1%
Simplified86.1%
if -1.45e-61 < x < -1.90000000000000011e-189Initial program 99.9%
Taylor expanded in b around inf 95.9%
*-commutative95.9%
Simplified95.9%
Taylor expanded in b around inf 88.7%
associate-+r+88.7%
associate-/l*88.7%
Simplified88.7%
Taylor expanded in z around inf 84.9%
if -1.90000000000000011e-189 < x < 3.09999999999999991e113Initial program 99.9%
Taylor expanded in x around 0 97.6%
Taylor expanded in i around 0 75.6%
+-commutative75.6%
+-commutative75.6%
sub-neg75.6%
metadata-eval75.6%
Simplified75.6%
Final simplification79.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (+ t (+ z (* b (log c))))))
(t_2 (+ a (+ t (+ z (* x (log y)))))))
(if (<= x -1.8e+104)
t_2
(if (<= x 5.5e-242)
t_1
(if (<= x 2e-193) (+ a (+ t (* y i))) (if (<= x 1.32e+113) 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 + (b * log(c))));
double t_2 = a + (t + (z + (x * log(y))));
double tmp;
if (x <= -1.8e+104) {
tmp = t_2;
} else if (x <= 5.5e-242) {
tmp = t_1;
} else if (x <= 2e-193) {
tmp = a + (t + (y * i));
} else if (x <= 1.32e+113) {
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 + (b * log(c))))
t_2 = a + (t + (z + (x * log(y))))
if (x <= (-1.8d+104)) then
tmp = t_2
else if (x <= 5.5d-242) then
tmp = t_1
else if (x <= 2d-193) then
tmp = a + (t + (y * i))
else if (x <= 1.32d+113) 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 + (b * Math.log(c))));
double t_2 = a + (t + (z + (x * Math.log(y))));
double tmp;
if (x <= -1.8e+104) {
tmp = t_2;
} else if (x <= 5.5e-242) {
tmp = t_1;
} else if (x <= 2e-193) {
tmp = a + (t + (y * i));
} else if (x <= 1.32e+113) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a + (t + (z + (b * math.log(c)))) t_2 = a + (t + (z + (x * math.log(y)))) tmp = 0 if x <= -1.8e+104: tmp = t_2 elif x <= 5.5e-242: tmp = t_1 elif x <= 2e-193: tmp = a + (t + (y * i)) elif x <= 1.32e+113: 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(b * log(c))))) t_2 = Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) tmp = 0.0 if (x <= -1.8e+104) tmp = t_2; elseif (x <= 5.5e-242) tmp = t_1; elseif (x <= 2e-193) tmp = Float64(a + Float64(t + Float64(y * i))); elseif (x <= 1.32e+113) 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 + (b * log(c)))); t_2 = a + (t + (z + (x * log(y)))); tmp = 0.0; if (x <= -1.8e+104) tmp = t_2; elseif (x <= 5.5e-242) tmp = t_1; elseif (x <= 2e-193) tmp = a + (t + (y * i)); elseif (x <= 1.32e+113) 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[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.8e+104], t$95$2, If[LessEqual[x, 5.5e-242], t$95$1, If[LessEqual[x, 2e-193], N[(a + N[(t + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.32e+113], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(t + \left(z + b \cdot \log c\right)\right)\\
t_2 := a + \left(t + \left(z + x \cdot \log y\right)\right)\\
\mathbf{if}\;x \leq -1.8 \cdot 10^{+104}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{-242}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-193}:\\
\;\;\;\;a + \left(t + y \cdot i\right)\\
\mathbf{elif}\;x \leq 1.32 \cdot 10^{+113}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -1.8e104 or 1.31999999999999996e113 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around 0 89.2%
Taylor expanded in b around 0 80.1%
+-commutative80.1%
Simplified80.1%
if -1.8e104 < x < 5.4999999999999998e-242 or 2.0000000000000001e-193 < x < 1.31999999999999996e113Initial program 99.9%
Taylor expanded in b around inf 97.5%
*-commutative97.5%
Simplified97.5%
Taylor expanded in y around 0 77.3%
Taylor expanded in x around 0 75.1%
+-commutative75.1%
Simplified75.1%
if 5.4999999999999998e-242 < x < 2.0000000000000001e-193Initial program 99.8%
Taylor expanded in x around 0 99.8%
Taylor expanded in i around inf 90.2%
Final simplification77.3%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -2.3e+104) (not (<= x 2.35e+114))) (+ (* y i) (+ a (+ t (+ z (* x (log y)))))) (+ a (+ t (+ 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 <= -2.3e+104) || !(x <= 2.35e+114)) {
tmp = (y * i) + (a + (t + (z + (x * log(y)))));
} else {
tmp = a + (t + (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 <= (-2.3d+104)) .or. (.not. (x <= 2.35d+114))) then
tmp = (y * i) + (a + (t + (z + (x * log(y)))))
else
tmp = a + (t + (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 <= -2.3e+104) || !(x <= 2.35e+114)) {
tmp = (y * i) + (a + (t + (z + (x * Math.log(y)))));
} else {
tmp = a + (t + (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 <= -2.3e+104) or not (x <= 2.35e+114): tmp = (y * i) + (a + (t + (z + (x * math.log(y))))) else: tmp = a + (t + (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 <= -2.3e+104) || !(x <= 2.35e+114)) tmp = Float64(Float64(y * i) + Float64(a + Float64(t + Float64(z + Float64(x * log(y)))))); else tmp = Float64(a + Float64(t + 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 <= -2.3e+104) || ~((x <= 2.35e+114))) tmp = (y * i) + (a + (t + (z + (x * log(y))))); else tmp = a + (t + (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, -2.3e+104], N[Not[LessEqual[x, 2.35e+114]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(z + N[(N[(y * i), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.3 \cdot 10^{+104} \lor \neg \left(x \leq 2.35 \cdot 10^{+114}\right):\\
\;\;\;\;y \cdot i + \left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + \left(y \cdot i + \log c \cdot \left(b - 0.5\right)\right)\right)\right)\\
\end{array}
\end{array}
if x < -2.29999999999999985e104 or 2.35e114 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 90.7%
if -2.29999999999999985e104 < x < 2.35e114Initial program 99.9%
Taylor expanded in x around 0 97.8%
Final simplification95.6%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -2.1e+139) (not (<= x 3.9e+155))) (+ a (+ t (+ z (* x (log y))))) (+ a (+ t (+ z (+ (* y i) (* 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 <= -2.1e+139) || !(x <= 3.9e+155)) {
tmp = a + (t + (z + (x * log(y))));
} else {
tmp = a + (t + (z + ((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) :: tmp
if ((x <= (-2.1d+139)) .or. (.not. (x <= 3.9d+155))) then
tmp = a + (t + (z + (x * log(y))))
else
tmp = a + (t + (z + ((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 tmp;
if ((x <= -2.1e+139) || !(x <= 3.9e+155)) {
tmp = a + (t + (z + (x * Math.log(y))));
} else {
tmp = a + (t + (z + ((y * i) + (b * Math.log(c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -2.1e+139) or not (x <= 3.9e+155): tmp = a + (t + (z + (x * math.log(y)))) else: tmp = a + (t + (z + ((y * i) + (b * math.log(c))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -2.1e+139) || !(x <= 3.9e+155)) tmp = Float64(a + Float64(t + Float64(z + Float64(x * log(y))))); else tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(y * i) + 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 <= -2.1e+139) || ~((x <= 3.9e+155))) tmp = a + (t + (z + (x * log(y)))); else tmp = a + (t + (z + ((y * i) + (b * log(c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -2.1e+139], N[Not[LessEqual[x, 3.9e+155]], $MachinePrecision]], N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(z + N[(N[(y * i), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.1 \cdot 10^{+139} \lor \neg \left(x \leq 3.9 \cdot 10^{+155}\right):\\
\;\;\;\;a + \left(t + \left(z + x \cdot \log y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + \left(y \cdot i + b \cdot \log c\right)\right)\right)\\
\end{array}
\end{array}
if x < -2.0999999999999999e139 or 3.8999999999999998e155 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around 0 92.6%
Taylor expanded in b around 0 82.9%
+-commutative82.9%
Simplified82.9%
if -2.0999999999999999e139 < x < 3.8999999999999998e155Initial program 99.9%
Taylor expanded in b around inf 97.3%
*-commutative97.3%
Simplified97.3%
Taylor expanded in x around 0 93.9%
Final simplification91.1%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -2.5e+104) (not (<= x 5.7e+113))) (+ (* y i) (+ a (+ t (+ z (* x (log y)))))) (+ a (+ t (+ z (+ (* y i) (* 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 <= -2.5e+104) || !(x <= 5.7e+113)) {
tmp = (y * i) + (a + (t + (z + (x * log(y)))));
} else {
tmp = a + (t + (z + ((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) :: tmp
if ((x <= (-2.5d+104)) .or. (.not. (x <= 5.7d+113))) then
tmp = (y * i) + (a + (t + (z + (x * log(y)))))
else
tmp = a + (t + (z + ((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 tmp;
if ((x <= -2.5e+104) || !(x <= 5.7e+113)) {
tmp = (y * i) + (a + (t + (z + (x * Math.log(y)))));
} else {
tmp = a + (t + (z + ((y * i) + (b * Math.log(c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -2.5e+104) or not (x <= 5.7e+113): tmp = (y * i) + (a + (t + (z + (x * math.log(y))))) else: tmp = a + (t + (z + ((y * i) + (b * math.log(c))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -2.5e+104) || !(x <= 5.7e+113)) tmp = Float64(Float64(y * i) + Float64(a + Float64(t + Float64(z + Float64(x * log(y)))))); else tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(y * i) + 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 <= -2.5e+104) || ~((x <= 5.7e+113))) tmp = (y * i) + (a + (t + (z + (x * log(y))))); else tmp = a + (t + (z + ((y * i) + (b * log(c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -2.5e+104], N[Not[LessEqual[x, 5.7e+113]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(z + N[(N[(y * i), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.5 \cdot 10^{+104} \lor \neg \left(x \leq 5.7 \cdot 10^{+113}\right):\\
\;\;\;\;y \cdot i + \left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + \left(y \cdot i + b \cdot \log c\right)\right)\right)\\
\end{array}
\end{array}
if x < -2.4999999999999998e104 or 5.6999999999999998e113 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 90.7%
if -2.4999999999999998e104 < x < 5.6999999999999998e113Initial program 99.9%
Taylor expanded in b around inf 97.1%
*-commutative97.1%
Simplified97.1%
Taylor expanded in x around 0 95.1%
Final simplification93.7%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -2.5e+104) (not (<= x 1.55e+114))) (+ a (+ t (+ z (* x (log y))))) (+ a (+ t (+ z (* (+ b -0.5) (log c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -2.5e+104) || !(x <= 1.55e+114)) {
tmp = a + (t + (z + (x * log(y))));
} else {
tmp = a + (t + (z + ((b + -0.5) * 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 <= (-2.5d+104)) .or. (.not. (x <= 1.55d+114))) then
tmp = a + (t + (z + (x * log(y))))
else
tmp = a + (t + (z + ((b + (-0.5d0)) * 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 <= -2.5e+104) || !(x <= 1.55e+114)) {
tmp = a + (t + (z + (x * Math.log(y))));
} else {
tmp = a + (t + (z + ((b + -0.5) * Math.log(c))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -2.5e+104) or not (x <= 1.55e+114): tmp = a + (t + (z + (x * math.log(y)))) else: tmp = a + (t + (z + ((b + -0.5) * math.log(c)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -2.5e+104) || !(x <= 1.55e+114)) tmp = Float64(a + Float64(t + Float64(z + Float64(x * log(y))))); else tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(b + -0.5) * log(c))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -2.5e+104) || ~((x <= 1.55e+114))) tmp = a + (t + (z + (x * log(y)))); else tmp = a + (t + (z + ((b + -0.5) * log(c)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -2.5e+104], N[Not[LessEqual[x, 1.55e+114]], $MachinePrecision]], N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(z + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.5 \cdot 10^{+104} \lor \neg \left(x \leq 1.55 \cdot 10^{+114}\right):\\
\;\;\;\;a + \left(t + \left(z + x \cdot \log y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + \left(b + -0.5\right) \cdot \log c\right)\right)\\
\end{array}
\end{array}
if x < -2.4999999999999998e104 or 1.55e114 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around 0 89.2%
Taylor expanded in b around 0 80.1%
+-commutative80.1%
Simplified80.1%
if -2.4999999999999998e104 < x < 1.55e114Initial program 99.9%
Taylor expanded in x around 0 97.8%
Taylor expanded in i around 0 75.5%
+-commutative75.5%
+-commutative75.5%
sub-neg75.5%
metadata-eval75.5%
Simplified75.5%
Final simplification76.9%
(FPCore (x y z t a b c i) :precision binary64 (if (<= i -1.55e+79) (+ (* y i) (* x (log y))) (if (<= i 2.2e+219) (+ a (+ t (+ z (* b (log c))))) (+ a (+ t (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (i <= -1.55e+79) {
tmp = (y * i) + (x * log(y));
} else if (i <= 2.2e+219) {
tmp = a + (t + (z + (b * log(c))));
} else {
tmp = a + (t + (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 (i <= (-1.55d+79)) then
tmp = (y * i) + (x * log(y))
else if (i <= 2.2d+219) then
tmp = a + (t + (z + (b * log(c))))
else
tmp = a + (t + (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 (i <= -1.55e+79) {
tmp = (y * i) + (x * Math.log(y));
} else if (i <= 2.2e+219) {
tmp = a + (t + (z + (b * Math.log(c))));
} else {
tmp = a + (t + (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if i <= -1.55e+79: tmp = (y * i) + (x * math.log(y)) elif i <= 2.2e+219: tmp = a + (t + (z + (b * math.log(c)))) else: tmp = a + (t + (y * i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (i <= -1.55e+79) tmp = Float64(Float64(y * i) + Float64(x * log(y))); elseif (i <= 2.2e+219) tmp = Float64(a + Float64(t + Float64(z + Float64(b * log(c))))); else tmp = Float64(a + Float64(t + Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (i <= -1.55e+79) tmp = (y * i) + (x * log(y)); elseif (i <= 2.2e+219) tmp = a + (t + (z + (b * log(c)))); else tmp = a + (t + (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[i, -1.55e+79], N[(N[(y * i), $MachinePrecision] + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.2e+219], N[(a + N[(t + N[(z + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.55 \cdot 10^{+79}:\\
\;\;\;\;y \cdot i + x \cdot \log y\\
\mathbf{elif}\;i \leq 2.2 \cdot 10^{+219}:\\
\;\;\;\;a + \left(t + \left(z + b \cdot \log c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + y \cdot i\right)\\
\end{array}
\end{array}
if i < -1.5499999999999999e79Initial program 99.9%
Taylor expanded in b around inf 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in x around -inf 81.4%
mul-1-neg81.4%
distribute-lft-out81.4%
+-commutative81.4%
Simplified81.4%
Taylor expanded in x around inf 68.6%
associate-*r*68.6%
neg-mul-168.6%
Simplified68.6%
Taylor expanded in x around 0 68.6%
if -1.5499999999999999e79 < i < 2.2000000000000001e219Initial program 99.8%
Taylor expanded in b around inf 97.4%
*-commutative97.4%
Simplified97.4%
Taylor expanded in y around 0 89.7%
Taylor expanded in x around 0 72.6%
+-commutative72.6%
Simplified72.6%
if 2.2000000000000001e219 < i Initial program 99.9%
Taylor expanded in x around 0 88.3%
Taylor expanded in i around inf 82.3%
Final simplification72.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (+ z t))))
(if (<= y 1.75e-269)
t_1
(if (<= y 3e-250)
(* b (log c))
(if (<= y 3.7e+52) t_1 (+ a (+ t (* y i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a + (z + t);
double tmp;
if (y <= 1.75e-269) {
tmp = t_1;
} else if (y <= 3e-250) {
tmp = b * log(c);
} else if (y <= 3.7e+52) {
tmp = t_1;
} else {
tmp = a + (t + (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) :: t_1
real(8) :: tmp
t_1 = a + (z + t)
if (y <= 1.75d-269) then
tmp = t_1
else if (y <= 3d-250) then
tmp = b * log(c)
else if (y <= 3.7d+52) then
tmp = t_1
else
tmp = a + (t + (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 t_1 = a + (z + t);
double tmp;
if (y <= 1.75e-269) {
tmp = t_1;
} else if (y <= 3e-250) {
tmp = b * Math.log(c);
} else if (y <= 3.7e+52) {
tmp = t_1;
} else {
tmp = a + (t + (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a + (z + t) tmp = 0 if y <= 1.75e-269: tmp = t_1 elif y <= 3e-250: tmp = b * math.log(c) elif y <= 3.7e+52: tmp = t_1 else: tmp = a + (t + (y * i)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a + Float64(z + t)) tmp = 0.0 if (y <= 1.75e-269) tmp = t_1; elseif (y <= 3e-250) tmp = Float64(b * log(c)); elseif (y <= 3.7e+52) tmp = t_1; else tmp = Float64(a + Float64(t + Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = a + (z + t); tmp = 0.0; if (y <= 1.75e-269) tmp = t_1; elseif (y <= 3e-250) tmp = b * log(c); elseif (y <= 3.7e+52) tmp = t_1; else tmp = a + (t + (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 1.75e-269], t$95$1, If[LessEqual[y, 3e-250], N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.7e+52], t$95$1, N[(a + N[(t + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(z + t\right)\\
\mathbf{if}\;y \leq 1.75 \cdot 10^{-269}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3 \cdot 10^{-250}:\\
\;\;\;\;b \cdot \log c\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + y \cdot i\right)\\
\end{array}
\end{array}
if y < 1.75000000000000009e-269 or 3.00000000000000016e-250 < y < 3.7e52Initial program 99.9%
Taylor expanded in x around 0 83.7%
Taylor expanded in z around inf 53.6%
if 1.75000000000000009e-269 < y < 3.00000000000000016e-250Initial program 99.8%
Taylor expanded in a around -inf 34.3%
Taylor expanded in b around inf 60.7%
mul-1-neg60.7%
distribute-rgt-neg-in60.7%
Simplified60.7%
if 3.7e52 < y Initial program 99.8%
Taylor expanded in x around 0 84.8%
Taylor expanded in i around inf 64.0%
Final simplification57.6%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= i -7.5e+106) (not (<= i 2.7e+257))) (* y i) (+ a (+ z t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((i <= -7.5e+106) || !(i <= 2.7e+257)) {
tmp = y * i;
} else {
tmp = 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 ((i <= (-7.5d+106)) .or. (.not. (i <= 2.7d+257))) then
tmp = y * i
else
tmp = 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 ((i <= -7.5e+106) || !(i <= 2.7e+257)) {
tmp = y * i;
} else {
tmp = a + (z + t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (i <= -7.5e+106) or not (i <= 2.7e+257): tmp = y * i else: tmp = a + (z + t) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((i <= -7.5e+106) || !(i <= 2.7e+257)) tmp = Float64(y * i); else tmp = 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 ((i <= -7.5e+106) || ~((i <= 2.7e+257))) tmp = y * i; else tmp = a + (z + t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[i, -7.5e+106], N[Not[LessEqual[i, 2.7e+257]], $MachinePrecision]], N[(y * i), $MachinePrecision], N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -7.5 \cdot 10^{+106} \lor \neg \left(i \leq 2.7 \cdot 10^{+257}\right):\\
\;\;\;\;y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a + \left(z + t\right)\\
\end{array}
\end{array}
if i < -7.50000000000000058e106 or 2.6999999999999997e257 < i Initial program 99.9%
Taylor expanded in y around inf 62.8%
*-commutative62.8%
Simplified62.8%
if -7.50000000000000058e106 < i < 2.6999999999999997e257Initial program 99.8%
Taylor expanded in x around 0 82.3%
Taylor expanded in z around inf 48.8%
Final simplification51.3%
(FPCore (x y z t a b c i) :precision binary64 (if (<= i -8.5e+104) (+ t (* y i)) (if (<= i 6.4e+259) (+ a (+ z t)) (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (i <= -8.5e+104) {
tmp = t + (y * i);
} else if (i <= 6.4e+259) {
tmp = a + (z + t);
} 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 (i <= (-8.5d+104)) then
tmp = t + (y * i)
else if (i <= 6.4d+259) then
tmp = a + (z + t)
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 (i <= -8.5e+104) {
tmp = t + (y * i);
} else if (i <= 6.4e+259) {
tmp = a + (z + t);
} else {
tmp = y * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if i <= -8.5e+104: tmp = t + (y * i) elif i <= 6.4e+259: tmp = a + (z + t) else: tmp = y * i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (i <= -8.5e+104) tmp = Float64(t + Float64(y * i)); elseif (i <= 6.4e+259) tmp = Float64(a + Float64(z + t)); 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 (i <= -8.5e+104) tmp = t + (y * i); elseif (i <= 6.4e+259) tmp = a + (z + t); else tmp = y * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[i, -8.5e+104], N[(t + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.4e+259], N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision], N[(y * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -8.5 \cdot 10^{+104}:\\
\;\;\;\;t + y \cdot i\\
\mathbf{elif}\;i \leq 6.4 \cdot 10^{+259}:\\
\;\;\;\;a + \left(z + t\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i\\
\end{array}
\end{array}
if i < -8.4999999999999999e104Initial program 99.9%
Taylor expanded in b around inf 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in b around inf 79.9%
associate-+r+79.9%
associate-/l*79.9%
Simplified79.9%
Taylor expanded in t around inf 69.5%
if -8.4999999999999999e104 < i < 6.40000000000000036e259Initial program 99.8%
Taylor expanded in x around 0 82.3%
Taylor expanded in z around inf 48.8%
if 6.40000000000000036e259 < i Initial program 100.0%
Taylor expanded in y around inf 86.2%
*-commutative86.2%
Simplified86.2%
Final simplification52.9%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -1.18e+176) z (if (<= z -6.4e+29) (* y i) a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -1.18e+176) {
tmp = z;
} else if (z <= -6.4e+29) {
tmp = y * i;
} 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 (z <= (-1.18d+176)) then
tmp = z
else if (z <= (-6.4d+29)) then
tmp = y * i
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 (z <= -1.18e+176) {
tmp = z;
} else if (z <= -6.4e+29) {
tmp = y * i;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -1.18e+176: tmp = z elif z <= -6.4e+29: tmp = y * i else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -1.18e+176) tmp = z; elseif (z <= -6.4e+29) tmp = Float64(y * i); else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -1.18e+176) tmp = z; elseif (z <= -6.4e+29) tmp = y * i; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -1.18e+176], z, If[LessEqual[z, -6.4e+29], N[(y * i), $MachinePrecision], a]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.18 \cdot 10^{+176}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq -6.4 \cdot 10^{+29}:\\
\;\;\;\;y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if z < -1.18000000000000006e176Initial program 99.8%
Taylor expanded in z around inf 64.6%
if -1.18000000000000006e176 < z < -6.39999999999999973e29Initial program 99.7%
Taylor expanded in y around inf 22.3%
*-commutative22.3%
Simplified22.3%
if -6.39999999999999973e29 < z Initial program 99.9%
Taylor expanded in a around inf 15.8%
Final simplification22.2%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 1e+54) (+ a (+ z t)) (+ a (+ t (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 1e+54) {
tmp = a + (z + t);
} else {
tmp = a + (t + (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 <= 1d+54) then
tmp = a + (z + t)
else
tmp = a + (t + (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 <= 1e+54) {
tmp = a + (z + t);
} else {
tmp = a + (t + (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 1e+54: tmp = a + (z + t) else: tmp = a + (t + (y * i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 1e+54) tmp = Float64(a + Float64(z + t)); else tmp = Float64(a + Float64(t + Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= 1e+54) tmp = a + (z + t); else tmp = a + (t + (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 1e+54], N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 10^{+54}:\\
\;\;\;\;a + \left(z + t\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + y \cdot i\right)\\
\end{array}
\end{array}
if y < 1.0000000000000001e54Initial program 99.9%
Taylor expanded in x around 0 83.5%
Taylor expanded in z around inf 51.0%
if 1.0000000000000001e54 < y Initial program 99.8%
Taylor expanded in x around 0 84.8%
Taylor expanded in i around inf 64.0%
Final simplification55.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 1.45e+55) (+ a (+ z t)) (+ a (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 1.45e+55) {
tmp = a + (z + t);
} 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 (y <= 1.45d+55) then
tmp = a + (z + t)
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 (y <= 1.45e+55) {
tmp = a + (z + t);
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 1.45e+55: tmp = a + (z + t) else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 1.45e+55) tmp = Float64(a + Float64(z + t)); 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 (y <= 1.45e+55) tmp = a + (z + t); else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 1.45e+55], N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.45 \cdot 10^{+55}:\\
\;\;\;\;a + \left(z + t\right)\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if y < 1.4499999999999999e55Initial program 99.9%
Taylor expanded in x around 0 83.5%
Taylor expanded in z around inf 51.0%
if 1.4499999999999999e55 < y Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around -inf 75.5%
mul-1-neg75.5%
distribute-lft-out75.5%
+-commutative75.5%
Simplified75.5%
Taylor expanded in a around inf 57.7%
Taylor expanded in x around 0 52.3%
*-commutative52.3%
mul-1-neg52.3%
Simplified52.3%
Final simplification51.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -2.5e+161) z a))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2.5e+161) {
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 (z <= (-2.5d+161)) 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 (z <= -2.5e+161) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -2.5e+161: tmp = z else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -2.5e+161) 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 (z <= -2.5e+161) tmp = z; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -2.5e+161], z, a]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.5 \cdot 10^{+161}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if z < -2.4999999999999998e161Initial program 99.9%
Taylor expanded in z around inf 58.7%
if -2.4999999999999998e161 < z Initial program 99.9%
Taylor expanded in a around inf 16.2%
Final simplification21.7%
(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.9%
Taylor expanded in a around inf 15.2%
Final simplification15.2%
herbie shell --seed 2024066
(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)))