
(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 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (fma y i (fma (+ b -0.5) (log c) (+ z (fma x (log y) (+ t a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return fma(y, i, fma((b + -0.5), log(c), (z + fma(x, log(y), (t + a)))));
}
function code(x, y, z, t, a, b, c, i) return fma(y, i, fma(Float64(b + -0.5), log(c), Float64(z + fma(x, log(y), Float64(t + a))))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(y * i + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + N[(z + N[(x * N[Log[y], $MachinePrecision] + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y, i, \mathsf{fma}\left(b + -0.5, \log c, z + \mathsf{fma}\left(x, \log y, t + a\right)\right)\right)
\end{array}
Initial program 99.5%
associate-+l+99.5%
associate-+l+99.5%
+-commutative99.5%
+-commutative99.5%
associate-+r+99.5%
associate-+l+99.5%
+-commutative99.5%
associate-+l+99.5%
+-commutative99.5%
fma-def99.5%
+-commutative99.5%
fma-def99.5%
sub-neg99.5%
metadata-eval99.5%
+-commutative99.5%
Simplified99.5%
Final simplification99.5%
(FPCore (x y z t a b c i) :precision binary64 (fma y i (+ (* 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 fma(y, i, ((x * log(y)) + ((z + t) + (a + ((b + -0.5) * log(c))))));
}
function code(x, y, z, t, a, b, c, i) return fma(y, i, Float64(Float64(x * log(y)) + Float64(Float64(z + t) + Float64(a + Float64(Float64(b + -0.5) * log(c)))))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(y * i + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(N[(z + t), $MachinePrecision] + N[(a + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y, i, x \cdot \log y + \left(\left(z + t\right) + \left(a + \left(b + -0.5\right) \cdot \log c\right)\right)\right)
\end{array}
Initial program 99.5%
associate-+l+99.5%
associate-+l+99.5%
+-commutative99.5%
+-commutative99.5%
associate-+r+99.5%
associate-+l+99.5%
+-commutative99.5%
associate-+l+99.5%
+-commutative99.5%
fma-def99.5%
+-commutative99.5%
fma-def99.5%
sub-neg99.5%
metadata-eval99.5%
+-commutative99.5%
Simplified99.5%
fma-udef99.5%
metadata-eval99.5%
sub-neg99.5%
fma-udef99.5%
associate-+r+99.5%
+-commutative99.5%
associate-+l+99.5%
+-commutative99.5%
associate-+l+99.5%
associate-+l+99.5%
associate-+l+99.5%
sub-neg99.5%
metadata-eval99.5%
*-commutative99.5%
Applied egg-rr99.5%
Final simplification99.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* x (log y))))
(if (<= x -2.1e+127)
(+ a (+ z (fma i y t_1)))
(if (<= x 1.9e+65)
(fma y i (+ (* (+ b -0.5) (log c)) (+ z (+ t a))))
(+ a (+ t (+ z (+ 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 = x * log(y);
double tmp;
if (x <= -2.1e+127) {
tmp = a + (z + fma(i, y, t_1));
} else if (x <= 1.9e+65) {
tmp = fma(y, i, (((b + -0.5) * log(c)) + (z + (t + a))));
} else {
tmp = a + (t + (z + (t_1 + (y * i))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x * log(y)) tmp = 0.0 if (x <= -2.1e+127) tmp = Float64(a + Float64(z + fma(i, y, t_1))); elseif (x <= 1.9e+65) tmp = fma(y, i, Float64(Float64(Float64(b + -0.5) * log(c)) + Float64(z + Float64(t + a)))); else tmp = Float64(a + Float64(t + Float64(z + Float64(t_1 + Float64(y * i))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.1e+127], N[(a + N[(z + N[(i * y + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.9e+65], N[(y * i + N[(N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision] + N[(z + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(z + N[(t$95$1 + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;x \leq -2.1 \cdot 10^{+127}:\\
\;\;\;\;a + \left(z + \mathsf{fma}\left(i, y, t_1\right)\right)\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{+65}:\\
\;\;\;\;\mathsf{fma}\left(y, i, \left(b + -0.5\right) \cdot \log c + \left(z + \left(t + a\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + \left(t_1 + y \cdot i\right)\right)\right)\\
\end{array}
\end{array}
if x < -2.09999999999999992e127Initial program 97.5%
add-cube-cbrt97.4%
pow397.4%
sub-neg97.4%
metadata-eval97.4%
*-commutative97.4%
Applied egg-rr97.4%
Taylor expanded in b around inf 91.0%
fma-def91.1%
Simplified91.1%
Taylor expanded in t around 0 84.4%
fma-def84.4%
*-commutative84.4%
Simplified84.4%
if -2.09999999999999992e127 < x < 1.90000000000000006e65Initial program 99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+r+99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-def99.9%
+-commutative99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 98.3%
fma-udef98.3%
*-commutative98.3%
+-commutative98.3%
Applied egg-rr98.3%
if 1.90000000000000006e65 < x Initial program 99.8%
add-cube-cbrt99.6%
pow399.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
Applied egg-rr99.7%
Taylor expanded in b around inf 92.2%
Final simplification94.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* x (log y))))
(if (<= a 3.2e+136)
(+ (* y i) (+ t (+ z (+ t_1 (* (log c) (- b 0.5))))))
(+ a (+ t (+ z (fma i y 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 <= 3.2e+136) {
tmp = (y * i) + (t + (z + (t_1 + (log(c) * (b - 0.5)))));
} else {
tmp = a + (t + (z + fma(i, y, 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 <= 3.2e+136) tmp = Float64(Float64(y * i) + Float64(t + Float64(z + Float64(t_1 + Float64(log(c) * Float64(b - 0.5)))))); else tmp = Float64(a + Float64(t + Float64(z + fma(i, y, t_1)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, 3.2e+136], N[(N[(y * i), $MachinePrecision] + N[(t + N[(z + N[(t$95$1 + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(z + N[(i * y + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;a \leq 3.2 \cdot 10^{+136}:\\
\;\;\;\;y \cdot i + \left(t + \left(z + \left(t_1 + \log c \cdot \left(b - 0.5\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + \mathsf{fma}\left(i, y, t_1\right)\right)\right)\\
\end{array}
\end{array}
if a < 3.19999999999999988e136Initial program 99.4%
Taylor expanded in a around 0 86.0%
if 3.19999999999999988e136 < a Initial program 100.0%
add-cube-cbrt99.8%
pow399.9%
sub-neg99.9%
metadata-eval99.9%
*-commutative99.9%
Applied egg-rr99.9%
Taylor expanded in b around inf 92.4%
fma-def92.4%
Simplified92.4%
Final simplification86.9%
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (* (log c) (- b 0.5)) (+ a (+ t (+ z (* x (log y)))))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((log(c) * (b - 0.5)) + (a + (t + (z + (x * log(y)))))) + (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 = ((log(c) * (b - 0.5d0)) + (a + (t + (z + (x * log(y)))))) + (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 ((Math.log(c) * (b - 0.5)) + (a + (t + (z + (x * Math.log(y)))))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return ((math.log(c) * (b - 0.5)) + (a + (t + (z + (x * math.log(y)))))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(log(c) * Float64(b - 0.5)) + Float64(a + Float64(t + Float64(z + Float64(x * log(y)))))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((log(c) * (b - 0.5)) + (a + (t + (z + (x * log(y)))))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision] + N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right)\right) + y \cdot i
\end{array}
Initial program 99.5%
Final simplification99.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* x (log y))))
(if (<= x -5.8e+124)
(+ a (+ z (fma i y t_1)))
(if (<= x 2e+65)
(+ (* y i) (+ a (+ t (+ z (* (log c) (- b 0.5))))))
(+ a (+ t (+ z (+ 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 = x * log(y);
double tmp;
if (x <= -5.8e+124) {
tmp = a + (z + fma(i, y, t_1));
} else if (x <= 2e+65) {
tmp = (y * i) + (a + (t + (z + (log(c) * (b - 0.5)))));
} else {
tmp = a + (t + (z + (t_1 + (y * i))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x * log(y)) tmp = 0.0 if (x <= -5.8e+124) tmp = Float64(a + Float64(z + fma(i, y, t_1))); elseif (x <= 2e+65) tmp = Float64(Float64(y * i) + Float64(a + Float64(t + Float64(z + Float64(log(c) * Float64(b - 0.5)))))); else tmp = Float64(a + Float64(t + Float64(z + Float64(t_1 + Float64(y * i))))); 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, -5.8e+124], N[(a + N[(z + N[(i * y + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2e+65], 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], N[(a + N[(t + N[(z + N[(t$95$1 + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;x \leq -5.8 \cdot 10^{+124}:\\
\;\;\;\;a + \left(z + \mathsf{fma}\left(i, y, t_1\right)\right)\\
\mathbf{elif}\;x \leq 2 \cdot 10^{+65}:\\
\;\;\;\;y \cdot i + \left(a + \left(t + \left(z + \log c \cdot \left(b - 0.5\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + \left(t_1 + y \cdot i\right)\right)\right)\\
\end{array}
\end{array}
if x < -5.80000000000000043e124Initial program 97.5%
add-cube-cbrt97.4%
pow397.4%
sub-neg97.4%
metadata-eval97.4%
*-commutative97.4%
Applied egg-rr97.4%
Taylor expanded in b around inf 91.0%
fma-def91.1%
Simplified91.1%
Taylor expanded in t around 0 84.4%
fma-def84.4%
*-commutative84.4%
Simplified84.4%
if -5.80000000000000043e124 < x < 2e65Initial program 99.9%
Taylor expanded in x around 0 98.3%
if 2e65 < x Initial program 99.8%
add-cube-cbrt99.6%
pow399.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
Applied egg-rr99.7%
Taylor expanded in b around inf 92.2%
Final simplification94.7%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= (- b 0.5) -4e+163) (not (<= (- b 0.5) 5e+215))) (+ a (+ z (* (log c) (- b 0.5)))) (+ a (+ t (+ z (+ (* x (log y)) (* y i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((b - 0.5) <= -4e+163) || !((b - 0.5) <= 5e+215)) {
tmp = a + (z + (log(c) * (b - 0.5)));
} else {
tmp = a + (t + (z + ((x * log(y)) + (y * i))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (((b - 0.5d0) <= (-4d+163)) .or. (.not. ((b - 0.5d0) <= 5d+215))) then
tmp = a + (z + (log(c) * (b - 0.5d0)))
else
tmp = a + (t + (z + ((x * log(y)) + (y * i))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((b - 0.5) <= -4e+163) || !((b - 0.5) <= 5e+215)) {
tmp = a + (z + (Math.log(c) * (b - 0.5)));
} else {
tmp = a + (t + (z + ((x * Math.log(y)) + (y * i))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if ((b - 0.5) <= -4e+163) or not ((b - 0.5) <= 5e+215): tmp = a + (z + (math.log(c) * (b - 0.5))) else: tmp = a + (t + (z + ((x * math.log(y)) + (y * i)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((Float64(b - 0.5) <= -4e+163) || !(Float64(b - 0.5) <= 5e+215)) tmp = Float64(a + Float64(z + Float64(log(c) * Float64(b - 0.5)))); else tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(x * log(y)) + Float64(y * i))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (((b - 0.5) <= -4e+163) || ~(((b - 0.5) <= 5e+215))) tmp = a + (z + (log(c) * (b - 0.5))); else tmp = a + (t + (z + ((x * log(y)) + (y * i)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[N[(b - 0.5), $MachinePrecision], -4e+163], N[Not[LessEqual[N[(b - 0.5), $MachinePrecision], 5e+215]], $MachinePrecision]], N[(a + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(z + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - 0.5 \leq -4 \cdot 10^{+163} \lor \neg \left(b - 0.5 \leq 5 \cdot 10^{+215}\right):\\
\;\;\;\;a + \left(z + \log c \cdot \left(b - 0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + \left(x \cdot \log y + y \cdot i\right)\right)\right)\\
\end{array}
\end{array}
if (-.f64 b 1/2) < -3.9999999999999998e163 or 5.0000000000000001e215 < (-.f64 b 1/2) Initial program 99.8%
Taylor expanded in x around 0 90.5%
Taylor expanded in t around 0 88.5%
Taylor expanded in y around 0 74.2%
if -3.9999999999999998e163 < (-.f64 b 1/2) < 5.0000000000000001e215Initial program 99.4%
add-cube-cbrt99.3%
pow399.3%
sub-neg99.3%
metadata-eval99.3%
*-commutative99.3%
Applied egg-rr99.3%
Taylor expanded in b around inf 92.1%
Final simplification88.8%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= (- b 0.5) -4e+163) (not (<= (- b 0.5) 5e+215))) (+ a (+ z (* (log c) (- b 0.5)))) (+ a (+ z (+ (* x (log y)) (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((b - 0.5) <= -4e+163) || !((b - 0.5) <= 5e+215)) {
tmp = a + (z + (log(c) * (b - 0.5)));
} else {
tmp = a + (z + ((x * log(y)) + (y * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (((b - 0.5d0) <= (-4d+163)) .or. (.not. ((b - 0.5d0) <= 5d+215))) then
tmp = a + (z + (log(c) * (b - 0.5d0)))
else
tmp = a + (z + ((x * log(y)) + (y * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((b - 0.5) <= -4e+163) || !((b - 0.5) <= 5e+215)) {
tmp = a + (z + (Math.log(c) * (b - 0.5)));
} else {
tmp = a + (z + ((x * Math.log(y)) + (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if ((b - 0.5) <= -4e+163) or not ((b - 0.5) <= 5e+215): tmp = a + (z + (math.log(c) * (b - 0.5))) else: tmp = a + (z + ((x * math.log(y)) + (y * i))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((Float64(b - 0.5) <= -4e+163) || !(Float64(b - 0.5) <= 5e+215)) tmp = Float64(a + Float64(z + Float64(log(c) * Float64(b - 0.5)))); else tmp = Float64(a + Float64(z + Float64(Float64(x * log(y)) + Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (((b - 0.5) <= -4e+163) || ~(((b - 0.5) <= 5e+215))) tmp = a + (z + (log(c) * (b - 0.5))); else tmp = a + (z + ((x * log(y)) + (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[N[(b - 0.5), $MachinePrecision], -4e+163], N[Not[LessEqual[N[(b - 0.5), $MachinePrecision], 5e+215]], $MachinePrecision]], N[(a + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(z + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - 0.5 \leq -4 \cdot 10^{+163} \lor \neg \left(b - 0.5 \leq 5 \cdot 10^{+215}\right):\\
\;\;\;\;a + \left(z + \log c \cdot \left(b - 0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(z + \left(x \cdot \log y + y \cdot i\right)\right)\\
\end{array}
\end{array}
if (-.f64 b 1/2) < -3.9999999999999998e163 or 5.0000000000000001e215 < (-.f64 b 1/2) Initial program 99.8%
Taylor expanded in x around 0 90.5%
Taylor expanded in t around 0 88.5%
Taylor expanded in y around 0 74.2%
if -3.9999999999999998e163 < (-.f64 b 1/2) < 5.0000000000000001e215Initial program 99.4%
add-cube-cbrt99.3%
pow399.3%
sub-neg99.3%
metadata-eval99.3%
*-commutative99.3%
Applied egg-rr99.3%
Taylor expanded in b around inf 92.1%
fma-def92.1%
Simplified92.1%
Taylor expanded in t around 0 74.6%
Final simplification74.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ z (+ (* x (log y)) (* y i)))))
(if (<= x -3e+126)
(+ a t_1)
(if (<= x 2e+65)
(+ (* y i) (+ a (+ t (+ z (* (log c) (- b 0.5))))))
(+ a (+ t t_1))))))
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)) + (y * i));
double tmp;
if (x <= -3e+126) {
tmp = a + t_1;
} else if (x <= 2e+65) {
tmp = (y * i) + (a + (t + (z + (log(c) * (b - 0.5)))));
} else {
tmp = a + (t + 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 = z + ((x * log(y)) + (y * i))
if (x <= (-3d+126)) then
tmp = a + t_1
else if (x <= 2d+65) then
tmp = (y * i) + (a + (t + (z + (log(c) * (b - 0.5d0)))))
else
tmp = a + (t + 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 = z + ((x * Math.log(y)) + (y * i));
double tmp;
if (x <= -3e+126) {
tmp = a + t_1;
} else if (x <= 2e+65) {
tmp = (y * i) + (a + (t + (z + (Math.log(c) * (b - 0.5)))));
} else {
tmp = a + (t + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = z + ((x * math.log(y)) + (y * i)) tmp = 0 if x <= -3e+126: tmp = a + t_1 elif x <= 2e+65: tmp = (y * i) + (a + (t + (z + (math.log(c) * (b - 0.5))))) else: tmp = a + (t + t_1) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(z + Float64(Float64(x * log(y)) + Float64(y * i))) tmp = 0.0 if (x <= -3e+126) tmp = Float64(a + t_1); elseif (x <= 2e+65) tmp = Float64(Float64(y * i) + Float64(a + Float64(t + Float64(z + Float64(log(c) * Float64(b - 0.5)))))); else tmp = Float64(a + Float64(t + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = z + ((x * log(y)) + (y * i)); tmp = 0.0; if (x <= -3e+126) tmp = a + t_1; elseif (x <= 2e+65) tmp = (y * i) + (a + (t + (z + (log(c) * (b - 0.5))))); else tmp = a + (t + t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(z + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3e+126], N[(a + t$95$1), $MachinePrecision], If[LessEqual[x, 2e+65], 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], N[(a + N[(t + t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z + \left(x \cdot \log y + y \cdot i\right)\\
\mathbf{if}\;x \leq -3 \cdot 10^{+126}:\\
\;\;\;\;a + t_1\\
\mathbf{elif}\;x \leq 2 \cdot 10^{+65}:\\
\;\;\;\;y \cdot i + \left(a + \left(t + \left(z + \log c \cdot \left(b - 0.5\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + t_1\right)\\
\end{array}
\end{array}
if x < -3.0000000000000002e126Initial program 97.5%
add-cube-cbrt97.4%
pow397.4%
sub-neg97.4%
metadata-eval97.4%
*-commutative97.4%
Applied egg-rr97.4%
Taylor expanded in b around inf 91.0%
fma-def91.1%
Simplified91.1%
Taylor expanded in t around 0 84.4%
if -3.0000000000000002e126 < x < 2e65Initial program 99.9%
Taylor expanded in x around 0 98.3%
if 2e65 < x Initial program 99.8%
add-cube-cbrt99.6%
pow399.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
Applied egg-rr99.7%
Taylor expanded in b around inf 92.2%
Final simplification94.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ z (+ (* x (log y)) (* y i)))))
(if (<= x -8.5e+126)
(+ a t_1)
(if (<= x 2e+65)
(+ (* y i) (+ a (+ z (* (log c) (- b 0.5)))))
(+ a (+ t t_1))))))
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)) + (y * i));
double tmp;
if (x <= -8.5e+126) {
tmp = a + t_1;
} else if (x <= 2e+65) {
tmp = (y * i) + (a + (z + (log(c) * (b - 0.5))));
} else {
tmp = a + (t + 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 = z + ((x * log(y)) + (y * i))
if (x <= (-8.5d+126)) then
tmp = a + t_1
else if (x <= 2d+65) then
tmp = (y * i) + (a + (z + (log(c) * (b - 0.5d0))))
else
tmp = a + (t + 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 = z + ((x * Math.log(y)) + (y * i));
double tmp;
if (x <= -8.5e+126) {
tmp = a + t_1;
} else if (x <= 2e+65) {
tmp = (y * i) + (a + (z + (Math.log(c) * (b - 0.5))));
} else {
tmp = a + (t + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = z + ((x * math.log(y)) + (y * i)) tmp = 0 if x <= -8.5e+126: tmp = a + t_1 elif x <= 2e+65: tmp = (y * i) + (a + (z + (math.log(c) * (b - 0.5)))) else: tmp = a + (t + t_1) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(z + Float64(Float64(x * log(y)) + Float64(y * i))) tmp = 0.0 if (x <= -8.5e+126) tmp = Float64(a + t_1); elseif (x <= 2e+65) tmp = Float64(Float64(y * i) + Float64(a + Float64(z + Float64(log(c) * Float64(b - 0.5))))); else tmp = Float64(a + Float64(t + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = z + ((x * log(y)) + (y * i)); tmp = 0.0; if (x <= -8.5e+126) tmp = a + t_1; elseif (x <= 2e+65) tmp = (y * i) + (a + (z + (log(c) * (b - 0.5)))); else tmp = a + (t + t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(z + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -8.5e+126], N[(a + t$95$1), $MachinePrecision], If[LessEqual[x, 2e+65], N[(N[(y * i), $MachinePrecision] + N[(a + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z + \left(x \cdot \log y + y \cdot i\right)\\
\mathbf{if}\;x \leq -8.5 \cdot 10^{+126}:\\
\;\;\;\;a + t_1\\
\mathbf{elif}\;x \leq 2 \cdot 10^{+65}:\\
\;\;\;\;y \cdot i + \left(a + \left(z + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + t_1\right)\\
\end{array}
\end{array}
if x < -8.49999999999999944e126Initial program 97.5%
add-cube-cbrt97.4%
pow397.4%
sub-neg97.4%
metadata-eval97.4%
*-commutative97.4%
Applied egg-rr97.4%
Taylor expanded in b around inf 91.0%
fma-def91.1%
Simplified91.1%
Taylor expanded in t around 0 84.4%
if -8.49999999999999944e126 < x < 2e65Initial program 99.9%
Taylor expanded in x around 0 98.3%
Taylor expanded in t around 0 81.7%
if 2e65 < x Initial program 99.8%
add-cube-cbrt99.6%
pow399.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
Applied egg-rr99.7%
Taylor expanded in b around inf 92.2%
Final simplification84.3%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y 2.1e-121)
(+ a (+ t (+ z (* x (log y)))))
(if (<= y 6e-58)
(+ a (+ z (* (log c) (- b 0.5))))
(+ a (+ t (fma y i z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 2.1e-121) {
tmp = a + (t + (z + (x * log(y))));
} else if (y <= 6e-58) {
tmp = a + (z + (log(c) * (b - 0.5)));
} else {
tmp = a + (t + fma(y, i, z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 2.1e-121) tmp = Float64(a + Float64(t + Float64(z + Float64(x * log(y))))); elseif (y <= 6e-58) tmp = Float64(a + Float64(z + Float64(log(c) * Float64(b - 0.5)))); else tmp = Float64(a + Float64(t + fma(y, i, z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 2.1e-121], N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e-58], N[(a + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(y * i + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.1 \cdot 10^{-121}:\\
\;\;\;\;a + \left(t + \left(z + x \cdot \log y\right)\right)\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-58}:\\
\;\;\;\;a + \left(z + \log c \cdot \left(b - 0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \mathsf{fma}\left(y, i, z\right)\right)\\
\end{array}
\end{array}
if y < 2.0999999999999999e-121Initial program 99.8%
Taylor expanded in y around 0 98.9%
Taylor expanded in x around inf 83.9%
if 2.0999999999999999e-121 < y < 6.00000000000000015e-58Initial program 99.9%
Taylor expanded in x around 0 93.4%
Taylor expanded in t around 0 78.0%
Taylor expanded in y around 0 75.1%
if 6.00000000000000015e-58 < y Initial program 99.2%
add-cube-cbrt99.0%
pow399.0%
sub-neg99.0%
metadata-eval99.0%
*-commutative99.0%
Applied egg-rr99.0%
Taylor expanded in b around inf 86.4%
fma-def86.4%
Simplified86.4%
Taylor expanded in x around 0 73.6%
+-commutative73.6%
*-commutative73.6%
fma-def73.6%
Simplified73.6%
Final simplification76.9%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -1.9e+173) (not (<= x 1.12e+220))) (+ a (* x (log y))) (+ a (+ t (fma y i z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -1.9e+173) || !(x <= 1.12e+220)) {
tmp = a + (x * log(y));
} else {
tmp = a + (t + fma(y, i, z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -1.9e+173) || !(x <= 1.12e+220)) tmp = Float64(a + Float64(x * log(y))); else tmp = Float64(a + Float64(t + fma(y, i, z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -1.9e+173], N[Not[LessEqual[x, 1.12e+220]], $MachinePrecision]], N[(a + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(y * i + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.9 \cdot 10^{+173} \lor \neg \left(x \leq 1.12 \cdot 10^{+220}\right):\\
\;\;\;\;a + x \cdot \log y\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \mathsf{fma}\left(y, i, z\right)\right)\\
\end{array}
\end{array}
if x < -1.90000000000000005e173 or 1.12000000000000006e220 < x Initial program 97.5%
add-cube-cbrt97.5%
pow397.5%
sub-neg97.5%
metadata-eval97.5%
*-commutative97.5%
Applied egg-rr97.5%
Taylor expanded in b around inf 92.9%
fma-def93.0%
Simplified93.0%
Taylor expanded in x around inf 67.6%
*-commutative67.6%
Simplified67.6%
if -1.90000000000000005e173 < x < 1.12000000000000006e220Initial program 99.9%
add-cube-cbrt99.6%
pow399.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
Applied egg-rr99.6%
Taylor expanded in b around inf 80.1%
fma-def80.1%
Simplified80.1%
Taylor expanded in x around 0 72.4%
+-commutative72.4%
*-commutative72.4%
fma-def72.4%
Simplified72.4%
Final simplification71.5%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -7.2e+174) (not (<= x 4.6e+220))) (+ a (* x (log y))) (+ a (+ (+ z t) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -7.2e+174) || !(x <= 4.6e+220)) {
tmp = a + (x * log(y));
} else {
tmp = a + ((z + t) + (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((x <= (-7.2d+174)) .or. (.not. (x <= 4.6d+220))) then
tmp = a + (x * log(y))
else
tmp = a + ((z + t) + (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -7.2e+174) || !(x <= 4.6e+220)) {
tmp = a + (x * Math.log(y));
} else {
tmp = a + ((z + t) + (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -7.2e+174) or not (x <= 4.6e+220): tmp = a + (x * math.log(y)) else: tmp = a + ((z + t) + (y * i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -7.2e+174) || !(x <= 4.6e+220)) tmp = Float64(a + Float64(x * log(y))); else tmp = Float64(a + Float64(Float64(z + t) + Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -7.2e+174) || ~((x <= 4.6e+220))) tmp = a + (x * log(y)); else tmp = a + ((z + t) + (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -7.2e+174], N[Not[LessEqual[x, 4.6e+220]], $MachinePrecision]], N[(a + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(N[(z + t), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.2 \cdot 10^{+174} \lor \neg \left(x \leq 4.6 \cdot 10^{+220}\right):\\
\;\;\;\;a + x \cdot \log y\\
\mathbf{else}:\\
\;\;\;\;a + \left(\left(z + t\right) + y \cdot i\right)\\
\end{array}
\end{array}
if x < -7.2000000000000003e174 or 4.59999999999999993e220 < x Initial program 97.5%
add-cube-cbrt97.5%
pow397.5%
sub-neg97.5%
metadata-eval97.5%
*-commutative97.5%
Applied egg-rr97.5%
Taylor expanded in b around inf 92.9%
fma-def93.0%
Simplified93.0%
Taylor expanded in x around inf 67.6%
*-commutative67.6%
Simplified67.6%
if -7.2000000000000003e174 < x < 4.59999999999999993e220Initial program 99.9%
add-cube-cbrt99.6%
pow399.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
Applied egg-rr99.6%
Taylor expanded in b around inf 80.1%
fma-def80.1%
Simplified80.1%
Taylor expanded in x around 0 72.4%
associate-+r+72.4%
+-commutative72.4%
*-commutative72.4%
Simplified72.4%
Final simplification71.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 1.12e+25) (+ a (+ t (+ z (* x (log y))))) (+ a (+ t (fma y i z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 1.12e+25) {
tmp = a + (t + (z + (x * log(y))));
} else {
tmp = a + (t + fma(y, i, z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 1.12e+25) tmp = Float64(a + Float64(t + Float64(z + Float64(x * log(y))))); else tmp = Float64(a + Float64(t + fma(y, i, z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 1.12e+25], N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(y * i + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.12 \cdot 10^{+25}:\\
\;\;\;\;a + \left(t + \left(z + x \cdot \log y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \mathsf{fma}\left(y, i, z\right)\right)\\
\end{array}
\end{array}
if y < 1.1200000000000001e25Initial program 99.8%
Taylor expanded in y around 0 95.1%
Taylor expanded in x around inf 74.5%
if 1.1200000000000001e25 < y Initial program 99.0%
add-cube-cbrt98.9%
pow398.9%
sub-neg98.9%
metadata-eval98.9%
*-commutative98.9%
Applied egg-rr98.9%
Taylor expanded in b around inf 85.8%
fma-def85.8%
Simplified85.8%
Taylor expanded in x around 0 74.9%
+-commutative74.9%
*-commutative74.9%
fma-def74.9%
Simplified74.9%
Final simplification74.7%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= b -4.2e+191) (not (<= b 3.7e+215))) (* b (log c)) (+ a (+ (+ z t) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((b <= -4.2e+191) || !(b <= 3.7e+215)) {
tmp = b * log(c);
} else {
tmp = a + ((z + t) + (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((b <= (-4.2d+191)) .or. (.not. (b <= 3.7d+215))) then
tmp = b * log(c)
else
tmp = a + ((z + t) + (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((b <= -4.2e+191) || !(b <= 3.7e+215)) {
tmp = b * Math.log(c);
} else {
tmp = a + ((z + t) + (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (b <= -4.2e+191) or not (b <= 3.7e+215): tmp = b * math.log(c) else: tmp = a + ((z + t) + (y * i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((b <= -4.2e+191) || !(b <= 3.7e+215)) tmp = Float64(b * log(c)); else tmp = Float64(a + Float64(Float64(z + t) + Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((b <= -4.2e+191) || ~((b <= 3.7e+215))) tmp = b * log(c); else tmp = a + ((z + t) + (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[b, -4.2e+191], N[Not[LessEqual[b, 3.7e+215]], $MachinePrecision]], N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision], N[(a + N[(N[(z + t), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.2 \cdot 10^{+191} \lor \neg \left(b \leq 3.7 \cdot 10^{+215}\right):\\
\;\;\;\;b \cdot \log c\\
\mathbf{else}:\\
\;\;\;\;a + \left(\left(z + t\right) + y \cdot i\right)\\
\end{array}
\end{array}
if b < -4.2000000000000001e191 or 3.69999999999999971e215 < b Initial program 99.7%
Taylor expanded in b around inf 63.1%
*-commutative63.1%
Simplified63.1%
if -4.2000000000000001e191 < b < 3.69999999999999971e215Initial program 99.4%
add-cube-cbrt99.3%
pow399.3%
sub-neg99.3%
metadata-eval99.3%
*-commutative99.3%
Applied egg-rr99.3%
Taylor expanded in b around inf 91.2%
fma-def91.2%
Simplified91.2%
Taylor expanded in x around 0 72.8%
associate-+r+72.8%
+-commutative72.8%
*-commutative72.8%
Simplified72.8%
Final simplification71.3%
(FPCore (x y z t a b c i) :precision binary64 (if (<= x -7.2e+174) (* x (log y)) (+ a (+ (+ z t) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (x <= -7.2e+174) {
tmp = x * log(y);
} else {
tmp = a + ((z + t) + (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (x <= (-7.2d+174)) then
tmp = x * log(y)
else
tmp = a + ((z + t) + (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (x <= -7.2e+174) {
tmp = x * Math.log(y);
} else {
tmp = a + ((z + t) + (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if x <= -7.2e+174: tmp = x * math.log(y) else: tmp = a + ((z + t) + (y * i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (x <= -7.2e+174) tmp = Float64(x * log(y)); else tmp = Float64(a + Float64(Float64(z + t) + Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (x <= -7.2e+174) tmp = x * log(y); else tmp = a + ((z + t) + (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[x, -7.2e+174], N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision], N[(a + N[(N[(z + t), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.2 \cdot 10^{+174}:\\
\;\;\;\;x \cdot \log y\\
\mathbf{else}:\\
\;\;\;\;a + \left(\left(z + t\right) + y \cdot i\right)\\
\end{array}
\end{array}
if x < -7.2000000000000003e174Initial program 96.5%
Taylor expanded in x around inf 63.5%
if -7.2000000000000003e174 < x Initial program 99.9%
add-cube-cbrt99.6%
pow399.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
Applied egg-rr99.6%
Taylor expanded in b around inf 81.3%
fma-def81.3%
Simplified81.3%
Taylor expanded in x around 0 70.0%
associate-+r+70.0%
+-commutative70.0%
*-commutative70.0%
Simplified70.0%
Final simplification69.2%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 1.6e-219) z (if (<= y 8.6e-163) a (if (<= y 2.9e+49) z (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 1.6e-219) {
tmp = z;
} else if (y <= 8.6e-163) {
tmp = a;
} else if (y <= 2.9e+49) {
tmp = z;
} else {
tmp = y * i;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= 1.6d-219) then
tmp = z
else if (y <= 8.6d-163) then
tmp = a
else if (y <= 2.9d+49) then
tmp = z
else
tmp = y * i
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 1.6e-219) {
tmp = z;
} else if (y <= 8.6e-163) {
tmp = a;
} else if (y <= 2.9e+49) {
tmp = z;
} else {
tmp = y * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 1.6e-219: tmp = z elif y <= 8.6e-163: tmp = a elif y <= 2.9e+49: tmp = z else: tmp = y * i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 1.6e-219) tmp = z; elseif (y <= 8.6e-163) tmp = a; elseif (y <= 2.9e+49) tmp = z; else tmp = Float64(y * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= 1.6e-219) tmp = z; elseif (y <= 8.6e-163) tmp = a; elseif (y <= 2.9e+49) tmp = z; else tmp = y * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 1.6e-219], z, If[LessEqual[y, 8.6e-163], a, If[LessEqual[y, 2.9e+49], z, N[(y * i), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.6 \cdot 10^{-219}:\\
\;\;\;\;z\\
\mathbf{elif}\;y \leq 8.6 \cdot 10^{-163}:\\
\;\;\;\;a\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{+49}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;y \cdot i\\
\end{array}
\end{array}
if y < 1.59999999999999999e-219 or 8.60000000000000017e-163 < y < 2.9e49Initial program 99.9%
Taylor expanded in z around inf 13.3%
if 1.59999999999999999e-219 < y < 8.60000000000000017e-163Initial program 99.7%
Taylor expanded in a around inf 20.2%
if 2.9e49 < y Initial program 99.0%
Taylor expanded in y around inf 46.7%
*-commutative46.7%
Simplified46.7%
Final simplification29.3%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 6.8e-219) z (if (<= y 5e-162) (+ t a) (if (<= y 2e+49) z (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 6.8e-219) {
tmp = z;
} else if (y <= 5e-162) {
tmp = t + a;
} else if (y <= 2e+49) {
tmp = z;
} else {
tmp = y * i;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= 6.8d-219) then
tmp = z
else if (y <= 5d-162) then
tmp = t + a
else if (y <= 2d+49) then
tmp = z
else
tmp = y * i
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 6.8e-219) {
tmp = z;
} else if (y <= 5e-162) {
tmp = t + a;
} else if (y <= 2e+49) {
tmp = z;
} else {
tmp = y * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 6.8e-219: tmp = z elif y <= 5e-162: tmp = t + a elif y <= 2e+49: tmp = z else: tmp = y * i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 6.8e-219) tmp = z; elseif (y <= 5e-162) tmp = Float64(t + a); elseif (y <= 2e+49) tmp = z; else tmp = Float64(y * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= 6.8e-219) tmp = z; elseif (y <= 5e-162) tmp = t + a; elseif (y <= 2e+49) tmp = z; else tmp = y * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 6.8e-219], z, If[LessEqual[y, 5e-162], N[(t + a), $MachinePrecision], If[LessEqual[y, 2e+49], z, N[(y * i), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 6.8 \cdot 10^{-219}:\\
\;\;\;\;z\\
\mathbf{elif}\;y \leq 5 \cdot 10^{-162}:\\
\;\;\;\;t + a\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+49}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;y \cdot i\\
\end{array}
\end{array}
if y < 6.7999999999999997e-219 or 5.00000000000000014e-162 < y < 1.99999999999999989e49Initial program 99.9%
Taylor expanded in z around inf 13.3%
if 6.7999999999999997e-219 < y < 5.00000000000000014e-162Initial program 99.7%
add-cube-cbrt99.2%
pow399.2%
sub-neg99.2%
metadata-eval99.2%
*-commutative99.2%
Applied egg-rr99.2%
Taylor expanded in b around inf 78.7%
fma-def78.7%
Simplified78.7%
Taylor expanded in t around inf 35.2%
if 1.99999999999999989e49 < y Initial program 99.0%
Taylor expanded in y around inf 46.7%
*-commutative46.7%
Simplified46.7%
Final simplification30.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 3.8e+42) (+ z a) (+ a (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 3.8e+42) {
tmp = z + a;
} else {
tmp = a + (y * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= 3.8d+42) then
tmp = z + a
else
tmp = a + (y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 3.8e+42) {
tmp = z + a;
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 3.8e+42: tmp = z + a else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 3.8e+42) tmp = Float64(z + a); else tmp = Float64(a + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= 3.8e+42) tmp = z + a; else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 3.8e+42], N[(z + a), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.8 \cdot 10^{+42}:\\
\;\;\;\;z + a\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if y < 3.7999999999999998e42Initial program 99.9%
add-cube-cbrt99.5%
pow399.5%
sub-neg99.5%
metadata-eval99.5%
*-commutative99.5%
Applied egg-rr99.5%
Taylor expanded in b around inf 79.7%
fma-def79.7%
Simplified79.7%
Taylor expanded in z around inf 32.6%
if 3.7999999999999998e42 < y Initial program 99.0%
add-cube-cbrt98.8%
pow398.8%
sub-neg98.8%
metadata-eval98.8%
*-commutative98.8%
Applied egg-rr98.8%
Taylor expanded in b around inf 85.6%
fma-def85.6%
Simplified85.6%
Taylor expanded in i around inf 56.6%
*-commutative56.6%
Simplified56.6%
Final simplification43.7%
(FPCore (x y z t a b c i) :precision binary64 (+ a (+ (+ z t) (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a + ((z + t) + (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 + ((z + t) + (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 + ((z + t) + (y * i));
}
def code(x, y, z, t, a, b, c, i): return a + ((z + t) + (y * i))
function code(x, y, z, t, a, b, c, i) return Float64(a + Float64(Float64(z + t) + Float64(y * i))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = a + ((z + t) + (y * i)); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(a + N[(N[(z + t), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a + \left(\left(z + t\right) + y \cdot i\right)
\end{array}
Initial program 99.5%
add-cube-cbrt99.2%
pow399.2%
sub-neg99.2%
metadata-eval99.2%
*-commutative99.2%
Applied egg-rr99.2%
Taylor expanded in b around inf 82.5%
fma-def82.5%
Simplified82.5%
Taylor expanded in x around 0 65.1%
associate-+r+65.1%
+-commutative65.1%
*-commutative65.1%
Simplified65.1%
Final simplification65.1%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 1.6e+112) (+ 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 <= 1.6e+112) {
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 <= 1.6d+112) 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 <= 1.6e+112) {
tmp = z + a;
} else {
tmp = y * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 1.6e+112: tmp = z + a else: tmp = y * i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 1.6e+112) 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 <= 1.6e+112) tmp = z + a; else tmp = y * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 1.6e+112], N[(z + a), $MachinePrecision], N[(y * i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.6 \cdot 10^{+112}:\\
\;\;\;\;z + a\\
\mathbf{else}:\\
\;\;\;\;y \cdot i\\
\end{array}
\end{array}
if y < 1.59999999999999993e112Initial program 99.8%
add-cube-cbrt99.5%
pow399.5%
sub-neg99.5%
metadata-eval99.5%
*-commutative99.5%
Applied egg-rr99.5%
Taylor expanded in b around inf 82.2%
fma-def82.2%
Simplified82.2%
Taylor expanded in z around inf 33.1%
if 1.59999999999999993e112 < y Initial program 98.7%
Taylor expanded in y around inf 50.8%
*-commutative50.8%
Simplified50.8%
Final simplification39.4%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -4e+83) z a))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -4e+83) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (z <= (-4d+83)) then
tmp = z
else
tmp = a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -4e+83) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -4e+83: tmp = z else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -4e+83) tmp = z; else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -4e+83) tmp = z; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -4e+83], z, a]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4 \cdot 10^{+83}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if z < -4.00000000000000012e83Initial program 99.8%
Taylor expanded in z around inf 21.2%
if -4.00000000000000012e83 < z Initial program 99.4%
Taylor expanded in a around inf 17.5%
Final simplification18.2%
(FPCore (x y z t a b c i) :precision binary64 a)
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = a
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a;
}
def code(x, y, z, t, a, b, c, i): return a
function code(x, y, z, t, a, b, c, i) return a end
function tmp = code(x, y, z, t, a, b, c, i) tmp = a; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := a
\begin{array}{l}
\\
a
\end{array}
Initial program 99.5%
Taylor expanded in a around inf 17.7%
Final simplification17.7%
herbie shell --seed 2024019
(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)))