
(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 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (fma y i (fma (+ b -0.5) (log c) (+ z (fma x (log y) (+ t a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return fma(y, i, fma((b + -0.5), log(c), (z + fma(x, log(y), (t + a)))));
}
function code(x, y, z, t, a, b, c, i) return fma(y, i, fma(Float64(b + -0.5), log(c), Float64(z + fma(x, log(y), Float64(t + a))))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(y * i + N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + N[(z + N[(x * N[Log[y], $MachinePrecision] + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y, i, \mathsf{fma}\left(b + -0.5, \log c, z + \mathsf{fma}\left(x, \log y, t + a\right)\right)\right)
\end{array}
Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -3e+150) (not (<= x 1e+121))) (+ (+ a (+ t (+ z (* x (log y))))) (* y i)) (fma y i (+ a (+ t (+ z (* (log c) (- b 0.5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -3e+150) || !(x <= 1e+121)) {
tmp = (a + (t + (z + (x * log(y))))) + (y * i);
} else {
tmp = fma(y, i, (a + (t + (z + (log(c) * (b - 0.5))))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -3e+150) || !(x <= 1e+121)) tmp = Float64(Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) + Float64(y * i)); else tmp = fma(y, i, Float64(a + Float64(t + Float64(z + Float64(log(c) * Float64(b - 0.5)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -3e+150], N[Not[LessEqual[x, 1e+121]], $MachinePrecision]], N[(N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(y * i + N[(a + N[(t + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3 \cdot 10^{+150} \lor \neg \left(x \leq 10^{+121}\right):\\
\;\;\;\;\left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right) + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, i, a + \left(t + \left(z + \log c \cdot \left(b - 0.5\right)\right)\right)\right)\\
\end{array}
\end{array}
if x < -3.00000000000000012e150 or 1.00000000000000004e121 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 92.7%
if -3.00000000000000012e150 < x < 1.00000000000000004e121Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 98.4%
Final simplification96.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* x (log y))))
(if (<= x -9.2e+150)
(+ (* y i) (+ t (+ z (+ t_1 (* b (log c))))))
(if (<= x 5e+120)
(fma y i (+ a (+ t (+ z (* (log c) (- b 0.5))))))
(+ (+ a (+ t (+ z t_1))) (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x * log(y);
double tmp;
if (x <= -9.2e+150) {
tmp = (y * i) + (t + (z + (t_1 + (b * log(c)))));
} else if (x <= 5e+120) {
tmp = fma(y, i, (a + (t + (z + (log(c) * (b - 0.5))))));
} else {
tmp = (a + (t + (z + t_1))) + (y * i);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x * log(y)) tmp = 0.0 if (x <= -9.2e+150) tmp = Float64(Float64(y * i) + Float64(t + Float64(z + Float64(t_1 + Float64(b * log(c)))))); elseif (x <= 5e+120) tmp = fma(y, i, Float64(a + Float64(t + Float64(z + Float64(log(c) * Float64(b - 0.5)))))); else tmp = Float64(Float64(a + Float64(t + Float64(z + t_1))) + Float64(y * i)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9.2e+150], N[(N[(y * i), $MachinePrecision] + N[(t + N[(z + N[(t$95$1 + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5e+120], N[(y * i + N[(a + N[(t + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a + N[(t + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;x \leq -9.2 \cdot 10^{+150}:\\
\;\;\;\;y \cdot i + \left(t + \left(z + \left(t\_1 + b \cdot \log c\right)\right)\right)\\
\mathbf{elif}\;x \leq 5 \cdot 10^{+120}:\\
\;\;\;\;\mathsf{fma}\left(y, i, a + \left(t + \left(z + \log c \cdot \left(b - 0.5\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a + \left(t + \left(z + t\_1\right)\right)\right) + y \cdot i\\
\end{array}
\end{array}
if x < -9.20000000000000004e150Initial program 99.6%
Taylor expanded in b around inf 99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in a around 0 96.1%
if -9.20000000000000004e150 < x < 5.00000000000000019e120Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 98.4%
if 5.00000000000000019e120 < x Initial program 99.9%
Taylor expanded in b around inf 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in b around 0 93.2%
Final simplification97.3%
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ a (+ t (+ z (* x (log y))))) (* (log c) (- b 0.5))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((a + (t + (z + (x * log(y))))) + (log(c) * (b - 0.5))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = ((a + (t + (z + (x * log(y))))) + (log(c) * (b - 0.5d0))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((a + (t + (z + (x * Math.log(y))))) + (Math.log(c) * (b - 0.5))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return ((a + (t + (z + (x * math.log(y))))) + (math.log(c) * (b - 0.5))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) + Float64(log(c) * Float64(b - 0.5))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((a + (t + (z + (x * log(y))))) + (log(c) * (b - 0.5))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right) + \log c \cdot \left(b - 0.5\right)\right) + y \cdot i
\end{array}
Initial program 99.9%
Final simplification99.9%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (+ a (+ t (+ z (* x (log y))))) (* b (log c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((a + (t + (z + (x * log(y))))) + (b * log(c)));
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (y * i) + ((a + (t + (z + (x * log(y))))) + (b * log(c)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((a + (t + (z + (x * Math.log(y))))) + (b * Math.log(c)));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + ((a + (t + (z + (x * math.log(y))))) + (b * math.log(c)))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) + Float64(b * log(c)))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + ((a + (t + (z + (x * log(y))))) + (b * log(c))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(\left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right) + b \cdot \log c\right)
\end{array}
Initial program 99.9%
Taylor expanded in b around inf 99.2%
*-commutative99.2%
Simplified99.2%
Final simplification99.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (log c) (- b 0.5))))
(if (<= (- b 0.5) -1e+153)
(+ (* y i) (+ a t_1))
(if (<= (- b 0.5) 4e+177)
(+ (+ a (+ t (+ z (* x (log y))))) (* y i))
(+ (* y i) (+ z t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = log(c) * (b - 0.5);
double tmp;
if ((b - 0.5) <= -1e+153) {
tmp = (y * i) + (a + t_1);
} else if ((b - 0.5) <= 4e+177) {
tmp = (a + (t + (z + (x * log(y))))) + (y * i);
} else {
tmp = (y * i) + (z + t_1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = log(c) * (b - 0.5d0)
if ((b - 0.5d0) <= (-1d+153)) then
tmp = (y * i) + (a + t_1)
else if ((b - 0.5d0) <= 4d+177) then
tmp = (a + (t + (z + (x * log(y))))) + (y * i)
else
tmp = (y * i) + (z + t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = Math.log(c) * (b - 0.5);
double tmp;
if ((b - 0.5) <= -1e+153) {
tmp = (y * i) + (a + t_1);
} else if ((b - 0.5) <= 4e+177) {
tmp = (a + (t + (z + (x * Math.log(y))))) + (y * i);
} else {
tmp = (y * i) + (z + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = math.log(c) * (b - 0.5) tmp = 0 if (b - 0.5) <= -1e+153: tmp = (y * i) + (a + t_1) elif (b - 0.5) <= 4e+177: tmp = (a + (t + (z + (x * math.log(y))))) + (y * i) else: tmp = (y * i) + (z + t_1) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(log(c) * Float64(b - 0.5)) tmp = 0.0 if (Float64(b - 0.5) <= -1e+153) tmp = Float64(Float64(y * i) + Float64(a + t_1)); elseif (Float64(b - 0.5) <= 4e+177) tmp = Float64(Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) + Float64(y * i)); else tmp = Float64(Float64(y * i) + Float64(z + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = log(c) * (b - 0.5); tmp = 0.0; if ((b - 0.5) <= -1e+153) tmp = (y * i) + (a + t_1); elseif ((b - 0.5) <= 4e+177) tmp = (a + (t + (z + (x * log(y))))) + (y * i); else tmp = (y * i) + (z + t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b - 0.5), $MachinePrecision], -1e+153], N[(N[(y * i), $MachinePrecision] + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - 0.5), $MachinePrecision], 4e+177], N[(N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right)\\
\mathbf{if}\;b - 0.5 \leq -1 \cdot 10^{+153}:\\
\;\;\;\;y \cdot i + \left(a + t\_1\right)\\
\mathbf{elif}\;b - 0.5 \leq 4 \cdot 10^{+177}:\\
\;\;\;\;\left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right) + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(z + t\_1\right)\\
\end{array}
\end{array}
if (-.f64 b #s(literal 1/2 binary64)) < -1e153Initial program 99.8%
add-cube-cbrt99.8%
pow399.8%
Applied egg-rr99.8%
Taylor expanded in a around inf 80.4%
if -1e153 < (-.f64 b #s(literal 1/2 binary64)) < 4e177Initial program 99.9%
Taylor expanded in b around inf 99.0%
*-commutative99.0%
Simplified99.0%
Taylor expanded in b around 0 95.6%
if 4e177 < (-.f64 b #s(literal 1/2 binary64)) Initial program 99.8%
add-cube-cbrt99.7%
pow399.7%
Applied egg-rr99.7%
Taylor expanded in z around inf 75.1%
Final simplification91.8%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -2.4e+150) (not (<= x 2.3e+122))) (+ (+ a (+ t (+ z (* x (log y))))) (* y i)) (+ a (+ t (+ z (+ (* (log c) (- b 0.5)) (* y i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -2.4e+150) || !(x <= 2.3e+122)) {
tmp = (a + (t + (z + (x * log(y))))) + (y * i);
} else {
tmp = a + (t + (z + ((log(c) * (b - 0.5)) + (y * i))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((x <= (-2.4d+150)) .or. (.not. (x <= 2.3d+122))) then
tmp = (a + (t + (z + (x * log(y))))) + (y * i)
else
tmp = a + (t + (z + ((log(c) * (b - 0.5d0)) + (y * i))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -2.4e+150) || !(x <= 2.3e+122)) {
tmp = (a + (t + (z + (x * Math.log(y))))) + (y * i);
} else {
tmp = a + (t + (z + ((Math.log(c) * (b - 0.5)) + (y * i))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -2.4e+150) or not (x <= 2.3e+122): tmp = (a + (t + (z + (x * math.log(y))))) + (y * i) else: tmp = a + (t + (z + ((math.log(c) * (b - 0.5)) + (y * i)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -2.4e+150) || !(x <= 2.3e+122)) tmp = Float64(Float64(a + Float64(t + Float64(z + Float64(x * log(y))))) + Float64(y * i)); else tmp = Float64(a + Float64(t + Float64(z + Float64(Float64(log(c) * Float64(b - 0.5)) + Float64(y * i))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -2.4e+150) || ~((x <= 2.3e+122))) tmp = (a + (t + (z + (x * log(y))))) + (y * i); else tmp = a + (t + (z + ((log(c) * (b - 0.5)) + (y * i)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -2.4e+150], N[Not[LessEqual[x, 2.3e+122]], $MachinePrecision]], N[(N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(z + N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{+150} \lor \neg \left(x \leq 2.3 \cdot 10^{+122}\right):\\
\;\;\;\;\left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right) + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \left(z + \left(\log c \cdot \left(b - 0.5\right) + y \cdot i\right)\right)\right)\\
\end{array}
\end{array}
if x < -2.40000000000000003e150 or 2.3000000000000001e122 < x Initial program 99.8%
Taylor expanded in b around inf 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in b around 0 92.7%
if -2.40000000000000003e150 < x < 2.3000000000000001e122Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 98.4%
Final simplification96.8%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= i -3.6e+113)
(* i (+ y (/ a i)))
(if (<= i 5e+99)
(+ a (+ t (+ z (* (log c) (- b 0.5)))))
(* i (+ y (/ z i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (i <= -3.6e+113) {
tmp = i * (y + (a / i));
} else if (i <= 5e+99) {
tmp = a + (t + (z + (log(c) * (b - 0.5))));
} else {
tmp = i * (y + (z / 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 (i <= (-3.6d+113)) then
tmp = i * (y + (a / i))
else if (i <= 5d+99) then
tmp = a + (t + (z + (log(c) * (b - 0.5d0))))
else
tmp = i * (y + (z / 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 (i <= -3.6e+113) {
tmp = i * (y + (a / i));
} else if (i <= 5e+99) {
tmp = a + (t + (z + (Math.log(c) * (b - 0.5))));
} else {
tmp = i * (y + (z / i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if i <= -3.6e+113: tmp = i * (y + (a / i)) elif i <= 5e+99: tmp = a + (t + (z + (math.log(c) * (b - 0.5)))) else: tmp = i * (y + (z / i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (i <= -3.6e+113) tmp = Float64(i * Float64(y + Float64(a / i))); elseif (i <= 5e+99) tmp = Float64(a + Float64(t + Float64(z + Float64(log(c) * Float64(b - 0.5))))); else tmp = Float64(i * Float64(y + Float64(z / i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (i <= -3.6e+113) tmp = i * (y + (a / i)); elseif (i <= 5e+99) tmp = a + (t + (z + (log(c) * (b - 0.5)))); else tmp = i * (y + (z / i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[i, -3.6e+113], N[(i * N[(y + N[(a / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5e+99], N[(a + N[(t + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(y + N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.6 \cdot 10^{+113}:\\
\;\;\;\;i \cdot \left(y + \frac{a}{i}\right)\\
\mathbf{elif}\;i \leq 5 \cdot 10^{+99}:\\
\;\;\;\;a + \left(t + \left(z + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y + \frac{z}{i}\right)\\
\end{array}
\end{array}
if i < -3.59999999999999992e113Initial program 100.0%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+100.0%
+-commutative100.0%
fma-define100.0%
+-commutative100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in i around inf 99.9%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
associate-/l*99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in a around inf 65.6%
if -3.59999999999999992e113 < i < 5.00000000000000008e99Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 82.6%
Taylor expanded in y around 0 74.5%
if 5.00000000000000008e99 < i Initial program 100.0%
associate-+l+100.0%
+-commutative100.0%
associate-+l+100.0%
associate-+r+100.0%
+-commutative100.0%
+-commutative100.0%
associate-+l+100.0%
associate-+l+100.0%
+-commutative100.0%
fma-define100.0%
+-commutative100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in i around inf 100.0%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
associate-/l*99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in z around inf 67.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= i -1.4e+113) (* i (+ y (/ a i))) (if (<= i 3.8e+99) (+ a (+ z (* (log c) (- b 0.5)))) (* i (+ y (/ z i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (i <= -1.4e+113) {
tmp = i * (y + (a / i));
} else if (i <= 3.8e+99) {
tmp = a + (z + (log(c) * (b - 0.5)));
} else {
tmp = i * (y + (z / 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 (i <= (-1.4d+113)) then
tmp = i * (y + (a / i))
else if (i <= 3.8d+99) then
tmp = a + (z + (log(c) * (b - 0.5d0)))
else
tmp = i * (y + (z / 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 (i <= -1.4e+113) {
tmp = i * (y + (a / i));
} else if (i <= 3.8e+99) {
tmp = a + (z + (Math.log(c) * (b - 0.5)));
} else {
tmp = i * (y + (z / i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if i <= -1.4e+113: tmp = i * (y + (a / i)) elif i <= 3.8e+99: tmp = a + (z + (math.log(c) * (b - 0.5))) else: tmp = i * (y + (z / i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (i <= -1.4e+113) tmp = Float64(i * Float64(y + Float64(a / i))); elseif (i <= 3.8e+99) tmp = Float64(a + Float64(z + Float64(log(c) * Float64(b - 0.5)))); else tmp = Float64(i * Float64(y + Float64(z / i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (i <= -1.4e+113) tmp = i * (y + (a / i)); elseif (i <= 3.8e+99) tmp = a + (z + (log(c) * (b - 0.5))); else tmp = i * (y + (z / i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[i, -1.4e+113], N[(i * N[(y + N[(a / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.8e+99], N[(a + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(y + N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.4 \cdot 10^{+113}:\\
\;\;\;\;i \cdot \left(y + \frac{a}{i}\right)\\
\mathbf{elif}\;i \leq 3.8 \cdot 10^{+99}:\\
\;\;\;\;a + \left(z + \log c \cdot \left(b - 0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y + \frac{z}{i}\right)\\
\end{array}
\end{array}
if i < -1.39999999999999999e113Initial program 100.0%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+100.0%
+-commutative100.0%
fma-define100.0%
+-commutative100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in i around inf 99.9%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
associate-/l*99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in a around inf 65.6%
if -1.39999999999999999e113 < i < 3.8e99Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 82.6%
Taylor expanded in y around 0 74.5%
Taylor expanded in t around 0 49.5%
if 3.8e99 < i Initial program 100.0%
associate-+l+100.0%
+-commutative100.0%
associate-+l+100.0%
associate-+r+100.0%
+-commutative100.0%
+-commutative100.0%
associate-+l+100.0%
associate-+l+100.0%
+-commutative100.0%
fma-define100.0%
+-commutative100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in i around inf 100.0%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
associate-/l*99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in z around inf 67.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= i -4.6e+113) (* i (+ y (/ a i))) (if (<= i 3.6e+99) (+ a (+ t (+ z (* b (log c))))) (* i (+ y (/ z i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (i <= -4.6e+113) {
tmp = i * (y + (a / i));
} else if (i <= 3.6e+99) {
tmp = a + (t + (z + (b * log(c))));
} else {
tmp = i * (y + (z / 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 (i <= (-4.6d+113)) then
tmp = i * (y + (a / i))
else if (i <= 3.6d+99) then
tmp = a + (t + (z + (b * log(c))))
else
tmp = i * (y + (z / 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 (i <= -4.6e+113) {
tmp = i * (y + (a / i));
} else if (i <= 3.6e+99) {
tmp = a + (t + (z + (b * Math.log(c))));
} else {
tmp = i * (y + (z / i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if i <= -4.6e+113: tmp = i * (y + (a / i)) elif i <= 3.6e+99: tmp = a + (t + (z + (b * math.log(c)))) else: tmp = i * (y + (z / i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (i <= -4.6e+113) tmp = Float64(i * Float64(y + Float64(a / i))); elseif (i <= 3.6e+99) tmp = Float64(a + Float64(t + Float64(z + Float64(b * log(c))))); else tmp = Float64(i * Float64(y + Float64(z / i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (i <= -4.6e+113) tmp = i * (y + (a / i)); elseif (i <= 3.6e+99) tmp = a + (t + (z + (b * log(c)))); else tmp = i * (y + (z / i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[i, -4.6e+113], N[(i * N[(y + N[(a / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.6e+99], N[(a + N[(t + N[(z + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(y + N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -4.6 \cdot 10^{+113}:\\
\;\;\;\;i \cdot \left(y + \frac{a}{i}\right)\\
\mathbf{elif}\;i \leq 3.6 \cdot 10^{+99}:\\
\;\;\;\;a + \left(t + \left(z + b \cdot \log c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y + \frac{z}{i}\right)\\
\end{array}
\end{array}
if i < -4.59999999999999993e113Initial program 100.0%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+100.0%
+-commutative100.0%
fma-define100.0%
+-commutative100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in i around inf 99.9%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
associate-/l*99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in a around inf 65.6%
if -4.59999999999999993e113 < i < 3.6000000000000002e99Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 82.6%
Taylor expanded in y around 0 74.5%
Taylor expanded in b around inf 73.9%
if 3.6000000000000002e99 < i Initial program 100.0%
associate-+l+100.0%
+-commutative100.0%
associate-+l+100.0%
associate-+r+100.0%
+-commutative100.0%
+-commutative100.0%
associate-+l+100.0%
associate-+l+100.0%
+-commutative100.0%
fma-define100.0%
+-commutative100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in i around inf 100.0%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
associate-/l*99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in z around inf 67.8%
Final simplification71.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= i -7.2e+111) (* i (+ y (/ a i))) (if (<= i 6.5e+99) (+ a (+ z (* b (log c)))) (* i (+ y (/ z i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (i <= -7.2e+111) {
tmp = i * (y + (a / i));
} else if (i <= 6.5e+99) {
tmp = a + (z + (b * log(c)));
} else {
tmp = i * (y + (z / 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 (i <= (-7.2d+111)) then
tmp = i * (y + (a / i))
else if (i <= 6.5d+99) then
tmp = a + (z + (b * log(c)))
else
tmp = i * (y + (z / 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 (i <= -7.2e+111) {
tmp = i * (y + (a / i));
} else if (i <= 6.5e+99) {
tmp = a + (z + (b * Math.log(c)));
} else {
tmp = i * (y + (z / i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if i <= -7.2e+111: tmp = i * (y + (a / i)) elif i <= 6.5e+99: tmp = a + (z + (b * math.log(c))) else: tmp = i * (y + (z / i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (i <= -7.2e+111) tmp = Float64(i * Float64(y + Float64(a / i))); elseif (i <= 6.5e+99) tmp = Float64(a + Float64(z + Float64(b * log(c)))); else tmp = Float64(i * Float64(y + Float64(z / i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (i <= -7.2e+111) tmp = i * (y + (a / i)); elseif (i <= 6.5e+99) tmp = a + (z + (b * log(c))); else tmp = i * (y + (z / i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[i, -7.2e+111], N[(i * N[(y + N[(a / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.5e+99], N[(a + N[(z + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(y + N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -7.2 \cdot 10^{+111}:\\
\;\;\;\;i \cdot \left(y + \frac{a}{i}\right)\\
\mathbf{elif}\;i \leq 6.5 \cdot 10^{+99}:\\
\;\;\;\;a + \left(z + b \cdot \log c\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y + \frac{z}{i}\right)\\
\end{array}
\end{array}
if i < -7.2000000000000004e111Initial program 100.0%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+100.0%
+-commutative100.0%
fma-define100.0%
+-commutative100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in i around inf 99.9%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
associate-/l*99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in a around inf 65.6%
if -7.2000000000000004e111 < i < 6.5000000000000004e99Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 82.6%
Taylor expanded in y around 0 74.5%
Taylor expanded in b around inf 73.9%
Taylor expanded in t around 0 48.9%
if 6.5000000000000004e99 < i Initial program 100.0%
associate-+l+100.0%
+-commutative100.0%
associate-+l+100.0%
associate-+r+100.0%
+-commutative100.0%
+-commutative100.0%
associate-+l+100.0%
associate-+l+100.0%
+-commutative100.0%
fma-define100.0%
+-commutative100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in i around inf 100.0%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
associate-/l*99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in z around inf 67.8%
(FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (* (log c) (- b 0.5)))) (if (<= z -7.2e+136) (+ (* y i) (+ z t_1)) (+ (* 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 = log(c) * (b - 0.5);
double tmp;
if (z <= -7.2e+136) {
tmp = (y * i) + (z + t_1);
} 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 = log(c) * (b - 0.5d0)
if (z <= (-7.2d+136)) then
tmp = (y * i) + (z + t_1)
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 = Math.log(c) * (b - 0.5);
double tmp;
if (z <= -7.2e+136) {
tmp = (y * i) + (z + t_1);
} else {
tmp = (y * i) + (a + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = math.log(c) * (b - 0.5) tmp = 0 if z <= -7.2e+136: tmp = (y * i) + (z + t_1) else: tmp = (y * i) + (a + t_1) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(log(c) * Float64(b - 0.5)) tmp = 0.0 if (z <= -7.2e+136) tmp = Float64(Float64(y * i) + Float64(z + t_1)); 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 = log(c) * (b - 0.5); tmp = 0.0; if (z <= -7.2e+136) tmp = (y * i) + (z + t_1); 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[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.2e+136], N[(N[(y * i), $MachinePrecision] + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right)\\
\mathbf{if}\;z \leq -7.2 \cdot 10^{+136}:\\
\;\;\;\;y \cdot i + \left(z + t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + t\_1\right)\\
\end{array}
\end{array}
if z < -7.20000000000000011e136Initial program 99.7%
add-cube-cbrt99.6%
pow399.6%
Applied egg-rr99.6%
Taylor expanded in z around inf 73.6%
if -7.20000000000000011e136 < z Initial program 99.9%
add-cube-cbrt99.7%
pow399.7%
Applied egg-rr99.7%
Taylor expanded in a around inf 52.1%
Final simplification55.6%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -1.4e+172) (+ a (+ t (+ z (* b (log c))))) (+ (* y i) (+ a (* (log c) (- b 0.5))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -1.4e+172) {
tmp = a + (t + (z + (b * log(c))));
} else {
tmp = (y * i) + (a + (log(c) * (b - 0.5)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (z <= (-1.4d+172)) then
tmp = a + (t + (z + (b * log(c))))
else
tmp = (y * i) + (a + (log(c) * (b - 0.5d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -1.4e+172) {
tmp = a + (t + (z + (b * Math.log(c))));
} else {
tmp = (y * i) + (a + (Math.log(c) * (b - 0.5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -1.4e+172: tmp = a + (t + (z + (b * math.log(c)))) else: tmp = (y * i) + (a + (math.log(c) * (b - 0.5))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -1.4e+172) tmp = Float64(a + Float64(t + Float64(z + Float64(b * log(c))))); else tmp = Float64(Float64(y * i) + Float64(a + Float64(log(c) * Float64(b - 0.5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -1.4e+172) tmp = a + (t + (z + (b * log(c)))); else tmp = (y * i) + (a + (log(c) * (b - 0.5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -1.4e+172], N[(a + N[(t + N[(z + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(a + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+172}:\\
\;\;\;\;a + \left(t + \left(z + b \cdot \log c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(a + \log c \cdot \left(b - 0.5\right)\right)\\
\end{array}
\end{array}
if z < -1.4e172Initial 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 x around 0 93.4%
Taylor expanded in y around 0 77.2%
Taylor expanded in b around inf 77.2%
if -1.4e172 < z Initial program 99.9%
add-cube-cbrt99.7%
pow399.7%
Applied egg-rr99.7%
Taylor expanded in a around inf 52.7%
Final simplification55.6%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= i -2.32e+111) (not (<= i 3e-8))) (* i (+ y (/ a i))) (+ z (+ t a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((i <= -2.32e+111) || !(i <= 3e-8)) {
tmp = i * (y + (a / i));
} else {
tmp = z + (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 ((i <= (-2.32d+111)) .or. (.not. (i <= 3d-8))) then
tmp = i * (y + (a / i))
else
tmp = z + (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 ((i <= -2.32e+111) || !(i <= 3e-8)) {
tmp = i * (y + (a / i));
} else {
tmp = z + (t + a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (i <= -2.32e+111) or not (i <= 3e-8): tmp = i * (y + (a / i)) else: tmp = z + (t + a) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((i <= -2.32e+111) || !(i <= 3e-8)) tmp = Float64(i * Float64(y + Float64(a / i))); else tmp = Float64(z + Float64(t + a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((i <= -2.32e+111) || ~((i <= 3e-8))) tmp = i * (y + (a / i)); else tmp = z + (t + a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[i, -2.32e+111], N[Not[LessEqual[i, 3e-8]], $MachinePrecision]], N[(i * N[(y + N[(a / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z + N[(t + a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.32 \cdot 10^{+111} \lor \neg \left(i \leq 3 \cdot 10^{-8}\right):\\
\;\;\;\;i \cdot \left(y + \frac{a}{i}\right)\\
\mathbf{else}:\\
\;\;\;\;z + \left(t + a\right)\\
\end{array}
\end{array}
if i < -2.32e111 or 2.99999999999999973e-8 < i Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in i around inf 99.9%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
associate-/l*99.8%
+-commutative99.8%
Simplified99.8%
Taylor expanded in a around inf 53.1%
if -2.32e111 < i < 2.99999999999999973e-8Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 82.9%
Taylor expanded in y around 0 77.1%
Taylor expanded in b around inf 76.4%
Taylor expanded in b around 0 58.8%
+-commutative58.8%
+-commutative58.8%
associate-+l+58.8%
Simplified58.8%
Final simplification56.2%
(FPCore (x y z t a b c i) :precision binary64 (if (<= i -1.1e+110) (* i (+ y (/ a i))) (if (<= i 2.5e+56) (+ z (+ t a)) (* i (+ y (/ z i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (i <= -1.1e+110) {
tmp = i * (y + (a / i));
} else if (i <= 2.5e+56) {
tmp = z + (t + a);
} else {
tmp = i * (y + (z / 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 (i <= (-1.1d+110)) then
tmp = i * (y + (a / i))
else if (i <= 2.5d+56) then
tmp = z + (t + a)
else
tmp = i * (y + (z / 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 (i <= -1.1e+110) {
tmp = i * (y + (a / i));
} else if (i <= 2.5e+56) {
tmp = z + (t + a);
} else {
tmp = i * (y + (z / i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if i <= -1.1e+110: tmp = i * (y + (a / i)) elif i <= 2.5e+56: tmp = z + (t + a) else: tmp = i * (y + (z / i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (i <= -1.1e+110) tmp = Float64(i * Float64(y + Float64(a / i))); elseif (i <= 2.5e+56) tmp = Float64(z + Float64(t + a)); else tmp = Float64(i * Float64(y + Float64(z / i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (i <= -1.1e+110) tmp = i * (y + (a / i)); elseif (i <= 2.5e+56) tmp = z + (t + a); else tmp = i * (y + (z / i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[i, -1.1e+110], N[(i * N[(y + N[(a / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.5e+56], N[(z + N[(t + a), $MachinePrecision]), $MachinePrecision], N[(i * N[(y + N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.1 \cdot 10^{+110}:\\
\;\;\;\;i \cdot \left(y + \frac{a}{i}\right)\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{+56}:\\
\;\;\;\;z + \left(t + a\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y + \frac{z}{i}\right)\\
\end{array}
\end{array}
if i < -1.09999999999999996e110Initial program 100.0%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+100.0%
+-commutative100.0%
fma-define100.0%
+-commutative100.0%
fma-define100.0%
sub-neg100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in i around inf 99.9%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
associate-/l*99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in a around inf 65.6%
if -1.09999999999999996e110 < i < 2.50000000000000012e56Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 81.9%
Taylor expanded in y around 0 75.6%
Taylor expanded in b around inf 74.9%
Taylor expanded in b around 0 57.0%
+-commutative57.0%
+-commutative57.0%
associate-+l+57.0%
Simplified57.0%
if 2.50000000000000012e56 < i Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in i around inf 99.9%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
associate-/l*99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in z around inf 64.3%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -2e+173) z (if (<= z -4.2e-45) (* y i) a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -2e+173) {
tmp = z;
} else if (z <= -4.2e-45) {
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 (z <= (-2d+173)) then
tmp = z
else if (z <= (-4.2d-45)) 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 (z <= -2e+173) {
tmp = z;
} else if (z <= -4.2e-45) {
tmp = y * i;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -2e+173: tmp = z elif z <= -4.2e-45: tmp = y * i else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -2e+173) tmp = z; elseif (z <= -4.2e-45) 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 (z <= -2e+173) tmp = z; elseif (z <= -4.2e-45) tmp = y * i; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -2e+173], z, If[LessEqual[z, -4.2e-45], N[(y * i), $MachinePrecision], a]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{+173}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq -4.2 \cdot 10^{-45}:\\
\;\;\;\;y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if z < -2e173Initial 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 z around inf 37.8%
if -2e173 < z < -4.1999999999999999e-45Initial 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 36.6%
*-commutative36.6%
Simplified36.6%
if -4.1999999999999999e-45 < z Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in a around inf 15.4%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 7e+203) (+ z (+ t a)) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 7e+203) {
tmp = z + (t + a);
} else {
tmp = y * i;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= 7d+203) then
tmp = z + (t + a)
else
tmp = y * i
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 7e+203) {
tmp = z + (t + a);
} else {
tmp = y * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= 7e+203: tmp = z + (t + a) else: tmp = y * i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 7e+203) tmp = Float64(z + Float64(t + a)); else tmp = Float64(y * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= 7e+203) tmp = z + (t + a); else tmp = y * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 7e+203], N[(z + N[(t + a), $MachinePrecision]), $MachinePrecision], N[(y * i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 7 \cdot 10^{+203}:\\
\;\;\;\;z + \left(t + a\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i\\
\end{array}
\end{array}
if y < 7.00000000000000062e203Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 84.7%
Taylor expanded in y around 0 69.3%
Taylor expanded in b around inf 68.8%
Taylor expanded in b around 0 53.9%
+-commutative53.9%
+-commutative53.9%
associate-+l+53.9%
Simplified53.9%
if 7.00000000000000062e203 < y Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in y around inf 63.1%
*-commutative63.1%
Simplified63.1%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -3.1e+137) z 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+137) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (z <= (-3.1d+137)) then
tmp = z
else
tmp = a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -3.1e+137) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -3.1e+137: tmp = z else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -3.1e+137) tmp = z; else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -3.1e+137) tmp = z; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -3.1e+137], z, a]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.1 \cdot 10^{+137}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if z < -3.0999999999999999e137Initial program 99.7%
associate-+l+99.7%
+-commutative99.7%
associate-+l+99.7%
associate-+r+99.7%
+-commutative99.7%
+-commutative99.7%
associate-+l+99.7%
associate-+l+99.7%
+-commutative99.7%
fma-define99.7%
+-commutative99.7%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
Simplified99.8%
Taylor expanded in z around inf 33.3%
if -3.0999999999999999e137 < z Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in a around inf 13.7%
(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%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+r+99.9%
+-commutative99.9%
+-commutative99.9%
associate-+l+99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
+-commutative99.9%
fma-define99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in a around inf 12.8%
herbie shell --seed 2024139
(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)))