
(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 14 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 (+ (* z 3.13060547623) 11.1667541262)) (t_2 (/ y (* z z))))
(if (<=
(/
(* y (+ (* (+ (* (+ (* t_1 z) t) z) a) z) b))
(+
(*
(+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771))
INFINITY)
(+
(/
y
(/
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)
(+ (* z (+ (* z (+ (* z t_1) t)) a)) b)))
x)
(+
(+ (* y 3.13060547623) (+ (/ (* y 11.1667541262) z) (* t t_2)))
(+
x
(+
(+ (/ (* y -47.69379582500642) z) (* t_2 -98.5170599679272))
(/ (* y 556.47806218377) (* z z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * 3.13060547623) + 11.1667541262;
double t_2 = y / (z * z);
double tmp;
if (((y * ((((((t_1 * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / ((z * ((z * ((z * t_1) + t)) + a)) + b))) + x;
} else {
tmp = ((y * 3.13060547623) + (((y * 11.1667541262) / z) + (t * t_2))) + (x + ((((y * -47.69379582500642) / z) + (t_2 * -98.5170599679272)) + ((y * 556.47806218377) / (z * z))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * 3.13060547623) + 11.1667541262;
double t_2 = y / (z * z);
double tmp;
if (((y * ((((((t_1 * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= Double.POSITIVE_INFINITY) {
tmp = (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / ((z * ((z * ((z * t_1) + t)) + a)) + b))) + x;
} else {
tmp = ((y * 3.13060547623) + (((y * 11.1667541262) / z) + (t * t_2))) + (x + ((((y * -47.69379582500642) / z) + (t_2 * -98.5170599679272)) + ((y * 556.47806218377) / (z * z))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z * 3.13060547623) + 11.1667541262 t_2 = y / (z * z) tmp = 0 if ((y * ((((((t_1 * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= math.inf: tmp = (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / ((z * ((z * ((z * t_1) + t)) + a)) + b))) + x else: tmp = ((y * 3.13060547623) + (((y * 11.1667541262) / z) + (t * t_2))) + (x + ((((y * -47.69379582500642) / z) + (t_2 * -98.5170599679272)) + ((y * 556.47806218377) / (z * z)))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * 3.13060547623) + 11.1667541262) t_2 = Float64(y / Float64(z * z)) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(t_1 * 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)) <= Inf) tmp = Float64(Float64(y / Float64(Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * t_1) + t)) + a)) + b))) + x); else tmp = Float64(Float64(Float64(y * 3.13060547623) + Float64(Float64(Float64(y * 11.1667541262) / z) + Float64(t * t_2))) + Float64(x + Float64(Float64(Float64(Float64(y * -47.69379582500642) / z) + Float64(t_2 * -98.5170599679272)) + Float64(Float64(y * 556.47806218377) / Float64(z * z))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z * 3.13060547623) + 11.1667541262; t_2 = y / (z * z); tmp = 0.0; if (((y * ((((((t_1 * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= Inf) tmp = (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / ((z * ((z * ((z * t_1) + t)) + a)) + b))) + x; else tmp = ((y * 3.13060547623) + (((y * 11.1667541262) / z) + (t * t_2))) + (x + ((((y * -47.69379582500642) / z) + (t_2 * -98.5170599679272)) + ((y * 556.47806218377) / (z * z)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]}, Block[{t$95$2 = N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(y * N[(N[(N[(N[(N[(N[(t$95$1 * 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], Infinity], N[(N[(y / N[(N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * t$95$1), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(N[(N[(y * 3.13060547623), $MachinePrecision] + N[(N[(N[(y * 11.1667541262), $MachinePrecision] / z), $MachinePrecision] + N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x + N[(N[(N[(N[(y * -47.69379582500642), $MachinePrecision] / z), $MachinePrecision] + N[(t$95$2 * -98.5170599679272), $MachinePrecision]), $MachinePrecision] + N[(N[(y * 556.47806218377), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot 3.13060547623 + 11.1667541262\\
t_2 := \frac{y}{z \cdot z}\\
\mathbf{if}\;\frac{y \cdot \left(\left(\left(t\_1 \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} \leq \infty:\\
\;\;\;\;\frac{y}{\frac{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}{z \cdot \left(z \cdot \left(z \cdot t\_1 + t\right) + a\right) + b}} + x\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot 3.13060547623 + \left(\frac{y \cdot 11.1667541262}{z} + t \cdot t\_2\right)\right) + \left(x + \left(\left(\frac{y \cdot -47.69379582500642}{z} + t\_2 \cdot -98.5170599679272\right) + \frac{y \cdot 556.47806218377}{z \cdot z}\right)\right)\\
\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 93.9%
Applied egg-rr0
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 0
Simplified0
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (* z 3.13060547623) 11.1667541262)))
(if (<=
(/
(* y (+ (* (+ (* (+ (* t_1 z) t) z) a) z) b))
(+
(*
(+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771))
INFINITY)
(+
(/
y
(/
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)
(+ (* z (+ (* z (+ (* z t_1) t)) a)) b)))
x)
(+ (* y 3.13060547623) x))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * 3.13060547623) + 11.1667541262;
double tmp;
if (((y * ((((((t_1 * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / ((z * ((z * ((z * t_1) + t)) + a)) + b))) + x;
} else {
tmp = (y * 3.13060547623) + x;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * 3.13060547623) + 11.1667541262;
double tmp;
if (((y * ((((((t_1 * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= Double.POSITIVE_INFINITY) {
tmp = (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / ((z * ((z * ((z * t_1) + t)) + a)) + b))) + x;
} else {
tmp = (y * 3.13060547623) + x;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z * 3.13060547623) + 11.1667541262 tmp = 0 if ((y * ((((((t_1 * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= math.inf: tmp = (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / ((z * ((z * ((z * t_1) + t)) + a)) + b))) + x else: tmp = (y * 3.13060547623) + x return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * 3.13060547623) + 11.1667541262) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(t_1 * 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)) <= Inf) tmp = Float64(Float64(y / Float64(Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * t_1) + t)) + a)) + b))) + x); else tmp = Float64(Float64(y * 3.13060547623) + x); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z * 3.13060547623) + 11.1667541262; tmp = 0.0; if (((y * ((((((t_1 * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)) <= Inf) tmp = (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / ((z * ((z * ((z * t_1) + t)) + a)) + b))) + x; else tmp = (y * 3.13060547623) + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]}, If[LessEqual[N[(N[(y * N[(N[(N[(N[(N[(N[(t$95$1 * 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], Infinity], N[(N[(y / N[(N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * t$95$1), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(N[(y * 3.13060547623), $MachinePrecision] + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot 3.13060547623 + 11.1667541262\\
\mathbf{if}\;\frac{y \cdot \left(\left(\left(t\_1 \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} \leq \infty:\\
\;\;\;\;\frac{y}{\frac{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}{z \cdot \left(z \cdot \left(z \cdot t\_1 + t\right) + a\right) + b}} + x\\
\mathbf{else}:\\
\;\;\;\;y \cdot 3.13060547623 + x\\
\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 93.9%
Applied egg-rr0
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 0
Simplified0
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (* y 3.13060547623) x)))
(if (<= z -3.5e+47)
t_1
(if (<= z 2.45e+49)
(+
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)))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * 3.13060547623) + x;
double tmp;
if (z <= -3.5e+47) {
tmp = t_1;
} else if (z <= 2.45e+49) {
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));
} 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 = (y * 3.13060547623d0) + x
if (z <= (-3.5d+47)) then
tmp = t_1
else if (z <= 2.45d+49) then
tmp = 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))
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 = (y * 3.13060547623) + x;
double tmp;
if (z <= -3.5e+47) {
tmp = t_1;
} else if (z <= 2.45e+49) {
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));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * 3.13060547623) + x tmp = 0 if z <= -3.5e+47: tmp = t_1 elif z <= 2.45e+49: 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)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * 3.13060547623) + x) tmp = 0.0 if (z <= -3.5e+47) tmp = t_1; elseif (z <= 2.45e+49) tmp = 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))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * 3.13060547623) + x; tmp = 0.0; if (z <= -3.5e+47) tmp = t_1; elseif (z <= 2.45e+49) 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)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * 3.13060547623), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -3.5e+47], t$95$1, If[LessEqual[z, 2.45e+49], 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], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot 3.13060547623 + x\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.45 \cdot 10^{+49}:\\
\;\;\;\;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}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.50000000000000015e47 or 2.4500000000000001e49 < z Initial program 6.1%
Taylor expanded in z around inf 0
Simplified0
if -3.50000000000000015e47 < z < 2.4500000000000001e49Initial program 97.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (* y 3.13060547623) x)))
(if (<= z -6.6e+47)
t_1
(if (<= z 2.32e+49)
(+
x
(/
(*
y
(+
(* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
b))
(+ (* (+ (* z (* z z)) 11.9400905721) z) 0.607771387771)))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * 3.13060547623) + x;
double tmp;
if (z <= -6.6e+47) {
tmp = t_1;
} else if (z <= 2.32e+49) {
tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / ((((z * (z * z)) + 11.9400905721) * z) + 0.607771387771));
} 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 = (y * 3.13060547623d0) + x
if (z <= (-6.6d+47)) then
tmp = t_1
else if (z <= 2.32d+49) then
tmp = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / ((((z * (z * z)) + 11.9400905721d0) * z) + 0.607771387771d0))
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 = (y * 3.13060547623) + x;
double tmp;
if (z <= -6.6e+47) {
tmp = t_1;
} else if (z <= 2.32e+49) {
tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / ((((z * (z * z)) + 11.9400905721) * z) + 0.607771387771));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * 3.13060547623) + x tmp = 0 if z <= -6.6e+47: tmp = t_1 elif z <= 2.32e+49: tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / ((((z * (z * z)) + 11.9400905721) * z) + 0.607771387771)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * 3.13060547623) + x) tmp = 0.0 if (z <= -6.6e+47) tmp = t_1; elseif (z <= 2.32e+49) tmp = 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(z * Float64(z * z)) + 11.9400905721) * z) + 0.607771387771))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * 3.13060547623) + x; tmp = 0.0; if (z <= -6.6e+47) tmp = t_1; elseif (z <= 2.32e+49) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / ((((z * (z * z)) + 11.9400905721) * z) + 0.607771387771)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * 3.13060547623), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -6.6e+47], t$95$1, If[LessEqual[z, 2.32e+49], 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[(z * N[(z * z), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot 3.13060547623 + x\\
\mathbf{if}\;z \leq -6.6 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.32 \cdot 10^{+49}:\\
\;\;\;\;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(z \cdot \left(z \cdot z\right) + 11.9400905721\right) \cdot z + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6.5999999999999998e47 or 2.3199999999999999e49 < z Initial program 6.1%
Taylor expanded in z around inf 0
Simplified0
if -6.5999999999999998e47 < z < 2.3199999999999999e49Initial program 97.8%
Taylor expanded in z around inf 0
Simplified0
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (* y 3.13060547623) x)))
(if (<= z -1.55e+32)
t_1
(if (<= z 2600000.0)
(+
x
(/
(*
y
(+
(* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
b))
(+ (* (+ (* z 31.4690115749) 11.9400905721) z) 0.607771387771)))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * 3.13060547623) + x;
double tmp;
if (z <= -1.55e+32) {
tmp = t_1;
} else if (z <= 2600000.0) {
tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / ((((z * 31.4690115749) + 11.9400905721) * z) + 0.607771387771));
} 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 = (y * 3.13060547623d0) + x
if (z <= (-1.55d+32)) then
tmp = t_1
else if (z <= 2600000.0d0) then
tmp = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / ((((z * 31.4690115749d0) + 11.9400905721d0) * z) + 0.607771387771d0))
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 = (y * 3.13060547623) + x;
double tmp;
if (z <= -1.55e+32) {
tmp = t_1;
} else if (z <= 2600000.0) {
tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / ((((z * 31.4690115749) + 11.9400905721) * z) + 0.607771387771));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * 3.13060547623) + x tmp = 0 if z <= -1.55e+32: tmp = t_1 elif z <= 2600000.0: tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / ((((z * 31.4690115749) + 11.9400905721) * z) + 0.607771387771)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * 3.13060547623) + x) tmp = 0.0 if (z <= -1.55e+32) tmp = t_1; elseif (z <= 2600000.0) tmp = 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(z * 31.4690115749) + 11.9400905721) * z) + 0.607771387771))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * 3.13060547623) + x; tmp = 0.0; if (z <= -1.55e+32) tmp = t_1; elseif (z <= 2600000.0) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / ((((z * 31.4690115749) + 11.9400905721) * z) + 0.607771387771)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * 3.13060547623), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -1.55e+32], t$95$1, If[LessEqual[z, 2600000.0], 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[(z * 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot 3.13060547623 + x\\
\mathbf{if}\;z \leq -1.55 \cdot 10^{+32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2600000:\\
\;\;\;\;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(z \cdot 31.4690115749 + 11.9400905721\right) \cdot z + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.54999999999999997e32 or 2.6e6 < z Initial program 12.5%
Taylor expanded in z around inf 0
Simplified0
if -1.54999999999999997e32 < z < 2.6e6Initial program 99.7%
Taylor expanded in z around 0 0
Simplified0
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (* y 3.13060547623) x)))
(if (<= z -0.41)
t_1
(if (<= z 2600000.0)
(+
x
(/
(*
y
(+
(* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
b))
(+ (* z 11.9400905721) 0.607771387771)))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * 3.13060547623) + x;
double tmp;
if (z <= -0.41) {
tmp = t_1;
} else if (z <= 2600000.0) {
tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / ((z * 11.9400905721) + 0.607771387771));
} 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 = (y * 3.13060547623d0) + x
if (z <= (-0.41d0)) then
tmp = t_1
else if (z <= 2600000.0d0) then
tmp = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / ((z * 11.9400905721d0) + 0.607771387771d0))
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 = (y * 3.13060547623) + x;
double tmp;
if (z <= -0.41) {
tmp = t_1;
} else if (z <= 2600000.0) {
tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / ((z * 11.9400905721) + 0.607771387771));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * 3.13060547623) + x tmp = 0 if z <= -0.41: tmp = t_1 elif z <= 2600000.0: tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / ((z * 11.9400905721) + 0.607771387771)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * 3.13060547623) + x) tmp = 0.0 if (z <= -0.41) tmp = t_1; elseif (z <= 2600000.0) tmp = 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(z * 11.9400905721) + 0.607771387771))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * 3.13060547623) + x; tmp = 0.0; if (z <= -0.41) tmp = t_1; elseif (z <= 2600000.0) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / ((z * 11.9400905721) + 0.607771387771)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * 3.13060547623), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -0.41], t$95$1, If[LessEqual[z, 2600000.0], 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[(z * 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot 3.13060547623 + x\\
\mathbf{if}\;z \leq -0.41:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2600000:\\
\;\;\;\;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)}{z \cdot 11.9400905721 + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -0.409999999999999976 or 2.6e6 < z Initial program 16.1%
Taylor expanded in z around inf 0
Simplified0
if -0.409999999999999976 < z < 2.6e6Initial program 99.7%
Applied egg-rr0
Taylor expanded in z around 0 0
Simplified0
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (* y 3.13060547623) x)))
(if (<= z -4.8e+21)
t_1
(if (<= z 2400000.0)
(+
x
(/
(*
y
(+
(* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
b))
0.607771387771))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * 3.13060547623) + x;
double tmp;
if (z <= -4.8e+21) {
tmp = t_1;
} else if (z <= 2400000.0) {
tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / 0.607771387771);
} 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 = (y * 3.13060547623d0) + x
if (z <= (-4.8d+21)) then
tmp = t_1
else if (z <= 2400000.0d0) then
tmp = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / 0.607771387771d0)
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 = (y * 3.13060547623) + x;
double tmp;
if (z <= -4.8e+21) {
tmp = t_1;
} else if (z <= 2400000.0) {
tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / 0.607771387771);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * 3.13060547623) + x tmp = 0 if z <= -4.8e+21: tmp = t_1 elif z <= 2400000.0: tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / 0.607771387771) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * 3.13060547623) + x) tmp = 0.0 if (z <= -4.8e+21) tmp = t_1; elseif (z <= 2400000.0) tmp = Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / 0.607771387771)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * 3.13060547623) + x; tmp = 0.0; if (z <= -4.8e+21) tmp = t_1; elseif (z <= 2400000.0) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / 0.607771387771); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * 3.13060547623), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -4.8e+21], t$95$1, If[LessEqual[z, 2400000.0], 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] / 0.607771387771), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot 3.13060547623 + x\\
\mathbf{if}\;z \leq -4.8 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2400000:\\
\;\;\;\;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)}{0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.8e21 or 2.4e6 < z Initial program 14.0%
Taylor expanded in z around inf 0
Simplified0
if -4.8e21 < z < 2.4e6Initial program 99.6%
Applied egg-rr0
Taylor expanded in z around 0 0
Simplified0
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (* y 3.13060547623) x))
(t_2 (+ (* b (* y 1.6453555072203998)) x)))
(if (<= z -2.95e+50)
t_1
(if (<= z -2e-249)
(+
(* z (* y (+ (* a 1.6453555072203998) (* b -32.324150453290734))))
t_2)
(if (<= z 5.2e-13) t_2 t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * 3.13060547623) + x;
double t_2 = (b * (y * 1.6453555072203998)) + x;
double tmp;
if (z <= -2.95e+50) {
tmp = t_1;
} else if (z <= -2e-249) {
tmp = (z * (y * ((a * 1.6453555072203998) + (b * -32.324150453290734)))) + t_2;
} else if (z <= 5.2e-13) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = (y * 3.13060547623d0) + x
t_2 = (b * (y * 1.6453555072203998d0)) + x
if (z <= (-2.95d+50)) then
tmp = t_1
else if (z <= (-2d-249)) then
tmp = (z * (y * ((a * 1.6453555072203998d0) + (b * (-32.324150453290734d0))))) + t_2
else if (z <= 5.2d-13) then
tmp = t_2
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 = (y * 3.13060547623) + x;
double t_2 = (b * (y * 1.6453555072203998)) + x;
double tmp;
if (z <= -2.95e+50) {
tmp = t_1;
} else if (z <= -2e-249) {
tmp = (z * (y * ((a * 1.6453555072203998) + (b * -32.324150453290734)))) + t_2;
} else if (z <= 5.2e-13) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * 3.13060547623) + x t_2 = (b * (y * 1.6453555072203998)) + x tmp = 0 if z <= -2.95e+50: tmp = t_1 elif z <= -2e-249: tmp = (z * (y * ((a * 1.6453555072203998) + (b * -32.324150453290734)))) + t_2 elif z <= 5.2e-13: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * 3.13060547623) + x) t_2 = Float64(Float64(b * Float64(y * 1.6453555072203998)) + x) tmp = 0.0 if (z <= -2.95e+50) tmp = t_1; elseif (z <= -2e-249) tmp = Float64(Float64(z * Float64(y * Float64(Float64(a * 1.6453555072203998) + Float64(b * -32.324150453290734)))) + t_2); elseif (z <= 5.2e-13) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * 3.13060547623) + x; t_2 = (b * (y * 1.6453555072203998)) + x; tmp = 0.0; if (z <= -2.95e+50) tmp = t_1; elseif (z <= -2e-249) tmp = (z * (y * ((a * 1.6453555072203998) + (b * -32.324150453290734)))) + t_2; elseif (z <= 5.2e-13) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * 3.13060547623), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -2.95e+50], t$95$1, If[LessEqual[z, -2e-249], N[(N[(z * N[(y * N[(N[(a * 1.6453555072203998), $MachinePrecision] + N[(b * -32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[z, 5.2e-13], t$95$2, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot 3.13060547623 + x\\
t_2 := b \cdot \left(y \cdot 1.6453555072203998\right) + x\\
\mathbf{if}\;z \leq -2.95 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-249}:\\
\;\;\;\;z \cdot \left(y \cdot \left(a \cdot 1.6453555072203998 + b \cdot -32.324150453290734\right)\right) + t\_2\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-13}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.9499999999999999e50 or 5.2000000000000001e-13 < z Initial program 13.3%
Taylor expanded in z around inf 0
Simplified0
if -2.9499999999999999e50 < z < -2.00000000000000011e-249Initial program 98.0%
Taylor expanded in z around 0 0
Simplified0
if -2.00000000000000011e-249 < z < 5.2000000000000001e-13Initial program 99.8%
Taylor expanded in z around 0 0
Simplified0
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (* y 1.6453555072203998) b)) (t_2 (+ (* y 3.13060547623) x)))
(if (<= z -8.5e-27)
t_2
(if (<= z -1.4e-120)
t_1
(if (<= z 8.8e-247) x (if (<= z 2.95e-183) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * 1.6453555072203998) * b;
double t_2 = (y * 3.13060547623) + x;
double tmp;
if (z <= -8.5e-27) {
tmp = t_2;
} else if (z <= -1.4e-120) {
tmp = t_1;
} else if (z <= 8.8e-247) {
tmp = x;
} else if (z <= 2.95e-183) {
tmp = t_1;
} else {
tmp = t_2;
}
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) :: t_2
real(8) :: tmp
t_1 = (y * 1.6453555072203998d0) * b
t_2 = (y * 3.13060547623d0) + x
if (z <= (-8.5d-27)) then
tmp = t_2
else if (z <= (-1.4d-120)) then
tmp = t_1
else if (z <= 8.8d-247) then
tmp = x
else if (z <= 2.95d-183) then
tmp = t_1
else
tmp = t_2
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 = (y * 1.6453555072203998) * b;
double t_2 = (y * 3.13060547623) + x;
double tmp;
if (z <= -8.5e-27) {
tmp = t_2;
} else if (z <= -1.4e-120) {
tmp = t_1;
} else if (z <= 8.8e-247) {
tmp = x;
} else if (z <= 2.95e-183) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * 1.6453555072203998) * b t_2 = (y * 3.13060547623) + x tmp = 0 if z <= -8.5e-27: tmp = t_2 elif z <= -1.4e-120: tmp = t_1 elif z <= 8.8e-247: tmp = x elif z <= 2.95e-183: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * 1.6453555072203998) * b) t_2 = Float64(Float64(y * 3.13060547623) + x) tmp = 0.0 if (z <= -8.5e-27) tmp = t_2; elseif (z <= -1.4e-120) tmp = t_1; elseif (z <= 8.8e-247) tmp = x; elseif (z <= 2.95e-183) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * 1.6453555072203998) * b; t_2 = (y * 3.13060547623) + x; tmp = 0.0; if (z <= -8.5e-27) tmp = t_2; elseif (z <= -1.4e-120) tmp = t_1; elseif (z <= 8.8e-247) tmp = x; elseif (z <= 2.95e-183) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * 1.6453555072203998), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * 3.13060547623), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -8.5e-27], t$95$2, If[LessEqual[z, -1.4e-120], t$95$1, If[LessEqual[z, 8.8e-247], x, If[LessEqual[z, 2.95e-183], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y \cdot 1.6453555072203998\right) \cdot b\\
t_2 := y \cdot 3.13060547623 + x\\
\mathbf{if}\;z \leq -8.5 \cdot 10^{-27}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-120}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 8.8 \cdot 10^{-247}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.95 \cdot 10^{-183}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -8.50000000000000033e-27 or 2.94999999999999992e-183 < z Initial program 38.9%
Taylor expanded in z around inf 0
Simplified0
if -8.50000000000000033e-27 < z < -1.39999999999999997e-120 or 8.79999999999999966e-247 < z < 2.94999999999999992e-183Initial program 99.5%
Taylor expanded in z around 0 0
Simplified0
Taylor expanded in b around inf 0
Simplified0
Applied egg-rr0
if -1.39999999999999997e-120 < z < 8.79999999999999966e-247Initial program 99.7%
Taylor expanded in x around inf 0
Simplified0
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (* y 3.13060547623) x)))
(if (<= z -5.1e-6)
t_1
(if (<= z 5.2e-13) (+ (* b (* y 1.6453555072203998)) x) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * 3.13060547623) + x;
double tmp;
if (z <= -5.1e-6) {
tmp = t_1;
} else if (z <= 5.2e-13) {
tmp = (b * (y * 1.6453555072203998)) + x;
} 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 = (y * 3.13060547623d0) + x
if (z <= (-5.1d-6)) then
tmp = t_1
else if (z <= 5.2d-13) then
tmp = (b * (y * 1.6453555072203998d0)) + x
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 = (y * 3.13060547623) + x;
double tmp;
if (z <= -5.1e-6) {
tmp = t_1;
} else if (z <= 5.2e-13) {
tmp = (b * (y * 1.6453555072203998)) + x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * 3.13060547623) + x tmp = 0 if z <= -5.1e-6: tmp = t_1 elif z <= 5.2e-13: tmp = (b * (y * 1.6453555072203998)) + x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * 3.13060547623) + x) tmp = 0.0 if (z <= -5.1e-6) tmp = t_1; elseif (z <= 5.2e-13) tmp = Float64(Float64(b * Float64(y * 1.6453555072203998)) + x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * 3.13060547623) + x; tmp = 0.0; if (z <= -5.1e-6) tmp = t_1; elseif (z <= 5.2e-13) tmp = (b * (y * 1.6453555072203998)) + x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * 3.13060547623), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -5.1e-6], t$95$1, If[LessEqual[z, 5.2e-13], N[(N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot 3.13060547623 + x\\
\mathbf{if}\;z \leq -5.1 \cdot 10^{-6}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-13}:\\
\;\;\;\;b \cdot \left(y \cdot 1.6453555072203998\right) + x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.1000000000000003e-6 or 5.2000000000000001e-13 < z Initial program 20.1%
Taylor expanded in z around inf 0
Simplified0
if -5.1000000000000003e-6 < z < 5.2000000000000001e-13Initial program 99.7%
Taylor expanded in z around 0 0
Simplified0
(FPCore (x y z t a b) :precision binary64 (if (<= x -5.6e-89) x (if (<= x 3.7e-90) (* (* y 1.6453555072203998) b) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -5.6e-89) {
tmp = x;
} else if (x <= 3.7e-90) {
tmp = (y * 1.6453555072203998) * b;
} 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 <= (-5.6d-89)) then
tmp = x
else if (x <= 3.7d-90) then
tmp = (y * 1.6453555072203998d0) * b
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 <= -5.6e-89) {
tmp = x;
} else if (x <= 3.7e-90) {
tmp = (y * 1.6453555072203998) * b;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -5.6e-89: tmp = x elif x <= 3.7e-90: tmp = (y * 1.6453555072203998) * b else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -5.6e-89) tmp = x; elseif (x <= 3.7e-90) tmp = Float64(Float64(y * 1.6453555072203998) * b); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -5.6e-89) tmp = x; elseif (x <= 3.7e-90) tmp = (y * 1.6453555072203998) * b; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -5.6e-89], x, If[LessEqual[x, 3.7e-90], N[(N[(y * 1.6453555072203998), $MachinePrecision] * b), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.6 \cdot 10^{-89}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{-90}:\\
\;\;\;\;\left(y \cdot 1.6453555072203998\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -5.5999999999999998e-89 or 3.70000000000000018e-90 < x Initial program 58.1%
Taylor expanded in x around inf 0
Simplified0
if -5.5999999999999998e-89 < x < 3.70000000000000018e-90Initial program 65.4%
Taylor expanded in z around 0 0
Simplified0
Taylor expanded in b around inf 0
Simplified0
Applied egg-rr0
(FPCore (x y z t a b) :precision binary64 (if (<= x -1.7e-89) x (if (<= x 3.1e-90) (* 1.6453555072203998 (* b y)) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -1.7e-89) {
tmp = x;
} else if (x <= 3.1e-90) {
tmp = 1.6453555072203998 * (b * y);
} 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.7d-89)) then
tmp = x
else if (x <= 3.1d-90) then
tmp = 1.6453555072203998d0 * (b * y)
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.7e-89) {
tmp = x;
} else if (x <= 3.1e-90) {
tmp = 1.6453555072203998 * (b * y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -1.7e-89: tmp = x elif x <= 3.1e-90: tmp = 1.6453555072203998 * (b * y) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -1.7e-89) tmp = x; elseif (x <= 3.1e-90) tmp = Float64(1.6453555072203998 * Float64(b * y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -1.7e-89) tmp = x; elseif (x <= 3.1e-90) tmp = 1.6453555072203998 * (b * y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -1.7e-89], x, If[LessEqual[x, 3.1e-90], N[(1.6453555072203998 * N[(b * y), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.7 \cdot 10^{-89}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{-90}:\\
\;\;\;\;1.6453555072203998 \cdot \left(b \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.7e-89 or 3.1000000000000001e-90 < x Initial program 58.1%
Taylor expanded in x around inf 0
Simplified0
if -1.7e-89 < x < 3.1000000000000001e-90Initial program 65.4%
Taylor expanded in z around 0 0
Simplified0
Taylor expanded in b around inf 0
Simplified0
(FPCore (x y z t a b) :precision binary64 (if (<= x -7.6e-121) x (if (<= x 1.75e-103) (* 3.13060547623 y) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -7.6e-121) {
tmp = x;
} else if (x <= 1.75e-103) {
tmp = 3.13060547623 * y;
} 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 <= (-7.6d-121)) then
tmp = x
else if (x <= 1.75d-103) then
tmp = 3.13060547623d0 * y
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 <= -7.6e-121) {
tmp = x;
} else if (x <= 1.75e-103) {
tmp = 3.13060547623 * y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -7.6e-121: tmp = x elif x <= 1.75e-103: tmp = 3.13060547623 * y else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -7.6e-121) tmp = x; elseif (x <= 1.75e-103) tmp = Float64(3.13060547623 * y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -7.6e-121) tmp = x; elseif (x <= 1.75e-103) tmp = 3.13060547623 * y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -7.6e-121], x, If[LessEqual[x, 1.75e-103], N[(3.13060547623 * y), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.6 \cdot 10^{-121}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.75 \cdot 10^{-103}:\\
\;\;\;\;3.13060547623 \cdot y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -7.6000000000000002e-121 or 1.75000000000000008e-103 < x Initial program 59.3%
Taylor expanded in x around inf 0
Simplified0
if -7.6000000000000002e-121 < x < 1.75000000000000008e-103Initial program 63.6%
Taylor expanded in z around inf 0
Simplified0
Taylor expanded in y around inf 0
Simplified0
(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.5%
Taylor expanded in x around inf 0
Simplified0
(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 2024111
(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))))