
(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 24 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) (+ (fma x (log y) z) (+ 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), (fma(x, log(y), z) + (t + a))));
}
function code(x, y, z, t, a, b, c, i) return fma(y, i, fma(Float64(b + -0.5), log(c), Float64(fma(x, log(y), z) + 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[(N[(x * N[Log[y], $MachinePrecision] + z), $MachinePrecision] + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y, i, \mathsf{fma}\left(b + -0.5, \log c, \mathsf{fma}\left(x, \log y, z\right) + \left(t + a\right)\right)\right)
\end{array}
Initial program 99.9%
+-commutative99.9%
fma-def99.9%
+-commutative99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
associate-+l+99.9%
fma-def99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z t a b c i) :precision binary64 (+ (fma (+ b -0.5) (log c) a) (fma y i (+ z (fma x (log y) t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return fma((b + -0.5), log(c), a) + fma(y, i, (z + fma(x, log(y), t)));
}
function code(x, y, z, t, a, b, c, i) return Float64(fma(Float64(b + -0.5), log(c), a) + fma(y, i, Float64(z + fma(x, log(y), t)))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(b + -0.5), $MachinePrecision] * N[Log[c], $MachinePrecision] + a), $MachinePrecision] + N[(y * i + N[(z + N[(x * N[Log[y], $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(b + -0.5, \log c, a\right) + \mathsf{fma}\left(y, i, z + \mathsf{fma}\left(x, \log y, t\right)\right)
\end{array}
Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
fma-def99.9%
+-commutative99.9%
associate-+l+99.9%
fma-def99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (log c) (- b 0.5))))
(if (<= t_1 -2e+34)
(fma (log c) (+ b -0.5) (+ (* y i) (+ z a)))
(if (<= t_1 500.0)
(+ (* y i) (+ (+ a (+ z (* x (log y)))) (* -0.5 (log c))))
(+ (* y i) (+ (* b (log c)) (+ a (+ z t))))))))
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 (t_1 <= -2e+34) {
tmp = fma(log(c), (b + -0.5), ((y * i) + (z + a)));
} else if (t_1 <= 500.0) {
tmp = (y * i) + ((a + (z + (x * log(y)))) + (-0.5 * log(c)));
} else {
tmp = (y * i) + ((b * log(c)) + (a + (z + t)));
}
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 (t_1 <= -2e+34) tmp = fma(log(c), Float64(b + -0.5), Float64(Float64(y * i) + Float64(z + a))); elseif (t_1 <= 500.0) tmp = Float64(Float64(y * i) + Float64(Float64(a + Float64(z + Float64(x * log(y)))) + Float64(-0.5 * log(c)))); else tmp = Float64(Float64(y * i) + Float64(Float64(b * log(c)) + Float64(a + Float64(z + t)))); end return 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[t$95$1, -2e+34], N[(N[Log[c], $MachinePrecision] * N[(b + -0.5), $MachinePrecision] + N[(N[(y * i), $MachinePrecision] + N[(z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 500.0], N[(N[(y * i), $MachinePrecision] + N[(N[(a + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-0.5 * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right)\\
\mathbf{if}\;t_1 \leq -2 \cdot 10^{+34}:\\
\;\;\;\;\mathsf{fma}\left(\log c, b + -0.5, y \cdot i + \left(z + a\right)\right)\\
\mathbf{elif}\;t_1 \leq 500:\\
\;\;\;\;y \cdot i + \left(\left(a + \left(z + x \cdot \log y\right)\right) + -0.5 \cdot \log c\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(b \cdot \log c + \left(a + \left(z + t\right)\right)\right)\\
\end{array}
\end{array}
if (*.f64 (-.f64 b 1/2) (log.f64 c)) < -1.99999999999999989e34Initial program 99.7%
Taylor expanded in x around 0 95.2%
Taylor expanded in t around 0 86.3%
+-commutative86.3%
*-commutative86.3%
associate-+r+86.3%
*-commutative86.3%
+-commutative86.3%
fma-def86.3%
sub-neg86.3%
metadata-eval86.3%
associate-+r+86.3%
*-commutative86.3%
Simplified86.3%
if -1.99999999999999989e34 < (*.f64 (-.f64 b 1/2) (log.f64 c)) < 500Initial program 99.9%
Taylor expanded in t around 0 81.8%
Taylor expanded in b around 0 81.8%
if 500 < (*.f64 (-.f64 b 1/2) (log.f64 c)) Initial program 99.9%
Taylor expanded in x around 0 96.3%
Taylor expanded in b around inf 96.3%
Final simplification85.7%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (* (log c) (- b 0.5)) (+ a (+ t (+ z (* x (log y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((log(c) * (b - 0.5)) + (a + (t + (z + (x * log(y))))));
}
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) + ((log(c) * (b - 0.5d0)) + (a + (t + (z + (x * log(y))))))
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) + ((Math.log(c) * (b - 0.5)) + (a + (t + (z + (x * Math.log(y))))));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + ((math.log(c) * (b - 0.5)) + (a + (t + (z + (x * math.log(y))))))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(Float64(log(c) * Float64(b - 0.5)) + Float64(a + Float64(t + Float64(z + Float64(x * log(y))))))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + ((log(c) * (b - 0.5)) + (a + (t + (z + (x * log(y)))))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision] + N[(a + N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(t + \left(z + x \cdot \log y\right)\right)\right)\right)
\end{array}
Initial program 99.9%
Final simplification99.9%
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ a (+ z (+ t (* 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 + (z + (t + (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 + (z + (t + (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 + (z + (t + (x * Math.log(y))))) + (Math.log(c) * (b - 0.5))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return ((a + (z + (t + (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(z + Float64(t + 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 + (z + (t + (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[(z + N[(t + 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(z + \left(t + 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%
Taylor expanded in y around inf 99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
mul-1-neg99.9%
unsub-neg99.9%
log-rec99.9%
distribute-lft-neg-in99.9%
distribute-rgt-neg-in99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -1.4e+194) (not (<= x 3.6e+167))) (+ (* y i) (+ (* x (log y)) (+ a (+ z t)))) (+ (* y i) (+ (+ t a) (fma (log c) (+ b -0.5) z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -1.4e+194) || !(x <= 3.6e+167)) {
tmp = (y * i) + ((x * log(y)) + (a + (z + t)));
} else {
tmp = (y * i) + ((t + a) + fma(log(c), (b + -0.5), z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -1.4e+194) || !(x <= 3.6e+167)) tmp = Float64(Float64(y * i) + Float64(Float64(x * log(y)) + Float64(a + Float64(z + t)))); else tmp = Float64(Float64(y * i) + Float64(Float64(t + a) + fma(log(c), Float64(b + -0.5), z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -1.4e+194], N[Not[LessEqual[x, 3.6e+167]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(N[(t + a), $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b + -0.5), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.4 \cdot 10^{+194} \lor \neg \left(x \leq 3.6 \cdot 10^{+167}\right):\\
\;\;\;\;y \cdot i + \left(x \cdot \log y + \left(a + \left(z + t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(\left(t + a\right) + \mathsf{fma}\left(\log c, b + -0.5, z\right)\right)\\
\end{array}
\end{array}
if x < -1.40000000000000005e194 or 3.60000000000000024e167 < x Initial program 99.8%
Taylor expanded in y around inf 99.8%
associate-+r+99.8%
+-commutative99.8%
associate-+l+99.8%
mul-1-neg99.8%
unsub-neg99.8%
log-rec99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
Simplified99.8%
Taylor expanded in b around inf 99.8%
Taylor expanded in t around 0 99.8%
Taylor expanded in b around 0 99.5%
if -1.40000000000000005e194 < x < 3.60000000000000024e167Initial program 99.9%
Taylor expanded in x around 0 97.2%
+-commutative97.2%
associate-+r+97.2%
+-commutative97.2%
associate-+l+97.2%
*-commutative97.2%
sub-neg97.2%
metadata-eval97.2%
distribute-rgt-in97.2%
*-commutative97.2%
+-commutative97.2%
associate-+r+97.2%
+-commutative97.2%
+-commutative97.2%
Simplified97.2%
Final simplification97.5%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (+ a (+ z (+ t (* 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 + (z + (t + (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 + (z + (t + (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 + (z + (t + (x * Math.log(y))))) + (b * Math.log(c)));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + ((a + (z + (t + (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(z + Float64(t + Float64(x * log(y))))) + Float64(b * log(c)))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + ((a + (z + (t + (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[(z + N[(t + 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(z + \left(t + x \cdot \log y\right)\right)\right) + b \cdot \log c\right)
\end{array}
Initial program 99.9%
Taylor expanded in y around inf 99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
mul-1-neg99.9%
unsub-neg99.9%
log-rec99.9%
distribute-lft-neg-in99.9%
distribute-rgt-neg-in99.9%
Simplified99.9%
Taylor expanded in b around inf 98.7%
Taylor expanded in t around 0 98.7%
Final simplification98.7%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (* (log c) (- b 0.5)) (+ a (+ z (* x (log y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + ((log(c) * (b - 0.5)) + (a + (z + (x * log(y)))));
}
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) + ((log(c) * (b - 0.5d0)) + (a + (z + (x * log(y)))))
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) + ((Math.log(c) * (b - 0.5)) + (a + (z + (x * Math.log(y)))));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + ((math.log(c) * (b - 0.5)) + (a + (z + (x * math.log(y)))))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(Float64(log(c) * Float64(b - 0.5)) + Float64(a + Float64(z + Float64(x * log(y)))))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + ((log(c) * (b - 0.5)) + (a + (z + (x * log(y))))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision] + N[(a + N[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(\log c \cdot \left(b - 0.5\right) + \left(a + \left(z + x \cdot \log y\right)\right)\right)
\end{array}
Initial program 99.9%
Taylor expanded in t around 0 85.4%
Final simplification85.4%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (+ a (+ 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 + (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 + (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 + (z + (x * Math.log(y)))) + (b * Math.log(c)));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + ((a + (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(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 + (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[(z + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(\left(a + \left(z + x \cdot \log y\right)\right) + b \cdot \log c\right)
\end{array}
Initial program 99.9%
Taylor expanded in t around 0 85.4%
Taylor expanded in b around inf 84.2%
Final simplification84.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (+ z t))))
(if (or (<= x -2.25e+194) (not (<= x 8e+168)))
(+ (* y i) (+ (* x (log y)) t_1))
(+ (* y i) (+ (* (log c) (- b 0.5)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a + (z + t);
double tmp;
if ((x <= -2.25e+194) || !(x <= 8e+168)) {
tmp = (y * i) + ((x * log(y)) + t_1);
} else {
tmp = (y * i) + ((log(c) * (b - 0.5)) + 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 = a + (z + t)
if ((x <= (-2.25d+194)) .or. (.not. (x <= 8d+168))) then
tmp = (y * i) + ((x * log(y)) + t_1)
else
tmp = (y * i) + ((log(c) * (b - 0.5d0)) + 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 = a + (z + t);
double tmp;
if ((x <= -2.25e+194) || !(x <= 8e+168)) {
tmp = (y * i) + ((x * Math.log(y)) + t_1);
} else {
tmp = (y * i) + ((Math.log(c) * (b - 0.5)) + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a + (z + t) tmp = 0 if (x <= -2.25e+194) or not (x <= 8e+168): tmp = (y * i) + ((x * math.log(y)) + t_1) else: tmp = (y * i) + ((math.log(c) * (b - 0.5)) + t_1) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a + Float64(z + t)) tmp = 0.0 if ((x <= -2.25e+194) || !(x <= 8e+168)) tmp = Float64(Float64(y * i) + Float64(Float64(x * log(y)) + t_1)); else tmp = Float64(Float64(y * i) + Float64(Float64(log(c) * Float64(b - 0.5)) + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = a + (z + t); tmp = 0.0; if ((x <= -2.25e+194) || ~((x <= 8e+168))) tmp = (y * i) + ((x * log(y)) + t_1); else tmp = (y * i) + ((log(c) * (b - 0.5)) + t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[x, -2.25e+194], N[Not[LessEqual[x, 8e+168]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(z + t\right)\\
\mathbf{if}\;x \leq -2.25 \cdot 10^{+194} \lor \neg \left(x \leq 8 \cdot 10^{+168}\right):\\
\;\;\;\;y \cdot i + \left(x \cdot \log y + t_1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(\log c \cdot \left(b - 0.5\right) + t_1\right)\\
\end{array}
\end{array}
if x < -2.2499999999999999e194 or 7.9999999999999995e168 < x Initial program 99.8%
Taylor expanded in y around inf 99.8%
associate-+r+99.8%
+-commutative99.8%
associate-+l+99.8%
mul-1-neg99.8%
unsub-neg99.8%
log-rec99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
Simplified99.8%
Taylor expanded in b around inf 99.8%
Taylor expanded in t around 0 99.8%
Taylor expanded in b around 0 99.5%
if -2.2499999999999999e194 < x < 7.9999999999999995e168Initial program 99.9%
Taylor expanded in x around 0 97.2%
Final simplification97.5%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= b -2.6e+154) (not (<= b 1.1e+185))) (+ a (+ t (+ z (* b (log c))))) (+ (* y i) (+ (* x (log y)) (+ a (+ z t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((b <= -2.6e+154) || !(b <= 1.1e+185)) {
tmp = a + (t + (z + (b * log(c))));
} else {
tmp = (y * i) + ((x * log(y)) + (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 ((b <= (-2.6d+154)) .or. (.not. (b <= 1.1d+185))) then
tmp = a + (t + (z + (b * log(c))))
else
tmp = (y * i) + ((x * log(y)) + (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 ((b <= -2.6e+154) || !(b <= 1.1e+185)) {
tmp = a + (t + (z + (b * Math.log(c))));
} else {
tmp = (y * i) + ((x * Math.log(y)) + (a + (z + t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (b <= -2.6e+154) or not (b <= 1.1e+185): tmp = a + (t + (z + (b * math.log(c)))) else: tmp = (y * i) + ((x * math.log(y)) + (a + (z + t))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((b <= -2.6e+154) || !(b <= 1.1e+185)) tmp = Float64(a + Float64(t + Float64(z + Float64(b * log(c))))); else tmp = Float64(Float64(y * i) + Float64(Float64(x * log(y)) + 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 ((b <= -2.6e+154) || ~((b <= 1.1e+185))) tmp = a + (t + (z + (b * log(c)))); else tmp = (y * i) + ((x * log(y)) + (a + (z + t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[b, -2.6e+154], N[Not[LessEqual[b, 1.1e+185]], $MachinePrecision]], N[(a + N[(t + N[(z + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.6 \cdot 10^{+154} \lor \neg \left(b \leq 1.1 \cdot 10^{+185}\right):\\
\;\;\;\;a + \left(t + \left(z + b \cdot \log c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(x \cdot \log y + \left(a + \left(z + t\right)\right)\right)\\
\end{array}
\end{array}
if b < -2.59999999999999989e154 or 1.1e185 < b Initial program 99.7%
Taylor expanded in x around 0 96.5%
Taylor expanded in b around inf 96.5%
Taylor expanded in y around 0 85.2%
if -2.59999999999999989e154 < b < 1.1e185Initial program 99.9%
Taylor expanded in y around inf 99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
mul-1-neg99.9%
unsub-neg99.9%
log-rec99.9%
distribute-lft-neg-in99.9%
distribute-rgt-neg-in99.9%
Simplified99.9%
Taylor expanded in b around inf 98.4%
Taylor expanded in t around 0 98.4%
Taylor expanded in b around 0 95.9%
Final simplification93.5%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= x -1.75e+194) (not (<= x 2.55e+168))) (+ (* y i) (+ (* x (log y)) (+ a (+ z t)))) (+ (* y i) (+ (* (log c) (- b 0.5)) (+ z a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x <= -1.75e+194) || !(x <= 2.55e+168)) {
tmp = (y * i) + ((x * log(y)) + (a + (z + t)));
} else {
tmp = (y * i) + ((log(c) * (b - 0.5)) + (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 <= (-1.75d+194)) .or. (.not. (x <= 2.55d+168))) then
tmp = (y * i) + ((x * log(y)) + (a + (z + t)))
else
tmp = (y * i) + ((log(c) * (b - 0.5d0)) + (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 <= -1.75e+194) || !(x <= 2.55e+168)) {
tmp = (y * i) + ((x * Math.log(y)) + (a + (z + t)));
} else {
tmp = (y * i) + ((Math.log(c) * (b - 0.5)) + (z + a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x <= -1.75e+194) or not (x <= 2.55e+168): tmp = (y * i) + ((x * math.log(y)) + (a + (z + t))) else: tmp = (y * i) + ((math.log(c) * (b - 0.5)) + (z + a)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((x <= -1.75e+194) || !(x <= 2.55e+168)) tmp = Float64(Float64(y * i) + Float64(Float64(x * log(y)) + Float64(a + Float64(z + t)))); else tmp = Float64(Float64(y * i) + Float64(Float64(log(c) * Float64(b - 0.5)) + Float64(z + a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x <= -1.75e+194) || ~((x <= 2.55e+168))) tmp = (y * i) + ((x * log(y)) + (a + (z + t))); else tmp = (y * i) + ((log(c) * (b - 0.5)) + (z + a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[x, -1.75e+194], N[Not[LessEqual[x, 2.55e+168]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision] + N[(z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.75 \cdot 10^{+194} \lor \neg \left(x \leq 2.55 \cdot 10^{+168}\right):\\
\;\;\;\;y \cdot i + \left(x \cdot \log y + \left(a + \left(z + t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(\log c \cdot \left(b - 0.5\right) + \left(z + a\right)\right)\\
\end{array}
\end{array}
if x < -1.7499999999999999e194 or 2.55000000000000012e168 < x Initial program 99.8%
Taylor expanded in y around inf 99.8%
associate-+r+99.8%
+-commutative99.8%
associate-+l+99.8%
mul-1-neg99.8%
unsub-neg99.8%
log-rec99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
Simplified99.8%
Taylor expanded in b around inf 99.8%
Taylor expanded in t around 0 99.8%
Taylor expanded in b around 0 99.5%
if -1.7499999999999999e194 < x < 2.55000000000000012e168Initial program 99.9%
Taylor expanded in x around 0 97.2%
Taylor expanded in t around 0 82.0%
Final simplification84.8%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= b -8.4e+154) (not (<= b 6.2e+170))) (+ a (+ t (+ z (* b (log c))))) (+ a (+ (* y i) (+ z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((b <= -8.4e+154) || !(b <= 6.2e+170)) {
tmp = a + (t + (z + (b * log(c))));
} else {
tmp = a + ((y * i) + (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 ((b <= (-8.4d+154)) .or. (.not. (b <= 6.2d+170))) then
tmp = a + (t + (z + (b * log(c))))
else
tmp = a + ((y * i) + (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 ((b <= -8.4e+154) || !(b <= 6.2e+170)) {
tmp = a + (t + (z + (b * Math.log(c))));
} else {
tmp = a + ((y * i) + (z + t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (b <= -8.4e+154) or not (b <= 6.2e+170): tmp = a + (t + (z + (b * math.log(c)))) else: tmp = a + ((y * i) + (z + t)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((b <= -8.4e+154) || !(b <= 6.2e+170)) tmp = Float64(a + Float64(t + Float64(z + Float64(b * log(c))))); else tmp = Float64(a + Float64(Float64(y * i) + Float64(z + t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((b <= -8.4e+154) || ~((b <= 6.2e+170))) tmp = a + (t + (z + (b * log(c)))); else tmp = a + ((y * i) + (z + t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[b, -8.4e+154], N[Not[LessEqual[b, 6.2e+170]], $MachinePrecision]], N[(a + N[(t + N[(z + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(N[(y * i), $MachinePrecision] + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.4 \cdot 10^{+154} \lor \neg \left(b \leq 6.2 \cdot 10^{+170}\right):\\
\;\;\;\;a + \left(t + \left(z + b \cdot \log c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(y \cdot i + \left(z + t\right)\right)\\
\end{array}
\end{array}
if b < -8.39999999999999977e154 or 6.2e170 < b Initial program 99.7%
Taylor expanded in x around 0 96.5%
Taylor expanded in b around inf 96.5%
Taylor expanded in y around 0 85.2%
if -8.39999999999999977e154 < b < 6.2e170Initial program 99.9%
Taylor expanded in x around 0 88.7%
Taylor expanded in b around inf 87.1%
Taylor expanded in b around 0 84.9%
associate-+r+84.9%
*-commutative84.9%
Simplified84.9%
Final simplification85.0%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -8.6e+136) (+ a (+ (* y i) (+ z t))) (+ (* y i) (+ (+ t a) (* b (log c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (z <= -8.6e+136) {
tmp = a + ((y * i) + (z + t));
} else {
tmp = (y * i) + ((t + a) + (b * 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 (z <= (-8.6d+136)) then
tmp = a + ((y * i) + (z + t))
else
tmp = (y * i) + ((t + a) + (b * 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 (z <= -8.6e+136) {
tmp = a + ((y * i) + (z + t));
} else {
tmp = (y * i) + ((t + a) + (b * Math.log(c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -8.6e+136: tmp = a + ((y * i) + (z + t)) else: tmp = (y * i) + ((t + a) + (b * math.log(c))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -8.6e+136) tmp = Float64(a + Float64(Float64(y * i) + Float64(z + t))); else tmp = Float64(Float64(y * i) + Float64(Float64(t + a) + Float64(b * log(c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (z <= -8.6e+136) tmp = a + ((y * i) + (z + t)); else tmp = (y * i) + ((t + a) + (b * log(c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -8.6e+136], N[(a + N[(N[(y * i), $MachinePrecision] + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(N[(t + a), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.6 \cdot 10^{+136}:\\
\;\;\;\;a + \left(y \cdot i + \left(z + t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(\left(t + a\right) + b \cdot \log c\right)\\
\end{array}
\end{array}
if z < -8.5999999999999997e136Initial program 100.0%
Taylor expanded in x around 0 91.0%
Taylor expanded in b around inf 91.0%
Taylor expanded in b around 0 85.8%
associate-+r+85.8%
*-commutative85.8%
Simplified85.8%
if -8.5999999999999997e136 < z Initial program 99.9%
Taylor expanded in x around 0 90.3%
Taylor expanded in b around inf 88.9%
Taylor expanded in z around 0 79.3%
+-commutative79.3%
Simplified79.3%
Final simplification80.3%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= b -5.4e+165) (not (<= b 7.6e+201))) (+ (* y i) (* b (log c))) (+ a (+ (* y i) (+ z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((b <= -5.4e+165) || !(b <= 7.6e+201)) {
tmp = (y * i) + (b * log(c));
} else {
tmp = a + ((y * i) + (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 ((b <= (-5.4d+165)) .or. (.not. (b <= 7.6d+201))) then
tmp = (y * i) + (b * log(c))
else
tmp = a + ((y * i) + (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 ((b <= -5.4e+165) || !(b <= 7.6e+201)) {
tmp = (y * i) + (b * Math.log(c));
} else {
tmp = a + ((y * i) + (z + t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (b <= -5.4e+165) or not (b <= 7.6e+201): tmp = (y * i) + (b * math.log(c)) else: tmp = a + ((y * i) + (z + t)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((b <= -5.4e+165) || !(b <= 7.6e+201)) tmp = Float64(Float64(y * i) + Float64(b * log(c))); else tmp = Float64(a + Float64(Float64(y * i) + Float64(z + t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((b <= -5.4e+165) || ~((b <= 7.6e+201))) tmp = (y * i) + (b * log(c)); else tmp = a + ((y * i) + (z + t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[b, -5.4e+165], N[Not[LessEqual[b, 7.6e+201]], $MachinePrecision]], N[(N[(y * i), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(N[(y * i), $MachinePrecision] + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.4 \cdot 10^{+165} \lor \neg \left(b \leq 7.6 \cdot 10^{+201}\right):\\
\;\;\;\;y \cdot i + b \cdot \log c\\
\mathbf{else}:\\
\;\;\;\;a + \left(y \cdot i + \left(z + t\right)\right)\\
\end{array}
\end{array}
if b < -5.3999999999999999e165 or 7.59999999999999991e201 < b Initial program 99.7%
Taylor expanded in y around inf 99.7%
associate-+r+99.7%
+-commutative99.7%
associate-+l+99.7%
mul-1-neg99.7%
unsub-neg99.7%
log-rec99.7%
distribute-lft-neg-in99.7%
distribute-rgt-neg-in99.7%
Simplified99.7%
Taylor expanded in b around inf 74.5%
if -5.3999999999999999e165 < b < 7.59999999999999991e201Initial program 99.9%
Taylor expanded in x around 0 88.9%
Taylor expanded in b around inf 87.4%
Taylor expanded in b around 0 84.7%
associate-+r+84.7%
*-commutative84.7%
Simplified84.7%
Final simplification82.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* b (log c))))
(if (<= b -7.6e+165)
(+ (* y i) t_1)
(if (<= b 4e+189) (+ a (+ (* y i) (+ z t))) (+ (+ t a) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = b * log(c);
double tmp;
if (b <= -7.6e+165) {
tmp = (y * i) + t_1;
} else if (b <= 4e+189) {
tmp = a + ((y * i) + (z + t));
} else {
tmp = (t + 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 = b * log(c)
if (b <= (-7.6d+165)) then
tmp = (y * i) + t_1
else if (b <= 4d+189) then
tmp = a + ((y * i) + (z + t))
else
tmp = (t + 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 = b * Math.log(c);
double tmp;
if (b <= -7.6e+165) {
tmp = (y * i) + t_1;
} else if (b <= 4e+189) {
tmp = a + ((y * i) + (z + t));
} else {
tmp = (t + a) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = b * math.log(c) tmp = 0 if b <= -7.6e+165: tmp = (y * i) + t_1 elif b <= 4e+189: tmp = a + ((y * i) + (z + t)) else: tmp = (t + a) + t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(b * log(c)) tmp = 0.0 if (b <= -7.6e+165) tmp = Float64(Float64(y * i) + t_1); elseif (b <= 4e+189) tmp = Float64(a + Float64(Float64(y * i) + Float64(z + t))); else tmp = Float64(Float64(t + a) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = b * log(c); tmp = 0.0; if (b <= -7.6e+165) tmp = (y * i) + t_1; elseif (b <= 4e+189) tmp = a + ((y * i) + (z + t)); else tmp = (t + a) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.6e+165], N[(N[(y * i), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, 4e+189], N[(a + N[(N[(y * i), $MachinePrecision] + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + a), $MachinePrecision] + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \log c\\
\mathbf{if}\;b \leq -7.6 \cdot 10^{+165}:\\
\;\;\;\;y \cdot i + t_1\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+189}:\\
\;\;\;\;a + \left(y \cdot i + \left(z + t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t + a\right) + t_1\\
\end{array}
\end{array}
if b < -7.59999999999999981e165Initial program 99.7%
Taylor expanded in y around inf 99.7%
associate-+r+99.7%
+-commutative99.7%
associate-+l+99.7%
mul-1-neg99.7%
unsub-neg99.7%
log-rec99.7%
distribute-lft-neg-in99.7%
distribute-rgt-neg-in99.7%
Simplified99.7%
Taylor expanded in b around inf 77.5%
if -7.59999999999999981e165 < b < 4.0000000000000001e189Initial program 99.9%
Taylor expanded in x around 0 88.8%
Taylor expanded in b around inf 87.3%
Taylor expanded in b around 0 84.6%
associate-+r+84.6%
*-commutative84.6%
Simplified84.6%
if 4.0000000000000001e189 < b Initial program 99.7%
Taylor expanded in x around 0 89.9%
Taylor expanded in b around inf 89.9%
Taylor expanded in z around 0 79.3%
+-commutative79.3%
Simplified79.3%
Taylor expanded in y around 0 74.3%
associate-+r+74.4%
+-commutative74.4%
Simplified74.4%
Final simplification82.9%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= b -4.8e+166) (not (<= b 1.8e+236))) (* b (log c)) (+ a (+ (* y i) (+ z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((b <= -4.8e+166) || !(b <= 1.8e+236)) {
tmp = b * log(c);
} else {
tmp = a + ((y * i) + (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 ((b <= (-4.8d+166)) .or. (.not. (b <= 1.8d+236))) then
tmp = b * log(c)
else
tmp = a + ((y * i) + (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 ((b <= -4.8e+166) || !(b <= 1.8e+236)) {
tmp = b * Math.log(c);
} else {
tmp = a + ((y * i) + (z + t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (b <= -4.8e+166) or not (b <= 1.8e+236): tmp = b * math.log(c) else: tmp = a + ((y * i) + (z + t)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((b <= -4.8e+166) || !(b <= 1.8e+236)) tmp = Float64(b * log(c)); else tmp = Float64(a + Float64(Float64(y * i) + Float64(z + t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((b <= -4.8e+166) || ~((b <= 1.8e+236))) tmp = b * log(c); else tmp = a + ((y * i) + (z + t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[b, -4.8e+166], N[Not[LessEqual[b, 1.8e+236]], $MachinePrecision]], N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision], N[(a + N[(N[(y * i), $MachinePrecision] + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.8 \cdot 10^{+166} \lor \neg \left(b \leq 1.8 \cdot 10^{+236}\right):\\
\;\;\;\;b \cdot \log c\\
\mathbf{else}:\\
\;\;\;\;a + \left(y \cdot i + \left(z + t\right)\right)\\
\end{array}
\end{array}
if b < -4.79999999999999984e166 or 1.8e236 < b Initial program 99.6%
Taylor expanded in y around inf 99.6%
associate-+r+99.6%
+-commutative99.6%
associate-+l+99.6%
mul-1-neg99.6%
unsub-neg99.6%
log-rec99.6%
distribute-lft-neg-in99.6%
distribute-rgt-neg-in99.6%
Simplified99.6%
Taylor expanded in b around inf 99.6%
Taylor expanded in b around inf 64.7%
if -4.79999999999999984e166 < b < 1.8e236Initial program 99.9%
Taylor expanded in x around 0 89.2%
Taylor expanded in b around inf 87.7%
Taylor expanded in b around 0 84.1%
associate-+r+84.1%
*-commutative84.1%
Simplified84.1%
Final simplification80.4%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -9.5e+136) (+ z (* y i)) (+ (+ 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 (z <= -9.5e+136) {
tmp = z + (y * i);
} else {
tmp = (t + 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 <= (-9.5d+136)) then
tmp = z + (y * i)
else
tmp = (t + 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 <= -9.5e+136) {
tmp = z + (y * i);
} else {
tmp = (t + a) + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -9.5e+136: tmp = z + (y * i) else: tmp = (t + a) + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -9.5e+136) tmp = Float64(z + Float64(y * i)); else tmp = Float64(Float64(t + 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 <= -9.5e+136) tmp = z + (y * i); else tmp = (t + a) + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -9.5e+136], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(t + a), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.5 \cdot 10^{+136}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(t + a\right) + y \cdot i\\
\end{array}
\end{array}
if z < -9.49999999999999907e136Initial program 100.0%
Taylor expanded in z around inf 66.1%
if -9.49999999999999907e136 < z Initial program 99.9%
Taylor expanded in x around 0 90.3%
Taylor expanded in b around inf 88.9%
Taylor expanded in z around 0 79.3%
+-commutative79.3%
Simplified79.3%
Taylor expanded in b around 0 61.9%
+-commutative61.9%
Simplified61.9%
Final simplification62.5%
(FPCore (x y z t a b c i) :precision binary64 (+ a (+ (* y i) (+ z t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a + ((y * i) + (z + t));
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = a + ((y * i) + (z + t))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a + ((y * i) + (z + t));
}
def code(x, y, z, t, a, b, c, i): return a + ((y * i) + (z + t))
function code(x, y, z, t, a, b, c, i) return Float64(a + Float64(Float64(y * i) + Float64(z + t))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = a + ((y * i) + (z + t)); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(a + N[(N[(y * i), $MachinePrecision] + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a + \left(y \cdot i + \left(z + t\right)\right)
\end{array}
Initial program 99.9%
Taylor expanded in x around 0 90.4%
Taylor expanded in b around inf 89.2%
Taylor expanded in b around 0 73.6%
associate-+r+73.6%
*-commutative73.6%
Simplified73.6%
Final simplification73.6%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 1.3e-230) z (if (<= a 1.26e+151) (* 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.3e-230) {
tmp = z;
} else if (a <= 1.26e+151) {
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.3d-230) then
tmp = z
else if (a <= 1.26d+151) 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.3e-230) {
tmp = z;
} else if (a <= 1.26e+151) {
tmp = y * i;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 1.3e-230: tmp = z elif a <= 1.26e+151: tmp = y * i else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 1.3e-230) tmp = z; elseif (a <= 1.26e+151) 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.3e-230) tmp = z; elseif (a <= 1.26e+151) tmp = y * i; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 1.3e-230], z, If[LessEqual[a, 1.26e+151], N[(y * i), $MachinePrecision], a]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.3 \cdot 10^{-230}:\\
\;\;\;\;z\\
\mathbf{elif}\;a \leq 1.26 \cdot 10^{+151}:\\
\;\;\;\;y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < 1.3000000000000001e-230Initial program 99.8%
Taylor expanded in y around inf 99.8%
associate-+r+99.8%
+-commutative99.8%
associate-+l+99.8%
mul-1-neg99.8%
unsub-neg99.8%
log-rec99.8%
distribute-lft-neg-in99.8%
distribute-rgt-neg-in99.8%
Simplified99.8%
Taylor expanded in b around inf 98.1%
Taylor expanded in z around inf 14.0%
if 1.3000000000000001e-230 < a < 1.26000000000000006e151Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
fma-def99.9%
sub-neg99.9%
metadata-eval99.9%
+-commutative99.9%
fma-def99.9%
+-commutative99.9%
associate-+l+99.9%
fma-def99.9%
Simplified99.9%
Taylor expanded in y around inf 37.0%
*-commutative37.0%
Simplified37.0%
if 1.26000000000000006e151 < a Initial program 99.9%
Taylor expanded in y around inf 99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
mul-1-neg99.9%
unsub-neg99.9%
log-rec99.9%
distribute-lft-neg-in99.9%
distribute-rgt-neg-in99.9%
Simplified99.9%
Taylor expanded in b around inf 99.9%
Taylor expanded in a around inf 39.3%
Final simplification26.3%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -1.02e+208) 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 <= -1.02e+208) {
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 <= (-1.02d+208)) 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 <= -1.02e+208) {
tmp = z;
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -1.02e+208: tmp = z else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -1.02e+208) 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 <= -1.02e+208) tmp = z; else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -1.02e+208], z, N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.02 \cdot 10^{+208}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if z < -1.02e208Initial program 99.9%
Taylor expanded in y around inf 99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
mul-1-neg99.9%
unsub-neg99.9%
log-rec99.9%
distribute-lft-neg-in99.9%
distribute-rgt-neg-in99.9%
Simplified99.9%
Taylor expanded in b around inf 99.9%
Taylor expanded in z around inf 64.1%
if -1.02e208 < z Initial program 99.9%
Taylor expanded in a around inf 47.2%
Final simplification48.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -7.2e+137) (+ 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 (z <= -7.2e+137) {
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 (z <= (-7.2d+137)) 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 (z <= -7.2e+137) {
tmp = z + (y * i);
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -7.2e+137: 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 (z <= -7.2e+137) 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 (z <= -7.2e+137) 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[z, -7.2e+137], N[(z + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.2 \cdot 10^{+137}:\\
\;\;\;\;z + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if z < -7.1999999999999999e137Initial program 100.0%
Taylor expanded in z around inf 66.1%
if -7.1999999999999999e137 < z Initial program 99.9%
Taylor expanded in a around inf 46.8%
Final simplification49.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -5.8e+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 <= -5.8e+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 <= (-5.8d+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 <= -5.8e+137) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -5.8e+137: tmp = z else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -5.8e+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 <= -5.8e+137) tmp = z; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -5.8e+137], z, a]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{+137}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if z < -5.79999999999999969e137Initial program 100.0%
Taylor expanded in y around inf 100.0%
associate-+r+100.0%
+-commutative100.0%
associate-+l+100.0%
mul-1-neg100.0%
unsub-neg100.0%
log-rec100.0%
distribute-lft-neg-in100.0%
distribute-rgt-neg-in100.0%
Simplified100.0%
Taylor expanded in b around inf 100.0%
Taylor expanded in z around inf 45.4%
if -5.79999999999999969e137 < z Initial program 99.9%
Taylor expanded in y around inf 99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
mul-1-neg99.9%
unsub-neg99.9%
log-rec99.9%
distribute-lft-neg-in99.9%
distribute-rgt-neg-in99.9%
Simplified99.9%
Taylor expanded in b around inf 98.5%
Taylor expanded in a around inf 17.3%
Final simplification21.4%
(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 y around inf 99.9%
associate-+r+99.9%
+-commutative99.9%
associate-+l+99.9%
mul-1-neg99.9%
unsub-neg99.9%
log-rec99.9%
distribute-lft-neg-in99.9%
distribute-rgt-neg-in99.9%
Simplified99.9%
Taylor expanded in b around inf 98.7%
Taylor expanded in a around inf 16.7%
Final simplification16.7%
herbie shell --seed 2023195
(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)))