
(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 16 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 (+ (+ (+ (+ t (+ (* x (log y)) z)) 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 (((t + ((x * log(y)) + z)) + 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 = (((t + ((x * log(y)) + z)) + 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 (((t + ((x * Math.log(y)) + z)) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((t + ((x * math.log(y)) + z)) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(t + Float64(Float64(x * log(y)) + z)) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((t + ((x * log(y)) + z)) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(t + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $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(t + \left(x \cdot \log y + z\right)\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
Initial program 99.9%
Final simplification99.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (- b 0.5) (log c))))
(if (or (<= x -9e+162) (not (<= x 1.18e+185)))
(+ (* y i) (+ z (+ (* x (log y)) t_1)))
(+ (* y i) (+ t_1 (+ a (+ z t)))))))
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 ((x <= -9e+162) || !(x <= 1.18e+185)) {
tmp = (y * i) + (z + ((x * log(y)) + t_1));
} else {
tmp = (y * i) + (t_1 + (a + (z + t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (b - 0.5d0) * log(c)
if ((x <= (-9d+162)) .or. (.not. (x <= 1.18d+185))) then
tmp = (y * i) + (z + ((x * log(y)) + t_1))
else
tmp = (y * i) + (t_1 + (a + (z + t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (b - 0.5) * Math.log(c);
double tmp;
if ((x <= -9e+162) || !(x <= 1.18e+185)) {
tmp = (y * i) + (z + ((x * Math.log(y)) + t_1));
} else {
tmp = (y * i) + (t_1 + (a + (z + t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (b - 0.5) * math.log(c) tmp = 0 if (x <= -9e+162) or not (x <= 1.18e+185): tmp = (y * i) + (z + ((x * math.log(y)) + t_1)) else: tmp = (y * i) + (t_1 + (a + (z + t))) 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 ((x <= -9e+162) || !(x <= 1.18e+185)) tmp = Float64(Float64(y * i) + Float64(z + Float64(Float64(x * log(y)) + t_1))); else tmp = Float64(Float64(y * i) + Float64(t_1 + Float64(a + Float64(z + t)))); 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 ((x <= -9e+162) || ~((x <= 1.18e+185))) tmp = (y * i) + (z + ((x * log(y)) + t_1)); else tmp = (y * i) + (t_1 + (a + (z + t))); 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[Or[LessEqual[x, -9e+162], N[Not[LessEqual[x, 1.18e+185]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(z + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(t$95$1 + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - 0.5\right) \cdot \log c\\
\mathbf{if}\;x \leq -9 \cdot 10^{+162} \lor \neg \left(x \leq 1.18 \cdot 10^{+185}\right):\\
\;\;\;\;y \cdot i + \left(z + \left(x \cdot \log y + t\_1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(t\_1 + \left(a + \left(z + t\right)\right)\right)\\
\end{array}
\end{array}
if x < -8.99999999999999944e162 or 1.18e185 < x Initial program 99.7%
Taylor expanded in t around 0 96.3%
Taylor expanded in a around 0 89.2%
if -8.99999999999999944e162 < x < 1.18e185Initial program 99.9%
Taylor expanded in x around 0 97.9%
Final simplification96.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (- b 0.5) (log c))))
(if (<= z -1.95e+124)
(+ (* y i) (+ t_1 (+ a (+ z t))))
(+ (* y i) (+ t_1 (+ (* x (log y)) 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 (z <= -1.95e+124) {
tmp = (y * i) + (t_1 + (a + (z + t)));
} else {
tmp = (y * i) + (t_1 + ((x * log(y)) + 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 (z <= (-1.95d+124)) then
tmp = (y * i) + (t_1 + (a + (z + t)))
else
tmp = (y * i) + (t_1 + ((x * log(y)) + 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 (z <= -1.95e+124) {
tmp = (y * i) + (t_1 + (a + (z + t)));
} else {
tmp = (y * i) + (t_1 + ((x * Math.log(y)) + a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (b - 0.5) * math.log(c) tmp = 0 if z <= -1.95e+124: tmp = (y * i) + (t_1 + (a + (z + t))) else: tmp = (y * i) + (t_1 + ((x * math.log(y)) + 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 (z <= -1.95e+124) tmp = Float64(Float64(y * i) + Float64(t_1 + Float64(a + Float64(z + t)))); else tmp = Float64(Float64(y * i) + Float64(t_1 + Float64(Float64(x * log(y)) + 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 (z <= -1.95e+124) tmp = (y * i) + (t_1 + (a + (z + t))); else tmp = (y * i) + (t_1 + ((x * log(y)) + 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[z, -1.95e+124], N[(N[(y * i), $MachinePrecision] + N[(t$95$1 + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(t$95$1 + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - 0.5\right) \cdot \log c\\
\mathbf{if}\;z \leq -1.95 \cdot 10^{+124}:\\
\;\;\;\;y \cdot i + \left(t\_1 + \left(a + \left(z + t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(t\_1 + \left(x \cdot \log y + a\right)\right)\\
\end{array}
\end{array}
if z < -1.95e124Initial program 99.9%
Taylor expanded in x around 0 89.2%
if -1.95e124 < z Initial program 99.8%
Taylor expanded in x around inf 79.9%
Final simplification81.4%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (* (- b 0.5) (log c)) (+ a (+ (* x (log y)) z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + (((b - 0.5) * log(c)) + (a + ((x * log(y)) + z)));
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (y * i) + (((b - 0.5d0) * log(c)) + (a + ((x * log(y)) + z)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + (((b - 0.5) * Math.log(c)) + (a + ((x * Math.log(y)) + z)));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + (((b - 0.5) * math.log(c)) + (a + ((x * math.log(y)) + z)))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(Float64(Float64(b - 0.5) * log(c)) + Float64(a + Float64(Float64(x * log(y)) + z)))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + (((b - 0.5) * log(c)) + (a + ((x * log(y)) + z))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision] + N[(a + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(\left(b - 0.5\right) \cdot \log c + \left(a + \left(x \cdot \log y + z\right)\right)\right)
\end{array}
Initial program 99.9%
Taylor expanded in t around 0 87.9%
Final simplification87.9%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -2.35e+196) (not (<= x 3.25e+185))) (+ (* x (log y)) (* y i)) (+ (* y i) (+ (* (- b 0.5) (log c)) (+ a (+ z t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -2.35e+196) || !(x <= 3.25e+185)) {
tmp = (x * log(y)) + (y * i);
} else {
tmp = (y * i) + (((b - 0.5) * log(c)) + (a + (z + t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((x <= (-2.35d+196)) .or. (.not. (x <= 3.25d+185))) then
tmp = (x * log(y)) + (y * i)
else
tmp = (y * i) + (((b - 0.5d0) * log(c)) + (a + (z + t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -2.35e+196) || !(x <= 3.25e+185)) {
tmp = (x * Math.log(y)) + (y * i);
} else {
tmp = (y * i) + (((b - 0.5) * Math.log(c)) + (a + (z + t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -2.35e+196) or not (x <= 3.25e+185): tmp = (x * math.log(y)) + (y * i) else: tmp = (y * i) + (((b - 0.5) * math.log(c)) + (a + (z + t))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -2.35e+196) || !(x <= 3.25e+185)) tmp = Float64(Float64(x * log(y)) + Float64(y * i)); else tmp = Float64(Float64(y * i) + Float64(Float64(Float64(b - 0.5) * log(c)) + Float64(a + Float64(z + t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -2.35e+196) || ~((x <= 3.25e+185))) tmp = (x * log(y)) + (y * i); else tmp = (y * i) + (((b - 0.5) * log(c)) + (a + (z + t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -2.35e+196], N[Not[LessEqual[x, 3.25e+185]], $MachinePrecision]], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.35 \cdot 10^{+196} \lor \neg \left(x \leq 3.25 \cdot 10^{+185}\right):\\
\;\;\;\;x \cdot \log y + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(\left(b - 0.5\right) \cdot \log c + \left(a + \left(z + t\right)\right)\right)\\
\end{array}
\end{array}
if x < -2.3500000000000001e196 or 3.2500000000000001e185 < x Initial program 99.6%
Taylor expanded in t around 0 95.8%
Taylor expanded in x around inf 80.0%
if -2.3500000000000001e196 < x < 3.2500000000000001e185Initial program 99.9%
Taylor expanded in x around 0 96.7%
Final simplification93.6%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -2.1e+196) (not (<= x 4e+185))) (+ (* x (log y)) (* y i)) (+ (* y i) (+ (* (- b 0.5) (log c)) (+ z a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -2.1e+196) || !(x <= 4e+185)) {
tmp = (x * log(y)) + (y * i);
} else {
tmp = (y * i) + (((b - 0.5) * log(c)) + (z + a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((x <= (-2.1d+196)) .or. (.not. (x <= 4d+185))) then
tmp = (x * log(y)) + (y * i)
else
tmp = (y * i) + (((b - 0.5d0) * log(c)) + (z + a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -2.1e+196) || !(x <= 4e+185)) {
tmp = (x * Math.log(y)) + (y * i);
} else {
tmp = (y * i) + (((b - 0.5) * Math.log(c)) + (z + a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -2.1e+196) or not (x <= 4e+185): tmp = (x * math.log(y)) + (y * i) else: tmp = (y * i) + (((b - 0.5) * math.log(c)) + (z + a)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -2.1e+196) || !(x <= 4e+185)) tmp = Float64(Float64(x * log(y)) + Float64(y * i)); else tmp = Float64(Float64(y * i) + Float64(Float64(Float64(b - 0.5) * log(c)) + Float64(z + a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -2.1e+196) || ~((x <= 4e+185))) tmp = (x * log(y)) + (y * i); else tmp = (y * i) + (((b - 0.5) * log(c)) + (z + a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -2.1e+196], N[Not[LessEqual[x, 4e+185]], $MachinePrecision]], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision] + N[(z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.1 \cdot 10^{+196} \lor \neg \left(x \leq 4 \cdot 10^{+185}\right):\\
\;\;\;\;x \cdot \log y + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(\left(b - 0.5\right) \cdot \log c + \left(z + a\right)\right)\\
\end{array}
\end{array}
if x < -2.10000000000000015e196 or 3.9999999999999999e185 < x Initial program 99.6%
Taylor expanded in t around 0 95.8%
Taylor expanded in x around inf 80.0%
if -2.10000000000000015e196 < x < 3.9999999999999999e185Initial program 99.9%
Taylor expanded in z around inf 82.9%
Final simplification82.3%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -2.3e+198) (not (<= x 6.6e+184))) (+ (* x (log y)) (* y i)) (+ a (+ t (+ z (* (- b 0.5) (log c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -2.3e+198) || !(x <= 6.6e+184)) {
tmp = (x * log(y)) + (y * i);
} else {
tmp = a + (t + (z + ((b - 0.5) * log(c))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((x <= (-2.3d+198)) .or. (.not. (x <= 6.6d+184))) then
tmp = (x * log(y)) + (y * i)
else
tmp = a + (t + (z + ((b - 0.5d0) * log(c))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -2.3e+198) || !(x <= 6.6e+184)) {
tmp = (x * Math.log(y)) + (y * i);
} else {
tmp = a + (t + (z + ((b - 0.5) * Math.log(c))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -2.3e+198) or not (x <= 6.6e+184): tmp = (x * math.log(y)) + (y * i) else: tmp = a + (t + (z + ((b - 0.5) * math.log(c)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -2.3e+198) || !(x <= 6.6e+184)) tmp = Float64(Float64(x * log(y)) + Float64(y * i)); else tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(b - 0.5) * log(c))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -2.3e+198) || ~((x <= 6.6e+184))) tmp = (x * log(y)) + (y * i); else tmp = a + (t + (z + ((b - 0.5) * log(c)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -2.3e+198], N[Not[LessEqual[x, 6.6e+184]], $MachinePrecision]], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(z + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.3 \cdot 10^{+198} \lor \neg \left(x \leq 6.6 \cdot 10^{+184}\right):\\
\;\;\;\;x \cdot \log y + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + \left(b - 0.5\right) \cdot \log c\right)\right)\\
\end{array}
\end{array}
if x < -2.3000000000000001e198 or 6.5999999999999996e184 < x Initial program 99.6%
Taylor expanded in t around 0 95.8%
Taylor expanded in x around inf 80.0%
if -2.3000000000000001e198 < x < 6.5999999999999996e184Initial program 99.9%
Taylor expanded in x around 0 96.7%
Taylor expanded in y around inf 65.8%
sub-neg65.8%
metadata-eval65.8%
associate-/l*65.8%
Simplified65.8%
Taylor expanded in y around 0 77.2%
Final simplification77.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -3.1e+99) (+ (* y i) (* z (+ 1.0 (* b (/ (log c) z))))) (+ (* y i) (+ (* (- b 0.5) (log c)) (+ t a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -3.1e+99) {
tmp = (y * i) + (z * (1.0 + (b * (log(c) / z))));
} else {
tmp = (y * i) + (((b - 0.5) * log(c)) + (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) :: tmp
if (z <= (-3.1d+99)) then
tmp = (y * i) + (z * (1.0d0 + (b * (log(c) / z))))
else
tmp = (y * i) + (((b - 0.5d0) * log(c)) + (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 tmp;
if (z <= -3.1e+99) {
tmp = (y * i) + (z * (1.0 + (b * (Math.log(c) / z))));
} else {
tmp = (y * i) + (((b - 0.5) * Math.log(c)) + (t + a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -3.1e+99: tmp = (y * i) + (z * (1.0 + (b * (math.log(c) / z)))) else: tmp = (y * i) + (((b - 0.5) * math.log(c)) + (t + a)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -3.1e+99) tmp = Float64(Float64(y * i) + Float64(z * Float64(1.0 + Float64(b * Float64(log(c) / z))))); else tmp = Float64(Float64(y * i) + Float64(Float64(Float64(b - 0.5) * log(c)) + Float64(t + a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -3.1e+99) tmp = (y * i) + (z * (1.0 + (b * (log(c) / z)))); else tmp = (y * i) + (((b - 0.5) * log(c)) + (t + a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -3.1e+99], N[(N[(y * i), $MachinePrecision] + N[(z * N[(1.0 + N[(b * N[(N[Log[c], $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision] + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.1 \cdot 10^{+99}:\\
\;\;\;\;y \cdot i + z \cdot \left(1 + b \cdot \frac{\log c}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(\left(b - 0.5\right) \cdot \log c + \left(t + a\right)\right)\\
\end{array}
\end{array}
if z < -3.1000000000000001e99Initial program 99.9%
Taylor expanded in x around 0 85.7%
Taylor expanded in z around inf 85.6%
+-commutative85.6%
sub-neg85.6%
metadata-eval85.6%
associate-/l*85.6%
Simplified85.6%
Taylor expanded in b around inf 67.2%
associate-/l*67.2%
Simplified67.2%
if -3.1000000000000001e99 < z Initial program 99.8%
Taylor expanded in t around inf 75.3%
Final simplification73.9%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -4e-17) (+ (* y i) (* z (+ 1.0 (/ a z)))) (if (<= z -2e-93) (+ (* y i) (* b (log c))) (+ a (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -4e-17) {
tmp = (y * i) + (z * (1.0 + (a / z)));
} else if (z <= -2e-93) {
tmp = (y * i) + (b * log(c));
} else {
tmp = a + (y * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (z <= (-4d-17)) then
tmp = (y * i) + (z * (1.0d0 + (a / z)))
else if (z <= (-2d-93)) then
tmp = (y * i) + (b * log(c))
else
tmp = a + (y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -4e-17) {
tmp = (y * i) + (z * (1.0 + (a / z)));
} else if (z <= -2e-93) {
tmp = (y * i) + (b * Math.log(c));
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -4e-17: tmp = (y * i) + (z * (1.0 + (a / z))) elif z <= -2e-93: tmp = (y * i) + (b * math.log(c)) else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -4e-17) tmp = Float64(Float64(y * i) + Float64(z * Float64(1.0 + Float64(a / z)))); elseif (z <= -2e-93) tmp = Float64(Float64(y * i) + Float64(b * log(c))); else tmp = Float64(a + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -4e-17) tmp = (y * i) + (z * (1.0 + (a / z))); elseif (z <= -2e-93) tmp = (y * i) + (b * log(c)); else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -4e-17], N[(N[(y * i), $MachinePrecision] + N[(z * N[(1.0 + N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2e-93], N[(N[(y * i), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4 \cdot 10^{-17}:\\
\;\;\;\;y \cdot i + z \cdot \left(1 + \frac{a}{z}\right)\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-93}:\\
\;\;\;\;y \cdot i + b \cdot \log c\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if z < -4.00000000000000029e-17Initial program 99.9%
Taylor expanded in x around 0 83.3%
Taylor expanded in z around inf 83.2%
+-commutative83.2%
sub-neg83.2%
metadata-eval83.2%
associate-/l*83.2%
Simplified83.2%
Taylor expanded in a around inf 60.4%
if -4.00000000000000029e-17 < z < -1.9999999999999998e-93Initial program 99.8%
Taylor expanded in t around 0 99.8%
Taylor expanded in b around inf 52.0%
*-commutative52.0%
Simplified52.0%
if -1.9999999999999998e-93 < z Initial program 99.8%
Taylor expanded in a around inf 38.5%
Final simplification45.6%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -1.45e-16) (+ (* y i) (* z (+ 1.0 (/ a z)))) (if (<= z -2.3e-61) (+ (* x (log y)) (* y i)) (+ a (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -1.45e-16) {
tmp = (y * i) + (z * (1.0 + (a / z)));
} else if (z <= -2.3e-61) {
tmp = (x * log(y)) + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (z <= (-1.45d-16)) then
tmp = (y * i) + (z * (1.0d0 + (a / z)))
else if (z <= (-2.3d-61)) then
tmp = (x * log(y)) + (y * i)
else
tmp = a + (y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -1.45e-16) {
tmp = (y * i) + (z * (1.0 + (a / z)));
} else if (z <= -2.3e-61) {
tmp = (x * Math.log(y)) + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -1.45e-16: tmp = (y * i) + (z * (1.0 + (a / z))) elif z <= -2.3e-61: tmp = (x * math.log(y)) + (y * i) else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -1.45e-16) tmp = Float64(Float64(y * i) + Float64(z * Float64(1.0 + Float64(a / z)))); elseif (z <= -2.3e-61) tmp = Float64(Float64(x * log(y)) + Float64(y * i)); else tmp = Float64(a + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -1.45e-16) tmp = (y * i) + (z * (1.0 + (a / z))); elseif (z <= -2.3e-61) tmp = (x * log(y)) + (y * i); else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -1.45e-16], N[(N[(y * i), $MachinePrecision] + N[(z * N[(1.0 + N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.3e-61], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{-16}:\\
\;\;\;\;y \cdot i + z \cdot \left(1 + \frac{a}{z}\right)\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-61}:\\
\;\;\;\;x \cdot \log y + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if z < -1.4499999999999999e-16Initial program 99.9%
Taylor expanded in x around 0 84.2%
Taylor expanded in z around inf 84.1%
+-commutative84.1%
sub-neg84.1%
metadata-eval84.1%
associate-/l*84.1%
Simplified84.1%
Taylor expanded in a around inf 62.0%
if -1.4499999999999999e-16 < z < -2.29999999999999992e-61Initial program 99.8%
Taylor expanded in t around 0 99.8%
Taylor expanded in x around inf 42.6%
if -2.29999999999999992e-61 < z Initial program 99.8%
Taylor expanded in a around inf 38.5%
Final simplification45.2%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= a 1.5e-110)
z
(if (<= a 2.6e+18)
(* y i)
(if (<= a 6.4e+164) z (if (<= a 6.8e+187) (* 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 <= 1.5e-110) {
tmp = z;
} else if (a <= 2.6e+18) {
tmp = y * i;
} else if (a <= 6.4e+164) {
tmp = z;
} else if (a <= 6.8e+187) {
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 <= 1.5d-110) then
tmp = z
else if (a <= 2.6d+18) then
tmp = y * i
else if (a <= 6.4d+164) then
tmp = z
else if (a <= 6.8d+187) 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 <= 1.5e-110) {
tmp = z;
} else if (a <= 2.6e+18) {
tmp = y * i;
} else if (a <= 6.4e+164) {
tmp = z;
} else if (a <= 6.8e+187) {
tmp = y * i;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 1.5e-110: tmp = z elif a <= 2.6e+18: tmp = y * i elif a <= 6.4e+164: tmp = z elif a <= 6.8e+187: tmp = y * i else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 1.5e-110) tmp = z; elseif (a <= 2.6e+18) tmp = Float64(y * i); elseif (a <= 6.4e+164) tmp = z; elseif (a <= 6.8e+187) 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 <= 1.5e-110) tmp = z; elseif (a <= 2.6e+18) tmp = y * i; elseif (a <= 6.4e+164) tmp = z; elseif (a <= 6.8e+187) tmp = y * i; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 1.5e-110], z, If[LessEqual[a, 2.6e+18], N[(y * i), $MachinePrecision], If[LessEqual[a, 6.4e+164], z, If[LessEqual[a, 6.8e+187], N[(y * i), $MachinePrecision], a]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.5 \cdot 10^{-110}:\\
\;\;\;\;z\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{+18}:\\
\;\;\;\;y \cdot i\\
\mathbf{elif}\;a \leq 6.4 \cdot 10^{+164}:\\
\;\;\;\;z\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{+187}:\\
\;\;\;\;y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < 1.49999999999999993e-110 or 2.6e18 < a < 6.3999999999999996e164Initial program 99.8%
Taylor expanded in x around 0 83.4%
Taylor expanded in y around inf 58.2%
sub-neg58.2%
metadata-eval58.2%
associate-/l*58.3%
Simplified58.3%
Taylor expanded in z around inf 20.6%
if 1.49999999999999993e-110 < a < 2.6e18 or 6.3999999999999996e164 < a < 6.7999999999999999e187Initial program 99.9%
Taylor expanded in a around inf 45.3%
Taylor expanded in a around 0 40.5%
*-commutative40.5%
Simplified40.5%
if 6.7999999999999999e187 < a Initial program 100.0%
Taylor expanded in x around 0 87.8%
Taylor expanded in y around inf 44.7%
sub-neg44.7%
metadata-eval44.7%
associate-/l*44.7%
Simplified44.7%
Taylor expanded in a around inf 52.4%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -2.6e-41) (+ (* y i) (* z (+ 1.0 (/ a z)))) (+ a (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2.6e-41) {
tmp = (y * i) + (z * (1.0 + (a / z)));
} else {
tmp = a + (y * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (z <= (-2.6d-41)) then
tmp = (y * i) + (z * (1.0d0 + (a / z)))
else
tmp = a + (y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2.6e-41) {
tmp = (y * i) + (z * (1.0 + (a / z)));
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -2.6e-41: tmp = (y * i) + (z * (1.0 + (a / z))) else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -2.6e-41) tmp = Float64(Float64(y * i) + Float64(z * Float64(1.0 + Float64(a / z)))); else tmp = Float64(a + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -2.6e-41) tmp = (y * i) + (z * (1.0 + (a / z))); else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -2.6e-41], N[(N[(y * i), $MachinePrecision] + N[(z * N[(1.0 + N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{-41}:\\
\;\;\;\;y \cdot i + z \cdot \left(1 + \frac{a}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if z < -2.5999999999999999e-41Initial program 99.9%
Taylor expanded in x around 0 83.1%
Taylor expanded in z around inf 83.0%
+-commutative83.0%
sub-neg83.0%
metadata-eval83.0%
associate-/l*83.0%
Simplified83.0%
Taylor expanded in a around inf 58.2%
if -2.5999999999999999e-41 < z Initial program 99.8%
Taylor expanded in a around inf 38.4%
Final simplification44.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 6.2e+164) (+ 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 <= 6.2e+164) {
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 <= 6.2d+164) 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 <= 6.2e+164) {
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 <= 6.2e+164: 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 <= 6.2e+164) 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 <= 6.2e+164) 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, 6.2e+164], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 6.2 \cdot 10^{+164}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if a < 6.2000000000000003e164Initial program 99.8%
Taylor expanded in t around 0 86.8%
Taylor expanded in z around inf 37.7%
if 6.2000000000000003e164 < a Initial program 100.0%
Taylor expanded in a around inf 67.9%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -2.1e+216) z (+ a (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2.1e+216) {
tmp = z;
} else {
tmp = a + (y * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (z <= (-2.1d+216)) then
tmp = z
else
tmp = a + (y * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2.1e+216) {
tmp = z;
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -2.1e+216: tmp = z else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -2.1e+216) tmp = z; else tmp = Float64(a + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -2.1e+216) tmp = z; else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -2.1e+216], z, N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{+216}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if z < -2.10000000000000001e216Initial program 99.9%
Taylor expanded in x around 0 92.4%
Taylor expanded in y around inf 37.9%
sub-neg37.9%
metadata-eval37.9%
associate-/l*37.9%
Simplified37.9%
Taylor expanded in z around inf 71.2%
if -2.10000000000000001e216 < z Initial program 99.8%
Taylor expanded in a around inf 37.3%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 2.35e+165) z a))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 2.35e+165) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (a <= 2.35d+165) then
tmp = z
else
tmp = a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 2.35e+165) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 2.35e+165: tmp = z else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 2.35e+165) tmp = z; else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (a <= 2.35e+165) tmp = z; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 2.35e+165], z, a]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 2.35 \cdot 10^{+165}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < 2.35000000000000008e165Initial program 99.8%
Taylor expanded in x around 0 83.1%
Taylor expanded in y around inf 58.4%
sub-neg58.4%
metadata-eval58.4%
associate-/l*58.4%
Simplified58.4%
Taylor expanded in z around inf 20.9%
if 2.35000000000000008e165 < a Initial program 100.0%
Taylor expanded in x around 0 89.3%
Taylor expanded in y around inf 51.4%
sub-neg51.4%
metadata-eval51.4%
associate-/l*51.4%
Simplified51.4%
Taylor expanded in a around inf 48.9%
(FPCore (x y z t a b c i) :precision binary64 a)
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = a
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a;
}
def code(x, y, z, t, a, b, c, i): return a
function code(x, y, z, t, a, b, c, i) return a end
function tmp = code(x, y, z, t, a, b, c, i) tmp = a; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := a
\begin{array}{l}
\\
a
\end{array}
Initial program 99.9%
Taylor expanded in x around 0 84.1%
Taylor expanded in y around inf 57.3%
sub-neg57.3%
metadata-eval57.3%
associate-/l*57.3%
Simplified57.3%
Taylor expanded in a around inf 18.2%
herbie shell --seed 2024106
(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)))