
(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 (+ (+ z a) (fma (+ b -0.5) (log c) (fma y i (fma x (log y) t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (z + a) + fma((b + -0.5), log(c), fma(y, i, fma(x, log(y), t)));
}
function code(x, y, z, t, a, b, c, i) return Float64(Float64(z + a) + fma(Float64(b + -0.5), log(c), fma(y, i, fma(x, log(y), t)))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(z + a), $MachinePrecision] + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + N[(y * i + N[(x * N[Log[y], $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(z + a\right) + \mathsf{fma}\left(b + -0.5, \log c, \mathsf{fma}\left(y, i, \mathsf{fma}\left(x, \log y, t\right)\right)\right)
\end{array}
Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
fma-def99.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 -5.4e+127)
(+ a (+ t (+ z (- (* y i) (* x (log (/ 1.0 y)))))))
(if (<= x 1.35e+209)
(+ (* y i) (fma (log c) (+ b -0.5) (+ a (+ z t))))
(+ (+ z a) (+ (* x (log y)) (+ t (* (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 <= -5.4e+127) {
tmp = a + (t + (z + ((y * i) - (x * log((1.0 / y))))));
} else if (x <= 1.35e+209) {
tmp = (y * i) + fma(log(c), (b + -0.5), (a + (z + t)));
} else {
tmp = (z + a) + ((x * log(y)) + (t + (log(c) * (b - 0.5))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (x <= -5.4e+127) tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(y * i) - Float64(x * log(Float64(1.0 / y))))))); elseif (x <= 1.35e+209) tmp = Float64(Float64(y * i) + fma(log(c), Float64(b + -0.5), Float64(a + Float64(z + t)))); else tmp = Float64(Float64(z + a) + Float64(Float64(x * log(y)) + Float64(t + Float64(log(c) * Float64(b - 0.5))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[x, -5.4e+127], N[(a + N[(t + N[(z + N[(N[(y * i), $MachinePrecision] - N[(x * N[Log[N[(1.0 / y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.35e+209], N[(N[(y * i), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b + -0.5), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z + a), $MachinePrecision] + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(t + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.4 \cdot 10^{+127}:\\
\;\;\;\;a + \left(t + \left(z + \left(y \cdot i - x \cdot \log \left(\frac{1}{y}\right)\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{+209}:\\
\;\;\;\;y \cdot i + \mathsf{fma}\left(\log c, b + -0.5, a + \left(z + t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z + a\right) + \left(x \cdot \log y + \left(t + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\end{array}
\end{array}
if x < -5.4000000000000004e127Initial program 99.8%
+-commutative99.8%
add-cube-cbrt99.8%
fma-def99.8%
pow299.8%
sub-neg99.8%
metadata-eval99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
+-commutative99.8%
fma-def99.8%
Applied egg-rr99.8%
Taylor expanded in b around inf 99.8%
Taylor expanded in y around inf 99.8%
if -5.4000000000000004e127 < x < 1.35e209Initial program 99.9%
Taylor expanded in x around 0 97.9%
*-commutative97.9%
fma-def97.9%
sub-neg97.9%
metadata-eval97.9%
+-commutative97.9%
Simplified97.9%
if 1.35e209 < x Initial program 99.8%
+-commutative99.8%
associate-+l+99.8%
associate-+r+99.8%
+-commutative99.8%
associate-+r+99.8%
associate-+r+99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+r+99.8%
associate-+r+99.8%
fma-def99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in y around 0 95.3%
Final simplification97.9%
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ a (+ t (+ z (* x (log y))))) (* (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) {
return ((a + (t + (z + (x * log(y))))) + (log(c) * (b - 0.5))) + (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))))) + (log(c) * (b - 0.5d0))) + (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))))) + (Math.log(c) * (b - 0.5))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return ((a + (t + (z + (x * math.log(y))))) + (math.log(c) * (b - 0.5))) + (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(log(c) * Float64(b - 0.5))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((a + (t + (z + (x * log(y))))) + (log(c) * (b - 0.5))) + (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[Log[c], $MachinePrecision] * N[(b - 0.5), $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) + \log c \cdot \left(b - 0.5\right)\right) + y \cdot i
\end{array}
Initial program 99.9%
Final simplification99.9%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= x -6e+126)
(+ a (+ t (+ z (- (* y i) (* x (log (/ 1.0 y)))))))
(if (<= x 1.35e+209)
(+ (* y i) (fma (log c) (+ b -0.5) (+ a (+ z t))))
(+ (* y i) (+ a (+ (* x (log y)) (+ z t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (x <= -6e+126) {
tmp = a + (t + (z + ((y * i) - (x * log((1.0 / y))))));
} else if (x <= 1.35e+209) {
tmp = (y * i) + fma(log(c), (b + -0.5), (a + (z + t)));
} else {
tmp = (y * i) + (a + ((x * log(y)) + (z + t)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (x <= -6e+126) tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(y * i) - Float64(x * log(Float64(1.0 / y))))))); elseif (x <= 1.35e+209) tmp = Float64(Float64(y * i) + fma(log(c), Float64(b + -0.5), Float64(a + Float64(z + t)))); else tmp = Float64(Float64(y * i) + Float64(a + Float64(Float64(x * log(y)) + Float64(z + t)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[x, -6e+126], N[(a + N[(t + N[(z + N[(N[(y * i), $MachinePrecision] - N[(x * N[Log[N[(1.0 / y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.35e+209], N[(N[(y * i), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b + -0.5), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6 \cdot 10^{+126}:\\
\;\;\;\;a + \left(t + \left(z + \left(y \cdot i - x \cdot \log \left(\frac{1}{y}\right)\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{+209}:\\
\;\;\;\;y \cdot i + \mathsf{fma}\left(\log c, b + -0.5, a + \left(z + t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \left(x \cdot \log y + \left(z + t\right)\right)\right)\\
\end{array}
\end{array}
if x < -6.0000000000000005e126Initial program 99.8%
+-commutative99.8%
add-cube-cbrt99.8%
fma-def99.8%
pow299.8%
sub-neg99.8%
metadata-eval99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
+-commutative99.8%
fma-def99.8%
Applied egg-rr99.8%
Taylor expanded in b around inf 99.8%
Taylor expanded in y around inf 99.8%
if -6.0000000000000005e126 < x < 1.35e209Initial program 99.9%
Taylor expanded in x around 0 97.9%
*-commutative97.9%
fma-def97.9%
sub-neg97.9%
metadata-eval97.9%
+-commutative97.9%
Simplified97.9%
if 1.35e209 < x Initial program 99.8%
+-commutative99.8%
add-cube-cbrt99.8%
fma-def99.8%
pow299.8%
sub-neg99.8%
metadata-eval99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
+-commutative99.8%
fma-def99.8%
Applied egg-rr99.8%
Taylor expanded in b around inf 94.2%
Final simplification97.9%
(FPCore (x y z t a b c i) :precision binary64 (+ (+ z a) (+ (* y i) (+ (* 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 (z + a) + ((y * i) + ((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 = (z + a) + ((y * i) + ((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 (z + a) + ((y * i) + ((x * Math.log(y)) + (Math.log(c) * (b - 0.5))));
}
def code(x, y, z, t, a, b, c, i): return (z + a) + ((y * i) + ((x * math.log(y)) + (math.log(c) * (b - 0.5))))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(z + a) + Float64(Float64(y * i) + Float64(Float64(x * log(y)) + Float64(log(c) * Float64(b - 0.5))))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (z + a) + ((y * i) + ((x * log(y)) + (log(c) * (b - 0.5)))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(z + a), $MachinePrecision] + N[(N[(y * i), $MachinePrecision] + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(z + a\right) + \left(y \cdot i + \left(x \cdot \log y + \log c \cdot \left(b - 0.5\right)\right)\right)
\end{array}
Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in t around 0 85.5%
Final simplification85.5%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= (- b 0.5) -4e+157) (not (<= (- b 0.5) 8e+124))) (+ (* y i) (+ z (* (log c) (- b 0.5)))) (+ (* y i) (+ a (+ (* x (log y)) (+ z t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((b - 0.5) <= -4e+157) || !((b - 0.5) <= 8e+124)) {
tmp = (y * i) + (z + (log(c) * (b - 0.5)));
} else {
tmp = (y * i) + (a + ((x * log(y)) + (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 (((b - 0.5d0) <= (-4d+157)) .or. (.not. ((b - 0.5d0) <= 8d+124))) then
tmp = (y * i) + (z + (log(c) * (b - 0.5d0)))
else
tmp = (y * i) + (a + ((x * log(y)) + (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 (((b - 0.5) <= -4e+157) || !((b - 0.5) <= 8e+124)) {
tmp = (y * i) + (z + (Math.log(c) * (b - 0.5)));
} else {
tmp = (y * i) + (a + ((x * Math.log(y)) + (z + t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if ((b - 0.5) <= -4e+157) or not ((b - 0.5) <= 8e+124): tmp = (y * i) + (z + (math.log(c) * (b - 0.5))) else: tmp = (y * i) + (a + ((x * math.log(y)) + (z + t))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((Float64(b - 0.5) <= -4e+157) || !(Float64(b - 0.5) <= 8e+124)) tmp = Float64(Float64(y * i) + Float64(z + Float64(log(c) * Float64(b - 0.5)))); else tmp = Float64(Float64(y * i) + Float64(a + Float64(Float64(x * log(y)) + Float64(z + t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (((b - 0.5) <= -4e+157) || ~(((b - 0.5) <= 8e+124))) tmp = (y * i) + (z + (log(c) * (b - 0.5))); else tmp = (y * i) + (a + ((x * log(y)) + (z + t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[N[(b - 0.5), $MachinePrecision], -4e+157], N[Not[LessEqual[N[(b - 0.5), $MachinePrecision], 8e+124]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - 0.5 \leq -4 \cdot 10^{+157} \lor \neg \left(b - 0.5 \leq 8 \cdot 10^{+124}\right):\\
\;\;\;\;y \cdot i + \left(z + \log c \cdot \left(b - 0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \left(x \cdot \log y + \left(z + t\right)\right)\right)\\
\end{array}
\end{array}
if (-.f64 b 1/2) < -3.99999999999999993e157 or 7.99999999999999959e124 < (-.f64 b 1/2) Initial program 99.7%
Taylor expanded in x around 0 91.5%
Taylor expanded in a around 0 83.4%
fma-def83.4%
sub-neg83.4%
metadata-eval83.4%
+-commutative83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in t around 0 77.1%
if -3.99999999999999993e157 < (-.f64 b 1/2) < 7.99999999999999959e124Initial program 99.9%
+-commutative99.9%
add-cube-cbrt99.9%
fma-def99.9%
pow299.9%
sub-neg99.9%
metadata-eval99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
+-commutative99.9%
fma-def99.9%
Applied egg-rr99.9%
Taylor expanded in b around inf 94.4%
Final simplification89.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -1e+126) (not (<= x 1.35e+209))) (+ (* y i) (+ a (+ (* x (log y)) (+ z t)))) (+ (* 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 <= -1e+126) || !(x <= 1.35e+209)) {
tmp = (y * i) + (a + ((x * log(y)) + (z + t)));
} 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 <= (-1d+126)) .or. (.not. (x <= 1.35d+209))) then
tmp = (y * i) + (a + ((x * log(y)) + (z + t)))
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 <= -1e+126) || !(x <= 1.35e+209)) {
tmp = (y * i) + (a + ((x * Math.log(y)) + (z + t)));
} 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 <= -1e+126) or not (x <= 1.35e+209): tmp = (y * i) + (a + ((x * math.log(y)) + (z + t))) 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 <= -1e+126) || !(x <= 1.35e+209)) tmp = Float64(Float64(y * i) + Float64(a + Float64(Float64(x * log(y)) + Float64(z + t)))); 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 <= -1e+126) || ~((x <= 1.35e+209))) tmp = (y * i) + (a + ((x * log(y)) + (z + t))); 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, -1e+126], N[Not[LessEqual[x, 1.35e+209]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(a + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(z + t), $MachinePrecision]), $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 \cdot 10^{+126} \lor \neg \left(x \leq 1.35 \cdot 10^{+209}\right):\\
\;\;\;\;y \cdot i + \left(a + \left(x \cdot \log y + \left(z + t\right)\right)\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 < -9.99999999999999925e125 or 1.35e209 < x Initial program 99.8%
+-commutative99.8%
add-cube-cbrt99.8%
fma-def99.8%
pow299.8%
sub-neg99.8%
metadata-eval99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
+-commutative99.8%
fma-def99.8%
Applied egg-rr99.8%
Taylor expanded in b around inf 97.8%
if -9.99999999999999925e125 < x < 1.35e209Initial program 99.9%
Taylor expanded in x around 0 97.9%
Final simplification97.8%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= x -1.42e+125)
(+ a (+ t (+ z (- (* y i) (* x (log (/ 1.0 y)))))))
(if (<= x 1.35e+209)
(+ (* y i) (+ (* (log c) (- b 0.5)) (+ a (+ z t))))
(+ (* y i) (+ a (+ (* x (log y)) (+ 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.42e+125) {
tmp = a + (t + (z + ((y * i) - (x * log((1.0 / y))))));
} else if (x <= 1.35e+209) {
tmp = (y * i) + ((log(c) * (b - 0.5)) + (a + (z + t)));
} else {
tmp = (y * i) + (a + ((x * log(y)) + (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.42d+125)) then
tmp = a + (t + (z + ((y * i) - (x * log((1.0d0 / y))))))
else if (x <= 1.35d+209) then
tmp = (y * i) + ((log(c) * (b - 0.5d0)) + (a + (z + t)))
else
tmp = (y * i) + (a + ((x * log(y)) + (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.42e+125) {
tmp = a + (t + (z + ((y * i) - (x * Math.log((1.0 / y))))));
} else if (x <= 1.35e+209) {
tmp = (y * i) + ((Math.log(c) * (b - 0.5)) + (a + (z + t)));
} else {
tmp = (y * i) + (a + ((x * Math.log(y)) + (z + t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if x <= -1.42e+125: tmp = a + (t + (z + ((y * i) - (x * math.log((1.0 / y)))))) elif x <= 1.35e+209: tmp = (y * i) + ((math.log(c) * (b - 0.5)) + (a + (z + t))) else: tmp = (y * i) + (a + ((x * math.log(y)) + (z + t))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (x <= -1.42e+125) tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(y * i) - Float64(x * log(Float64(1.0 / y))))))); elseif (x <= 1.35e+209) tmp = Float64(Float64(y * i) + Float64(Float64(log(c) * Float64(b - 0.5)) + Float64(a + Float64(z + t)))); else tmp = Float64(Float64(y * i) + Float64(a + Float64(Float64(x * log(y)) + 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.42e+125) tmp = a + (t + (z + ((y * i) - (x * log((1.0 / y)))))); elseif (x <= 1.35e+209) tmp = (y * i) + ((log(c) * (b - 0.5)) + (a + (z + t))); else tmp = (y * i) + (a + ((x * log(y)) + (z + t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[x, -1.42e+125], N[(a + N[(t + N[(z + N[(N[(y * i), $MachinePrecision] - N[(x * N[Log[N[(1.0 / y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.35e+209], 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], N[(N[(y * i), $MachinePrecision] + N[(a + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.42 \cdot 10^{+125}:\\
\;\;\;\;a + \left(t + \left(z + \left(y \cdot i - x \cdot \log \left(\frac{1}{y}\right)\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{+209}:\\
\;\;\;\;y \cdot i + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(z + t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \left(x \cdot \log y + \left(z + t\right)\right)\right)\\
\end{array}
\end{array}
if x < -1.4200000000000001e125Initial program 99.8%
+-commutative99.8%
add-cube-cbrt99.8%
fma-def99.8%
pow299.8%
sub-neg99.8%
metadata-eval99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
+-commutative99.8%
fma-def99.8%
Applied egg-rr99.8%
Taylor expanded in b around inf 99.8%
Taylor expanded in y around inf 99.8%
if -1.4200000000000001e125 < x < 1.35e209Initial program 99.9%
Taylor expanded in x around 0 97.9%
if 1.35e209 < x Initial program 99.8%
+-commutative99.8%
add-cube-cbrt99.8%
fma-def99.8%
pow299.8%
sub-neg99.8%
metadata-eval99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
+-commutative99.8%
fma-def99.8%
Applied egg-rr99.8%
Taylor expanded in b around inf 94.2%
Final simplification97.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 6.1e+29) (+ (* y i) (+ z (* (log c) (- b 0.5)))) (+ (+ a t) (+ z (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 6.1e+29) {
tmp = (y * i) + (z + (log(c) * (b - 0.5)));
} else {
tmp = (a + t) + (z + (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 (a <= 6.1d+29) then
tmp = (y * i) + (z + (log(c) * (b - 0.5d0)))
else
tmp = (a + t) + (z + (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 (a <= 6.1e+29) {
tmp = (y * i) + (z + (Math.log(c) * (b - 0.5)));
} else {
tmp = (a + t) + (z + (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 6.1e+29: tmp = (y * i) + (z + (math.log(c) * (b - 0.5))) else: tmp = (a + t) + (z + (y * i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 6.1e+29) tmp = Float64(Float64(y * i) + Float64(z + Float64(log(c) * Float64(b - 0.5)))); else tmp = Float64(Float64(a + t) + Float64(z + Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (a <= 6.1e+29) tmp = (y * i) + (z + (log(c) * (b - 0.5))); else tmp = (a + t) + (z + (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 6.1e+29], N[(N[(y * i), $MachinePrecision] + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a + t), $MachinePrecision] + N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 6.1 \cdot 10^{+29}:\\
\;\;\;\;y \cdot i + \left(z + \log c \cdot \left(b - 0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a + t\right) + \left(z + y \cdot i\right)\\
\end{array}
\end{array}
if a < 6.0999999999999998e29Initial program 99.9%
Taylor expanded in x around 0 85.0%
Taylor expanded in a around 0 76.5%
fma-def76.5%
sub-neg76.5%
metadata-eval76.5%
+-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in t around 0 59.6%
if 6.0999999999999998e29 < a Initial program 99.9%
+-commutative99.9%
add-cube-cbrt99.7%
fma-def99.7%
pow299.7%
sub-neg99.7%
metadata-eval99.7%
sub-neg99.7%
metadata-eval99.7%
+-commutative99.7%
+-commutative99.7%
fma-def99.7%
Applied egg-rr99.7%
Taylor expanded in b around inf 89.3%
Taylor expanded in x around 0 79.9%
associate-+r+79.9%
*-commutative79.9%
Simplified79.9%
Final simplification64.4%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -5.2e+144) (not (<= x 8e+211))) (+ (* y i) (* x (log y))) (+ (+ a t) (+ z (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -5.2e+144) || !(x <= 8e+211)) {
tmp = (y * i) + (x * log(y));
} else {
tmp = (a + t) + (z + (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 ((x <= (-5.2d+144)) .or. (.not. (x <= 8d+211))) then
tmp = (y * i) + (x * log(y))
else
tmp = (a + t) + (z + (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 ((x <= -5.2e+144) || !(x <= 8e+211)) {
tmp = (y * i) + (x * Math.log(y));
} else {
tmp = (a + t) + (z + (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -5.2e+144) or not (x <= 8e+211): tmp = (y * i) + (x * math.log(y)) else: tmp = (a + t) + (z + (y * i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -5.2e+144) || !(x <= 8e+211)) tmp = Float64(Float64(y * i) + Float64(x * log(y))); else tmp = Float64(Float64(a + t) + Float64(z + Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -5.2e+144) || ~((x <= 8e+211))) tmp = (y * i) + (x * log(y)); else tmp = (a + t) + (z + (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -5.2e+144], N[Not[LessEqual[x, 8e+211]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a + t), $MachinePrecision] + N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.2 \cdot 10^{+144} \lor \neg \left(x \leq 8 \cdot 10^{+211}\right):\\
\;\;\;\;y \cdot i + x \cdot \log y\\
\mathbf{else}:\\
\;\;\;\;\left(a + t\right) + \left(z + y \cdot i\right)\\
\end{array}
\end{array}
if x < -5.1999999999999998e144 or 7.9999999999999997e211 < x Initial program 99.8%
+-commutative99.8%
add-cube-cbrt99.7%
fma-def99.7%
pow299.7%
sub-neg99.7%
metadata-eval99.7%
sub-neg99.7%
metadata-eval99.7%
+-commutative99.7%
+-commutative99.7%
fma-def99.7%
Applied egg-rr99.7%
Taylor expanded in x around inf 72.6%
if -5.1999999999999998e144 < x < 7.9999999999999997e211Initial program 99.9%
+-commutative99.9%
add-cube-cbrt99.6%
fma-def99.6%
pow299.6%
sub-neg99.6%
metadata-eval99.6%
sub-neg99.6%
metadata-eval99.6%
+-commutative99.6%
+-commutative99.6%
fma-def99.6%
Applied egg-rr99.6%
Taylor expanded in b around inf 79.8%
Taylor expanded in x around 0 77.3%
associate-+r+77.3%
*-commutative77.3%
Simplified77.3%
Final simplification76.4%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 135000.0) (+ a (+ (* x (log y)) (+ z t))) (+ (+ a t) (+ 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 <= 135000.0) {
tmp = a + ((x * log(y)) + (z + t));
} else {
tmp = (a + t) + (z + (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 <= 135000.0d0) then
tmp = a + ((x * log(y)) + (z + t))
else
tmp = (a + t) + (z + (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 <= 135000.0) {
tmp = a + ((x * Math.log(y)) + (z + t));
} else {
tmp = (a + t) + (z + (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 135000.0: tmp = a + ((x * math.log(y)) + (z + t)) else: tmp = (a + t) + (z + (y * i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 135000.0) tmp = Float64(a + Float64(Float64(x * log(y)) + Float64(z + t))); else tmp = Float64(Float64(a + t) + Float64(z + Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= 135000.0) tmp = a + ((x * log(y)) + (z + t)); else tmp = (a + t) + (z + (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 135000.0], N[(a + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a + t), $MachinePrecision] + N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 135000:\\
\;\;\;\;a + \left(x \cdot \log y + \left(z + t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a + t\right) + \left(z + y \cdot i\right)\\
\end{array}
\end{array}
if y < 135000Initial program 99.9%
+-commutative99.9%
add-cube-cbrt99.6%
fma-def99.6%
pow299.6%
sub-neg99.6%
metadata-eval99.6%
sub-neg99.6%
metadata-eval99.6%
+-commutative99.6%
+-commutative99.6%
fma-def99.6%
Applied egg-rr99.6%
Taylor expanded in b around inf 79.5%
Taylor expanded in y around 0 77.1%
if 135000 < y Initial program 99.9%
+-commutative99.9%
add-cube-cbrt99.7%
fma-def99.7%
pow299.7%
sub-neg99.7%
metadata-eval99.7%
sub-neg99.7%
metadata-eval99.7%
+-commutative99.7%
+-commutative99.7%
fma-def99.7%
Applied egg-rr99.7%
Taylor expanded in b around inf 86.4%
Taylor expanded in x around 0 78.8%
associate-+r+78.8%
*-commutative78.8%
Simplified78.8%
Final simplification78.0%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= b -4.3e+157) (not (<= b 7.6e+230))) (+ z (* b (log c))) (+ (+ a t) (+ z (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((b <= -4.3e+157) || !(b <= 7.6e+230)) {
tmp = z + (b * log(c));
} else {
tmp = (a + t) + (z + (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 ((b <= (-4.3d+157)) .or. (.not. (b <= 7.6d+230))) then
tmp = z + (b * log(c))
else
tmp = (a + t) + (z + (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 ((b <= -4.3e+157) || !(b <= 7.6e+230)) {
tmp = z + (b * Math.log(c));
} else {
tmp = (a + t) + (z + (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (b <= -4.3e+157) or not (b <= 7.6e+230): tmp = z + (b * math.log(c)) else: tmp = (a + t) + (z + (y * i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((b <= -4.3e+157) || !(b <= 7.6e+230)) tmp = Float64(z + Float64(b * log(c))); else tmp = Float64(Float64(a + t) + Float64(z + Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((b <= -4.3e+157) || ~((b <= 7.6e+230))) tmp = z + (b * log(c)); else tmp = (a + t) + (z + (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[b, -4.3e+157], N[Not[LessEqual[b, 7.6e+230]], $MachinePrecision]], N[(z + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a + t), $MachinePrecision] + N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.3 \cdot 10^{+157} \lor \neg \left(b \leq 7.6 \cdot 10^{+230}\right):\\
\;\;\;\;z + b \cdot \log c\\
\mathbf{else}:\\
\;\;\;\;\left(a + t\right) + \left(z + y \cdot i\right)\\
\end{array}
\end{array}
if b < -4.3e157 or 7.6e230 < b Initial program 99.7%
+-commutative99.7%
associate-+l+99.7%
associate-+r+99.7%
+-commutative99.7%
associate-+r+99.7%
associate-+r+99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+r+99.7%
associate-+r+99.7%
fma-def99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in b around inf 62.8%
Taylor expanded in a around 0 55.5%
if -4.3e157 < b < 7.6e230Initial program 99.9%
+-commutative99.9%
add-cube-cbrt99.8%
fma-def99.8%
pow299.8%
sub-neg99.8%
metadata-eval99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
+-commutative99.8%
fma-def99.8%
Applied egg-rr99.8%
Taylor expanded in b around inf 91.1%
Taylor expanded in x around 0 76.8%
associate-+r+76.8%
*-commutative76.8%
Simplified76.8%
Final simplification73.0%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 11200.0) (+ (+ z a) (* b (log c))) (+ (+ a t) (+ 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 <= 11200.0) {
tmp = (z + a) + (b * log(c));
} else {
tmp = (a + t) + (z + (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 <= 11200.0d0) then
tmp = (z + a) + (b * log(c))
else
tmp = (a + t) + (z + (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 <= 11200.0) {
tmp = (z + a) + (b * Math.log(c));
} else {
tmp = (a + t) + (z + (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 11200.0: tmp = (z + a) + (b * math.log(c)) else: tmp = (a + t) + (z + (y * i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 11200.0) tmp = Float64(Float64(z + a) + Float64(b * log(c))); else tmp = Float64(Float64(a + t) + Float64(z + Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= 11200.0) tmp = (z + a) + (b * log(c)); else tmp = (a + t) + (z + (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 11200.0], N[(N[(z + a), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a + t), $MachinePrecision] + N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 11200:\\
\;\;\;\;\left(z + a\right) + b \cdot \log c\\
\mathbf{else}:\\
\;\;\;\;\left(a + t\right) + \left(z + y \cdot i\right)\\
\end{array}
\end{array}
if y < 11200Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around inf 53.2%
if 11200 < y Initial program 99.9%
+-commutative99.9%
add-cube-cbrt99.7%
fma-def99.7%
pow299.7%
sub-neg99.7%
metadata-eval99.7%
sub-neg99.7%
metadata-eval99.7%
+-commutative99.7%
+-commutative99.7%
fma-def99.7%
Applied egg-rr99.7%
Taylor expanded in b around inf 86.4%
Taylor expanded in x around 0 78.8%
associate-+r+78.8%
*-commutative78.8%
Simplified78.8%
Final simplification66.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= b -2.6e+233) (* b (log c)) (+ (+ a t) (+ z (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (b <= -2.6e+233) {
tmp = b * log(c);
} else {
tmp = (a + t) + (z + (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 (b <= (-2.6d+233)) then
tmp = b * log(c)
else
tmp = (a + t) + (z + (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 (b <= -2.6e+233) {
tmp = b * Math.log(c);
} else {
tmp = (a + t) + (z + (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if b <= -2.6e+233: tmp = b * math.log(c) else: tmp = (a + t) + (z + (y * i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (b <= -2.6e+233) tmp = Float64(b * log(c)); else tmp = Float64(Float64(a + t) + Float64(z + Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (b <= -2.6e+233) tmp = b * log(c); else tmp = (a + t) + (z + (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[b, -2.6e+233], N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision], N[(N[(a + t), $MachinePrecision] + N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.6 \cdot 10^{+233}:\\
\;\;\;\;b \cdot \log c\\
\mathbf{else}:\\
\;\;\;\;\left(a + t\right) + \left(z + y \cdot i\right)\\
\end{array}
\end{array}
if b < -2.60000000000000006e233Initial program 100.0%
+-commutative100.0%
associate-+l+100.0%
associate-+r+100.0%
+-commutative100.0%
associate-+r+100.0%
associate-+r+100.0%
associate-+l+100.0%
+-commutative100.0%
associate-+r+100.0%
associate-+r+100.0%
fma-def100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in b around inf 77.8%
Taylor expanded in b around inf 77.8%
if -2.60000000000000006e233 < b Initial program 99.9%
+-commutative99.9%
add-cube-cbrt99.7%
fma-def99.7%
pow299.7%
sub-neg99.7%
metadata-eval99.7%
sub-neg99.7%
metadata-eval99.7%
+-commutative99.7%
+-commutative99.7%
fma-def99.7%
Applied egg-rr99.7%
Taylor expanded in b around inf 85.7%
Taylor expanded in x around 0 72.4%
associate-+r+72.4%
*-commutative72.4%
Simplified72.4%
Final simplification72.6%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= z -1.4e+176)
z
(if (<= z -1.4e+134)
a
(if (<= z -5.3e+113) z (if (<= z -4.1e-199) (* 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.4e+176) {
tmp = z;
} else if (z <= -1.4e+134) {
tmp = a;
} else if (z <= -5.3e+113) {
tmp = z;
} else if (z <= -4.1e-199) {
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.4d+176)) then
tmp = z
else if (z <= (-1.4d+134)) then
tmp = a
else if (z <= (-5.3d+113)) then
tmp = z
else if (z <= (-4.1d-199)) 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.4e+176) {
tmp = z;
} else if (z <= -1.4e+134) {
tmp = a;
} else if (z <= -5.3e+113) {
tmp = z;
} else if (z <= -4.1e-199) {
tmp = y * i;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -1.4e+176: tmp = z elif z <= -1.4e+134: tmp = a elif z <= -5.3e+113: tmp = z elif z <= -4.1e-199: tmp = y * i else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -1.4e+176) tmp = z; elseif (z <= -1.4e+134) tmp = a; elseif (z <= -5.3e+113) tmp = z; elseif (z <= -4.1e-199) 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.4e+176) tmp = z; elseif (z <= -1.4e+134) tmp = a; elseif (z <= -5.3e+113) tmp = z; elseif (z <= -4.1e-199) tmp = y * i; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -1.4e+176], z, If[LessEqual[z, -1.4e+134], a, If[LessEqual[z, -5.3e+113], z, If[LessEqual[z, -4.1e-199], N[(y * i), $MachinePrecision], a]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+176}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{+134}:\\
\;\;\;\;a\\
\mathbf{elif}\;z \leq -5.3 \cdot 10^{+113}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq -4.1 \cdot 10^{-199}:\\
\;\;\;\;y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if z < -1.4000000000000001e176 or -1.3999999999999999e134 < z < -5.29999999999999967e113Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around inf 55.0%
if -1.4000000000000001e176 < z < -1.3999999999999999e134 or -4.10000000000000022e-199 < z Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in a around inf 17.7%
if -5.29999999999999967e113 < z < -4.10000000000000022e-199Initial program 99.8%
Taylor expanded in x around 0 82.5%
Taylor expanded in y around inf 30.5%
*-commutative30.5%
Simplified30.5%
Final simplification26.7%
(FPCore (x y z t a b c i) :precision binary64 (+ (+ a t) (+ z (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (a + t) + (z + (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 + (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 + (y * i));
}
def code(x, y, z, t, a, b, c, i): return (a + t) + (z + (y * i))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(a + t) + Float64(z + Float64(y * i))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (a + t) + (z + (y * i)); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(a + t), $MachinePrecision] + N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(a + t\right) + \left(z + y \cdot i\right)
\end{array}
Initial program 99.9%
+-commutative99.9%
add-cube-cbrt99.7%
fma-def99.7%
pow299.7%
sub-neg99.7%
metadata-eval99.7%
sub-neg99.7%
metadata-eval99.7%
+-commutative99.7%
+-commutative99.7%
fma-def99.7%
Applied egg-rr99.7%
Taylor expanded in b around inf 83.2%
Taylor expanded in x around 0 70.1%
associate-+r+70.1%
*-commutative70.1%
Simplified70.1%
Final simplification70.1%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -4.1e+111) (+ z a) (+ a (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -4.1e+111) {
tmp = z + a;
} else {
tmp = a + (y * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (z <= (-4.1d+111)) then
tmp = z + a
else
tmp = a + (y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -4.1e+111) {
tmp = z + a;
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -4.1e+111: tmp = z + a else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -4.1e+111) tmp = Float64(z + a); else tmp = Float64(a + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -4.1e+111) tmp = z + a; else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -4.1e+111], N[(z + a), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.1 \cdot 10^{+111}:\\
\;\;\;\;z + a\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if z < -4.09999999999999986e111Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around inf 61.0%
Taylor expanded in b around 0 56.3%
if -4.09999999999999986e111 < z Initial program 99.9%
+-commutative99.9%
add-cube-cbrt99.6%
fma-def99.6%
pow299.6%
sub-neg99.6%
metadata-eval99.6%
sub-neg99.6%
metadata-eval99.6%
+-commutative99.6%
+-commutative99.6%
fma-def99.6%
Applied egg-rr99.6%
Taylor expanded in a around inf 44.0%
Final simplification46.1%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -2.95e+175) (+ z (* y i)) (+ a (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2.95e+175) {
tmp = z + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (z <= (-2.95d+175)) then
tmp = z + (y * i)
else
tmp = a + (y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2.95e+175) {
tmp = z + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -2.95e+175: tmp = z + (y * i) else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -2.95e+175) tmp = Float64(z + Float64(y * i)); else tmp = Float64(a + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -2.95e+175) tmp = z + (y * i); else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -2.95e+175], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.95 \cdot 10^{+175}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if z < -2.95000000000000015e175Initial program 99.9%
+-commutative99.9%
add-cube-cbrt99.7%
fma-def99.7%
pow299.7%
sub-neg99.7%
metadata-eval99.7%
sub-neg99.7%
metadata-eval99.7%
+-commutative99.7%
+-commutative99.7%
fma-def99.7%
Applied egg-rr99.7%
Taylor expanded in z around inf 74.7%
if -2.95000000000000015e175 < z Initial program 99.9%
+-commutative99.9%
add-cube-cbrt99.7%
fma-def99.7%
pow299.7%
sub-neg99.7%
metadata-eval99.7%
sub-neg99.7%
metadata-eval99.7%
+-commutative99.7%
+-commutative99.7%
fma-def99.7%
Applied egg-rr99.7%
Taylor expanded in a around inf 43.4%
Final simplification47.4%
(FPCore (x y z t a b c i) :precision binary64 (+ (+ z a) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (z + a) + (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 = (z + a) + (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 (z + a) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (z + a) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(z + a) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (z + a) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(z + a), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(z + a\right) + y \cdot i
\end{array}
Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in y around inf 56.3%
*-commutative56.3%
Simplified56.3%
Final simplification56.3%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 9e+88) (+ z a) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 9e+88) {
tmp = z + a;
} 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 <= 9d+88) then
tmp = z + a
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 <= 9e+88) {
tmp = z + a;
} else {
tmp = y * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 9e+88: tmp = z + a else: tmp = y * i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 9e+88) tmp = Float64(z + a); 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 <= 9e+88) tmp = z + a; else tmp = y * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 9e+88], N[(z + a), $MachinePrecision], N[(y * i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 9 \cdot 10^{+88}:\\
\;\;\;\;z + a\\
\mathbf{else}:\\
\;\;\;\;y \cdot i\\
\end{array}
\end{array}
if y < 9e88Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in b around inf 51.4%
Taylor expanded in b around 0 36.0%
if 9e88 < y Initial program 99.9%
Taylor expanded in x around 0 91.9%
Taylor expanded in y around inf 54.6%
*-commutative54.6%
Simplified54.6%
Final simplification42.9%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -6.2e+175) z a))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -6.2e+175) {
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 <= (-6.2d+175)) 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 <= -6.2e+175) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -6.2e+175: tmp = z else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -6.2e+175) 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 <= -6.2e+175) tmp = z; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -6.2e+175], z, a]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{+175}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if z < -6.19999999999999968e175Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around inf 54.1%
if -6.19999999999999968e175 < z Initial program 99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in a around inf 17.9%
Final simplification22.5%
(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%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+r+99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in a around inf 16.1%
Final simplification16.1%
herbie shell --seed 2023242
(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)))