
(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 20 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 (+ (+ (* y i) (fma x (log y) (+ z t))) (+ a (* (+ b -0.5) (log c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((y * i) + fma(x, log(y), (z + t))) + (a + ((b + -0.5) * log(c)));
}
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(y * i) + fma(x, log(y), Float64(z + t))) + Float64(a + Float64(Float64(b + -0.5) * log(c)))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(y * i), $MachinePrecision] + N[(x * N[Log[y], $MachinePrecision] + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(y \cdot i + \mathsf{fma}\left(x, \log y, z + t\right)\right) + \left(a + \left(b + -0.5\right) \cdot \log c\right)
\end{array}
Initial program 99.8%
+-commutative99.8%
fma-def99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
fma-def99.9%
+-commutative99.9%
Simplified99.9%
fma-udef99.8%
fma-udef99.8%
fma-udef99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
associate-+r+99.9%
associate-+l+99.9%
fma-udef99.9%
sub-neg99.9%
metadata-eval99.9%
Applied egg-rr99.9%
Final simplification99.9%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (+ a (+ t (+ z (* x (log y))))) (* (log c) (- b 0.5)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((a + (t + (z + (x * log(y))))) + (log(c) * (b - 0.5)));
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (y * i) + ((a + (t + (z + (x * log(y))))) + (log(c) * (b - 0.5d0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((a + (t + (z + (x * Math.log(y))))) + (Math.log(c) * (b - 0.5)));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + ((a + (t + (z + (x * math.log(y))))) + (math.log(c) * (b - 0.5)))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) + Float64(log(c) * Float64(b - 0.5)))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + ((a + (t + (z + (x * log(y))))) + (log(c) * (b - 0.5))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(\left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right) + \log c \cdot \left(b - 0.5\right)\right)
\end{array}
Initial program 99.8%
Final simplification99.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* x (log y))))
(if (<= a 2.16e+77)
(+ (* y i) (+ t (+ z (+ t_1 (* b (log c))))))
(+ (* 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 (a <= 2.16e+77) {
tmp = (y * i) + (t + (z + (t_1 + (b * log(c)))));
} else {
tmp = (y * i) + (a + (t + (z + t_1)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = x * log(y)
if (a <= 2.16d+77) then
tmp = (y * i) + (t + (z + (t_1 + (b * log(c)))))
else
tmp = (y * i) + (a + (t + (z + t_1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x * Math.log(y);
double tmp;
if (a <= 2.16e+77) {
tmp = (y * i) + (t + (z + (t_1 + (b * Math.log(c)))));
} else {
tmp = (y * i) + (a + (t + (z + t_1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x * math.log(y) tmp = 0 if a <= 2.16e+77: tmp = (y * i) + (t + (z + (t_1 + (b * math.log(c))))) 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 (a <= 2.16e+77) tmp = Float64(Float64(y * i) + Float64(t + Float64(z + Float64(t_1 + Float64(b * log(c)))))); else tmp = Float64(Float64(y * i) + Float64(a + Float64(t + Float64(z + t_1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x * log(y); tmp = 0.0; if (a <= 2.16e+77) tmp = (y * i) + (t + (z + (t_1 + (b * log(c))))); else tmp = (y * i) + (a + (t + (z + t_1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, 2.16e+77], N[(N[(y * i), $MachinePrecision] + N[(t + N[(z + N[(t$95$1 + N[(b * N[Log[c], $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}\;a \leq 2.16 \cdot 10^{+77}:\\
\;\;\;\;y \cdot i + \left(t + \left(z + \left(t_1 + b \cdot \log c\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \left(t + \left(z + t_1\right)\right)\right)\\
\end{array}
\end{array}
if a < 2.15999999999999992e77Initial program 99.8%
Taylor expanded in b around inf 97.8%
*-commutative97.8%
Simplified97.8%
Taylor expanded in a around 0 86.2%
if 2.15999999999999992e77 < a Initial program 99.9%
Taylor expanded in b around inf 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in b around 0 96.9%
Final simplification88.5%
(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.8%
Taylor expanded in b around inf 98.2%
*-commutative98.2%
Simplified98.2%
Final simplification98.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -4.2e+55) (not (<= x 7e+84))) (+ (* y i) (+ a (+ t (+ z (* x (log y)))))) (+ (+ a (* (+ b -0.5) (log c))) (+ (* y i) (+ z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -4.2e+55) || !(x <= 7e+84)) {
tmp = (y * i) + (a + (t + (z + (x * log(y)))));
} else {
tmp = (a + ((b + -0.5) * log(c))) + ((y * i) + (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 <= (-4.2d+55)) .or. (.not. (x <= 7d+84))) then
tmp = (y * i) + (a + (t + (z + (x * log(y)))))
else
tmp = (a + ((b + (-0.5d0)) * log(c))) + ((y * i) + (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 <= -4.2e+55) || !(x <= 7e+84)) {
tmp = (y * i) + (a + (t + (z + (x * Math.log(y)))));
} else {
tmp = (a + ((b + -0.5) * Math.log(c))) + ((y * i) + (z + t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -4.2e+55) or not (x <= 7e+84): tmp = (y * i) + (a + (t + (z + (x * math.log(y))))) else: tmp = (a + ((b + -0.5) * math.log(c))) + ((y * i) + (z + t)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -4.2e+55) || !(x <= 7e+84)) tmp = Float64(Float64(y * i) + Float64(a + Float64(t + Float64(z + Float64(x * log(y)))))); else tmp = Float64(Float64(a + Float64(Float64(b + -0.5) * log(c))) + Float64(Float64(y * i) + Float64(z + t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -4.2e+55) || ~((x <= 7e+84))) tmp = (y * i) + (a + (t + (z + (x * log(y))))); else tmp = (a + ((b + -0.5) * log(c))) + ((y * i) + (z + t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -4.2e+55], N[Not[LessEqual[x, 7e+84]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y * i), $MachinePrecision] + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.2 \cdot 10^{+55} \lor \neg \left(x \leq 7 \cdot 10^{+84}\right):\\
\;\;\;\;y \cdot i + \left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a + \left(b + -0.5\right) \cdot \log c\right) + \left(y \cdot i + \left(z + t\right)\right)\\
\end{array}
\end{array}
if x < -4.2000000000000001e55 or 6.9999999999999998e84 < x Initial program 99.7%
Taylor expanded in b around inf 99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in b around 0 92.0%
if -4.2000000000000001e55 < x < 6.9999999999999998e84Initial program 99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
fma-def99.9%
+-commutative99.9%
Simplified99.9%
fma-udef99.9%
fma-udef99.9%
fma-udef99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
associate-+l+99.9%
fma-udef99.9%
sub-neg99.9%
metadata-eval99.9%
Applied egg-rr99.9%
Taylor expanded in x around 0 99.3%
Final simplification96.5%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -11500000.0) (not (<= x 5.5e+84))) (+ (* y i) (+ a (+ t (+ z (* x (log y)))))) (+ a (+ z (+ (* y i) (* (log c) (- b 0.5)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -11500000.0) || !(x <= 5.5e+84)) {
tmp = (y * i) + (a + (t + (z + (x * log(y)))));
} else {
tmp = a + (z + ((y * i) + (log(c) * (b - 0.5))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((x <= (-11500000.0d0)) .or. (.not. (x <= 5.5d+84))) then
tmp = (y * i) + (a + (t + (z + (x * log(y)))))
else
tmp = a + (z + ((y * i) + (log(c) * (b - 0.5d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -11500000.0) || !(x <= 5.5e+84)) {
tmp = (y * i) + (a + (t + (z + (x * Math.log(y)))));
} else {
tmp = a + (z + ((y * i) + (Math.log(c) * (b - 0.5))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -11500000.0) or not (x <= 5.5e+84): tmp = (y * i) + (a + (t + (z + (x * math.log(y))))) else: tmp = a + (z + ((y * i) + (math.log(c) * (b - 0.5)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -11500000.0) || !(x <= 5.5e+84)) tmp = Float64(Float64(y * i) + Float64(a + Float64(t + Float64(z + Float64(x * log(y)))))); else tmp = Float64(a + Float64(z + Float64(Float64(y * i) + Float64(log(c) * Float64(b - 0.5))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -11500000.0) || ~((x <= 5.5e+84))) tmp = (y * i) + (a + (t + (z + (x * log(y))))); else tmp = a + (z + ((y * i) + (log(c) * (b - 0.5)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -11500000.0], N[Not[LessEqual[x, 5.5e+84]], $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[(z + N[(N[(y * i), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11500000 \lor \neg \left(x \leq 5.5 \cdot 10^{+84}\right):\\
\;\;\;\;y \cdot i + \left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(z + \left(y \cdot i + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\end{array}
\end{array}
if x < -1.15e7 or 5.5000000000000004e84 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 92.8%
if -1.15e7 < x < 5.5000000000000004e84Initial program 99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
fma-def99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 99.3%
Taylor expanded in t around 0 80.7%
Final simplification85.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* x (log y))))
(if (<= x -8.2e+167)
(+ a (+ t (+ z t_1)))
(if (<= x 7.8e+204)
(+ a (+ z (+ (* y i) (* (log c) (- b 0.5)))))
(+ t (+ z (+ (* 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 = x * log(y);
double tmp;
if (x <= -8.2e+167) {
tmp = a + (t + (z + t_1));
} else if (x <= 7.8e+204) {
tmp = a + (z + ((y * i) + (log(c) * (b - 0.5))));
} else {
tmp = t + (z + ((y * i) + t_1));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = x * log(y)
if (x <= (-8.2d+167)) then
tmp = a + (t + (z + t_1))
else if (x <= 7.8d+204) then
tmp = a + (z + ((y * i) + (log(c) * (b - 0.5d0))))
else
tmp = t + (z + ((y * i) + t_1))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x * Math.log(y);
double tmp;
if (x <= -8.2e+167) {
tmp = a + (t + (z + t_1));
} else if (x <= 7.8e+204) {
tmp = a + (z + ((y * i) + (Math.log(c) * (b - 0.5))));
} else {
tmp = t + (z + ((y * i) + t_1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x * math.log(y) tmp = 0 if x <= -8.2e+167: tmp = a + (t + (z + t_1)) elif x <= 7.8e+204: tmp = a + (z + ((y * i) + (math.log(c) * (b - 0.5)))) else: tmp = t + (z + ((y * i) + 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 <= -8.2e+167) tmp = Float64(a + Float64(t + Float64(z + t_1))); elseif (x <= 7.8e+204) tmp = Float64(a + Float64(z + Float64(Float64(y * i) + Float64(log(c) * Float64(b - 0.5))))); else tmp = Float64(t + Float64(z + Float64(Float64(y * i) + t_1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x * log(y); tmp = 0.0; if (x <= -8.2e+167) tmp = a + (t + (z + t_1)); elseif (x <= 7.8e+204) tmp = a + (z + ((y * i) + (log(c) * (b - 0.5)))); else tmp = t + (z + ((y * i) + t_1)); end tmp_2 = 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, -8.2e+167], N[(a + N[(t + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.8e+204], N[(a + N[(z + N[(N[(y * i), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(z + N[(N[(y * i), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;x \leq -8.2 \cdot 10^{+167}:\\
\;\;\;\;a + \left(t + \left(z + t_1\right)\right)\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{+204}:\\
\;\;\;\;a + \left(z + \left(y \cdot i + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t + \left(z + \left(y \cdot i + t_1\right)\right)\\
\end{array}
\end{array}
if x < -8.2e167Initial program 99.7%
Taylor expanded in b around inf 99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in b around 0 99.7%
Taylor expanded in y around 0 89.9%
if -8.2e167 < x < 7.80000000000000033e204Initial program 99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
fma-def99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 94.1%
Taylor expanded in t around 0 77.9%
if 7.80000000000000033e204 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 97.4%
Taylor expanded in a around 0 86.3%
Final simplification79.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (+ t (+ z (* x (log y)))))))
(if (<= y 3.9e-290)
t_1
(if (<= y 2.3e-257)
(+ a (+ z (* b (log c))))
(if (<= y 4.6e-8) t_1 (+ (* y i) (+ a (+ z t))))))))
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 (y <= 3.9e-290) {
tmp = t_1;
} else if (y <= 2.3e-257) {
tmp = a + (z + (b * log(c)));
} else if (y <= 4.6e-8) {
tmp = t_1;
} else {
tmp = (y * i) + (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) :: t_1
real(8) :: tmp
t_1 = a + (t + (z + (x * log(y))))
if (y <= 3.9d-290) then
tmp = t_1
else if (y <= 2.3d-257) then
tmp = a + (z + (b * log(c)))
else if (y <= 4.6d-8) then
tmp = t_1
else
tmp = (y * i) + (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 t_1 = a + (t + (z + (x * Math.log(y))));
double tmp;
if (y <= 3.9e-290) {
tmp = t_1;
} else if (y <= 2.3e-257) {
tmp = a + (z + (b * Math.log(c)));
} else if (y <= 4.6e-8) {
tmp = t_1;
} else {
tmp = (y * i) + (a + (z + t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a + (t + (z + (x * math.log(y)))) tmp = 0 if y <= 3.9e-290: tmp = t_1 elif y <= 2.3e-257: tmp = a + (z + (b * math.log(c))) elif y <= 4.6e-8: tmp = t_1 else: tmp = (y * i) + (a + (z + t)) 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 (y <= 3.9e-290) tmp = t_1; elseif (y <= 2.3e-257) tmp = Float64(a + Float64(z + Float64(b * log(c)))); elseif (y <= 4.6e-8) tmp = t_1; else tmp = Float64(Float64(y * i) + Float64(a + Float64(z + t))); 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 (y <= 3.9e-290) tmp = t_1; elseif (y <= 2.3e-257) tmp = a + (z + (b * log(c))); elseif (y <= 4.6e-8) tmp = t_1; else tmp = (y * i) + (a + (z + t)); 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[y, 3.9e-290], t$95$1, If[LessEqual[y, 2.3e-257], N[(a + N[(z + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.6e-8], t$95$1, N[(N[(y * i), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(t + \left(z + x \cdot \log y\right)\right)\\
\mathbf{if}\;y \leq 3.9 \cdot 10^{-290}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-257}:\\
\;\;\;\;a + \left(z + b \cdot \log c\right)\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-8}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \left(z + t\right)\right)\\
\end{array}
\end{array}
if y < 3.89999999999999973e-290 or 2.3e-257 < y < 4.6000000000000002e-8Initial program 99.8%
Taylor expanded in b around inf 98.8%
*-commutative98.8%
Simplified98.8%
Taylor expanded in b around 0 86.9%
Taylor expanded in y around 0 84.1%
if 3.89999999999999973e-290 < y < 2.3e-257Initial program 99.7%
+-commutative99.7%
fma-def99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+r+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-def99.7%
associate-+l+99.7%
fma-def99.7%
+-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 87.8%
Taylor expanded in t around 0 57.6%
Taylor expanded in i around 0 57.6%
Taylor expanded in b around inf 51.7%
*-commutative51.7%
Simplified51.7%
if 4.6000000000000002e-8 < y Initial program 99.9%
Taylor expanded in b around inf 98.3%
*-commutative98.3%
Simplified98.3%
Taylor expanded in b around 0 87.2%
Taylor expanded in z around inf 77.1%
Final simplification78.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (+ t (+ z (* x (log y)))))))
(if (<= y 6.2e-289)
t_1
(if (<= y 1.35e-256)
(+ a (+ z (* (log c) (- b 0.5))))
(if (<= y 1.25e-8) t_1 (+ (* y i) (+ a (+ z t))))))))
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 (y <= 6.2e-289) {
tmp = t_1;
} else if (y <= 1.35e-256) {
tmp = a + (z + (log(c) * (b - 0.5)));
} else if (y <= 1.25e-8) {
tmp = t_1;
} else {
tmp = (y * i) + (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) :: t_1
real(8) :: tmp
t_1 = a + (t + (z + (x * log(y))))
if (y <= 6.2d-289) then
tmp = t_1
else if (y <= 1.35d-256) then
tmp = a + (z + (log(c) * (b - 0.5d0)))
else if (y <= 1.25d-8) then
tmp = t_1
else
tmp = (y * i) + (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 t_1 = a + (t + (z + (x * Math.log(y))));
double tmp;
if (y <= 6.2e-289) {
tmp = t_1;
} else if (y <= 1.35e-256) {
tmp = a + (z + (Math.log(c) * (b - 0.5)));
} else if (y <= 1.25e-8) {
tmp = t_1;
} else {
tmp = (y * i) + (a + (z + t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a + (t + (z + (x * math.log(y)))) tmp = 0 if y <= 6.2e-289: tmp = t_1 elif y <= 1.35e-256: tmp = a + (z + (math.log(c) * (b - 0.5))) elif y <= 1.25e-8: tmp = t_1 else: tmp = (y * i) + (a + (z + t)) 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 (y <= 6.2e-289) tmp = t_1; elseif (y <= 1.35e-256) tmp = Float64(a + Float64(z + Float64(log(c) * Float64(b - 0.5)))); elseif (y <= 1.25e-8) tmp = t_1; else tmp = Float64(Float64(y * i) + Float64(a + Float64(z + t))); 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 (y <= 6.2e-289) tmp = t_1; elseif (y <= 1.35e-256) tmp = a + (z + (log(c) * (b - 0.5))); elseif (y <= 1.25e-8) tmp = t_1; else tmp = (y * i) + (a + (z + t)); 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[y, 6.2e-289], t$95$1, If[LessEqual[y, 1.35e-256], N[(a + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.25e-8], t$95$1, N[(N[(y * i), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(t + \left(z + x \cdot \log y\right)\right)\\
\mathbf{if}\;y \leq 6.2 \cdot 10^{-289}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{-256}:\\
\;\;\;\;a + \left(z + \log c \cdot \left(b - 0.5\right)\right)\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{-8}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \left(z + t\right)\right)\\
\end{array}
\end{array}
if y < 6.2e-289 or 1.3500000000000001e-256 < y < 1.2499999999999999e-8Initial program 99.8%
Taylor expanded in b around inf 98.8%
*-commutative98.8%
Simplified98.8%
Taylor expanded in b around 0 86.9%
Taylor expanded in y around 0 84.1%
if 6.2e-289 < y < 1.3500000000000001e-256Initial program 99.7%
+-commutative99.7%
fma-def99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+r+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-def99.7%
associate-+l+99.7%
fma-def99.7%
+-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 87.8%
Taylor expanded in t around 0 57.6%
Taylor expanded in i around 0 57.6%
if 1.2499999999999999e-8 < y Initial program 99.9%
Taylor expanded in b around inf 98.3%
*-commutative98.3%
Simplified98.3%
Taylor expanded in b around 0 87.2%
Taylor expanded in z around inf 77.1%
Final simplification79.1%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -2.1e+100) (not (<= x 2e+205))) (+ a (+ t (+ z (* x (log y))))) (+ a (+ 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+100) || !(x <= 2e+205)) {
tmp = a + (t + (z + (x * log(y))));
} else {
tmp = a + (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+100)) .or. (.not. (x <= 2d+205))) then
tmp = a + (t + (z + (x * log(y))))
else
tmp = a + (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+100) || !(x <= 2e+205)) {
tmp = a + (t + (z + (x * Math.log(y))));
} else {
tmp = a + (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+100) or not (x <= 2e+205): tmp = a + (t + (z + (x * math.log(y)))) else: tmp = a + (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+100) || !(x <= 2e+205)) tmp = Float64(a + Float64(t + Float64(z + Float64(x * log(y))))); else tmp = Float64(a + 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+100) || ~((x <= 2e+205))) tmp = a + (t + (z + (x * log(y)))); else tmp = a + (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+100], N[Not[LessEqual[x, 2e+205]], $MachinePrecision]], N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(z + N[(N[(y * i), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.1 \cdot 10^{+100} \lor \neg \left(x \leq 2 \cdot 10^{+205}\right):\\
\;\;\;\;a + \left(t + \left(z + x \cdot \log y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(z + \left(y \cdot i + b \cdot \log c\right)\right)\\
\end{array}
\end{array}
if x < -2.0999999999999999e100 or 2.00000000000000003e205 < x Initial program 99.7%
Taylor expanded in b around inf 99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in b around 0 95.1%
Taylor expanded in y around 0 85.8%
if -2.0999999999999999e100 < x < 2.00000000000000003e205Initial program 99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
fma-def99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 95.4%
Taylor expanded in t around 0 79.3%
Taylor expanded in b around inf 77.1%
*-commutative53.8%
Simplified77.1%
Final simplification79.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* x (log y))))
(if (<= x -1.1e+100)
(+ a (+ t (+ z t_1)))
(if (<= x 8.4e+204)
(+ a (+ z (+ (* y i) (* b (log c)))))
(+ t (+ z (+ (* 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 = x * log(y);
double tmp;
if (x <= -1.1e+100) {
tmp = a + (t + (z + t_1));
} else if (x <= 8.4e+204) {
tmp = a + (z + ((y * i) + (b * log(c))));
} else {
tmp = t + (z + ((y * i) + t_1));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = x * log(y)
if (x <= (-1.1d+100)) then
tmp = a + (t + (z + t_1))
else if (x <= 8.4d+204) then
tmp = a + (z + ((y * i) + (b * log(c))))
else
tmp = t + (z + ((y * i) + t_1))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x * Math.log(y);
double tmp;
if (x <= -1.1e+100) {
tmp = a + (t + (z + t_1));
} else if (x <= 8.4e+204) {
tmp = a + (z + ((y * i) + (b * Math.log(c))));
} else {
tmp = t + (z + ((y * i) + t_1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x * math.log(y) tmp = 0 if x <= -1.1e+100: tmp = a + (t + (z + t_1)) elif x <= 8.4e+204: tmp = a + (z + ((y * i) + (b * math.log(c)))) else: tmp = t + (z + ((y * i) + 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 <= -1.1e+100) tmp = Float64(a + Float64(t + Float64(z + t_1))); elseif (x <= 8.4e+204) tmp = Float64(a + Float64(z + Float64(Float64(y * i) + Float64(b * log(c))))); else tmp = Float64(t + Float64(z + Float64(Float64(y * i) + t_1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x * log(y); tmp = 0.0; if (x <= -1.1e+100) tmp = a + (t + (z + t_1)); elseif (x <= 8.4e+204) tmp = a + (z + ((y * i) + (b * log(c)))); else tmp = t + (z + ((y * i) + t_1)); end tmp_2 = 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.1e+100], N[(a + N[(t + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.4e+204], N[(a + N[(z + N[(N[(y * i), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(z + N[(N[(y * i), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;x \leq -1.1 \cdot 10^{+100}:\\
\;\;\;\;a + \left(t + \left(z + t_1\right)\right)\\
\mathbf{elif}\;x \leq 8.4 \cdot 10^{+204}:\\
\;\;\;\;a + \left(z + \left(y \cdot i + b \cdot \log c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t + \left(z + \left(y \cdot i + t_1\right)\right)\\
\end{array}
\end{array}
if x < -1.1e100Initial program 99.7%
Taylor expanded in b around inf 99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in b around 0 93.9%
Taylor expanded in y around 0 84.5%
if -1.1e100 < x < 8.4000000000000002e204Initial program 99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
fma-def99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 95.4%
Taylor expanded in t around 0 79.3%
Taylor expanded in b around inf 77.1%
*-commutative53.8%
Simplified77.1%
if 8.4000000000000002e204 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 97.4%
Taylor expanded in a around 0 86.3%
Final simplification79.0%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 4.7e-63) (+ a (+ z (* b (log c)))) (+ (* 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 (y <= 4.7e-63) {
tmp = a + (z + (b * log(c)));
} else {
tmp = (y * i) + (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 (y <= 4.7d-63) then
tmp = a + (z + (b * log(c)))
else
tmp = (y * i) + (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 (y <= 4.7e-63) {
tmp = a + (z + (b * Math.log(c)));
} else {
tmp = (y * i) + (a + (z + t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 4.7e-63: tmp = a + (z + (b * math.log(c))) else: tmp = (y * i) + (a + (z + t)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 4.7e-63) tmp = Float64(a + Float64(z + Float64(b * log(c)))); else tmp = Float64(Float64(y * i) + 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 (y <= 4.7e-63) tmp = a + (z + (b * log(c))); else tmp = (y * i) + (a + (z + t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 4.7e-63], N[(a + N[(z + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 4.7 \cdot 10^{-63}:\\
\;\;\;\;a + \left(z + b \cdot \log c\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \left(z + t\right)\right)\\
\end{array}
\end{array}
if y < 4.7000000000000001e-63Initial program 99.8%
+-commutative99.8%
fma-def99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+r+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
fma-def99.8%
associate-+l+99.8%
fma-def99.8%
+-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 75.8%
Taylor expanded in t around 0 56.6%
Taylor expanded in i around 0 55.5%
Taylor expanded in b around inf 53.4%
*-commutative53.4%
Simplified53.4%
if 4.7000000000000001e-63 < y Initial program 99.9%
Taylor expanded in b around inf 98.6%
*-commutative98.6%
Simplified98.6%
Taylor expanded in b around 0 88.8%
Taylor expanded in z around inf 77.1%
Final simplification67.9%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -1.12e+198) (not (<= x 1.15e+278))) (* x (log y)) (+ (* 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 ((x <= -1.12e+198) || !(x <= 1.15e+278)) {
tmp = x * log(y);
} else {
tmp = (y * i) + (a + (z + t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((x <= (-1.12d+198)) .or. (.not. (x <= 1.15d+278))) then
tmp = x * log(y)
else
tmp = (y * i) + (a + (z + t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -1.12e+198) || !(x <= 1.15e+278)) {
tmp = x * Math.log(y);
} else {
tmp = (y * i) + (a + (z + t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -1.12e+198) or not (x <= 1.15e+278): tmp = x * math.log(y) else: tmp = (y * i) + (a + (z + t)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -1.12e+198) || !(x <= 1.15e+278)) tmp = Float64(x * log(y)); else tmp = Float64(Float64(y * i) + Float64(a + Float64(z + t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -1.12e+198) || ~((x <= 1.15e+278))) tmp = x * log(y); else tmp = (y * i) + (a + (z + t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -1.12e+198], N[Not[LessEqual[x, 1.15e+278]], $MachinePrecision]], N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.12 \cdot 10^{+198} \lor \neg \left(x \leq 1.15 \cdot 10^{+278}\right):\\
\;\;\;\;x \cdot \log y\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \left(z + t\right)\right)\\
\end{array}
\end{array}
if x < -1.1199999999999999e198 or 1.1499999999999999e278 < x Initial program 99.7%
+-commutative99.7%
fma-def99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+r+99.7%
+-commutative99.7%
associate-+l+99.7%
+-commutative99.7%
fma-def99.7%
associate-+l+99.7%
fma-def99.7%
+-commutative99.7%
Simplified99.7%
fma-udef99.7%
fma-udef99.7%
fma-udef99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
associate-+r+99.7%
associate-+l+99.7%
fma-udef99.7%
sub-neg99.7%
metadata-eval99.7%
Applied egg-rr99.7%
Taylor expanded in x around inf 78.4%
if -1.1199999999999999e198 < x < 1.1499999999999999e278Initial program 99.9%
Taylor expanded in b around inf 98.0%
*-commutative98.0%
Simplified98.0%
Taylor expanded in b around 0 83.3%
Taylor expanded in z around inf 74.7%
Final simplification75.1%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ a (+ z t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + (a + (z + t));
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (y * i) + (a + (z + t))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + (a + (z + t));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + (a + (z + t))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(a + Float64(z + t))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + (a + (z + t)); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(a + \left(z + t\right)\right)
\end{array}
Initial program 99.8%
Taylor expanded in b around inf 98.2%
*-commutative98.2%
Simplified98.2%
Taylor expanded in b around 0 84.9%
Taylor expanded in z around inf 68.5%
Final simplification68.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 2.3e-103) z (if (<= a 1.9e+85) (* y i) (if (<= a 8.6e+144) z a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 2.3e-103) {
tmp = z;
} else if (a <= 1.9e+85) {
tmp = y * i;
} else if (a <= 8.6e+144) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (a <= 2.3d-103) then
tmp = z
else if (a <= 1.9d+85) then
tmp = y * i
else if (a <= 8.6d+144) then
tmp = z
else
tmp = a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 2.3e-103) {
tmp = z;
} else if (a <= 1.9e+85) {
tmp = y * i;
} else if (a <= 8.6e+144) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 2.3e-103: tmp = z elif a <= 1.9e+85: tmp = y * i elif a <= 8.6e+144: tmp = z else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 2.3e-103) tmp = z; elseif (a <= 1.9e+85) tmp = Float64(y * i); elseif (a <= 8.6e+144) tmp = z; else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (a <= 2.3e-103) tmp = z; elseif (a <= 1.9e+85) tmp = y * i; elseif (a <= 8.6e+144) tmp = z; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 2.3e-103], z, If[LessEqual[a, 1.9e+85], N[(y * i), $MachinePrecision], If[LessEqual[a, 8.6e+144], z, a]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 2.3 \cdot 10^{-103}:\\
\;\;\;\;z\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{+85}:\\
\;\;\;\;y \cdot i\\
\mathbf{elif}\;a \leq 8.6 \cdot 10^{+144}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < 2.3000000000000001e-103 or 1.89999999999999996e85 < a < 8.59999999999999968e144Initial program 99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
fma-def99.9%
+-commutative99.9%
Simplified99.9%
fma-udef99.9%
fma-udef99.9%
fma-udef99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
associate-+l+99.9%
fma-udef99.9%
sub-neg99.9%
metadata-eval99.9%
Applied egg-rr99.9%
Taylor expanded in z around inf 17.5%
if 2.3000000000000001e-103 < a < 1.89999999999999996e85Initial program 99.8%
Taylor expanded in y around inf 26.2%
*-commutative26.2%
Simplified26.2%
if 8.59999999999999968e144 < a Initial program 99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
fma-def99.9%
+-commutative99.9%
Simplified99.9%
fma-udef99.9%
fma-udef99.9%
fma-udef99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
associate-+l+99.9%
fma-udef99.9%
sub-neg99.9%
metadata-eval99.9%
Applied egg-rr99.9%
Taylor expanded in a around inf 49.1%
Final simplification23.0%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 5.2e+43) (+ z a) (+ (* y i) a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 5.2e+43) {
tmp = z + a;
} else {
tmp = (y * i) + 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 (y <= 5.2d+43) then
tmp = z + a
else
tmp = (y * i) + 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 (y <= 5.2e+43) {
tmp = z + a;
} else {
tmp = (y * i) + a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 5.2e+43: tmp = z + a else: tmp = (y * i) + a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 5.2e+43) tmp = Float64(z + a); else tmp = Float64(Float64(y * i) + a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= 5.2e+43) tmp = z + a; else tmp = (y * i) + a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 5.2e+43], N[(z + a), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 5.2 \cdot 10^{+43}:\\
\;\;\;\;z + a\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + a\\
\end{array}
\end{array}
if y < 5.20000000000000042e43Initial program 99.8%
+-commutative99.8%
fma-def99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+r+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
fma-def99.8%
associate-+l+99.8%
fma-def99.8%
+-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 79.3%
Taylor expanded in t around 0 62.0%
Taylor expanded in z around inf 41.3%
if 5.20000000000000042e43 < y Initial program 99.9%
Taylor expanded in a around inf 54.3%
Final simplification46.4%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 9.5e+144) (+ (* y i) z) (+ (* y i) a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 9.5e+144) {
tmp = (y * i) + z;
} else {
tmp = (y * i) + a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (a <= 9.5d+144) then
tmp = (y * i) + z
else
tmp = (y * i) + a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 9.5e+144) {
tmp = (y * i) + z;
} else {
tmp = (y * i) + a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 9.5e+144: tmp = (y * i) + z else: tmp = (y * i) + a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 9.5e+144) tmp = Float64(Float64(y * i) + z); else tmp = Float64(Float64(y * i) + a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (a <= 9.5e+144) tmp = (y * i) + z; else tmp = (y * i) + a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 9.5e+144], N[(N[(y * i), $MachinePrecision] + z), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 9.5 \cdot 10^{+144}:\\
\;\;\;\;y \cdot i + z\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + a\\
\end{array}
\end{array}
if a < 9.50000000000000031e144Initial program 99.8%
Taylor expanded in z around inf 39.8%
if 9.50000000000000031e144 < a Initial program 99.9%
Taylor expanded in a around inf 54.8%
Final simplification41.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 7.5e+126) (+ 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 <= 7.5e+126) {
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 <= 7.5d+126) 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 <= 7.5e+126) {
tmp = z + a;
} else {
tmp = y * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 7.5e+126: tmp = z + a else: tmp = y * i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 7.5e+126) 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 <= 7.5e+126) tmp = z + a; else tmp = y * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 7.5e+126], N[(z + a), $MachinePrecision], N[(y * i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 7.5 \cdot 10^{+126}:\\
\;\;\;\;z + a\\
\mathbf{else}:\\
\;\;\;\;y \cdot i\\
\end{array}
\end{array}
if y < 7.5000000000000006e126Initial program 99.8%
+-commutative99.8%
fma-def99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+r+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
fma-def99.8%
associate-+l+99.8%
fma-def99.8%
+-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 81.2%
Taylor expanded in t around 0 65.8%
Taylor expanded in z around inf 40.6%
if 7.5000000000000006e126 < y Initial program 99.9%
Taylor expanded in y around inf 50.9%
*-commutative50.9%
Simplified50.9%
Final simplification43.6%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 9e+145) z a))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 9e+145) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (a <= 9d+145) then
tmp = z
else
tmp = a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 9e+145) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 9e+145: tmp = z else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 9e+145) tmp = z; else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (a <= 9e+145) tmp = z; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 9e+145], z, a]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 9 \cdot 10^{+145}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < 8.9999999999999996e145Initial program 99.8%
+-commutative99.8%
fma-def99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+r+99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
fma-def99.8%
associate-+l+99.8%
fma-def99.8%
+-commutative99.8%
Simplified99.8%
fma-udef99.8%
fma-udef99.8%
fma-udef99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
associate-+r+99.8%
associate-+l+99.8%
fma-udef99.8%
sub-neg99.8%
metadata-eval99.8%
Applied egg-rr99.8%
Taylor expanded in z around inf 18.0%
if 8.9999999999999996e145 < a Initial program 99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
fma-def99.9%
+-commutative99.9%
Simplified99.9%
fma-udef99.9%
fma-udef99.9%
fma-udef99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
associate-+l+99.9%
fma-udef99.9%
sub-neg99.9%
metadata-eval99.9%
Applied egg-rr99.9%
Taylor expanded in a around inf 49.1%
Final simplification22.0%
(FPCore (x y z t a b c i) :precision binary64 a)
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = a
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a;
}
def code(x, y, z, t, a, b, c, i): return a
function code(x, y, z, t, a, b, c, i) return a end
function tmp = code(x, y, z, t, a, b, c, i) tmp = a; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := a
\begin{array}{l}
\\
a
\end{array}
Initial program 99.8%
+-commutative99.8%
fma-def99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-def99.9%
associate-+l+99.9%
fma-def99.9%
+-commutative99.9%
Simplified99.9%
fma-udef99.8%
fma-udef99.8%
fma-udef99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
associate-+r+99.9%
associate-+l+99.9%
fma-udef99.9%
sub-neg99.9%
metadata-eval99.9%
Applied egg-rr99.9%
Taylor expanded in a around inf 18.4%
Final simplification18.4%
herbie shell --seed 2023297
(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)))