
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (fma y i (fma (+ b -0.5) (log c) (+ z (fma x (log y) (+ t a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return fma(y, i, fma((b + -0.5), log(c), (z + fma(x, log(y), (t + a)))));
}
function code(x, y, z, t, a, b, c, i) return fma(y, i, fma(Float64(b + -0.5), log(c), Float64(z + fma(x, log(y), Float64(t + a))))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(y * i + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + N[(z + N[(x * N[Log[y], $MachinePrecision] + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y, i, \mathsf{fma}\left(b + -0.5, \log c, z + \mathsf{fma}\left(x, \log y, t + a\right)\right)\right)
\end{array}
Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* x (log y))))
(if (<= x -1.3e+112)
(+ (* y i) (+ a (+ z t_1)))
(if (<= x 2.45e+150)
(+ (* y i) (+ z (+ t (fma (log c) (+ b -0.5) a))))
(+ (* y i) (+ t (+ z (+ t_1 (* b (log c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x * log(y);
double tmp;
if (x <= -1.3e+112) {
tmp = (y * i) + (a + (z + t_1));
} else if (x <= 2.45e+150) {
tmp = (y * i) + (z + (t + fma(log(c), (b + -0.5), a)));
} else {
tmp = (y * i) + (t + (z + (t_1 + (b * log(c)))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x * log(y)) tmp = 0.0 if (x <= -1.3e+112) tmp = Float64(Float64(y * i) + Float64(a + Float64(z + t_1))); elseif (x <= 2.45e+150) tmp = Float64(Float64(y * i) + Float64(z + Float64(t + fma(log(c), Float64(b + -0.5), a)))); else tmp = Float64(Float64(y * i) + Float64(t + Float64(z + Float64(t_1 + Float64(b * log(c)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.3e+112], N[(N[(y * i), $MachinePrecision] + N[(a + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.45e+150], N[(N[(y * i), $MachinePrecision] + N[(z + N[(t + N[(N[Log[c], $MachinePrecision] * N[(b + -0.5), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(t + N[(z + N[(t$95$1 + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;x \leq -1.3 \cdot 10^{+112}:\\
\;\;\;\;y \cdot i + \left(a + \left(z + t\_1\right)\right)\\
\mathbf{elif}\;x \leq 2.45 \cdot 10^{+150}:\\
\;\;\;\;y \cdot i + \left(z + \left(t + \mathsf{fma}\left(\log c, b + -0.5, a\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(t + \left(z + \left(t\_1 + b \cdot \log c\right)\right)\right)\\
\end{array}
\end{array}
if x < -1.3e112Initial program 100.0%
Taylor expanded in b around inf 100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in b around 0 97.3%
Taylor expanded in t around 0 89.4%
if -1.3e112 < x < 2.45000000000000003e150Initial program 99.9%
Taylor expanded in x around 0 96.0%
+-commutative96.0%
associate-+r+96.0%
+-commutative96.0%
sub-neg96.0%
metadata-eval96.0%
associate-+r+96.0%
associate-+l+96.0%
fma-define96.0%
+-commutative96.0%
Simplified96.0%
if 2.45000000000000003e150 < x Initial program 99.7%
Taylor expanded in b around inf 99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in a around 0 96.5%
Final simplification95.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -4e+113) (not (<= x 7e+64))) (+ (* y i) (+ a (+ z (* x (log y))))) (+ (* y i) (+ z (+ t (fma (log c) (+ b -0.5) a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -4e+113) || !(x <= 7e+64)) {
tmp = (y * i) + (a + (z + (x * log(y))));
} else {
tmp = (y * i) + (z + (t + fma(log(c), (b + -0.5), a)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -4e+113) || !(x <= 7e+64)) tmp = Float64(Float64(y * i) + Float64(a + Float64(z + Float64(x * log(y))))); else tmp = Float64(Float64(y * i) + Float64(z + Float64(t + fma(log(c), Float64(b + -0.5), a)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -4e+113], N[Not[LessEqual[x, 7e+64]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(a + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(z + N[(t + N[(N[Log[c], $MachinePrecision] * N[(b + -0.5), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4 \cdot 10^{+113} \lor \neg \left(x \leq 7 \cdot 10^{+64}\right):\\
\;\;\;\;y \cdot i + \left(a + \left(z + x \cdot \log y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(z + \left(t + \mathsf{fma}\left(\log c, b + -0.5, a\right)\right)\right)\\
\end{array}
\end{array}
if x < -4e113 or 6.9999999999999997e64 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 90.9%
Taylor expanded in t around 0 80.4%
if -4e113 < x < 6.9999999999999997e64Initial program 99.9%
Taylor expanded in x around 0 97.7%
+-commutative97.7%
associate-+r+97.7%
+-commutative97.7%
sub-neg97.7%
metadata-eval97.7%
associate-+r+97.7%
associate-+l+97.7%
fma-define97.7%
+-commutative97.7%
Simplified97.7%
Final simplification91.8%
(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 (+ (* y i) (+ (+ a (+ t (+ z (* x (log y))))) (* b (log c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((a + (t + (z + (x * log(y))))) + (b * log(c)));
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (y * i) + ((a + (t + (z + (x * log(y))))) + (b * log(c)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((a + (t + (z + (x * Math.log(y))))) + (b * Math.log(c)));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + ((a + (t + (z + (x * math.log(y))))) + (b * math.log(c)))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) + Float64(b * log(c)))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + ((a + (t + (z + (x * log(y))))) + (b * log(c))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(\left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right) + b \cdot \log c\right)
\end{array}
Initial program 99.9%
Taylor expanded in b around inf 97.7%
*-commutative97.7%
Simplified97.7%
Final simplification97.7%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -9.5e+112) (not (<= x 5e+64))) (+ (* y i) (+ a (+ z (* x (log y))))) (+ (* y i) (+ a (+ t (+ z (* (log c) (- b 0.5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -9.5e+112) || !(x <= 5e+64)) {
tmp = (y * i) + (a + (z + (x * log(y))));
} else {
tmp = (y * i) + (a + (t + (z + (log(c) * (b - 0.5)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((x <= (-9.5d+112)) .or. (.not. (x <= 5d+64))) then
tmp = (y * i) + (a + (z + (x * log(y))))
else
tmp = (y * i) + (a + (t + (z + (log(c) * (b - 0.5d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -9.5e+112) || !(x <= 5e+64)) {
tmp = (y * i) + (a + (z + (x * Math.log(y))));
} else {
tmp = (y * i) + (a + (t + (z + (Math.log(c) * (b - 0.5)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -9.5e+112) or not (x <= 5e+64): tmp = (y * i) + (a + (z + (x * math.log(y)))) else: tmp = (y * i) + (a + (t + (z + (math.log(c) * (b - 0.5))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -9.5e+112) || !(x <= 5e+64)) tmp = Float64(Float64(y * i) + Float64(a + Float64(z + Float64(x * log(y))))); else tmp = Float64(Float64(y * i) + Float64(a + Float64(t + Float64(z + Float64(log(c) * Float64(b - 0.5)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -9.5e+112) || ~((x <= 5e+64))) tmp = (y * i) + (a + (z + (x * log(y)))); else tmp = (y * i) + (a + (t + (z + (log(c) * (b - 0.5))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -9.5e+112], N[Not[LessEqual[x, 5e+64]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(a + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(t + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9.5 \cdot 10^{+112} \lor \neg \left(x \leq 5 \cdot 10^{+64}\right):\\
\;\;\;\;y \cdot i + \left(a + \left(z + x \cdot \log y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \left(t + \left(z + \log c \cdot \left(b - 0.5\right)\right)\right)\right)\\
\end{array}
\end{array}
if x < -9.5000000000000008e112 or 5e64 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 90.9%
Taylor expanded in t around 0 80.4%
if -9.5000000000000008e112 < x < 5e64Initial program 99.9%
Taylor expanded in x around 0 97.7%
Final simplification91.8%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= b -3.9e+227)
(* b (log c))
(if (<= b 8.2e+257)
(+ (* y i) (+ a (+ z (* x (log y)))))
(+ (* y i) (* t (+ (* (log c) (/ b t)) 1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (b <= -3.9e+227) {
tmp = b * log(c);
} else if (b <= 8.2e+257) {
tmp = (y * i) + (a + (z + (x * log(y))));
} else {
tmp = (y * i) + (t * ((log(c) * (b / t)) + 1.0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (b <= (-3.9d+227)) then
tmp = b * log(c)
else if (b <= 8.2d+257) then
tmp = (y * i) + (a + (z + (x * log(y))))
else
tmp = (y * i) + (t * ((log(c) * (b / t)) + 1.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (b <= -3.9e+227) {
tmp = b * Math.log(c);
} else if (b <= 8.2e+257) {
tmp = (y * i) + (a + (z + (x * Math.log(y))));
} else {
tmp = (y * i) + (t * ((Math.log(c) * (b / t)) + 1.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if b <= -3.9e+227: tmp = b * math.log(c) elif b <= 8.2e+257: tmp = (y * i) + (a + (z + (x * math.log(y)))) else: tmp = (y * i) + (t * ((math.log(c) * (b / t)) + 1.0)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (b <= -3.9e+227) tmp = Float64(b * log(c)); elseif (b <= 8.2e+257) tmp = Float64(Float64(y * i) + Float64(a + Float64(z + Float64(x * log(y))))); else tmp = Float64(Float64(y * i) + Float64(t * Float64(Float64(log(c) * Float64(b / t)) + 1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (b <= -3.9e+227) tmp = b * log(c); elseif (b <= 8.2e+257) tmp = (y * i) + (a + (z + (x * log(y)))); else tmp = (y * i) + (t * ((log(c) * (b / t)) + 1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[b, -3.9e+227], N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e+257], N[(N[(y * i), $MachinePrecision] + N[(a + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(t * N[(N[(N[Log[c], $MachinePrecision] * N[(b / t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.9 \cdot 10^{+227}:\\
\;\;\;\;b \cdot \log c\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{+257}:\\
\;\;\;\;y \cdot i + \left(a + \left(z + x \cdot \log y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + t \cdot \left(\log c \cdot \frac{b}{t} + 1\right)\\
\end{array}
\end{array}
if b < -3.8999999999999999e227Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in i around -inf 58.6%
Taylor expanded in b around inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
distribute-rgt-neg-in65.3%
Simplified65.3%
if -3.8999999999999999e227 < b < 8.20000000000000038e257Initial program 99.9%
Taylor expanded in b around inf 97.4%
*-commutative97.4%
Simplified97.4%
Taylor expanded in b around 0 91.8%
Taylor expanded in t around 0 78.0%
if 8.20000000000000038e257 < b Initial program 99.7%
Taylor expanded in x around 0 99.7%
+-commutative99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
+-commutative99.7%
Simplified99.7%
Taylor expanded in t around inf 99.7%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in b around inf 99.7%
*-commutative99.7%
associate-/l*99.5%
Simplified99.5%
Final simplification77.7%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= b -6.7e+226)
(* b (log c))
(if (<= b 6.2e+255)
(+ (+ a (+ t (+ z (* x (log y))))) (* y i))
(+ (* y i) (* t (+ (* (log c) (/ b t)) 1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (b <= -6.7e+226) {
tmp = b * log(c);
} else if (b <= 6.2e+255) {
tmp = (a + (t + (z + (x * log(y))))) + (y * i);
} else {
tmp = (y * i) + (t * ((log(c) * (b / t)) + 1.0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (b <= (-6.7d+226)) then
tmp = b * log(c)
else if (b <= 6.2d+255) then
tmp = (a + (t + (z + (x * log(y))))) + (y * i)
else
tmp = (y * i) + (t * ((log(c) * (b / t)) + 1.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (b <= -6.7e+226) {
tmp = b * Math.log(c);
} else if (b <= 6.2e+255) {
tmp = (a + (t + (z + (x * Math.log(y))))) + (y * i);
} else {
tmp = (y * i) + (t * ((Math.log(c) * (b / t)) + 1.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if b <= -6.7e+226: tmp = b * math.log(c) elif b <= 6.2e+255: tmp = (a + (t + (z + (x * math.log(y))))) + (y * i) else: tmp = (y * i) + (t * ((math.log(c) * (b / t)) + 1.0)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (b <= -6.7e+226) tmp = Float64(b * log(c)); elseif (b <= 6.2e+255) tmp = Float64(Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) + Float64(y * i)); else tmp = Float64(Float64(y * i) + Float64(t * Float64(Float64(log(c) * Float64(b / t)) + 1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (b <= -6.7e+226) tmp = b * log(c); elseif (b <= 6.2e+255) tmp = (a + (t + (z + (x * log(y))))) + (y * i); else tmp = (y * i) + (t * ((log(c) * (b / t)) + 1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[b, -6.7e+226], N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.2e+255], N[(N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(t * N[(N[(N[Log[c], $MachinePrecision] * N[(b / t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.7 \cdot 10^{+226}:\\
\;\;\;\;b \cdot \log c\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{+255}:\\
\;\;\;\;\left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right) + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + t \cdot \left(\log c \cdot \frac{b}{t} + 1\right)\\
\end{array}
\end{array}
if b < -6.69999999999999957e226Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in i around -inf 58.6%
Taylor expanded in b around inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
distribute-rgt-neg-in65.3%
Simplified65.3%
if -6.69999999999999957e226 < b < 6.2000000000000004e255Initial program 99.9%
Taylor expanded in b around inf 97.4%
*-commutative97.4%
Simplified97.4%
Taylor expanded in b around 0 91.8%
if 6.2000000000000004e255 < b Initial program 99.7%
Taylor expanded in x around 0 99.7%
+-commutative99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
+-commutative99.7%
Simplified99.7%
Taylor expanded in t around inf 99.7%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in b around inf 99.7%
*-commutative99.7%
associate-/l*99.5%
Simplified99.5%
Final simplification89.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ z (* x (log y)))))
(if (<= x -1.3e+112)
(+ (* y i) (+ a t_1))
(if (<= x 6.5e+15)
(+ (* y i) (+ a (+ z (* (log c) (- b 0.5)))))
(+ (+ a (+ t t_1)) (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = z + (x * log(y));
double tmp;
if (x <= -1.3e+112) {
tmp = (y * i) + (a + t_1);
} else if (x <= 6.5e+15) {
tmp = (y * i) + (a + (z + (log(c) * (b - 0.5))));
} else {
tmp = (a + (t + t_1)) + (y * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = z + (x * log(y))
if (x <= (-1.3d+112)) then
tmp = (y * i) + (a + t_1)
else if (x <= 6.5d+15) then
tmp = (y * i) + (a + (z + (log(c) * (b - 0.5d0))))
else
tmp = (a + (t + t_1)) + (y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = z + (x * Math.log(y));
double tmp;
if (x <= -1.3e+112) {
tmp = (y * i) + (a + t_1);
} else if (x <= 6.5e+15) {
tmp = (y * i) + (a + (z + (Math.log(c) * (b - 0.5))));
} else {
tmp = (a + (t + t_1)) + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = z + (x * math.log(y)) tmp = 0 if x <= -1.3e+112: tmp = (y * i) + (a + t_1) elif x <= 6.5e+15: tmp = (y * i) + (a + (z + (math.log(c) * (b - 0.5)))) else: tmp = (a + (t + t_1)) + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(z + Float64(x * log(y))) tmp = 0.0 if (x <= -1.3e+112) tmp = Float64(Float64(y * i) + Float64(a + t_1)); elseif (x <= 6.5e+15) tmp = Float64(Float64(y * i) + Float64(a + Float64(z + Float64(log(c) * Float64(b - 0.5))))); else tmp = Float64(Float64(a + Float64(t + t_1)) + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = z + (x * log(y)); tmp = 0.0; if (x <= -1.3e+112) tmp = (y * i) + (a + t_1); elseif (x <= 6.5e+15) tmp = (y * i) + (a + (z + (log(c) * (b - 0.5)))); else tmp = (a + (t + t_1)) + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.3e+112], N[(N[(y * i), $MachinePrecision] + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.5e+15], N[(N[(y * i), $MachinePrecision] + N[(a + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a + N[(t + t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z + x \cdot \log y\\
\mathbf{if}\;x \leq -1.3 \cdot 10^{+112}:\\
\;\;\;\;y \cdot i + \left(a + t\_1\right)\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{+15}:\\
\;\;\;\;y \cdot i + \left(a + \left(z + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a + \left(t + t\_1\right)\right) + y \cdot i\\
\end{array}
\end{array}
if x < -1.3e112Initial program 100.0%
Taylor expanded in b around inf 100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in b around 0 97.3%
Taylor expanded in t around 0 89.4%
if -1.3e112 < x < 6.5e15Initial program 99.9%
Taylor expanded in x around 0 98.7%
+-commutative98.7%
sub-neg98.7%
metadata-eval98.7%
fma-define98.7%
+-commutative98.7%
Simplified98.7%
Taylor expanded in t around 0 85.0%
if 6.5e15 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 87.5%
Final simplification86.3%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -4.8e+187) (not (<= x 8.5e+64))) (+ (* y i) (* x (+ (log y) (/ a x)))) (+ (* y i) (+ t (+ z a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -4.8e+187) || !(x <= 8.5e+64)) {
tmp = (y * i) + (x * (log(y) + (a / x)));
} else {
tmp = (y * i) + (t + (z + 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 ((x <= (-4.8d+187)) .or. (.not. (x <= 8.5d+64))) then
tmp = (y * i) + (x * (log(y) + (a / x)))
else
tmp = (y * i) + (t + (z + 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 ((x <= -4.8e+187) || !(x <= 8.5e+64)) {
tmp = (y * i) + (x * (Math.log(y) + (a / x)));
} else {
tmp = (y * i) + (t + (z + a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -4.8e+187) or not (x <= 8.5e+64): tmp = (y * i) + (x * (math.log(y) + (a / x))) else: tmp = (y * i) + (t + (z + a)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -4.8e+187) || !(x <= 8.5e+64)) tmp = Float64(Float64(y * i) + Float64(x * Float64(log(y) + Float64(a / x)))); else tmp = Float64(Float64(y * i) + Float64(t + Float64(z + a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -4.8e+187) || ~((x <= 8.5e+64))) tmp = (y * i) + (x * (log(y) + (a / x))); else tmp = (y * i) + (t + (z + a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -4.8e+187], N[Not[LessEqual[x, 8.5e+64]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(x * N[(N[Log[y], $MachinePrecision] + N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(t + N[(z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.8 \cdot 10^{+187} \lor \neg \left(x \leq 8.5 \cdot 10^{+64}\right):\\
\;\;\;\;y \cdot i + x \cdot \left(\log y + \frac{a}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(t + \left(z + a\right)\right)\\
\end{array}
\end{array}
if x < -4.79999999999999971e187 or 8.4999999999999998e64 < x Initial program 99.8%
Taylor expanded in x around inf 99.6%
Taylor expanded in a around inf 73.5%
if -4.79999999999999971e187 < x < 8.4999999999999998e64Initial program 99.9%
Taylor expanded in b around inf 96.8%
*-commutative96.8%
Simplified96.8%
Taylor expanded in b around 0 81.6%
Taylor expanded in x around 0 77.5%
associate-+r+77.5%
+-commutative77.5%
associate-+l+77.5%
Simplified77.5%
Final simplification76.3%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -2.3e+114) (not (<= x 2.05e+151))) (+ (* y i) (* x (+ (log y) (/ z x)))) (+ (* y i) (+ t (+ z a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -2.3e+114) || !(x <= 2.05e+151)) {
tmp = (y * i) + (x * (log(y) + (z / x)));
} else {
tmp = (y * i) + (t + (z + 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 ((x <= (-2.3d+114)) .or. (.not. (x <= 2.05d+151))) then
tmp = (y * i) + (x * (log(y) + (z / x)))
else
tmp = (y * i) + (t + (z + 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 ((x <= -2.3e+114) || !(x <= 2.05e+151)) {
tmp = (y * i) + (x * (Math.log(y) + (z / x)));
} else {
tmp = (y * i) + (t + (z + a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -2.3e+114) or not (x <= 2.05e+151): tmp = (y * i) + (x * (math.log(y) + (z / x))) else: tmp = (y * i) + (t + (z + a)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -2.3e+114) || !(x <= 2.05e+151)) tmp = Float64(Float64(y * i) + Float64(x * Float64(log(y) + Float64(z / x)))); else tmp = Float64(Float64(y * i) + Float64(t + Float64(z + a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -2.3e+114) || ~((x <= 2.05e+151))) tmp = (y * i) + (x * (log(y) + (z / x))); else tmp = (y * i) + (t + (z + a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -2.3e+114], N[Not[LessEqual[x, 2.05e+151]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(x * N[(N[Log[y], $MachinePrecision] + N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(t + N[(z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.3 \cdot 10^{+114} \lor \neg \left(x \leq 2.05 \cdot 10^{+151}\right):\\
\;\;\;\;y \cdot i + x \cdot \left(\log y + \frac{z}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(t + \left(z + a\right)\right)\\
\end{array}
\end{array}
if x < -2.3e114 or 2.0499999999999999e151 < x Initial program 99.8%
Taylor expanded in x around inf 99.7%
Taylor expanded in z around inf 78.4%
if -2.3e114 < x < 2.0499999999999999e151Initial program 99.9%
Taylor expanded in b around inf 96.9%
*-commutative96.9%
Simplified96.9%
Taylor expanded in b around 0 81.4%
Taylor expanded in x around 0 77.5%
associate-+r+77.5%
+-commutative77.5%
associate-+l+77.5%
Simplified77.5%
Final simplification77.8%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= b -6.7e+226) (not (<= b 5.6e+262))) (* b (log c)) (+ (* y i) (+ a (+ z (* x (log y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((b <= -6.7e+226) || !(b <= 5.6e+262)) {
tmp = b * log(c);
} else {
tmp = (y * i) + (a + (z + (x * log(y))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((b <= (-6.7d+226)) .or. (.not. (b <= 5.6d+262))) then
tmp = b * log(c)
else
tmp = (y * i) + (a + (z + (x * log(y))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((b <= -6.7e+226) || !(b <= 5.6e+262)) {
tmp = b * Math.log(c);
} else {
tmp = (y * i) + (a + (z + (x * Math.log(y))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (b <= -6.7e+226) or not (b <= 5.6e+262): tmp = b * math.log(c) else: tmp = (y * i) + (a + (z + (x * math.log(y)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((b <= -6.7e+226) || !(b <= 5.6e+262)) tmp = Float64(b * log(c)); else tmp = Float64(Float64(y * i) + Float64(a + Float64(z + Float64(x * log(y))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((b <= -6.7e+226) || ~((b <= 5.6e+262))) tmp = b * log(c); else tmp = (y * i) + (a + (z + (x * log(y)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[b, -6.7e+226], N[Not[LessEqual[b, 5.6e+262]], $MachinePrecision]], N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.7 \cdot 10^{+226} \lor \neg \left(b \leq 5.6 \cdot 10^{+262}\right):\\
\;\;\;\;b \cdot \log c\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \left(z + x \cdot \log y\right)\right)\\
\end{array}
\end{array}
if b < -6.69999999999999957e226 or 5.59999999999999995e262 < b Initial program 99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
associate-+r+99.8%
+-commutative99.8%
+-commutative99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
Simplified99.8%
Taylor expanded in i around -inf 69.6%
Taylor expanded in b around inf 68.3%
mul-1-neg68.3%
*-commutative68.3%
distribute-rgt-neg-in68.3%
Simplified68.3%
if -6.69999999999999957e226 < b < 5.59999999999999995e262Initial program 99.9%
Taylor expanded in b around inf 97.4%
*-commutative97.4%
Simplified97.4%
Taylor expanded in b around 0 91.9%
Taylor expanded in t around 0 78.1%
Final simplification77.0%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -1e+190) (not (<= x 2.15e+151))) (+ (* x (log y)) (* y i)) (+ (* y i) (+ t (+ z a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -1e+190) || !(x <= 2.15e+151)) {
tmp = (x * log(y)) + (y * i);
} else {
tmp = (y * i) + (t + (z + 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 ((x <= (-1d+190)) .or. (.not. (x <= 2.15d+151))) then
tmp = (x * log(y)) + (y * i)
else
tmp = (y * i) + (t + (z + 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 ((x <= -1e+190) || !(x <= 2.15e+151)) {
tmp = (x * Math.log(y)) + (y * i);
} else {
tmp = (y * i) + (t + (z + a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -1e+190) or not (x <= 2.15e+151): tmp = (x * math.log(y)) + (y * i) else: tmp = (y * i) + (t + (z + a)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -1e+190) || !(x <= 2.15e+151)) tmp = Float64(Float64(x * log(y)) + Float64(y * i)); else tmp = Float64(Float64(y * i) + Float64(t + Float64(z + a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -1e+190) || ~((x <= 2.15e+151))) tmp = (x * log(y)) + (y * i); else tmp = (y * i) + (t + (z + a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -1e+190], N[Not[LessEqual[x, 2.15e+151]], $MachinePrecision]], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(t + N[(z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{+190} \lor \neg \left(x \leq 2.15 \cdot 10^{+151}\right):\\
\;\;\;\;x \cdot \log y + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(t + \left(z + a\right)\right)\\
\end{array}
\end{array}
if x < -1.0000000000000001e190 or 2.14999999999999991e151 < x Initial program 99.8%
Taylor expanded in x around inf 75.3%
if -1.0000000000000001e190 < x < 2.14999999999999991e151Initial program 99.9%
Taylor expanded in b around inf 97.1%
*-commutative97.1%
Simplified97.1%
Taylor expanded in b around 0 82.1%
Taylor expanded in x around 0 76.6%
associate-+r+76.6%
+-commutative76.6%
associate-+l+76.6%
Simplified76.6%
Final simplification76.3%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -6.6e+262) (not (<= x 5.35e+244))) (* x (log y)) (+ (* y i) (+ t (+ z a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -6.6e+262) || !(x <= 5.35e+244)) {
tmp = x * log(y);
} else {
tmp = (y * i) + (t + (z + 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 ((x <= (-6.6d+262)) .or. (.not. (x <= 5.35d+244))) then
tmp = x * log(y)
else
tmp = (y * i) + (t + (z + 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 ((x <= -6.6e+262) || !(x <= 5.35e+244)) {
tmp = x * Math.log(y);
} else {
tmp = (y * i) + (t + (z + a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -6.6e+262) or not (x <= 5.35e+244): tmp = x * math.log(y) else: tmp = (y * i) + (t + (z + a)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -6.6e+262) || !(x <= 5.35e+244)) tmp = Float64(x * log(y)); else tmp = Float64(Float64(y * i) + Float64(t + Float64(z + a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -6.6e+262) || ~((x <= 5.35e+244))) tmp = x * log(y); else tmp = (y * i) + (t + (z + a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -6.6e+262], N[Not[LessEqual[x, 5.35e+244]], $MachinePrecision]], N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(t + N[(z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.6 \cdot 10^{+262} \lor \neg \left(x \leq 5.35 \cdot 10^{+244}\right):\\
\;\;\;\;x \cdot \log y\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(t + \left(z + a\right)\right)\\
\end{array}
\end{array}
if x < -6.59999999999999997e262 or 5.3500000000000001e244 < x Initial program 99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
associate-+r+99.8%
+-commutative99.8%
+-commutative99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
Simplified99.8%
Taylor expanded in i around -inf 60.4%
Taylor expanded in x around inf 68.0%
mul-1-neg68.0%
*-commutative68.0%
distribute-rgt-neg-in68.0%
Simplified68.0%
if -6.59999999999999997e262 < x < 5.3500000000000001e244Initial program 99.9%
Taylor expanded in b around inf 97.4%
*-commutative97.4%
Simplified97.4%
Taylor expanded in b around 0 83.2%
Taylor expanded in x around 0 73.5%
associate-+r+73.5%
+-commutative73.5%
associate-+l+73.5%
Simplified73.5%
Final simplification72.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= b -8.5e+227) (* b (log c)) (+ (* y i) (+ t (+ z a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (b <= -8.5e+227) {
tmp = b * log(c);
} else {
tmp = (y * i) + (t + (z + 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 (b <= (-8.5d+227)) then
tmp = b * log(c)
else
tmp = (y * i) + (t + (z + 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 (b <= -8.5e+227) {
tmp = b * Math.log(c);
} else {
tmp = (y * i) + (t + (z + a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if b <= -8.5e+227: tmp = b * math.log(c) else: tmp = (y * i) + (t + (z + a)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (b <= -8.5e+227) tmp = Float64(b * log(c)); else tmp = Float64(Float64(y * i) + Float64(t + Float64(z + a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (b <= -8.5e+227) tmp = b * log(c); else tmp = (y * i) + (t + (z + a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[b, -8.5e+227], N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(t + N[(z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.5 \cdot 10^{+227}:\\
\;\;\;\;b \cdot \log c\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(t + \left(z + a\right)\right)\\
\end{array}
\end{array}
if b < -8.4999999999999995e227Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in i around -inf 58.6%
Taylor expanded in b around inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
distribute-rgt-neg-in65.3%
Simplified65.3%
if -8.4999999999999995e227 < b Initial program 99.9%
Taylor expanded in b around inf 97.5%
*-commutative97.5%
Simplified97.5%
Taylor expanded in b around 0 89.6%
Taylor expanded in x around 0 71.3%
associate-+r+71.3%
+-commutative71.3%
associate-+l+71.3%
Simplified71.3%
Final simplification70.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 3.7e-195) z (if (<= y 1.4e+72) 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 <= 3.7e-195) {
tmp = z;
} else if (y <= 1.4e+72) {
tmp = 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 <= 3.7d-195) then
tmp = z
else if (y <= 1.4d+72) then
tmp = 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 <= 3.7e-195) {
tmp = z;
} else if (y <= 1.4e+72) {
tmp = a;
} else {
tmp = y * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 3.7e-195: tmp = z elif y <= 1.4e+72: tmp = a else: tmp = y * i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 3.7e-195) tmp = z; elseif (y <= 1.4e+72) tmp = 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 <= 3.7e-195) tmp = z; elseif (y <= 1.4e+72) tmp = a; else tmp = y * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 3.7e-195], z, If[LessEqual[y, 1.4e+72], a, N[(y * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.7 \cdot 10^{-195}:\\
\;\;\;\;z\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{+72}:\\
\;\;\;\;a\\
\mathbf{else}:\\
\;\;\;\;y \cdot i\\
\end{array}
\end{array}
if y < 3.69999999999999962e-195Initial program 99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
associate-+r+99.8%
+-commutative99.8%
+-commutative99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
Simplified99.8%
Taylor expanded in i around -inf 69.7%
Taylor expanded in z around inf 24.5%
mul-1-neg24.5%
Simplified24.5%
if 3.69999999999999962e-195 < y < 1.4e72Initial program 99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
associate-+r+99.8%
+-commutative99.8%
+-commutative99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
Simplified99.8%
Taylor expanded in i around -inf 74.7%
Taylor expanded in a around inf 18.4%
mul-1-neg18.4%
Simplified18.4%
if 1.4e72 < y Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in y around inf 52.9%
*-commutative52.9%
Simplified52.9%
Final simplification32.3%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -4.2e+232) z (+ a (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -4.2e+232) {
tmp = z;
} else {
tmp = a + (y * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (z <= (-4.2d+232)) then
tmp = z
else
tmp = a + (y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -4.2e+232) {
tmp = z;
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -4.2e+232: tmp = z else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -4.2e+232) tmp = z; else tmp = Float64(a + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -4.2e+232) tmp = z; else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -4.2e+232], z, N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{+232}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if z < -4.19999999999999982e232Initial program 100.0%
associate-+l+100.0%
+-commutative100.0%
associate-+l+100.0%
associate-+r+100.0%
+-commutative100.0%
+-commutative100.0%
associate-+l+100.0%
associate-+l+100.0%
+-commutative100.0%
fma-define100.0%
+-commutative100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in i around -inf 73.5%
Taylor expanded in z around inf 47.7%
mul-1-neg47.7%
Simplified47.7%
if -4.19999999999999982e232 < z Initial program 99.9%
Taylor expanded in a around inf 40.9%
Final simplification41.2%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 7.8e+145) (+ 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 (a <= 7.8e+145) {
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 (a <= 7.8d+145) 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 (a <= 7.8e+145) {
tmp = z + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 7.8e+145: 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 (a <= 7.8e+145) 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 (a <= 7.8e+145) 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[a, 7.8e+145], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 7.8 \cdot 10^{+145}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if a < 7.7999999999999995e145Initial program 99.9%
Taylor expanded in z around inf 40.5%
if 7.7999999999999995e145 < a Initial program 99.9%
Taylor expanded in a around inf 71.4%
Final simplification45.3%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ t (+ z a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + (t + (z + 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 = (y * i) + (t + (z + a))
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) + (t + (z + a));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + (t + (z + a))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(t + Float64(z + a))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + (t + (z + a)); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(t + N[(z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(t + \left(z + a\right)\right)
\end{array}
Initial program 99.9%
Taylor expanded in b around inf 97.7%
*-commutative97.7%
Simplified97.7%
Taylor expanded in b around 0 84.2%
Taylor expanded in x around 0 67.4%
associate-+r+67.4%
+-commutative67.4%
associate-+l+67.4%
Simplified67.4%
Final simplification67.4%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 2.4e+72) 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 <= 2.4e+72) {
tmp = 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 <= 2.4d+72) then
tmp = 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 <= 2.4e+72) {
tmp = a;
} else {
tmp = y * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 2.4e+72: tmp = a else: tmp = y * i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 2.4e+72) tmp = 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 <= 2.4e+72) tmp = a; else tmp = y * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 2.4e+72], a, N[(y * i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.4 \cdot 10^{+72}:\\
\;\;\;\;a\\
\mathbf{else}:\\
\;\;\;\;y \cdot i\\
\end{array}
\end{array}
if y < 2.4000000000000001e72Initial program 99.8%
associate-+l+99.8%
+-commutative99.8%
associate-+l+99.8%
associate-+r+99.8%
+-commutative99.8%
+-commutative99.8%
associate-+l+99.8%
associate-+l+99.8%
+-commutative99.8%
fma-define99.8%
+-commutative99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
Simplified99.8%
Taylor expanded in i around -inf 73.1%
Taylor expanded in a around inf 20.8%
mul-1-neg20.8%
Simplified20.8%
if 2.4000000000000001e72 < y Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in y around inf 52.9%
*-commutative52.9%
Simplified52.9%
Final simplification32.6%
(FPCore (x y z t a b c i) :precision binary64 (* y i))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return 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 = 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 y * i;
}
def code(x, y, z, t, a, b, c, i): return y * i
function code(x, y, z, t, a, b, c, i) return Float64(y * i) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = y * i; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(y * i), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i
\end{array}
Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in y around inf 24.0%
*-commutative24.0%
Simplified24.0%
Final simplification24.0%
herbie shell --seed 2024077
(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)))