
(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 18 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 (+ (+ (+ a (+ t (+ (* x (log y)) z))) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((a + (t + ((x * log(y)) + z))) + ((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 = ((a + (t + ((x * log(y)) + z))) + ((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 ((a + (t + ((x * Math.log(y)) + z))) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return ((a + (t + ((x * math.log(y)) + z))) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(a + Float64(t + Float64(Float64(x * log(y)) + z))) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((a + (t + ((x * log(y)) + z))) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(a + N[(t + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(a + \left(t + \left(x \cdot \log y + z\right)\right)\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
Initial program 99.8%
Final simplification99.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (- b 0.5) (log c))))
(if (<= t_1 -5e+177)
(+ (* y i) (+ a t_1))
(if (<= t_1 2e+153)
(+ (+ a (+ t (+ (* x (log y)) z))) (* y i))
(+ (* y i) (+ t_1 (+ t a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (b - 0.5) * log(c);
double tmp;
if (t_1 <= -5e+177) {
tmp = (y * i) + (a + t_1);
} else if (t_1 <= 2e+153) {
tmp = (a + (t + ((x * log(y)) + z))) + (y * i);
} else {
tmp = (y * i) + (t_1 + (t + 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) :: t_1
real(8) :: tmp
t_1 = (b - 0.5d0) * log(c)
if (t_1 <= (-5d+177)) then
tmp = (y * i) + (a + t_1)
else if (t_1 <= 2d+153) then
tmp = (a + (t + ((x * log(y)) + z))) + (y * i)
else
tmp = (y * i) + (t_1 + (t + 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 t_1 = (b - 0.5) * Math.log(c);
double tmp;
if (t_1 <= -5e+177) {
tmp = (y * i) + (a + t_1);
} else if (t_1 <= 2e+153) {
tmp = (a + (t + ((x * Math.log(y)) + z))) + (y * i);
} else {
tmp = (y * i) + (t_1 + (t + a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (b - 0.5) * math.log(c) tmp = 0 if t_1 <= -5e+177: tmp = (y * i) + (a + t_1) elif t_1 <= 2e+153: tmp = (a + (t + ((x * math.log(y)) + z))) + (y * i) else: tmp = (y * i) + (t_1 + (t + a)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(b - 0.5) * log(c)) tmp = 0.0 if (t_1 <= -5e+177) tmp = Float64(Float64(y * i) + Float64(a + t_1)); elseif (t_1 <= 2e+153) tmp = Float64(Float64(a + Float64(t + Float64(Float64(x * log(y)) + z))) + Float64(y * i)); else tmp = Float64(Float64(y * i) + Float64(t_1 + Float64(t + a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (b - 0.5) * log(c); tmp = 0.0; if (t_1 <= -5e+177) tmp = (y * i) + (a + t_1); elseif (t_1 <= 2e+153) tmp = (a + (t + ((x * log(y)) + z))) + (y * i); else tmp = (y * i) + (t_1 + (t + a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+177], N[(N[(y * i), $MachinePrecision] + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+153], N[(N[(a + N[(t + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(t$95$1 + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - 0.5\right) \cdot \log c\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+177}:\\
\;\;\;\;y \cdot i + \left(a + t\_1\right)\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+153}:\\
\;\;\;\;\left(a + \left(t + \left(x \cdot \log y + z\right)\right)\right) + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(t\_1 + \left(t + a\right)\right)\\
\end{array}
\end{array}
if (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c)) < -5.0000000000000003e177Initial program 99.6%
Taylor expanded in x around 0 89.9%
+-commutative89.9%
sub-neg89.9%
metadata-eval89.9%
+-commutative89.9%
fma-define89.9%
+-commutative89.9%
+-commutative89.9%
Applied egg-rr89.9%
Taylor expanded in t around 0 86.5%
Taylor expanded in z around 0 80.0%
if -5.0000000000000003e177 < (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c)) < 2e153Initial program 99.8%
Taylor expanded in b around inf 96.8%
*-commutative96.8%
Simplified96.8%
Taylor expanded in b around 0 92.7%
if 2e153 < (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c)) Initial program 99.8%
Taylor expanded in x around 0 95.4%
Taylor expanded in z around 0 94.7%
Final simplification91.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* x (log y)) z)))
(if (<= x -1.7e+63)
(+ (+ a (+ t t_1)) (* y i))
(if (<= x 1.05e+54)
(+ (* y i) (+ t (+ z (fma (log c) (+ b -0.5) a))))
(+ (* y i) (+ a 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)) + z;
double tmp;
if (x <= -1.7e+63) {
tmp = (a + (t + t_1)) + (y * i);
} else if (x <= 1.05e+54) {
tmp = (y * i) + (t + (z + fma(log(c), (b + -0.5), a)));
} else {
tmp = (y * i) + (a + t_1);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x * log(y)) + z) tmp = 0.0 if (x <= -1.7e+63) tmp = Float64(Float64(a + Float64(t + t_1)) + Float64(y * i)); elseif (x <= 1.05e+54) tmp = Float64(Float64(y * i) + Float64(t + Float64(z + fma(log(c), Float64(b + -0.5), a)))); else tmp = Float64(Float64(y * i) + Float64(a + t_1)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]}, If[LessEqual[x, -1.7e+63], N[(N[(a + N[(t + t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.05e+54], N[(N[(y * i), $MachinePrecision] + N[(t + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b + -0.5), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y + z\\
\mathbf{if}\;x \leq -1.7 \cdot 10^{+63}:\\
\;\;\;\;\left(a + \left(t + t\_1\right)\right) + y \cdot i\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{+54}:\\
\;\;\;\;y \cdot i + \left(t + \left(z + \mathsf{fma}\left(\log c, b + -0.5, a\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + t\_1\right)\\
\end{array}
\end{array}
if x < -1.6999999999999999e63Initial program 99.6%
Taylor expanded in b around inf 99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in b around 0 90.3%
if -1.6999999999999999e63 < x < 1.04999999999999993e54Initial program 99.8%
Taylor expanded in x around 0 98.7%
+-commutative98.7%
associate-+r+98.7%
sub-neg98.7%
metadata-eval98.7%
associate-+r+98.7%
associate-+l+98.7%
fma-define98.7%
+-commutative98.7%
Simplified98.7%
if 1.04999999999999993e54 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 90.3%
Taylor expanded in t around 0 73.0%
Final simplification93.0%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (+ a (+ t (+ (* x (log y)) z))) (* 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 + ((x * log(y)) + z))) + (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 + ((x * log(y)) + z))) + (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 + ((x * Math.log(y)) + z))) + (b * Math.log(c)));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + ((a + (t + ((x * math.log(y)) + z))) + (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(Float64(x * log(y)) + z))) + Float64(b * log(c)))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + ((a + (t + ((x * log(y)) + z))) + (b * log(c))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(N[(a + N[(t + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(\left(a + \left(t + \left(x \cdot \log y + z\right)\right)\right) + b \cdot \log c\right)
\end{array}
Initial program 99.8%
Taylor expanded in b around inf 97.5%
*-commutative97.5%
Simplified97.5%
Final simplification97.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y i) (* b (log c)))))
(if (<= a 2.4e-196)
(+ z (* y i))
(if (<= a 6.7e-115)
t_1
(if (<= a 1.55e-104)
(* z (+ 1.0 (* i (/ y z))))
(if (<= a 2.2e+30)
(+ (* x (log y)) (* y i))
(if (<= a 9.8e+67)
t_1
(+ (* y i) (* a (+ 1.0 (+ (/ t a) (/ z a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * i) + (b * log(c));
double tmp;
if (a <= 2.4e-196) {
tmp = z + (y * i);
} else if (a <= 6.7e-115) {
tmp = t_1;
} else if (a <= 1.55e-104) {
tmp = z * (1.0 + (i * (y / z)));
} else if (a <= 2.2e+30) {
tmp = (x * log(y)) + (y * i);
} else if (a <= 9.8e+67) {
tmp = t_1;
} else {
tmp = (y * i) + (a * (1.0 + ((t / a) + (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) :: t_1
real(8) :: tmp
t_1 = (y * i) + (b * log(c))
if (a <= 2.4d-196) then
tmp = z + (y * i)
else if (a <= 6.7d-115) then
tmp = t_1
else if (a <= 1.55d-104) then
tmp = z * (1.0d0 + (i * (y / z)))
else if (a <= 2.2d+30) then
tmp = (x * log(y)) + (y * i)
else if (a <= 9.8d+67) then
tmp = t_1
else
tmp = (y * i) + (a * (1.0d0 + ((t / a) + (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 t_1 = (y * i) + (b * Math.log(c));
double tmp;
if (a <= 2.4e-196) {
tmp = z + (y * i);
} else if (a <= 6.7e-115) {
tmp = t_1;
} else if (a <= 1.55e-104) {
tmp = z * (1.0 + (i * (y / z)));
} else if (a <= 2.2e+30) {
tmp = (x * Math.log(y)) + (y * i);
} else if (a <= 9.8e+67) {
tmp = t_1;
} else {
tmp = (y * i) + (a * (1.0 + ((t / a) + (z / a))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * i) + (b * math.log(c)) tmp = 0 if a <= 2.4e-196: tmp = z + (y * i) elif a <= 6.7e-115: tmp = t_1 elif a <= 1.55e-104: tmp = z * (1.0 + (i * (y / z))) elif a <= 2.2e+30: tmp = (x * math.log(y)) + (y * i) elif a <= 9.8e+67: tmp = t_1 else: tmp = (y * i) + (a * (1.0 + ((t / a) + (z / a)))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * i) + Float64(b * log(c))) tmp = 0.0 if (a <= 2.4e-196) tmp = Float64(z + Float64(y * i)); elseif (a <= 6.7e-115) tmp = t_1; elseif (a <= 1.55e-104) tmp = Float64(z * Float64(1.0 + Float64(i * Float64(y / z)))); elseif (a <= 2.2e+30) tmp = Float64(Float64(x * log(y)) + Float64(y * i)); elseif (a <= 9.8e+67) tmp = t_1; else tmp = Float64(Float64(y * i) + Float64(a * Float64(1.0 + Float64(Float64(t / a) + Float64(z / a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * i) + (b * log(c)); tmp = 0.0; if (a <= 2.4e-196) tmp = z + (y * i); elseif (a <= 6.7e-115) tmp = t_1; elseif (a <= 1.55e-104) tmp = z * (1.0 + (i * (y / z))); elseif (a <= 2.2e+30) tmp = (x * log(y)) + (y * i); elseif (a <= 9.8e+67) tmp = t_1; else tmp = (y * i) + (a * (1.0 + ((t / a) + (z / a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * i), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, 2.4e-196], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.7e-115], t$95$1, If[LessEqual[a, 1.55e-104], N[(z * N[(1.0 + N[(i * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.2e+30], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.8e+67], t$95$1, N[(N[(y * i), $MachinePrecision] + N[(a * N[(1.0 + N[(N[(t / a), $MachinePrecision] + N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot i + b \cdot \log c\\
\mathbf{if}\;a \leq 2.4 \cdot 10^{-196}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{elif}\;a \leq 6.7 \cdot 10^{-115}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.55 \cdot 10^{-104}:\\
\;\;\;\;z \cdot \left(1 + i \cdot \frac{y}{z}\right)\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{+30}:\\
\;\;\;\;x \cdot \log y + y \cdot i\\
\mathbf{elif}\;a \leq 9.8 \cdot 10^{+67}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + a \cdot \left(1 + \left(\frac{t}{a} + \frac{z}{a}\right)\right)\\
\end{array}
\end{array}
if a < 2.40000000000000021e-196Initial program 99.7%
Taylor expanded in z around inf 38.0%
if 2.40000000000000021e-196 < a < 6.7000000000000002e-115 or 2.2e30 < a < 9.7999999999999998e67Initial program 99.7%
Taylor expanded in x around 0 85.1%
+-commutative85.1%
sub-neg85.1%
metadata-eval85.1%
+-commutative85.1%
fma-define85.1%
+-commutative85.1%
+-commutative85.1%
Applied egg-rr85.1%
Taylor expanded in b around inf 54.6%
*-commutative54.6%
Simplified54.6%
if 6.7000000000000002e-115 < a < 1.54999999999999988e-104Initial program 100.0%
Taylor expanded in z around inf 1.7%
Taylor expanded in z around inf 1.7%
associate-/l*1.7%
Simplified1.7%
if 1.54999999999999988e-104 < a < 2.2e30Initial program 100.0%
Taylor expanded in x around inf 42.9%
if 9.7999999999999998e67 < a Initial program 99.9%
Taylor expanded in a around inf 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
associate-/l*99.7%
+-commutative99.7%
Simplified99.7%
Taylor expanded in z around inf 74.0%
Final simplification48.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y i) (+ a (* (- b 0.5) (log c))))))
(if (<= x -1.7e+63)
(+ (* y i) (* x (+ (log y) (/ a x))))
(if (<= x -7.1e-156)
t_1
(if (<= x -6e-261)
(* z (+ 1.0 (* i (/ y z))))
(if (<= x 2.7e+159) t_1 (+ (* y i) (* x (+ (log y) (/ z x))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * i) + (a + ((b - 0.5) * log(c)));
double tmp;
if (x <= -1.7e+63) {
tmp = (y * i) + (x * (log(y) + (a / x)));
} else if (x <= -7.1e-156) {
tmp = t_1;
} else if (x <= -6e-261) {
tmp = z * (1.0 + (i * (y / z)));
} else if (x <= 2.7e+159) {
tmp = t_1;
} else {
tmp = (y * i) + (x * (log(y) + (z / x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (y * i) + (a + ((b - 0.5d0) * log(c)))
if (x <= (-1.7d+63)) then
tmp = (y * i) + (x * (log(y) + (a / x)))
else if (x <= (-7.1d-156)) then
tmp = t_1
else if (x <= (-6d-261)) then
tmp = z * (1.0d0 + (i * (y / z)))
else if (x <= 2.7d+159) then
tmp = t_1
else
tmp = (y * i) + (x * (log(y) + (z / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * i) + (a + ((b - 0.5) * Math.log(c)));
double tmp;
if (x <= -1.7e+63) {
tmp = (y * i) + (x * (Math.log(y) + (a / x)));
} else if (x <= -7.1e-156) {
tmp = t_1;
} else if (x <= -6e-261) {
tmp = z * (1.0 + (i * (y / z)));
} else if (x <= 2.7e+159) {
tmp = t_1;
} else {
tmp = (y * i) + (x * (Math.log(y) + (z / x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * i) + (a + ((b - 0.5) * math.log(c))) tmp = 0 if x <= -1.7e+63: tmp = (y * i) + (x * (math.log(y) + (a / x))) elif x <= -7.1e-156: tmp = t_1 elif x <= -6e-261: tmp = z * (1.0 + (i * (y / z))) elif x <= 2.7e+159: tmp = t_1 else: tmp = (y * i) + (x * (math.log(y) + (z / x))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * i) + Float64(a + Float64(Float64(b - 0.5) * log(c)))) tmp = 0.0 if (x <= -1.7e+63) tmp = Float64(Float64(y * i) + Float64(x * Float64(log(y) + Float64(a / x)))); elseif (x <= -7.1e-156) tmp = t_1; elseif (x <= -6e-261) tmp = Float64(z * Float64(1.0 + Float64(i * Float64(y / z)))); elseif (x <= 2.7e+159) tmp = t_1; else tmp = Float64(Float64(y * i) + Float64(x * Float64(log(y) + Float64(z / x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * i) + (a + ((b - 0.5) * log(c))); tmp = 0.0; if (x <= -1.7e+63) tmp = (y * i) + (x * (log(y) + (a / x))); elseif (x <= -7.1e-156) tmp = t_1; elseif (x <= -6e-261) tmp = z * (1.0 + (i * (y / z))); elseif (x <= 2.7e+159) tmp = t_1; else tmp = (y * i) + (x * (log(y) + (z / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * i), $MachinePrecision] + N[(a + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.7e+63], N[(N[(y * i), $MachinePrecision] + N[(x * N[(N[Log[y], $MachinePrecision] + N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7.1e-156], t$95$1, If[LessEqual[x, -6e-261], N[(z * N[(1.0 + N[(i * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.7e+159], t$95$1, N[(N[(y * i), $MachinePrecision] + N[(x * N[(N[Log[y], $MachinePrecision] + N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot i + \left(a + \left(b - 0.5\right) \cdot \log c\right)\\
\mathbf{if}\;x \leq -1.7 \cdot 10^{+63}:\\
\;\;\;\;y \cdot i + x \cdot \left(\log y + \frac{a}{x}\right)\\
\mathbf{elif}\;x \leq -7.1 \cdot 10^{-156}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -6 \cdot 10^{-261}:\\
\;\;\;\;z \cdot \left(1 + i \cdot \frac{y}{z}\right)\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{+159}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + x \cdot \left(\log y + \frac{z}{x}\right)\\
\end{array}
\end{array}
if x < -1.6999999999999999e63Initial program 99.6%
Taylor expanded in x around inf 99.6%
sub-neg99.6%
metadata-eval99.6%
associate-/l*99.5%
+-commutative99.5%
Simplified99.5%
Taylor expanded in a around inf 74.9%
if -1.6999999999999999e63 < x < -7.1000000000000005e-156 or -6.0000000000000001e-261 < x < 2.70000000000000008e159Initial program 99.8%
Taylor expanded in x around 0 97.4%
+-commutative97.4%
sub-neg97.4%
metadata-eval97.4%
+-commutative97.4%
fma-define97.4%
+-commutative97.4%
+-commutative97.4%
Applied egg-rr97.4%
Taylor expanded in t around 0 82.8%
Taylor expanded in z around 0 68.9%
if -7.1000000000000005e-156 < x < -6.0000000000000001e-261Initial program 100.0%
Taylor expanded in z around inf 57.3%
Taylor expanded in z around inf 57.3%
associate-/l*57.4%
Simplified57.4%
if 2.70000000000000008e159 < x Initial program 99.8%
Taylor expanded in x around inf 99.8%
sub-neg99.8%
metadata-eval99.8%
associate-/l*99.8%
+-commutative99.8%
Simplified99.8%
Taylor expanded in z around inf 78.3%
Final simplification70.5%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= (- b 0.5) -1e+154) (not (<= (- b 0.5) 1e+148))) (+ (* y i) (+ a (* (- b 0.5) (log c)))) (+ (+ a (+ t (+ (* x (log y)) z))) (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((b - 0.5) <= -1e+154) || !((b - 0.5) <= 1e+148)) {
tmp = (y * i) + (a + ((b - 0.5) * log(c)));
} else {
tmp = (a + (t + ((x * log(y)) + z))) + (y * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (((b - 0.5d0) <= (-1d+154)) .or. (.not. ((b - 0.5d0) <= 1d+148))) then
tmp = (y * i) + (a + ((b - 0.5d0) * log(c)))
else
tmp = (a + (t + ((x * log(y)) + z))) + (y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((b - 0.5) <= -1e+154) || !((b - 0.5) <= 1e+148)) {
tmp = (y * i) + (a + ((b - 0.5) * Math.log(c)));
} else {
tmp = (a + (t + ((x * Math.log(y)) + z))) + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if ((b - 0.5) <= -1e+154) or not ((b - 0.5) <= 1e+148): tmp = (y * i) + (a + ((b - 0.5) * math.log(c))) else: tmp = (a + (t + ((x * math.log(y)) + z))) + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((Float64(b - 0.5) <= -1e+154) || !(Float64(b - 0.5) <= 1e+148)) tmp = Float64(Float64(y * i) + Float64(a + Float64(Float64(b - 0.5) * log(c)))); else tmp = Float64(Float64(a + Float64(t + Float64(Float64(x * log(y)) + z))) + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (((b - 0.5) <= -1e+154) || ~(((b - 0.5) <= 1e+148))) tmp = (y * i) + (a + ((b - 0.5) * log(c))); else tmp = (a + (t + ((x * log(y)) + z))) + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[N[(b - 0.5), $MachinePrecision], -1e+154], N[Not[LessEqual[N[(b - 0.5), $MachinePrecision], 1e+148]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(a + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a + N[(t + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - 0.5 \leq -1 \cdot 10^{+154} \lor \neg \left(b - 0.5 \leq 10^{+148}\right):\\
\;\;\;\;y \cdot i + \left(a + \left(b - 0.5\right) \cdot \log c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a + \left(t + \left(x \cdot \log y + z\right)\right)\right) + y \cdot i\\
\end{array}
\end{array}
if (-.f64 b #s(literal 1/2 binary64)) < -1.00000000000000004e154 or 1e148 < (-.f64 b #s(literal 1/2 binary64)) Initial program 99.7%
Taylor expanded in x around 0 92.7%
+-commutative92.7%
sub-neg92.7%
metadata-eval92.7%
+-commutative92.7%
fma-define92.7%
+-commutative92.7%
+-commutative92.7%
Applied egg-rr92.7%
Taylor expanded in t around 0 87.6%
Taylor expanded in z around 0 84.3%
if -1.00000000000000004e154 < (-.f64 b #s(literal 1/2 binary64)) < 1e148Initial program 99.8%
Taylor expanded in b around inf 96.8%
*-commutative96.8%
Simplified96.8%
Taylor expanded in b around 0 92.6%
Final simplification90.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y i) (* x (+ (log y) (/ a x))))))
(if (<= x -2e+88)
t_1
(if (<= x 2.55e-182)
(+ (* y i) (* a (+ 1.0 (+ (/ t a) (/ z a)))))
(if (<= x 0.78) (+ (* y i) (* b (log c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * i) + (x * (log(y) + (a / x)));
double tmp;
if (x <= -2e+88) {
tmp = t_1;
} else if (x <= 2.55e-182) {
tmp = (y * i) + (a * (1.0 + ((t / a) + (z / a))));
} else if (x <= 0.78) {
tmp = (y * i) + (b * log(c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (y * i) + (x * (log(y) + (a / x)))
if (x <= (-2d+88)) then
tmp = t_1
else if (x <= 2.55d-182) then
tmp = (y * i) + (a * (1.0d0 + ((t / a) + (z / a))))
else if (x <= 0.78d0) then
tmp = (y * i) + (b * log(c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * i) + (x * (Math.log(y) + (a / x)));
double tmp;
if (x <= -2e+88) {
tmp = t_1;
} else if (x <= 2.55e-182) {
tmp = (y * i) + (a * (1.0 + ((t / a) + (z / a))));
} else if (x <= 0.78) {
tmp = (y * i) + (b * Math.log(c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * i) + (x * (math.log(y) + (a / x))) tmp = 0 if x <= -2e+88: tmp = t_1 elif x <= 2.55e-182: tmp = (y * i) + (a * (1.0 + ((t / a) + (z / a)))) elif x <= 0.78: tmp = (y * i) + (b * math.log(c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * i) + Float64(x * Float64(log(y) + Float64(a / x)))) tmp = 0.0 if (x <= -2e+88) tmp = t_1; elseif (x <= 2.55e-182) tmp = Float64(Float64(y * i) + Float64(a * Float64(1.0 + Float64(Float64(t / a) + Float64(z / a))))); elseif (x <= 0.78) tmp = Float64(Float64(y * i) + Float64(b * log(c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * i) + (x * (log(y) + (a / x))); tmp = 0.0; if (x <= -2e+88) tmp = t_1; elseif (x <= 2.55e-182) tmp = (y * i) + (a * (1.0 + ((t / a) + (z / a)))); elseif (x <= 0.78) tmp = (y * i) + (b * log(c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * i), $MachinePrecision] + N[(x * N[(N[Log[y], $MachinePrecision] + N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2e+88], t$95$1, If[LessEqual[x, 2.55e-182], N[(N[(y * i), $MachinePrecision] + N[(a * N[(1.0 + N[(N[(t / a), $MachinePrecision] + N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.78], N[(N[(y * i), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot i + x \cdot \left(\log y + \frac{a}{x}\right)\\
\mathbf{if}\;x \leq -2 \cdot 10^{+88}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 2.55 \cdot 10^{-182}:\\
\;\;\;\;y \cdot i + a \cdot \left(1 + \left(\frac{t}{a} + \frac{z}{a}\right)\right)\\
\mathbf{elif}\;x \leq 0.78:\\
\;\;\;\;y \cdot i + b \cdot \log c\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.99999999999999992e88 or 0.78000000000000003 < x Initial program 99.7%
Taylor expanded in x around inf 99.6%
sub-neg99.6%
metadata-eval99.6%
associate-/l*99.6%
+-commutative99.6%
Simplified99.6%
Taylor expanded in a around inf 65.0%
if -1.99999999999999992e88 < x < 2.55000000000000009e-182Initial program 99.9%
Taylor expanded in a around inf 81.9%
associate-/l*81.9%
sub-neg81.9%
metadata-eval81.9%
associate-/l*81.9%
+-commutative81.9%
Simplified81.9%
Taylor expanded in z around inf 65.2%
if 2.55000000000000009e-182 < x < 0.78000000000000003Initial program 99.9%
Taylor expanded in x around 0 99.9%
+-commutative99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
+-commutative99.9%
Applied egg-rr99.9%
Taylor expanded in b around inf 61.0%
*-commutative61.0%
Simplified61.0%
Final simplification64.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= (- b 0.5) -1e+154) (not (<= (- b 0.5) 1e+148))) (+ (* y i) (+ a (* (- b 0.5) (log c)))) (+ (* y i) (+ a (+ (* x (log y)) z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((b - 0.5) <= -1e+154) || !((b - 0.5) <= 1e+148)) {
tmp = (y * i) + (a + ((b - 0.5) * log(c)));
} else {
tmp = (y * i) + (a + ((x * log(y)) + z));
}
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) <= (-1d+154)) .or. (.not. ((b - 0.5d0) <= 1d+148))) then
tmp = (y * i) + (a + ((b - 0.5d0) * log(c)))
else
tmp = (y * i) + (a + ((x * log(y)) + z))
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) <= -1e+154) || !((b - 0.5) <= 1e+148)) {
tmp = (y * i) + (a + ((b - 0.5) * Math.log(c)));
} else {
tmp = (y * i) + (a + ((x * Math.log(y)) + z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if ((b - 0.5) <= -1e+154) or not ((b - 0.5) <= 1e+148): tmp = (y * i) + (a + ((b - 0.5) * math.log(c))) else: tmp = (y * i) + (a + ((x * math.log(y)) + z)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((Float64(b - 0.5) <= -1e+154) || !(Float64(b - 0.5) <= 1e+148)) tmp = Float64(Float64(y * i) + Float64(a + Float64(Float64(b - 0.5) * log(c)))); else tmp = Float64(Float64(y * i) + Float64(a + Float64(Float64(x * log(y)) + z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (((b - 0.5) <= -1e+154) || ~(((b - 0.5) <= 1e+148))) tmp = (y * i) + (a + ((b - 0.5) * log(c))); else tmp = (y * i) + (a + ((x * log(y)) + z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[N[(b - 0.5), $MachinePrecision], -1e+154], N[Not[LessEqual[N[(b - 0.5), $MachinePrecision], 1e+148]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(a + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - 0.5 \leq -1 \cdot 10^{+154} \lor \neg \left(b - 0.5 \leq 10^{+148}\right):\\
\;\;\;\;y \cdot i + \left(a + \left(b - 0.5\right) \cdot \log c\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \left(x \cdot \log y + z\right)\right)\\
\end{array}
\end{array}
if (-.f64 b #s(literal 1/2 binary64)) < -1.00000000000000004e154 or 1e148 < (-.f64 b #s(literal 1/2 binary64)) Initial program 99.7%
Taylor expanded in x around 0 92.7%
+-commutative92.7%
sub-neg92.7%
metadata-eval92.7%
+-commutative92.7%
fma-define92.7%
+-commutative92.7%
+-commutative92.7%
Applied egg-rr92.7%
Taylor expanded in t around 0 87.6%
Taylor expanded in z around 0 84.3%
if -1.00000000000000004e154 < (-.f64 b #s(literal 1/2 binary64)) < 1e148Initial program 99.8%
Taylor expanded in b around inf 96.8%
*-commutative96.8%
Simplified96.8%
Taylor expanded in b around 0 92.6%
Taylor expanded in t around 0 77.0%
Final simplification78.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* x (log y)) z)))
(if (<= x -1.12e+63)
(+ (+ a (+ t t_1)) (* y i))
(if (<= x 2.7e+53)
(+ (* y i) (+ (* (- b 0.5) (log c)) (+ a (+ z t))))
(+ (* y i) (+ a 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)) + z;
double tmp;
if (x <= -1.12e+63) {
tmp = (a + (t + t_1)) + (y * i);
} else if (x <= 2.7e+53) {
tmp = (y * i) + (((b - 0.5) * log(c)) + (a + (z + t)));
} else {
tmp = (y * i) + (a + t_1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (x * log(y)) + z
if (x <= (-1.12d+63)) then
tmp = (a + (t + t_1)) + (y * i)
else if (x <= 2.7d+53) then
tmp = (y * i) + (((b - 0.5d0) * log(c)) + (a + (z + t)))
else
tmp = (y * i) + (a + t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x * Math.log(y)) + z;
double tmp;
if (x <= -1.12e+63) {
tmp = (a + (t + t_1)) + (y * i);
} else if (x <= 2.7e+53) {
tmp = (y * i) + (((b - 0.5) * Math.log(c)) + (a + (z + t)));
} else {
tmp = (y * i) + (a + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x * math.log(y)) + z tmp = 0 if x <= -1.12e+63: tmp = (a + (t + t_1)) + (y * i) elif x <= 2.7e+53: tmp = (y * i) + (((b - 0.5) * math.log(c)) + (a + (z + t))) else: tmp = (y * i) + (a + t_1) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x * log(y)) + z) tmp = 0.0 if (x <= -1.12e+63) tmp = Float64(Float64(a + Float64(t + t_1)) + Float64(y * i)); elseif (x <= 2.7e+53) tmp = Float64(Float64(y * i) + Float64(Float64(Float64(b - 0.5) * log(c)) + Float64(a + Float64(z + t)))); else tmp = Float64(Float64(y * i) + Float64(a + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x * log(y)) + z; tmp = 0.0; if (x <= -1.12e+63) tmp = (a + (t + t_1)) + (y * i); elseif (x <= 2.7e+53) tmp = (y * i) + (((b - 0.5) * log(c)) + (a + (z + t))); else tmp = (y * i) + (a + t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]}, If[LessEqual[x, -1.12e+63], N[(N[(a + N[(t + t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.7e+53], N[(N[(y * i), $MachinePrecision] + N[(N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y + z\\
\mathbf{if}\;x \leq -1.12 \cdot 10^{+63}:\\
\;\;\;\;\left(a + \left(t + t\_1\right)\right) + y \cdot i\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{+53}:\\
\;\;\;\;y \cdot i + \left(\left(b - 0.5\right) \cdot \log c + \left(a + \left(z + t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + t\_1\right)\\
\end{array}
\end{array}
if x < -1.12000000000000006e63Initial program 99.6%
Taylor expanded in b around inf 99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in b around 0 90.3%
if -1.12000000000000006e63 < x < 2.70000000000000019e53Initial program 99.8%
Taylor expanded in x around 0 98.7%
if 2.70000000000000019e53 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 90.3%
Taylor expanded in t around 0 73.0%
Final simplification93.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* x (log y)) z)))
(if (<= x -1.65e+63)
(+ (+ a (+ t t_1)) (* y i))
(if (<= x 1.15e+54)
(+ (* y i) (+ (* (- b 0.5) (log c)) (+ z a)))
(+ (* y i) (+ a 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)) + z;
double tmp;
if (x <= -1.65e+63) {
tmp = (a + (t + t_1)) + (y * i);
} else if (x <= 1.15e+54) {
tmp = (y * i) + (((b - 0.5) * log(c)) + (z + a));
} else {
tmp = (y * i) + (a + t_1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (x * log(y)) + z
if (x <= (-1.65d+63)) then
tmp = (a + (t + t_1)) + (y * i)
else if (x <= 1.15d+54) then
tmp = (y * i) + (((b - 0.5d0) * log(c)) + (z + a))
else
tmp = (y * i) + (a + t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x * Math.log(y)) + z;
double tmp;
if (x <= -1.65e+63) {
tmp = (a + (t + t_1)) + (y * i);
} else if (x <= 1.15e+54) {
tmp = (y * i) + (((b - 0.5) * Math.log(c)) + (z + a));
} else {
tmp = (y * i) + (a + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x * math.log(y)) + z tmp = 0 if x <= -1.65e+63: tmp = (a + (t + t_1)) + (y * i) elif x <= 1.15e+54: tmp = (y * i) + (((b - 0.5) * math.log(c)) + (z + a)) else: tmp = (y * i) + (a + t_1) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x * log(y)) + z) tmp = 0.0 if (x <= -1.65e+63) tmp = Float64(Float64(a + Float64(t + t_1)) + Float64(y * i)); elseif (x <= 1.15e+54) tmp = Float64(Float64(y * i) + Float64(Float64(Float64(b - 0.5) * log(c)) + Float64(z + a))); else tmp = Float64(Float64(y * i) + Float64(a + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x * log(y)) + z; tmp = 0.0; if (x <= -1.65e+63) tmp = (a + (t + t_1)) + (y * i); elseif (x <= 1.15e+54) tmp = (y * i) + (((b - 0.5) * log(c)) + (z + a)); else tmp = (y * i) + (a + t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]}, If[LessEqual[x, -1.65e+63], N[(N[(a + N[(t + t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e+54], N[(N[(y * i), $MachinePrecision] + N[(N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision] + N[(z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y + z\\
\mathbf{if}\;x \leq -1.65 \cdot 10^{+63}:\\
\;\;\;\;\left(a + \left(t + t\_1\right)\right) + y \cdot i\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{+54}:\\
\;\;\;\;y \cdot i + \left(\left(b - 0.5\right) \cdot \log c + \left(z + a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + t\_1\right)\\
\end{array}
\end{array}
if x < -1.6500000000000001e63Initial program 99.6%
Taylor expanded in b around inf 99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in b around 0 90.3%
if -1.6500000000000001e63 < x < 1.14999999999999997e54Initial program 99.8%
Taylor expanded in x around 0 98.7%
Taylor expanded in t around 0 86.3%
if 1.14999999999999997e54 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 90.3%
Taylor expanded in t around 0 73.0%
Final simplification85.1%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= a 1.82e-152)
(+ z (* y i))
(if (<= a 1.08e-26)
(+ (* x (log y)) (* y i))
(+ (* y i) (* a (+ 1.0 (+ (/ t a) (/ z a))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 1.82e-152) {
tmp = z + (y * i);
} else if (a <= 1.08e-26) {
tmp = (x * log(y)) + (y * i);
} else {
tmp = (y * i) + (a * (1.0 + ((t / a) + (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 (a <= 1.82d-152) then
tmp = z + (y * i)
else if (a <= 1.08d-26) then
tmp = (x * log(y)) + (y * i)
else
tmp = (y * i) + (a * (1.0d0 + ((t / a) + (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 (a <= 1.82e-152) {
tmp = z + (y * i);
} else if (a <= 1.08e-26) {
tmp = (x * Math.log(y)) + (y * i);
} else {
tmp = (y * i) + (a * (1.0 + ((t / a) + (z / a))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 1.82e-152: tmp = z + (y * i) elif a <= 1.08e-26: tmp = (x * math.log(y)) + (y * i) else: tmp = (y * i) + (a * (1.0 + ((t / a) + (z / a)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 1.82e-152) tmp = Float64(z + Float64(y * i)); elseif (a <= 1.08e-26) tmp = Float64(Float64(x * log(y)) + Float64(y * i)); else tmp = Float64(Float64(y * i) + Float64(a * Float64(1.0 + Float64(Float64(t / a) + Float64(z / a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (a <= 1.82e-152) tmp = z + (y * i); elseif (a <= 1.08e-26) tmp = (x * log(y)) + (y * i); else tmp = (y * i) + (a * (1.0 + ((t / a) + (z / a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 1.82e-152], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.08e-26], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a * N[(1.0 + N[(N[(t / a), $MachinePrecision] + N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.82 \cdot 10^{-152}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{elif}\;a \leq 1.08 \cdot 10^{-26}:\\
\;\;\;\;x \cdot \log y + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + a \cdot \left(1 + \left(\frac{t}{a} + \frac{z}{a}\right)\right)\\
\end{array}
\end{array}
if a < 1.82000000000000009e-152Initial program 99.7%
Taylor expanded in z around inf 38.9%
if 1.82000000000000009e-152 < a < 1.07999999999999996e-26Initial program 99.9%
Taylor expanded in x around inf 49.7%
if 1.07999999999999996e-26 < a Initial program 99.9%
Taylor expanded in a around inf 99.8%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
associate-/l*99.7%
+-commutative99.7%
Simplified99.7%
Taylor expanded in z around inf 68.5%
Final simplification48.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 3.4e-9) (+ z (* y i)) (+ (* y i) (* a (+ 1.0 (+ (/ t a) (/ z a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 3.4e-9) {
tmp = z + (y * i);
} else {
tmp = (y * i) + (a * (1.0 + ((t / a) + (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 (a <= 3.4d-9) then
tmp = z + (y * i)
else
tmp = (y * i) + (a * (1.0d0 + ((t / a) + (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 (a <= 3.4e-9) {
tmp = z + (y * i);
} else {
tmp = (y * i) + (a * (1.0 + ((t / a) + (z / a))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 3.4e-9: tmp = z + (y * i) else: tmp = (y * i) + (a * (1.0 + ((t / a) + (z / a)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 3.4e-9) tmp = Float64(z + Float64(y * i)); else tmp = Float64(Float64(y * i) + Float64(a * Float64(1.0 + Float64(Float64(t / a) + Float64(z / a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (a <= 3.4e-9) tmp = z + (y * i); else tmp = (y * i) + (a * (1.0 + ((t / a) + (z / a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 3.4e-9], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a * N[(1.0 + N[(N[(t / a), $MachinePrecision] + N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 3.4 \cdot 10^{-9}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + a \cdot \left(1 + \left(\frac{t}{a} + \frac{z}{a}\right)\right)\\
\end{array}
\end{array}
if a < 3.3999999999999998e-9Initial program 99.8%
Taylor expanded in z around inf 38.3%
if 3.3999999999999998e-9 < a Initial program 99.9%
Taylor expanded in a around inf 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
associate-/l*99.7%
+-commutative99.7%
Simplified99.7%
Taylor expanded in z around inf 69.0%
Final simplification46.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 1.25e+96) (+ 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 <= 1.25e+96) {
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 <= 1.25d+96) 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 <= 1.25e+96) {
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 <= 1.25e+96: 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 <= 1.25e+96) 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 <= 1.25e+96) 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, 1.25e+96], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.25 \cdot 10^{+96}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if a < 1.2500000000000001e96Initial program 99.8%
Taylor expanded in z around inf 37.9%
if 1.2500000000000001e96 < a Initial program 99.9%
Taylor expanded in a around inf 52.5%
Final simplification40.9%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 6.2e+125) (* y i) a))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 6.2e+125) {
tmp = y * i;
} else {
tmp = a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (a <= 6.2d+125) then
tmp = y * i
else
tmp = a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 6.2e+125) {
tmp = y * i;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 6.2e+125: tmp = y * i else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 6.2e+125) tmp = Float64(y * i); else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (a <= 6.2e+125) tmp = y * i; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 6.2e+125], N[(y * i), $MachinePrecision], a]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 6.2 \cdot 10^{+125}:\\
\;\;\;\;y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < 6.2e125Initial 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 y around inf 25.0%
*-commutative25.0%
Simplified25.0%
if 6.2e125 < a Initial program 99.9%
Taylor expanded in a around inf 55.0%
Taylor expanded in a around inf 55.0%
+-commutative55.0%
associate-/l*55.0%
fma-define55.0%
Simplified55.0%
Taylor expanded in i around 0 48.2%
Final simplification28.9%
(FPCore (x y z t a b c i) :precision binary64 (+ a (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = a + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a + (y * i);
}
def code(x, y, z, t, a, b, c, i): return a + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(a + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = a + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a + y \cdot i
\end{array}
Initial program 99.8%
Taylor expanded in a around inf 37.0%
Final simplification37.0%
(FPCore (x y z t a b c i) :precision binary64 t)
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return t;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = t
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return t;
}
def code(x, y, z, t, a, b, c, i): return t
function code(x, y, z, t, a, b, c, i) return t end
function tmp = code(x, y, z, t, a, b, c, i) tmp = t; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 99.8%
Taylor expanded in x around 0 82.5%
Taylor expanded in t around inf 60.0%
Taylor expanded in t around inf 15.1%
Final simplification15.1%
(FPCore (x y z t a b c i) :precision binary64 a)
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = a
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a;
}
def code(x, y, z, t, a, b, c, i): return a
function code(x, y, z, t, a, b, c, i) return a end
function tmp = code(x, y, z, t, a, b, c, i) tmp = a; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := a
\begin{array}{l}
\\
a
\end{array}
Initial program 99.8%
Taylor expanded in a around inf 37.0%
Taylor expanded in a around inf 33.6%
+-commutative33.6%
associate-/l*32.8%
fma-define32.8%
Simplified32.8%
Taylor expanded in i around 0 16.8%
Final simplification16.8%
herbie shell --seed 2024074
(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)))