
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* 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}
Initial program 99.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* b (log c))) (t_2 (* (- b 0.5) (log c))))
(if (<= t_2 -1e+196)
(+ (* y i) (+ a t_1))
(if (<= t_2 2e+136)
(+ (* y i) (+ (+ (* x (log y)) z) (+ t a)))
(+ (* y i) (+ t_1 (+ z a)))))))
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 t_2 = (b - 0.5) * log(c);
double tmp;
if (t_2 <= -1e+196) {
tmp = (y * i) + (a + t_1);
} else if (t_2 <= 2e+136) {
tmp = (y * i) + (((x * log(y)) + z) + (t + a));
} else {
tmp = (y * i) + (t_1 + (z + a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * log(c)
t_2 = (b - 0.5d0) * log(c)
if (t_2 <= (-1d+196)) then
tmp = (y * i) + (a + t_1)
else if (t_2 <= 2d+136) then
tmp = (y * i) + (((x * log(y)) + z) + (t + a))
else
tmp = (y * i) + (t_1 + (z + a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = b * Math.log(c);
double t_2 = (b - 0.5) * Math.log(c);
double tmp;
if (t_2 <= -1e+196) {
tmp = (y * i) + (a + t_1);
} else if (t_2 <= 2e+136) {
tmp = (y * i) + (((x * Math.log(y)) + z) + (t + a));
} else {
tmp = (y * i) + (t_1 + (z + a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = b * math.log(c) t_2 = (b - 0.5) * math.log(c) tmp = 0 if t_2 <= -1e+196: tmp = (y * i) + (a + t_1) elif t_2 <= 2e+136: tmp = (y * i) + (((x * math.log(y)) + z) + (t + a)) else: tmp = (y * i) + (t_1 + (z + a)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(b * log(c)) t_2 = Float64(Float64(b - 0.5) * log(c)) tmp = 0.0 if (t_2 <= -1e+196) tmp = Float64(Float64(y * i) + Float64(a + t_1)); elseif (t_2 <= 2e+136) tmp = Float64(Float64(y * i) + Float64(Float64(Float64(x * log(y)) + z) + Float64(t + a))); else tmp = Float64(Float64(y * i) + Float64(t_1 + Float64(z + a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = b * log(c); t_2 = (b - 0.5) * log(c); tmp = 0.0; if (t_2 <= -1e+196) tmp = (y * i) + (a + t_1); elseif (t_2 <= 2e+136) tmp = (y * i) + (((x * log(y)) + z) + (t + a)); else tmp = (y * i) + (t_1 + (z + a)); 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]}, Block[{t$95$2 = N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+196], N[(N[(y * i), $MachinePrecision] + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+136], N[(N[(y * i), $MachinePrecision] + N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(t$95$1 + N[(z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \log c\\
t_2 := \left(b - 0.5\right) \cdot \log c\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{+196}:\\
\;\;\;\;y \cdot i + \left(a + t\_1\right)\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+136}:\\
\;\;\;\;y \cdot i + \left(\left(x \cdot \log y + z\right) + \left(t + a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(t\_1 + \left(z + a\right)\right)\\
\end{array}
\end{array}
if (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c)) < -9.9999999999999995e195Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6499.9%
Simplified99.9%
Taylor expanded in a around inf
Simplified92.2%
if -9.9999999999999995e195 < (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c)) < 2.00000000000000012e136Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6498.3%
Simplified98.3%
Taylor expanded in b around 0
associate-+r+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6496.8%
Simplified96.8%
if 2.00000000000000012e136 < (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c)) Initial program 99.7%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6499.7%
Simplified99.7%
Taylor expanded in z around inf
Simplified69.1%
Final simplification93.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* x (log y))) (t_2 (* (- b 0.5) (log c))))
(if (<= x -1.3e+70)
(+ (* y i) (+ (+ t_1 z) (+ t a)))
(if (<= x 1.2e+160)
(+ (* y i) (+ t_2 (+ a (+ z t))))
(+ (* y i) (+ t_2 (+ t_1 a)))))))
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 t_2 = (b - 0.5) * log(c);
double tmp;
if (x <= -1.3e+70) {
tmp = (y * i) + ((t_1 + z) + (t + a));
} else if (x <= 1.2e+160) {
tmp = (y * i) + (t_2 + (a + (z + t)));
} else {
tmp = (y * i) + (t_2 + (t_1 + a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * log(y)
t_2 = (b - 0.5d0) * log(c)
if (x <= (-1.3d+70)) then
tmp = (y * i) + ((t_1 + z) + (t + a))
else if (x <= 1.2d+160) then
tmp = (y * i) + (t_2 + (a + (z + t)))
else
tmp = (y * i) + (t_2 + (t_1 + a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x * Math.log(y);
double t_2 = (b - 0.5) * Math.log(c);
double tmp;
if (x <= -1.3e+70) {
tmp = (y * i) + ((t_1 + z) + (t + a));
} else if (x <= 1.2e+160) {
tmp = (y * i) + (t_2 + (a + (z + t)));
} else {
tmp = (y * i) + (t_2 + (t_1 + a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x * math.log(y) t_2 = (b - 0.5) * math.log(c) tmp = 0 if x <= -1.3e+70: tmp = (y * i) + ((t_1 + z) + (t + a)) elif x <= 1.2e+160: tmp = (y * i) + (t_2 + (a + (z + t))) else: tmp = (y * i) + (t_2 + (t_1 + a)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x * log(y)) t_2 = Float64(Float64(b - 0.5) * log(c)) tmp = 0.0 if (x <= -1.3e+70) tmp = Float64(Float64(y * i) + Float64(Float64(t_1 + z) + Float64(t + a))); elseif (x <= 1.2e+160) tmp = Float64(Float64(y * i) + Float64(t_2 + Float64(a + Float64(z + t)))); else tmp = Float64(Float64(y * i) + Float64(t_2 + Float64(t_1 + a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x * log(y); t_2 = (b - 0.5) * log(c); tmp = 0.0; if (x <= -1.3e+70) tmp = (y * i) + ((t_1 + z) + (t + a)); elseif (x <= 1.2e+160) tmp = (y * i) + (t_2 + (a + (z + t))); else tmp = (y * i) + (t_2 + (t_1 + a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.3e+70], N[(N[(y * i), $MachinePrecision] + N[(N[(t$95$1 + z), $MachinePrecision] + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e+160], N[(N[(y * i), $MachinePrecision] + N[(t$95$2 + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * i), $MachinePrecision] + N[(t$95$2 + N[(t$95$1 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
t_2 := \left(b - 0.5\right) \cdot \log c\\
\mathbf{if}\;x \leq -1.3 \cdot 10^{+70}:\\
\;\;\;\;y \cdot i + \left(\left(t\_1 + z\right) + \left(t + a\right)\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{+160}:\\
\;\;\;\;y \cdot i + \left(t\_2 + \left(a + \left(z + t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot i + \left(t\_2 + \left(t\_1 + a\right)\right)\\
\end{array}
\end{array}
if x < -1.3e70Initial program 99.8%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6499.8%
Simplified99.8%
Taylor expanded in b around 0
associate-+r+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6496.3%
Simplified96.3%
if -1.3e70 < x < 1.2000000000000001e160Initial program 99.9%
Taylor expanded in x around 0
Simplified98.8%
if 1.2000000000000001e160 < x Initial program 99.8%
Taylor expanded in x around inf
*-lowering-*.f64N/A
log-lowering-log.f6480.9%
Simplified80.9%
Final simplification95.3%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ (+ (+ (+ (* x (log y)) z) t) a) (* b (log c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + (((((x * log(y)) + z) + t) + a) + (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) + (((((x * log(y)) + z) + t) + a) + (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) + (((((x * Math.log(y)) + z) + t) + a) + (b * Math.log(c)));
}
def code(x, y, z, t, a, b, c, i): return (y * i) + (((((x * math.log(y)) + z) + t) + a) + (b * math.log(c)))
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(b * log(c)))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + (((((x * log(y)) + z) + t) + a) + (b * log(c))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + b \cdot \log c\right)
\end{array}
Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6498.7%
Simplified98.7%
Final simplification98.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y i) (+ (+ (* x (log y)) z) (+ t a)))))
(if (<= x -1.22e+70)
t_1
(if (<= x 1.1e+134)
(+ (* y i) (+ (* (- b 0.5) (log c)) (+ a (+ z t))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * i) + (((x * log(y)) + z) + (t + a));
double tmp;
if (x <= -1.22e+70) {
tmp = t_1;
} else if (x <= 1.1e+134) {
tmp = (y * i) + (((b - 0.5) * log(c)) + (a + (z + t)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (y * i) + (((x * log(y)) + z) + (t + a))
if (x <= (-1.22d+70)) then
tmp = t_1
else if (x <= 1.1d+134) then
tmp = (y * i) + (((b - 0.5d0) * log(c)) + (a + (z + t)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * i) + (((x * Math.log(y)) + z) + (t + a));
double tmp;
if (x <= -1.22e+70) {
tmp = t_1;
} else if (x <= 1.1e+134) {
tmp = (y * i) + (((b - 0.5) * Math.log(c)) + (a + (z + t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * i) + (((x * math.log(y)) + z) + (t + a)) tmp = 0 if x <= -1.22e+70: tmp = t_1 elif x <= 1.1e+134: tmp = (y * i) + (((b - 0.5) * math.log(c)) + (a + (z + t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * i) + Float64(Float64(Float64(x * log(y)) + z) + Float64(t + a))) tmp = 0.0 if (x <= -1.22e+70) tmp = t_1; elseif (x <= 1.1e+134) tmp = Float64(Float64(y * i) + Float64(Float64(Float64(b - 0.5) * log(c)) + Float64(a + Float64(z + t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * i) + (((x * log(y)) + z) + (t + a)); tmp = 0.0; if (x <= -1.22e+70) tmp = t_1; elseif (x <= 1.1e+134) tmp = (y * i) + (((b - 0.5) * log(c)) + (a + (z + t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * i), $MachinePrecision] + N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.22e+70], t$95$1, If[LessEqual[x, 1.1e+134], N[(N[(y * i), $MachinePrecision] + N[(N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision] + N[(a + N[(z + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot i + \left(\left(x \cdot \log y + z\right) + \left(t + a\right)\right)\\
\mathbf{if}\;x \leq -1.22 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+134}:\\
\;\;\;\;y \cdot i + \left(\left(b - 0.5\right) \cdot \log c + \left(a + \left(z + t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.22e70 or 1.1e134 < x Initial program 99.8%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6499.8%
Simplified99.8%
Taylor expanded in b around 0
associate-+r+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6494.9%
Simplified94.9%
if -1.22e70 < x < 1.1e134Initial program 99.9%
Taylor expanded in x around 0
Simplified98.7%
Final simplification97.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y i) (+ (+ (* x (log y)) z) (+ t a)))))
(if (<= x -1.7e+70)
t_1
(if (<= x 1.55e+122) (+ (* y i) (+ (* (- b 0.5) (log c)) (+ z a))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * i) + (((x * log(y)) + z) + (t + a));
double tmp;
if (x <= -1.7e+70) {
tmp = t_1;
} else if (x <= 1.55e+122) {
tmp = (y * i) + (((b - 0.5) * log(c)) + (z + a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (y * i) + (((x * log(y)) + z) + (t + a))
if (x <= (-1.7d+70)) then
tmp = t_1
else if (x <= 1.55d+122) then
tmp = (y * i) + (((b - 0.5d0) * log(c)) + (z + a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * i) + (((x * Math.log(y)) + z) + (t + a));
double tmp;
if (x <= -1.7e+70) {
tmp = t_1;
} else if (x <= 1.55e+122) {
tmp = (y * i) + (((b - 0.5) * Math.log(c)) + (z + a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * i) + (((x * math.log(y)) + z) + (t + a)) tmp = 0 if x <= -1.7e+70: tmp = t_1 elif x <= 1.55e+122: tmp = (y * i) + (((b - 0.5) * math.log(c)) + (z + a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * i) + Float64(Float64(Float64(x * log(y)) + z) + Float64(t + a))) tmp = 0.0 if (x <= -1.7e+70) tmp = t_1; elseif (x <= 1.55e+122) tmp = Float64(Float64(y * i) + Float64(Float64(Float64(b - 0.5) * log(c)) + Float64(z + a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * i) + (((x * log(y)) + z) + (t + a)); tmp = 0.0; if (x <= -1.7e+70) tmp = t_1; elseif (x <= 1.55e+122) tmp = (y * i) + (((b - 0.5) * log(c)) + (z + a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * i), $MachinePrecision] + N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + N[(t + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.7e+70], t$95$1, If[LessEqual[x, 1.55e+122], N[(N[(y * i), $MachinePrecision] + N[(N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision] + N[(z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot i + \left(\left(x \cdot \log y + z\right) + \left(t + a\right)\right)\\
\mathbf{if}\;x \leq -1.7 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.55 \cdot 10^{+122}:\\
\;\;\;\;y \cdot i + \left(\left(b - 0.5\right) \cdot \log c + \left(z + a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.7e70 or 1.54999999999999999e122 < x Initial program 99.8%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6499.8%
Simplified99.8%
Taylor expanded in b around 0
associate-+r+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
log-lowering-log.f6494.9%
Simplified94.9%
if -1.7e70 < x < 1.54999999999999999e122Initial program 99.9%
Taylor expanded in z around inf
Simplified79.6%
Final simplification85.8%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= x -1.8e+158)
(+ (* x (log y)) (* y i))
(if (<= x 2.1e+192)
(+ (* y i) (+ (* b (log c)) (+ z a)))
(* x (* i (+ (/ y x) (/ (log y) i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (x <= -1.8e+158) {
tmp = (x * log(y)) + (y * i);
} else if (x <= 2.1e+192) {
tmp = (y * i) + ((b * log(c)) + (z + a));
} else {
tmp = x * (i * ((y / x) + (log(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 <= (-1.8d+158)) then
tmp = (x * log(y)) + (y * i)
else if (x <= 2.1d+192) then
tmp = (y * i) + ((b * log(c)) + (z + a))
else
tmp = x * (i * ((y / x) + (log(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 <= -1.8e+158) {
tmp = (x * Math.log(y)) + (y * i);
} else if (x <= 2.1e+192) {
tmp = (y * i) + ((b * Math.log(c)) + (z + a));
} else {
tmp = x * (i * ((y / x) + (Math.log(y) / i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if x <= -1.8e+158: tmp = (x * math.log(y)) + (y * i) elif x <= 2.1e+192: tmp = (y * i) + ((b * math.log(c)) + (z + a)) else: tmp = x * (i * ((y / x) + (math.log(y) / i))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (x <= -1.8e+158) tmp = Float64(Float64(x * log(y)) + Float64(y * i)); elseif (x <= 2.1e+192) tmp = Float64(Float64(y * i) + Float64(Float64(b * log(c)) + Float64(z + a))); else tmp = Float64(x * Float64(i * Float64(Float64(y / x) + Float64(log(y) / i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (x <= -1.8e+158) tmp = (x * log(y)) + (y * i); elseif (x <= 2.1e+192) tmp = (y * i) + ((b * log(c)) + (z + a)); else tmp = x * (i * ((y / x) + (log(y) / i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[x, -1.8e+158], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.1e+192], N[(N[(y * i), $MachinePrecision] + N[(N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision] + N[(z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(i * N[(N[(y / x), $MachinePrecision] + N[(N[Log[y], $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.8 \cdot 10^{+158}:\\
\;\;\;\;x \cdot \log y + y \cdot i\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{+192}:\\
\;\;\;\;y \cdot i + \left(b \cdot \log c + \left(z + a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(i \cdot \left(\frac{y}{x} + \frac{\log y}{i}\right)\right)\\
\end{array}
\end{array}
if x < -1.79999999999999994e158Initial program 99.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
log-lowering-log.f6474.1%
Simplified74.1%
if -1.79999999999999994e158 < x < 2.09999999999999995e192Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6498.3%
Simplified98.3%
Taylor expanded in z around inf
Simplified75.4%
if 2.09999999999999995e192 < x Initial program 99.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
log-lowering-log.f6482.4%
Simplified82.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6482.4%
Simplified82.4%
Taylor expanded in i around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
log-lowering-log.f6482.4%
Simplified82.4%
Final simplification76.0%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= x -8.2e+155)
(+ (* x (log y)) (* y i))
(if (<= x 4.8e+173)
(+ (* y i) (+ z a))
(* x (* i (+ (/ y x) (/ (log y) i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (x <= -8.2e+155) {
tmp = (x * log(y)) + (y * i);
} else if (x <= 4.8e+173) {
tmp = (y * i) + (z + a);
} else {
tmp = x * (i * ((y / x) + (log(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 <= (-8.2d+155)) then
tmp = (x * log(y)) + (y * i)
else if (x <= 4.8d+173) then
tmp = (y * i) + (z + a)
else
tmp = x * (i * ((y / x) + (log(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 <= -8.2e+155) {
tmp = (x * Math.log(y)) + (y * i);
} else if (x <= 4.8e+173) {
tmp = (y * i) + (z + a);
} else {
tmp = x * (i * ((y / x) + (Math.log(y) / i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if x <= -8.2e+155: tmp = (x * math.log(y)) + (y * i) elif x <= 4.8e+173: tmp = (y * i) + (z + a) else: tmp = x * (i * ((y / x) + (math.log(y) / i))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (x <= -8.2e+155) tmp = Float64(Float64(x * log(y)) + Float64(y * i)); elseif (x <= 4.8e+173) tmp = Float64(Float64(y * i) + Float64(z + a)); else tmp = Float64(x * Float64(i * Float64(Float64(y / x) + Float64(log(y) / i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (x <= -8.2e+155) tmp = (x * log(y)) + (y * i); elseif (x <= 4.8e+173) tmp = (y * i) + (z + a); else tmp = x * (i * ((y / x) + (log(y) / i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[x, -8.2e+155], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.8e+173], N[(N[(y * i), $MachinePrecision] + N[(z + a), $MachinePrecision]), $MachinePrecision], N[(x * N[(i * N[(N[(y / x), $MachinePrecision] + N[(N[Log[y], $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.2 \cdot 10^{+155}:\\
\;\;\;\;x \cdot \log y + y \cdot i\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{+173}:\\
\;\;\;\;y \cdot i + \left(z + a\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(i \cdot \left(\frac{y}{x} + \frac{\log y}{i}\right)\right)\\
\end{array}
\end{array}
if x < -8.1999999999999996e155Initial program 99.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
log-lowering-log.f6474.1%
Simplified74.1%
if -8.1999999999999996e155 < x < 4.7999999999999998e173Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6498.2%
Simplified98.2%
Taylor expanded in z around inf
Simplified75.4%
Taylor expanded in b around 0
+-lowering-+.f6461.5%
Simplified61.5%
if 4.7999999999999998e173 < x Initial program 99.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
log-lowering-log.f6480.9%
Simplified80.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6480.9%
Simplified80.9%
Taylor expanded in i around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
log-lowering-log.f6480.9%
Simplified80.9%
Final simplification66.0%
(FPCore (x y z t a b c i) :precision binary64 (if (<= x -8e+153) (+ (* x (log y)) (* y i)) (if (<= x 7.5e+173) (+ (* y i) (+ z a)) (* x (+ (log y) (* i (/ y x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (x <= -8e+153) {
tmp = (x * log(y)) + (y * i);
} else if (x <= 7.5e+173) {
tmp = (y * i) + (z + a);
} else {
tmp = x * (log(y) + (i * (y / x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (x <= (-8d+153)) then
tmp = (x * log(y)) + (y * i)
else if (x <= 7.5d+173) then
tmp = (y * i) + (z + a)
else
tmp = x * (log(y) + (i * (y / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (x <= -8e+153) {
tmp = (x * Math.log(y)) + (y * i);
} else if (x <= 7.5e+173) {
tmp = (y * i) + (z + a);
} else {
tmp = x * (Math.log(y) + (i * (y / x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if x <= -8e+153: tmp = (x * math.log(y)) + (y * i) elif x <= 7.5e+173: tmp = (y * i) + (z + a) else: tmp = x * (math.log(y) + (i * (y / x))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (x <= -8e+153) tmp = Float64(Float64(x * log(y)) + Float64(y * i)); elseif (x <= 7.5e+173) tmp = Float64(Float64(y * i) + Float64(z + a)); else tmp = Float64(x * Float64(log(y) + Float64(i * Float64(y / x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (x <= -8e+153) tmp = (x * log(y)) + (y * i); elseif (x <= 7.5e+173) tmp = (y * i) + (z + a); else tmp = x * (log(y) + (i * (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[x, -8e+153], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.5e+173], N[(N[(y * i), $MachinePrecision] + N[(z + a), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Log[y], $MachinePrecision] + N[(i * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8 \cdot 10^{+153}:\\
\;\;\;\;x \cdot \log y + y \cdot i\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{+173}:\\
\;\;\;\;y \cdot i + \left(z + a\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\log y + i \cdot \frac{y}{x}\right)\\
\end{array}
\end{array}
if x < -8e153Initial program 99.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
log-lowering-log.f6474.1%
Simplified74.1%
if -8e153 < x < 7.5e173Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6498.2%
Simplified98.2%
Taylor expanded in z around inf
Simplified75.4%
Taylor expanded in b around 0
+-lowering-+.f6461.5%
Simplified61.5%
if 7.5e173 < x Initial program 99.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
log-lowering-log.f6480.9%
Simplified80.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
log-lowering-log.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6480.9%
Simplified80.9%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6480.9%
Applied egg-rr80.9%
Final simplification66.0%
(FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (+ (* x (log y)) (* y i)))) (if (<= x -3.3e+159) t_1 (if (<= x 4.5e+173) (+ (* y i) (+ z a)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x * log(y)) + (y * i);
double tmp;
if (x <= -3.3e+159) {
tmp = t_1;
} else if (x <= 4.5e+173) {
tmp = (y * i) + (z + a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (x * log(y)) + (y * i)
if (x <= (-3.3d+159)) then
tmp = t_1
else if (x <= 4.5d+173) then
tmp = (y * i) + (z + a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x * Math.log(y)) + (y * i);
double tmp;
if (x <= -3.3e+159) {
tmp = t_1;
} else if (x <= 4.5e+173) {
tmp = (y * i) + (z + a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x * math.log(y)) + (y * i) tmp = 0 if x <= -3.3e+159: tmp = t_1 elif x <= 4.5e+173: tmp = (y * i) + (z + a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x * log(y)) + Float64(y * i)) tmp = 0.0 if (x <= -3.3e+159) tmp = t_1; elseif (x <= 4.5e+173) tmp = Float64(Float64(y * i) + Float64(z + a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x * log(y)) + (y * i); tmp = 0.0; if (x <= -3.3e+159) tmp = t_1; elseif (x <= 4.5e+173) tmp = (y * i) + (z + a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.3e+159], t$95$1, If[LessEqual[x, 4.5e+173], N[(N[(y * i), $MachinePrecision] + N[(z + a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y + y \cdot i\\
\mathbf{if}\;x \leq -3.3 \cdot 10^{+159}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{+173}:\\
\;\;\;\;y \cdot i + \left(z + a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.2999999999999999e159 or 4.5000000000000002e173 < x Initial program 99.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
log-lowering-log.f6477.5%
Simplified77.5%
if -3.2999999999999999e159 < x < 4.5000000000000002e173Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6498.2%
Simplified98.2%
Taylor expanded in z around inf
Simplified75.4%
Taylor expanded in b around 0
+-lowering-+.f6461.5%
Simplified61.5%
Final simplification66.0%
(FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (* x (log y)))) (if (<= x -3.1e+192) t_1 (if (<= x 2.75e+228) (+ (* y i) (+ z a)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x * log(y);
double tmp;
if (x <= -3.1e+192) {
tmp = t_1;
} else if (x <= 2.75e+228) {
tmp = (y * i) + (z + a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = x * log(y)
if (x <= (-3.1d+192)) then
tmp = t_1
else if (x <= 2.75d+228) then
tmp = (y * i) + (z + a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x * Math.log(y);
double tmp;
if (x <= -3.1e+192) {
tmp = t_1;
} else if (x <= 2.75e+228) {
tmp = (y * i) + (z + a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x * math.log(y) tmp = 0 if x <= -3.1e+192: tmp = t_1 elif x <= 2.75e+228: tmp = (y * i) + (z + a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x * log(y)) tmp = 0.0 if (x <= -3.1e+192) tmp = t_1; elseif (x <= 2.75e+228) tmp = Float64(Float64(y * i) + Float64(z + a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x * log(y); tmp = 0.0; if (x <= -3.1e+192) tmp = t_1; elseif (x <= 2.75e+228) tmp = (y * i) + (z + a); else tmp = t_1; end tmp_2 = 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, -3.1e+192], t$95$1, If[LessEqual[x, 2.75e+228], N[(N[(y * i), $MachinePrecision] + N[(z + a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;x \leq -3.1 \cdot 10^{+192}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 2.75 \cdot 10^{+228}:\\
\;\;\;\;y \cdot i + \left(z + a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.0999999999999999e192 or 2.75000000000000004e228 < x Initial program 99.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
log-lowering-log.f6469.0%
Simplified69.0%
if -3.0999999999999999e192 < x < 2.75000000000000004e228Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6498.4%
Simplified98.4%
Taylor expanded in z around inf
Simplified73.6%
Taylor expanded in b around 0
+-lowering-+.f6460.7%
Simplified60.7%
Final simplification62.3%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -1.3e+111) z (if (<= z -5.6e+48) (* 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 <= -1.3e+111) {
tmp = z;
} else if (z <= -5.6e+48) {
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 <= (-1.3d+111)) then
tmp = z
else if (z <= (-5.6d+48)) 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 <= -1.3e+111) {
tmp = z;
} else if (z <= -5.6e+48) {
tmp = y * i;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -1.3e+111: tmp = z elif z <= -5.6e+48: tmp = y * i else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -1.3e+111) tmp = z; elseif (z <= -5.6e+48) 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 <= -1.3e+111) tmp = z; elseif (z <= -5.6e+48) tmp = y * i; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -1.3e+111], z, If[LessEqual[z, -5.6e+48], N[(y * i), $MachinePrecision], a]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{+111}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq -5.6 \cdot 10^{+48}:\\
\;\;\;\;y \cdot i\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if z < -1.2999999999999999e111Initial program 99.8%
Taylor expanded in z around inf
Simplified29.7%
if -1.2999999999999999e111 < z < -5.60000000000000025e48Initial program 100.0%
Taylor expanded in y around inf
*-lowering-*.f649.6%
Simplified9.6%
if -5.60000000000000025e48 < z Initial program 99.9%
Taylor expanded in a around inf
Simplified19.4%
Final simplification20.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= z -7.5e+207) 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 <= -7.5e+207) {
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 <= (-7.5d+207)) 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 <= -7.5e+207) {
tmp = z;
} else {
tmp = a + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -7.5e+207: tmp = z else: tmp = a + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -7.5e+207) 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 <= -7.5e+207) tmp = z; else tmp = a + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -7.5e+207], z, N[(a + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{+207}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a + y \cdot i\\
\end{array}
\end{array}
if z < -7.49999999999999986e207Initial program 100.0%
Taylor expanded in z around inf
Simplified45.8%
if -7.49999999999999986e207 < z Initial program 99.9%
Taylor expanded in a around inf
Simplified38.7%
(FPCore (x y z t a b c i) :precision binary64 (+ (* y i) (+ z a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (y * i) + (z + 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 = (y * i) + (z + a)
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) + (z + a);
}
def code(x, y, z, t, a, b, c, i): return (y * i) + (z + a)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(y * i) + Float64(z + a)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (y * i) + (z + a); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(y * i), $MachinePrecision] + N[(z + a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot i + \left(z + a\right)
\end{array}
Initial program 99.9%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f64N/A
log-lowering-log.f6498.7%
Simplified98.7%
Taylor expanded in z around inf
Simplified63.5%
Taylor expanded in b around 0
+-lowering-+.f6451.5%
Simplified51.5%
Final simplification51.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= a 1.55e+138) z a))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 1.55e+138) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (a <= 1.55d+138) then
tmp = z
else
tmp = a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (a <= 1.55e+138) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if a <= 1.55e+138: tmp = z else: tmp = a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (a <= 1.55e+138) tmp = z; else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (a <= 1.55e+138) tmp = z; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[a, 1.55e+138], z, a]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.55 \cdot 10^{+138}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < 1.5499999999999999e138Initial program 99.9%
Taylor expanded in z around inf
Simplified16.1%
if 1.5499999999999999e138 < a Initial program 99.8%
Taylor expanded in a around inf
Simplified59.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 a around inf
Simplified19.1%
herbie shell --seed 2024155
(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)))