
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
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
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
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
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
0.607771387771
(*
z
(+
11.9400905721
(* z (+ 31.4690115749 (* z (+ z 15.234687407))))))))
(t_2
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))))
(if (<= (/ (* y (+ t_2 b)) t_1) INFINITY)
(+ x (* y (+ (/ b t_1) (/ t_2 t_1))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))));
double t_2 = z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a);
double tmp;
if (((y * (t_2 + b)) / t_1) <= ((double) INFINITY)) {
tmp = x + (y * ((b / t_1) + (t_2 / t_1)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))));
double t_2 = z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a);
double tmp;
if (((y * (t_2 + b)) / t_1) <= Double.POSITIVE_INFINITY) {
tmp = x + (y * ((b / t_1) + (t_2 / t_1)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))) t_2 = z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a) tmp = 0 if ((y * (t_2 + b)) / t_1) <= math.inf: tmp = x + (y * ((b / t_1) + (t_2 / t_1))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))) t_2 = Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) tmp = 0.0 if (Float64(Float64(y * Float64(t_2 + b)) / t_1) <= Inf) tmp = Float64(x + Float64(y * Float64(Float64(b / t_1) + Float64(t_2 / t_1)))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))); t_2 = z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a); tmp = 0.0; if (((y * (t_2 + b)) / t_1) <= Inf) tmp = x + (y * ((b / t_1) + (t_2 / t_1))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(y * N[(t$95$2 + b), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], Infinity], N[(x + N[(y * N[(N[(b / t$95$1), $MachinePrecision] + N[(t$95$2 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)\\
t_2 := z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right)\\
\mathbf{if}\;\frac{y \cdot \left(t\_2 + b\right)}{t\_1} \leq \infty:\\
\;\;\;\;x + y \cdot \left(\frac{b}{t\_1} + \frac{t\_2}{t\_1}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 92.3%
Taylor expanded in y around 0
Simplified97.4%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6499.9%
Simplified99.9%
Final simplification98.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
0.607771387771
(*
z
(+
11.9400905721
(* z (+ 31.4690115749 (* z (+ z 15.234687407))))))))
(t_2
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(t_3 (/ (* y t_2) t_1)))
(if (<= t_3 1e+221)
(+ t_3 x)
(if (<= t_3 INFINITY) (* t_2 (/ y t_1)) (+ x (* y 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))));
double t_2 = (z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b;
double t_3 = (y * t_2) / t_1;
double tmp;
if (t_3 <= 1e+221) {
tmp = t_3 + x;
} else if (t_3 <= ((double) INFINITY)) {
tmp = t_2 * (y / t_1);
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))));
double t_2 = (z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b;
double t_3 = (y * t_2) / t_1;
double tmp;
if (t_3 <= 1e+221) {
tmp = t_3 + x;
} else if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_2 * (y / t_1);
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))) t_2 = (z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b t_3 = (y * t_2) / t_1 tmp = 0 if t_3 <= 1e+221: tmp = t_3 + x elif t_3 <= math.inf: tmp = t_2 * (y / t_1) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))) t_2 = Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b) t_3 = Float64(Float64(y * t_2) / t_1) tmp = 0.0 if (t_3 <= 1e+221) tmp = Float64(t_3 + x); elseif (t_3 <= Inf) tmp = Float64(t_2 * Float64(y / t_1)); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))); t_2 = (z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b; t_3 = (y * t_2) / t_1; tmp = 0.0; if (t_3 <= 1e+221) tmp = t_3 + x; elseif (t_3 <= Inf) tmp = t_2 * (y / t_1); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y * t$95$2), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[t$95$3, 1e+221], N[(t$95$3 + x), $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[(t$95$2 * N[(y / t$95$1), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)\\
t_2 := z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\\
t_3 := \frac{y \cdot t\_2}{t\_1}\\
\mathbf{if}\;t\_3 \leq 10^{+221}:\\
\;\;\;\;t\_3 + x\\
\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;t\_2 \cdot \frac{y}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < 1e221Initial program 96.9%
if 1e221 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 73.7%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified90.3%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6499.9%
Simplified99.9%
Final simplification97.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
0.607771387771
(*
z
(+
11.9400905721
(* z (+ 31.4690115749 (* z (+ z 15.234687407))))))))
(t_2
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b)))
(if (<= (/ (* y t_2) t_1) INFINITY)
(+ x (* y (/ t_2 t_1)))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))));
double t_2 = (z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b;
double tmp;
if (((y * t_2) / t_1) <= ((double) INFINITY)) {
tmp = x + (y * (t_2 / t_1));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))));
double t_2 = (z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b;
double tmp;
if (((y * t_2) / t_1) <= Double.POSITIVE_INFINITY) {
tmp = x + (y * (t_2 / t_1));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))) t_2 = (z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b tmp = 0 if ((y * t_2) / t_1) <= math.inf: tmp = x + (y * (t_2 / t_1)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))) t_2 = Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b) tmp = 0.0 if (Float64(Float64(y * t_2) / t_1) <= Inf) tmp = Float64(x + Float64(y * Float64(t_2 / t_1))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))); t_2 = (z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b; tmp = 0.0; if (((y * t_2) / t_1) <= Inf) tmp = x + (y * (t_2 / t_1)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]}, If[LessEqual[N[(N[(y * t$95$2), $MachinePrecision] / t$95$1), $MachinePrecision], Infinity], N[(x + N[(y * N[(t$95$2 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)\\
t_2 := z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\\
\mathbf{if}\;\frac{y \cdot t\_2}{t\_1} \leq \infty:\\
\;\;\;\;x + y \cdot \frac{t\_2}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 92.3%
+-commutativeN/A
+-lowering-+.f64N/A
Applied egg-rr97.4%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6499.9%
Simplified99.9%
Final simplification98.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -2.4e+42)
t_1
(if (<= z 1.3e+36)
(+
x
(*
y
(/
(+ b (* z a))
(+
0.607771387771
(*
z
(+
11.9400905721
(* z (+ 31.4690115749 (* z (+ z 15.234687407))))))))))
(+ t_1 (* (/ y z) -36.52704169880642))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.4e+42) {
tmp = t_1;
} else if (z <= 1.3e+36) {
tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))));
} else {
tmp = t_1 + ((y / z) * -36.52704169880642);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-2.4d+42)) then
tmp = t_1
else if (z <= 1.3d+36) then
tmp = x + (y * ((b + (z * a)) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * (31.4690115749d0 + (z * (z + 15.234687407d0)))))))))
else
tmp = t_1 + ((y / z) * (-36.52704169880642d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.4e+42) {
tmp = t_1;
} else if (z <= 1.3e+36) {
tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))));
} else {
tmp = t_1 + ((y / z) * -36.52704169880642);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -2.4e+42: tmp = t_1 elif z <= 1.3e+36: tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))))) else: tmp = t_1 + ((y / z) * -36.52704169880642) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -2.4e+42) tmp = t_1; elseif (z <= 1.3e+36) tmp = Float64(x + Float64(y * Float64(Float64(b + Float64(z * a)) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407)))))))))); else tmp = Float64(t_1 + Float64(Float64(y / z) * -36.52704169880642)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -2.4e+42) tmp = t_1; elseif (z <= 1.3e+36) tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))))); else tmp = t_1 + ((y / z) * -36.52704169880642); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.4e+42], t$95$1, If[LessEqual[z, 1.3e+36], N[(x + N[(y * N[(N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(N[(y / z), $MachinePrecision] * -36.52704169880642), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -2.4 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{+36}:\\
\;\;\;\;x + y \cdot \frac{b + z \cdot a}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1 + \frac{y}{z} \cdot -36.52704169880642\\
\end{array}
\end{array}
if z < -2.3999999999999999e42Initial program 4.5%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6495.2%
Simplified95.2%
if -2.3999999999999999e42 < z < 1.3000000000000001e36Initial program 97.8%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6493.8%
Simplified93.8%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr94.4%
if 1.3000000000000001e36 < z Initial program 9.4%
Taylor expanded in z around inf
associate-+r+N/A
associate--l+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
metadata-eval93.6%
Simplified93.6%
Final simplification94.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -2.5e+42)
t_1
(if (<= z 6.8e+34)
(+
x
(*
y
(/
(+ b (* z a))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z (* z z))))))))
(+ t_1 (* (/ y z) -36.52704169880642))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.5e+42) {
tmp = t_1;
} else if (z <= 6.8e+34) {
tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * (11.9400905721 + (z * (z * z)))))));
} else {
tmp = t_1 + ((y / z) * -36.52704169880642);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-2.5d+42)) then
tmp = t_1
else if (z <= 6.8d+34) then
tmp = x + (y * ((b + (z * a)) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * (z * z)))))))
else
tmp = t_1 + ((y / z) * (-36.52704169880642d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.5e+42) {
tmp = t_1;
} else if (z <= 6.8e+34) {
tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * (11.9400905721 + (z * (z * z)))))));
} else {
tmp = t_1 + ((y / z) * -36.52704169880642);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -2.5e+42: tmp = t_1 elif z <= 6.8e+34: tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * (11.9400905721 + (z * (z * z))))))) else: tmp = t_1 + ((y / z) * -36.52704169880642) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -2.5e+42) tmp = t_1; elseif (z <= 6.8e+34) tmp = Float64(x + Float64(y * Float64(Float64(b + Float64(z * a)) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(z * z)))))))); else tmp = Float64(t_1 + Float64(Float64(y / z) * -36.52704169880642)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -2.5e+42) tmp = t_1; elseif (z <= 6.8e+34) tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * (11.9400905721 + (z * (z * z))))))); else tmp = t_1 + ((y / z) * -36.52704169880642); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.5e+42], t$95$1, If[LessEqual[z, 6.8e+34], N[(x + N[(y * N[(N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(N[(y / z), $MachinePrecision] * -36.52704169880642), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -2.5 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+34}:\\
\;\;\;\;x + y \cdot \frac{b + z \cdot a}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(z \cdot z\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1 + \frac{y}{z} \cdot -36.52704169880642\\
\end{array}
\end{array}
if z < -2.50000000000000003e42Initial program 4.5%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6495.2%
Simplified95.2%
if -2.50000000000000003e42 < z < 6.7999999999999999e34Initial program 97.8%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6493.8%
Simplified93.8%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr94.4%
Taylor expanded in z around inf
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6493.4%
Simplified93.4%
if 6.7999999999999999e34 < z Initial program 9.4%
Taylor expanded in z around inf
associate-+r+N/A
associate--l+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
metadata-eval93.6%
Simplified93.6%
Final simplification93.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -2.2e+42)
t_1
(if (<= z 6e-26)
(+ x (* y (* b 1.6453555072203998)))
(if (<= z 4.1e+35)
(+ x (* y (/ (+ a (/ b z)) (* z (* z z)))))
(+ t_1 (* (/ y z) -36.52704169880642)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.2e+42) {
tmp = t_1;
} else if (z <= 6e-26) {
tmp = x + (y * (b * 1.6453555072203998));
} else if (z <= 4.1e+35) {
tmp = x + (y * ((a + (b / z)) / (z * (z * z))));
} else {
tmp = t_1 + ((y / z) * -36.52704169880642);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-2.2d+42)) then
tmp = t_1
else if (z <= 6d-26) then
tmp = x + (y * (b * 1.6453555072203998d0))
else if (z <= 4.1d+35) then
tmp = x + (y * ((a + (b / z)) / (z * (z * z))))
else
tmp = t_1 + ((y / z) * (-36.52704169880642d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.2e+42) {
tmp = t_1;
} else if (z <= 6e-26) {
tmp = x + (y * (b * 1.6453555072203998));
} else if (z <= 4.1e+35) {
tmp = x + (y * ((a + (b / z)) / (z * (z * z))));
} else {
tmp = t_1 + ((y / z) * -36.52704169880642);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -2.2e+42: tmp = t_1 elif z <= 6e-26: tmp = x + (y * (b * 1.6453555072203998)) elif z <= 4.1e+35: tmp = x + (y * ((a + (b / z)) / (z * (z * z)))) else: tmp = t_1 + ((y / z) * -36.52704169880642) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -2.2e+42) tmp = t_1; elseif (z <= 6e-26) tmp = Float64(x + Float64(y * Float64(b * 1.6453555072203998))); elseif (z <= 4.1e+35) tmp = Float64(x + Float64(y * Float64(Float64(a + Float64(b / z)) / Float64(z * Float64(z * z))))); else tmp = Float64(t_1 + Float64(Float64(y / z) * -36.52704169880642)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -2.2e+42) tmp = t_1; elseif (z <= 6e-26) tmp = x + (y * (b * 1.6453555072203998)); elseif (z <= 4.1e+35) tmp = x + (y * ((a + (b / z)) / (z * (z * z)))); else tmp = t_1 + ((y / z) * -36.52704169880642); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e+42], t$95$1, If[LessEqual[z, 6e-26], N[(x + N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.1e+35], N[(x + N[(y * N[(N[(a + N[(b / z), $MachinePrecision]), $MachinePrecision] / N[(z * N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(N[(y / z), $MachinePrecision] * -36.52704169880642), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6 \cdot 10^{-26}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998\right)\\
\mathbf{elif}\;z \leq 4.1 \cdot 10^{+35}:\\
\;\;\;\;x + y \cdot \frac{a + \frac{b}{z}}{z \cdot \left(z \cdot z\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1 + \frac{y}{z} \cdot -36.52704169880642\\
\end{array}
\end{array}
if z < -2.2000000000000001e42Initial program 4.5%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6495.2%
Simplified95.2%
if -2.2000000000000001e42 < z < 6.00000000000000023e-26Initial program 98.9%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6495.2%
Simplified95.2%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr95.3%
Taylor expanded in z around 0
*-commutativeN/A
*-lowering-*.f6481.4%
Simplified81.4%
if 6.00000000000000023e-26 < z < 4.0999999999999998e35Initial program 86.8%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6479.6%
Simplified79.6%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr86.0%
Taylor expanded in z around inf
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.2%
Simplified80.2%
Taylor expanded in z around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.0%
Simplified80.0%
if 4.0999999999999998e35 < z Initial program 9.4%
Taylor expanded in z around inf
associate-+r+N/A
associate--l+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
metadata-eval93.6%
Simplified93.6%
Final simplification86.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -2.2e+42)
t_1
(if (<= z 1.3e+36)
(+ x (* y (/ (+ b (* z a)) (+ 0.607771387771 (* z (* z (* z z)))))))
(+ t_1 (* (/ y z) -36.52704169880642))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.2e+42) {
tmp = t_1;
} else if (z <= 1.3e+36) {
tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * (z * (z * z))))));
} else {
tmp = t_1 + ((y / z) * -36.52704169880642);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-2.2d+42)) then
tmp = t_1
else if (z <= 1.3d+36) then
tmp = x + (y * ((b + (z * a)) / (0.607771387771d0 + (z * (z * (z * z))))))
else
tmp = t_1 + ((y / z) * (-36.52704169880642d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.2e+42) {
tmp = t_1;
} else if (z <= 1.3e+36) {
tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * (z * (z * z))))));
} else {
tmp = t_1 + ((y / z) * -36.52704169880642);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -2.2e+42: tmp = t_1 elif z <= 1.3e+36: tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * (z * (z * z)))))) else: tmp = t_1 + ((y / z) * -36.52704169880642) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -2.2e+42) tmp = t_1; elseif (z <= 1.3e+36) tmp = Float64(x + Float64(y * Float64(Float64(b + Float64(z * a)) / Float64(0.607771387771 + Float64(z * Float64(z * Float64(z * z))))))); else tmp = Float64(t_1 + Float64(Float64(y / z) * -36.52704169880642)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -2.2e+42) tmp = t_1; elseif (z <= 1.3e+36) tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * (z * (z * z)))))); else tmp = t_1 + ((y / z) * -36.52704169880642); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e+42], t$95$1, If[LessEqual[z, 1.3e+36], N[(x + N[(y * N[(N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(z * N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(N[(y / z), $MachinePrecision] * -36.52704169880642), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{+36}:\\
\;\;\;\;x + y \cdot \frac{b + z \cdot a}{0.607771387771 + z \cdot \left(z \cdot \left(z \cdot z\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1 + \frac{y}{z} \cdot -36.52704169880642\\
\end{array}
\end{array}
if z < -2.2000000000000001e42Initial program 4.5%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6495.2%
Simplified95.2%
if -2.2000000000000001e42 < z < 1.3000000000000001e36Initial program 97.8%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6493.8%
Simplified93.8%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr94.4%
Taylor expanded in z around inf
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6493.4%
Simplified93.4%
Taylor expanded in z around inf
metadata-evalN/A
pow-plusN/A
*-commutativeN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6493.4%
Simplified93.4%
if 1.3000000000000001e36 < z Initial program 9.4%
Taylor expanded in z around inf
associate-+r+N/A
associate--l+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
metadata-eval93.6%
Simplified93.6%
Final simplification93.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -12.8)
(+ (* y 3.13060547623) (- x (/ (* y 36.52704169880642) z)))
(if (<= z 1.9e+33)
(+ x (* y (/ (+ b (* z a)) (+ 0.607771387771 (* z 11.9400905721)))))
(+ (+ x (* y 3.13060547623)) (* (/ y z) -36.52704169880642)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -12.8) {
tmp = (y * 3.13060547623) + (x - ((y * 36.52704169880642) / z));
} else if (z <= 1.9e+33) {
tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * 11.9400905721))));
} else {
tmp = (x + (y * 3.13060547623)) + ((y / z) * -36.52704169880642);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (z <= (-12.8d0)) then
tmp = (y * 3.13060547623d0) + (x - ((y * 36.52704169880642d0) / z))
else if (z <= 1.9d+33) then
tmp = x + (y * ((b + (z * a)) / (0.607771387771d0 + (z * 11.9400905721d0))))
else
tmp = (x + (y * 3.13060547623d0)) + ((y / z) * (-36.52704169880642d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -12.8) {
tmp = (y * 3.13060547623) + (x - ((y * 36.52704169880642) / z));
} else if (z <= 1.9e+33) {
tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * 11.9400905721))));
} else {
tmp = (x + (y * 3.13060547623)) + ((y / z) * -36.52704169880642);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -12.8: tmp = (y * 3.13060547623) + (x - ((y * 36.52704169880642) / z)) elif z <= 1.9e+33: tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * 11.9400905721)))) else: tmp = (x + (y * 3.13060547623)) + ((y / z) * -36.52704169880642) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -12.8) tmp = Float64(Float64(y * 3.13060547623) + Float64(x - Float64(Float64(y * 36.52704169880642) / z))); elseif (z <= 1.9e+33) tmp = Float64(x + Float64(y * Float64(Float64(b + Float64(z * a)) / Float64(0.607771387771 + Float64(z * 11.9400905721))))); else tmp = Float64(Float64(x + Float64(y * 3.13060547623)) + Float64(Float64(y / z) * -36.52704169880642)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -12.8) tmp = (y * 3.13060547623) + (x - ((y * 36.52704169880642) / z)); elseif (z <= 1.9e+33) tmp = x + (y * ((b + (z * a)) / (0.607771387771 + (z * 11.9400905721)))); else tmp = (x + (y * 3.13060547623)) + ((y / z) * -36.52704169880642); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -12.8], N[(N[(y * 3.13060547623), $MachinePrecision] + N[(x - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e+33], N[(x + N[(y * N[(N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] * -36.52704169880642), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -12.8:\\
\;\;\;\;y \cdot 3.13060547623 + \left(x - \frac{y \cdot 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+33}:\\
\;\;\;\;x + y \cdot \frac{b + z \cdot a}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;\left(x + y \cdot 3.13060547623\right) + \frac{y}{z} \cdot -36.52704169880642\\
\end{array}
\end{array}
if z < -12.800000000000001Initial program 19.0%
Taylor expanded in z around -inf
associate-+r+N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
metadata-eval85.3%
Simplified85.3%
if -12.800000000000001 < z < 1.90000000000000001e33Initial program 98.4%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6495.4%
Simplified95.4%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr96.1%
Taylor expanded in z around 0
*-commutativeN/A
*-lowering-*.f6494.9%
Simplified94.9%
if 1.90000000000000001e33 < z Initial program 9.4%
Taylor expanded in z around inf
associate-+r+N/A
associate--l+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
metadata-eval93.6%
Simplified93.6%
Final simplification92.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -2.2e+42)
t_1
(if (<= z 9e+31)
(+ x (* y (* b 1.6453555072203998)))
(+ t_1 (* (/ y z) -36.52704169880642))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.2e+42) {
tmp = t_1;
} else if (z <= 9e+31) {
tmp = x + (y * (b * 1.6453555072203998));
} else {
tmp = t_1 + ((y / z) * -36.52704169880642);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-2.2d+42)) then
tmp = t_1
else if (z <= 9d+31) then
tmp = x + (y * (b * 1.6453555072203998d0))
else
tmp = t_1 + ((y / z) * (-36.52704169880642d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.2e+42) {
tmp = t_1;
} else if (z <= 9e+31) {
tmp = x + (y * (b * 1.6453555072203998));
} else {
tmp = t_1 + ((y / z) * -36.52704169880642);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -2.2e+42: tmp = t_1 elif z <= 9e+31: tmp = x + (y * (b * 1.6453555072203998)) else: tmp = t_1 + ((y / z) * -36.52704169880642) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -2.2e+42) tmp = t_1; elseif (z <= 9e+31) tmp = Float64(x + Float64(y * Float64(b * 1.6453555072203998))); else tmp = Float64(t_1 + Float64(Float64(y / z) * -36.52704169880642)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -2.2e+42) tmp = t_1; elseif (z <= 9e+31) tmp = x + (y * (b * 1.6453555072203998)); else tmp = t_1 + ((y / z) * -36.52704169880642); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e+42], t$95$1, If[LessEqual[z, 9e+31], N[(x + N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(N[(y / z), $MachinePrecision] * -36.52704169880642), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9 \cdot 10^{+31}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + \frac{y}{z} \cdot -36.52704169880642\\
\end{array}
\end{array}
if z < -2.2000000000000001e42Initial program 4.5%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6495.2%
Simplified95.2%
if -2.2000000000000001e42 < z < 8.9999999999999992e31Initial program 97.8%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6493.8%
Simplified93.8%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr94.4%
Taylor expanded in z around 0
*-commutativeN/A
*-lowering-*.f6478.6%
Simplified78.6%
if 8.9999999999999992e31 < z Initial program 9.4%
Taylor expanded in z around inf
associate-+r+N/A
associate--l+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
metadata-eval93.6%
Simplified93.6%
Final simplification85.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -2.2e+42)
t_1
(if (<= z 9e+31) (+ x (* y (* b 1.6453555072203998))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.2e+42) {
tmp = t_1;
} else if (z <= 9e+31) {
tmp = x + (y * (b * 1.6453555072203998));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-2.2d+42)) then
tmp = t_1
else if (z <= 9d+31) then
tmp = x + (y * (b * 1.6453555072203998d0))
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 t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.2e+42) {
tmp = t_1;
} else if (z <= 9e+31) {
tmp = x + (y * (b * 1.6453555072203998));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -2.2e+42: tmp = t_1 elif z <= 9e+31: tmp = x + (y * (b * 1.6453555072203998)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -2.2e+42) tmp = t_1; elseif (z <= 9e+31) tmp = Float64(x + Float64(y * Float64(b * 1.6453555072203998))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -2.2e+42) tmp = t_1; elseif (z <= 9e+31) tmp = x + (y * (b * 1.6453555072203998)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e+42], t$95$1, If[LessEqual[z, 9e+31], N[(x + N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9 \cdot 10^{+31}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.2000000000000001e42 or 8.9999999999999992e31 < z Initial program 7.1%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6494.3%
Simplified94.3%
if -2.2000000000000001e42 < z < 8.9999999999999992e31Initial program 97.8%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6493.8%
Simplified93.8%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr94.4%
Taylor expanded in z around 0
*-commutativeN/A
*-lowering-*.f6478.6%
Simplified78.6%
Final simplification85.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -2.2e+42)
t_1
(if (<= z 9e+31) (+ x (* b (* y 1.6453555072203998))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.2e+42) {
tmp = t_1;
} else if (z <= 9e+31) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-2.2d+42)) then
tmp = t_1
else if (z <= 9d+31) then
tmp = x + (b * (y * 1.6453555072203998d0))
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 t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.2e+42) {
tmp = t_1;
} else if (z <= 9e+31) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -2.2e+42: tmp = t_1 elif z <= 9e+31: tmp = x + (b * (y * 1.6453555072203998)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -2.2e+42) tmp = t_1; elseif (z <= 9e+31) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -2.2e+42) tmp = t_1; elseif (z <= 9e+31) tmp = x + (b * (y * 1.6453555072203998)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e+42], t$95$1, If[LessEqual[z, 9e+31], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9 \cdot 10^{+31}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.2000000000000001e42 or 8.9999999999999992e31 < z Initial program 7.1%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6494.3%
Simplified94.3%
if -2.2000000000000001e42 < z < 8.9999999999999992e31Initial program 97.8%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6478.6%
Simplified78.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -4.4e-66)
t_1
(if (<= z 9.5e-9) (* y (* b 1.6453555072203998)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -4.4e-66) {
tmp = t_1;
} else if (z <= 9.5e-9) {
tmp = y * (b * 1.6453555072203998);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-4.4d-66)) then
tmp = t_1
else if (z <= 9.5d-9) then
tmp = y * (b * 1.6453555072203998d0)
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 t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -4.4e-66) {
tmp = t_1;
} else if (z <= 9.5e-9) {
tmp = y * (b * 1.6453555072203998);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -4.4e-66: tmp = t_1 elif z <= 9.5e-9: tmp = y * (b * 1.6453555072203998) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -4.4e-66) tmp = t_1; elseif (z <= 9.5e-9) tmp = Float64(y * Float64(b * 1.6453555072203998)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -4.4e-66) tmp = t_1; elseif (z <= 9.5e-9) tmp = y * (b * 1.6453555072203998); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.4e-66], t$95$1, If[LessEqual[z, 9.5e-9], N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -4.4 \cdot 10^{-66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{-9}:\\
\;\;\;\;y \cdot \left(b \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.4000000000000002e-66 or 9.5000000000000007e-9 < z Initial program 28.7%
Taylor expanded in z around inf
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6482.4%
Simplified82.4%
if -4.4000000000000002e-66 < z < 9.5000000000000007e-9Initial program 99.7%
Taylor expanded in b around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6452.5%
Simplified52.5%
Taylor expanded in z around 0
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6452.5%
Simplified52.5%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6452.6%
Applied egg-rr52.6%
Final simplification69.0%
(FPCore (x y z t a b) :precision binary64 (if (<= x -1.35e-134) x (if (<= x 9.5e-5) (* y (* b 1.6453555072203998)) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -1.35e-134) {
tmp = x;
} else if (x <= 9.5e-5) {
tmp = y * (b * 1.6453555072203998);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (x <= (-1.35d-134)) then
tmp = x
else if (x <= 9.5d-5) then
tmp = y * (b * 1.6453555072203998d0)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -1.35e-134) {
tmp = x;
} else if (x <= 9.5e-5) {
tmp = y * (b * 1.6453555072203998);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -1.35e-134: tmp = x elif x <= 9.5e-5: tmp = y * (b * 1.6453555072203998) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -1.35e-134) tmp = x; elseif (x <= 9.5e-5) tmp = Float64(y * Float64(b * 1.6453555072203998)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -1.35e-134) tmp = x; elseif (x <= 9.5e-5) tmp = y * (b * 1.6453555072203998); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -1.35e-134], x, If[LessEqual[x, 9.5e-5], N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.35 \cdot 10^{-134}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{-5}:\\
\;\;\;\;y \cdot \left(b \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.3499999999999999e-134 or 9.5000000000000005e-5 < x Initial program 57.2%
Taylor expanded in x around inf
Simplified58.8%
if -1.3499999999999999e-134 < x < 9.5000000000000005e-5Initial program 65.3%
Taylor expanded in b around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6442.0%
Simplified42.0%
Taylor expanded in z around 0
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6442.0%
Simplified42.0%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6442.1%
Applied egg-rr42.1%
Final simplification51.8%
(FPCore (x y z t a b) :precision binary64 (if (<= x -3.4e-135) x (if (<= x 0.0105) (* b (* y 1.6453555072203998)) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -3.4e-135) {
tmp = x;
} else if (x <= 0.0105) {
tmp = b * (y * 1.6453555072203998);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (x <= (-3.4d-135)) then
tmp = x
else if (x <= 0.0105d0) then
tmp = b * (y * 1.6453555072203998d0)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -3.4e-135) {
tmp = x;
} else if (x <= 0.0105) {
tmp = b * (y * 1.6453555072203998);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -3.4e-135: tmp = x elif x <= 0.0105: tmp = b * (y * 1.6453555072203998) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -3.4e-135) tmp = x; elseif (x <= 0.0105) tmp = Float64(b * Float64(y * 1.6453555072203998)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -3.4e-135) tmp = x; elseif (x <= 0.0105) tmp = b * (y * 1.6453555072203998); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -3.4e-135], x, If[LessEqual[x, 0.0105], N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.4 \cdot 10^{-135}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 0.0105:\\
\;\;\;\;b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -3.39999999999999989e-135 or 0.0105000000000000007 < x Initial program 57.2%
Taylor expanded in x around inf
Simplified58.8%
if -3.39999999999999989e-135 < x < 0.0105000000000000007Initial program 65.3%
Taylor expanded in b around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6442.0%
Simplified42.0%
Taylor expanded in z around 0
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6442.0%
Simplified42.0%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6442.1%
Applied egg-rr42.1%
Final simplification51.8%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
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
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 60.6%
Taylor expanded in x around inf
Simplified40.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
x
(*
(+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z)))
(/ y 1.0)))))
(if (< z -6.499344996252632e+53)
t_1
(if (< z 7.066965436914287e+59)
(+
x
(/
y
(/
(+
(*
(+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771)
(+
(* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
b))))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
double tmp;
if (z < -6.499344996252632e+53) {
tmp = t_1;
} else if (z < 7.066965436914287e+59) {
tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x + (((3.13060547623d0 - (36.527041698806414d0 / z)) + (t / (z * z))) * (y / 1.0d0))
if (z < (-6.499344996252632d+53)) then
tmp = t_1
else if (z < 7.066965436914287d+59) then
tmp = x + (y / ((((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0) / ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)))
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 t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
double tmp;
if (z < -6.499344996252632e+53) {
tmp = t_1;
} else if (z < 7.066965436914287e+59) {
tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0)) tmp = 0 if z < -6.499344996252632e+53: tmp = t_1 elif z < 7.066965436914287e+59: tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(Float64(3.13060547623 - Float64(36.527041698806414 / z)) + Float64(t / Float64(z * z))) * Float64(y / 1.0))) tmp = 0.0 if (z < -6.499344996252632e+53) tmp = t_1; elseif (z < 7.066965436914287e+59) tmp = Float64(x + Float64(y / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0)); tmp = 0.0; if (z < -6.499344996252632e+53) tmp = t_1; elseif (z < 7.066965436914287e+59) tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(N[(3.13060547623 - N[(36.527041698806414 / z), $MachinePrecision]), $MachinePrecision] + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y / 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -6.499344996252632e+53], t$95$1, If[Less[z, 7.066965436914287e+59], N[(x + N[(y / N[(N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\left(3.13060547623 - \frac{36.527041698806414}{z}\right) + \frac{t}{z \cdot z}\right) \cdot \frac{y}{1}\\
\mathbf{if}\;z < -6.499344996252632 \cdot 10^{+53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 7.066965436914287 \cdot 10^{+59}:\\
\;\;\;\;x + \frac{y}{\frac{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024158
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
:precision binary64
:alt
(! :herbie-platform default (if (< z -649934499625263200000000000000000000000000000000000000) (+ x (* (+ (- 313060547623/100000000000 (/ 18263520849403207/500000000000000 z)) (/ t (* z z))) (/ y 1))) (if (< z 706696543691428700000000000000000000000000000000000000000000) (+ x (/ y (/ (+ (* (+ (* (+ (* (+ z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000) (+ (* (+ (* (+ (* (+ (* z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)))) (+ x (* (+ (- 313060547623/100000000000 (/ 18263520849403207/500000000000000 z)) (/ t (* z z))) (/ y 1))))))
(+ x (/ (* y (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)) (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771))))