
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i): return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i): return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma y (fma y (fma y (+ y a) b) c) i)))
(if (<=
(/
(+
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616))
t)
(+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
INFINITY)
(fma
230661.510616
(/ y t_1)
(+ (/ t t_1) (/ (pow y 2.0) (/ t_1 (fma y (fma y x z) 27464.7644705)))))
(+ x (/ z y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(y, fma(y, fma(y, (y + a), b), c), i);
double tmp;
if ((((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)) <= ((double) INFINITY)) {
tmp = fma(230661.510616, (y / t_1), ((t / t_1) + (pow(y, 2.0) / (t_1 / fma(y, fma(y, x, z), 27464.7644705)))));
} else {
tmp = x + (z / y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(y, fma(y, fma(y, Float64(y + a), b), c), i) tmp = 0.0 if (Float64(Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)) <= Inf) tmp = fma(230661.510616, Float64(y / t_1), Float64(Float64(t / t_1) + Float64((y ^ 2.0) / Float64(t_1 / fma(y, fma(y, x, z), 27464.7644705))))); else tmp = Float64(x + Float64(z / y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(y * N[(y * N[(y * N[(y + a), $MachinePrecision] + b), $MachinePrecision] + c), $MachinePrecision] + i), $MachinePrecision]}, If[LessEqual[N[(N[(N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], Infinity], N[(230661.510616 * N[(y / t$95$1), $MachinePrecision] + N[(N[(t / t$95$1), $MachinePrecision] + N[(N[Power[y, 2.0], $MachinePrecision] / N[(t$95$1 / N[(y * N[(y * x + z), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)\\
\mathbf{if}\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(230661.510616, \frac{y}{t_1}, \frac{t}{t_1} + \frac{{y}^{2}}{\frac{t_1}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, x, z\right), 27464.7644705\right)}}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0Initial program 90.5%
*-commutative90.5%
distribute-rgt-in90.5%
*-commutative90.5%
*-commutative90.5%
fma-def90.5%
fma-def90.5%
Applied egg-rr90.5%
Taylor expanded in t around 0 90.5%
Simplified91.7%
if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 0.0%
Taylor expanded in y around inf 65.8%
associate--l+65.8%
associate-/l*73.8%
Simplified73.8%
Taylor expanded in z around inf 74.0%
Final simplification85.3%
(FPCore (x y z t a b c i)
:precision binary64
(if (<=
(/
(+
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616))
t)
(+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
INFINITY)
(/
(fma (fma (fma (fma x y z) y 27464.7644705) y 230661.510616) y t)
(fma (fma (fma (+ y a) y b) y c) y i))
(+ x (/ z y))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)) <= ((double) INFINITY)) {
tmp = fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma((y + a), y, b), y, c), y, i);
} else {
tmp = x + (z / y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)) <= Inf) tmp = Float64(fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(Float64(y + a), y, b), y, c), y, i)); else tmp = Float64(x + Float64(z / y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(N[(N[(x * y + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(N[(y + a), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \leq \infty:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y + a, y, b\right), y, c\right), y, i\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0Initial program 90.5%
fma-def90.5%
fma-def90.5%
fma-def90.5%
fma-def90.5%
fma-def90.5%
fma-def90.5%
fma-def90.5%
Simplified90.5%
if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 0.0%
Taylor expanded in y around inf 65.8%
associate--l+65.8%
associate-/l*73.8%
Simplified73.8%
Taylor expanded in z around inf 74.0%
Final simplification84.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(/
(+
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616))
t)
(+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))))
(if (<= t_1 INFINITY) t_1 (+ x (/ z y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = x + (z / y);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = x + (z / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = x + (z / y) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(x + Float64(z / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = x + (z / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0Initial program 90.5%
if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 0.0%
Taylor expanded in y around inf 65.8%
associate--l+65.8%
associate-/l*73.8%
Simplified73.8%
Taylor expanded in z around inf 74.0%
Final simplification84.6%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -1.3e+60)
(+ x (- (/ z y) (/ a (/ y x))))
(if (<= y 2e+30)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
(+ x (/ z y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.3e+60) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 2e+30) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + (z / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-1.3d+60)) then
tmp = x + ((z / y) - (a / (y / x)))
else if (y <= 2d+30) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
else
tmp = x + (z / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.3e+60) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 2e+30) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + (z / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.3e+60: tmp = x + ((z / y) - (a / (y / x))) elif y <= 2e+30: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) else: tmp = x + (z / y) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.3e+60) tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); elseif (y <= 2e+30) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); else tmp = Float64(x + Float64(z / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -1.3e+60) tmp = x + ((z / y) - (a / (y / x))); elseif (y <= 2e+30) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); else tmp = x + (z / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.3e+60], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+30], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{+60}:\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+30}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{y}\\
\end{array}
\end{array}
if y < -1.30000000000000004e60Initial program 0.6%
Taylor expanded in y around inf 69.4%
associate--l+69.4%
associate-/l*74.9%
Simplified74.9%
if -1.30000000000000004e60 < y < 2e30Initial program 94.1%
Taylor expanded in x around 0 89.9%
if 2e30 < y Initial program 4.1%
Taylor expanded in y around inf 62.3%
associate--l+62.3%
associate-/l*71.0%
Simplified71.0%
Taylor expanded in z around inf 71.6%
Final simplification83.2%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -4e+75)
(+ x (- (/ z y) (/ a (/ y x))))
(if (<= y 6.4e+28)
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
(+ x (/ z y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -4e+75) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 6.4e+28) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + (z / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-4d+75)) then
tmp = x + ((z / y) - (a / (y / x)))
else if (y <= 6.4d+28) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
else
tmp = x + (z / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -4e+75) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 6.4e+28) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + (z / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -4e+75: tmp = x + ((z / y) - (a / (y / x))) elif y <= 6.4e+28: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) else: tmp = x + (z / y) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -4e+75) tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); elseif (y <= 6.4e+28) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); else tmp = Float64(x + Float64(z / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -4e+75) tmp = x + ((z / y) - (a / (y / x))); elseif (y <= 6.4e+28) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); else tmp = x + (z / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -4e+75], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.4e+28], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{+75}:\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{elif}\;y \leq 6.4 \cdot 10^{+28}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{y}\\
\end{array}
\end{array}
if y < -3.99999999999999971e75Initial program 0.6%
Taylor expanded in y around inf 70.9%
associate--l+70.9%
associate-/l*76.5%
Simplified76.5%
if -3.99999999999999971e75 < y < 6.4000000000000001e28Initial program 93.5%
Taylor expanded in y around 0 84.1%
*-commutative84.1%
Simplified84.1%
if 6.4000000000000001e28 < y Initial program 4.1%
Taylor expanded in y around inf 62.3%
associate--l+62.3%
associate-/l*71.0%
Simplified71.0%
Taylor expanded in z around inf 71.6%
Final simplification80.1%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -4e+75)
(+ x (- (/ z y) (/ a (/ y x))))
(if (<= y 7.2e+29)
(/ (+ t (* y 230661.510616)) (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
(+ x (/ z y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -4e+75) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 7.2e+29) {
tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + (z / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-4d+75)) then
tmp = x + ((z / y) - (a / (y / x)))
else if (y <= 7.2d+29) then
tmp = (t + (y * 230661.510616d0)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
else
tmp = x + (z / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -4e+75) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 7.2e+29) {
tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + (z / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -4e+75: tmp = x + ((z / y) - (a / (y / x))) elif y <= 7.2e+29: tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) else: tmp = x + (z / y) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -4e+75) tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); elseif (y <= 7.2e+29) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); else tmp = Float64(x + Float64(z / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -4e+75) tmp = x + ((z / y) - (a / (y / x))); elseif (y <= 7.2e+29) tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); else tmp = x + (z / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -4e+75], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.2e+29], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{+75}:\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{+29}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{y}\\
\end{array}
\end{array}
if y < -3.99999999999999971e75Initial program 0.6%
Taylor expanded in y around inf 70.9%
associate--l+70.9%
associate-/l*76.5%
Simplified76.5%
if -3.99999999999999971e75 < y < 7.19999999999999952e29Initial program 93.5%
Taylor expanded in y around 0 83.8%
*-commutative83.8%
Simplified83.8%
if 7.19999999999999952e29 < y Initial program 4.1%
Taylor expanded in y around inf 62.3%
associate--l+62.3%
associate-/l*71.0%
Simplified71.0%
Taylor expanded in z around inf 71.6%
Final simplification79.9%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -4e+75)
(+ x (- (/ z y) (/ a (/ y x))))
(if (<= y 7.5e-97)
(/ (+ t (* y (+ 230661.510616 (* y 27464.7644705)))) (+ i (* y c)))
(if (<= y 1.65e+30)
(/ t (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
(+ x (/ z y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -4e+75) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 7.5e-97) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * c));
} else if (y <= 1.65e+30) {
tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + (z / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-4d+75)) then
tmp = x + ((z / y) - (a / (y / x)))
else if (y <= 7.5d-97) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * c))
else if (y <= 1.65d+30) then
tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
else
tmp = x + (z / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -4e+75) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 7.5e-97) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * c));
} else if (y <= 1.65e+30) {
tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + (z / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -4e+75: tmp = x + ((z / y) - (a / (y / x))) elif y <= 7.5e-97: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * c)) elif y <= 1.65e+30: tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) else: tmp = x + (z / y) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -4e+75) tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); elseif (y <= 7.5e-97) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * c))); elseif (y <= 1.65e+30) tmp = Float64(t / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); else tmp = Float64(x + Float64(z / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -4e+75) tmp = x + ((z / y) - (a / (y / x))); elseif (y <= 7.5e-97) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * c)); elseif (y <= 1.65e+30) tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); else tmp = x + (z / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -4e+75], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.5e-97], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e+30], N[(t / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{+75}:\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-97}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot c}\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{+30}:\\
\;\;\;\;\frac{t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{y}\\
\end{array}
\end{array}
if y < -3.99999999999999971e75Initial program 0.6%
Taylor expanded in y around inf 70.9%
associate--l+70.9%
associate-/l*76.5%
Simplified76.5%
if -3.99999999999999971e75 < y < 7.5e-97Initial program 93.3%
Taylor expanded in y around 0 89.3%
*-commutative89.3%
Simplified89.3%
Taylor expanded in y around 0 83.9%
*-commutative83.9%
Simplified83.9%
if 7.5e-97 < y < 1.65000000000000013e30Initial program 94.3%
Taylor expanded in t around inf 54.9%
if 1.65000000000000013e30 < y Initial program 4.1%
Taylor expanded in y around inf 62.3%
associate--l+62.3%
associate-/l*71.0%
Simplified71.0%
Taylor expanded in z around inf 71.6%
Final simplification75.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ t (+ i (* y (+ c (* y b)))))))
(if (<= y -7.4e+31)
(+ x (- (/ z y) (/ a (/ y x))))
(if (<= y 1.1e-209)
t_1
(if (<= y 3.6e-74)
(/ (+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))) i)
(if (<= y 2.7e+27) t_1 (+ x (/ z y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = t / (i + (y * (c + (y * b))));
double tmp;
if (y <= -7.4e+31) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 1.1e-209) {
tmp = t_1;
} else if (y <= 3.6e-74) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i;
} else if (y <= 2.7e+27) {
tmp = t_1;
} else {
tmp = x + (z / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = t / (i + (y * (c + (y * b))))
if (y <= (-7.4d+31)) then
tmp = x + ((z / y) - (a / (y / x)))
else if (y <= 1.1d-209) then
tmp = t_1
else if (y <= 3.6d-74) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / i
else if (y <= 2.7d+27) then
tmp = t_1
else
tmp = x + (z / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = t / (i + (y * (c + (y * b))));
double tmp;
if (y <= -7.4e+31) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 1.1e-209) {
tmp = t_1;
} else if (y <= 3.6e-74) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i;
} else if (y <= 2.7e+27) {
tmp = t_1;
} else {
tmp = x + (z / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = t / (i + (y * (c + (y * b)))) tmp = 0 if y <= -7.4e+31: tmp = x + ((z / y) - (a / (y / x))) elif y <= 1.1e-209: tmp = t_1 elif y <= 3.6e-74: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i elif y <= 2.7e+27: tmp = t_1 else: tmp = x + (z / y) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * b))))) tmp = 0.0 if (y <= -7.4e+31) tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); elseif (y <= 1.1e-209) tmp = t_1; elseif (y <= 3.6e-74) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / i); elseif (y <= 2.7e+27) tmp = t_1; else tmp = Float64(x + Float64(z / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = t / (i + (y * (c + (y * b)))); tmp = 0.0; if (y <= -7.4e+31) tmp = x + ((z / y) - (a / (y / x))); elseif (y <= 1.1e-209) tmp = t_1; elseif (y <= 3.6e-74) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i; elseif (y <= 2.7e+27) tmp = t_1; else tmp = x + (z / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(t / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.4e+31], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e-209], t$95$1, If[LessEqual[y, 3.6e-74], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], If[LessEqual[y, 2.7e+27], t$95$1, N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{if}\;y \leq -7.4 \cdot 10^{+31}:\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-209}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{-74}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i}\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+27}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{y}\\
\end{array}
\end{array}
if y < -7.3999999999999996e31Initial program 0.7%
Taylor expanded in y around inf 66.6%
associate--l+66.6%
associate-/l*71.9%
Simplified71.9%
if -7.3999999999999996e31 < y < 1.10000000000000005e-209 or 3.6000000000000002e-74 < y < 2.6999999999999997e27Initial program 94.4%
Taylor expanded in t around inf 71.9%
Taylor expanded in y around 0 69.3%
*-commutative69.3%
Simplified69.3%
if 1.10000000000000005e-209 < y < 3.6000000000000002e-74Initial program 99.7%
Taylor expanded in x around 0 99.7%
Taylor expanded in i around inf 82.1%
if 2.6999999999999997e27 < y Initial program 4.1%
Taylor expanded in y around inf 62.3%
associate--l+62.3%
associate-/l*71.0%
Simplified71.0%
Taylor expanded in z around inf 71.6%
Final simplification71.6%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -4e+75)
(+ x (- (/ z y) (/ a (/ y x))))
(if (<= y 0.000106)
(/ (+ t (* y (+ 230661.510616 (* y 27464.7644705)))) (+ i (* y c)))
(+ x (/ z y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -4e+75) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 0.000106) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * c));
} else {
tmp = x + (z / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-4d+75)) then
tmp = x + ((z / y) - (a / (y / x)))
else if (y <= 0.000106d0) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * c))
else
tmp = x + (z / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -4e+75) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 0.000106) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * c));
} else {
tmp = x + (z / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -4e+75: tmp = x + ((z / y) - (a / (y / x))) elif y <= 0.000106: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * c)) else: tmp = x + (z / y) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -4e+75) tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); elseif (y <= 0.000106) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * c))); else tmp = Float64(x + Float64(z / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -4e+75) tmp = x + ((z / y) - (a / (y / x))); elseif (y <= 0.000106) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * c)); else tmp = x + (z / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -4e+75], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.000106], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{+75}:\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{elif}\;y \leq 0.000106:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{y}\\
\end{array}
\end{array}
if y < -3.99999999999999971e75Initial program 0.6%
Taylor expanded in y around inf 70.9%
associate--l+70.9%
associate-/l*76.5%
Simplified76.5%
if -3.99999999999999971e75 < y < 1.06e-4Initial program 94.5%
Taylor expanded in y around 0 85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in y around 0 76.7%
*-commutative76.7%
Simplified76.7%
if 1.06e-4 < y Initial program 10.5%
Taylor expanded in y around inf 56.4%
associate--l+56.4%
associate-/l*64.3%
Simplified64.3%
Taylor expanded in z around inf 64.8%
Final simplification73.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ t (+ i (* y c)))) (t_2 (+ x (/ z y))))
(if (<= y -1.35e+31)
t_2
(if (<= y 2.4e-207)
t_1
(if (<= y 1.35e-73)
(+ (* 230661.510616 (/ y i)) (/ t i))
(if (<= y 1.5e+22) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = t / (i + (y * c));
double t_2 = x + (z / y);
double tmp;
if (y <= -1.35e+31) {
tmp = t_2;
} else if (y <= 2.4e-207) {
tmp = t_1;
} else if (y <= 1.35e-73) {
tmp = (230661.510616 * (y / i)) + (t / i);
} else if (y <= 1.5e+22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t / (i + (y * c))
t_2 = x + (z / y)
if (y <= (-1.35d+31)) then
tmp = t_2
else if (y <= 2.4d-207) then
tmp = t_1
else if (y <= 1.35d-73) then
tmp = (230661.510616d0 * (y / i)) + (t / i)
else if (y <= 1.5d+22) 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 c, double i) {
double t_1 = t / (i + (y * c));
double t_2 = x + (z / y);
double tmp;
if (y <= -1.35e+31) {
tmp = t_2;
} else if (y <= 2.4e-207) {
tmp = t_1;
} else if (y <= 1.35e-73) {
tmp = (230661.510616 * (y / i)) + (t / i);
} else if (y <= 1.5e+22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = t / (i + (y * c)) t_2 = x + (z / y) tmp = 0 if y <= -1.35e+31: tmp = t_2 elif y <= 2.4e-207: tmp = t_1 elif y <= 1.35e-73: tmp = (230661.510616 * (y / i)) + (t / i) elif y <= 1.5e+22: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(t / Float64(i + Float64(y * c))) t_2 = Float64(x + Float64(z / y)) tmp = 0.0 if (y <= -1.35e+31) tmp = t_2; elseif (y <= 2.4e-207) tmp = t_1; elseif (y <= 1.35e-73) tmp = Float64(Float64(230661.510616 * Float64(y / i)) + Float64(t / i)); elseif (y <= 1.5e+22) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = t / (i + (y * c)); t_2 = x + (z / y); tmp = 0.0; if (y <= -1.35e+31) tmp = t_2; elseif (y <= 2.4e-207) tmp = t_1; elseif (y <= 1.35e-73) tmp = (230661.510616 * (y / i)) + (t / i); elseif (y <= 1.5e+22) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.35e+31], t$95$2, If[LessEqual[y, 2.4e-207], t$95$1, If[LessEqual[y, 1.35e-73], N[(N[(230661.510616 * N[(y / i), $MachinePrecision]), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.5e+22], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{i + y \cdot c}\\
t_2 := x + \frac{z}{y}\\
\mathbf{if}\;y \leq -1.35 \cdot 10^{+31}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-207}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{-73}:\\
\;\;\;\;230661.510616 \cdot \frac{y}{i} + \frac{t}{i}\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{+22}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.34999999999999993e31 or 1.5e22 < y Initial program 2.5%
Taylor expanded in y around inf 64.3%
associate--l+64.3%
associate-/l*71.4%
Simplified71.4%
Taylor expanded in z around inf 71.7%
if -1.34999999999999993e31 < y < 2.39999999999999989e-207 or 1.34999999999999997e-73 < y < 1.5e22Initial program 94.4%
Taylor expanded in t around inf 71.9%
Taylor expanded in y around 0 64.7%
*-commutative64.7%
Simplified64.7%
if 2.39999999999999989e-207 < y < 1.34999999999999997e-73Initial program 99.7%
Taylor expanded in y around 0 93.1%
*-commutative93.1%
Simplified93.1%
Taylor expanded in c around 0 82.5%
Taylor expanded in y around 0 75.5%
Final simplification68.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ t (+ i (* y c)))))
(if (<= y -4e+75)
(+ x (- (/ z y) (/ a (/ y x))))
(if (<= y 9.5e-208)
t_1
(if (<= y 3.5e-74)
(+ (* 230661.510616 (/ y i)) (/ t i))
(if (<= y 2.26e+21) t_1 (+ x (/ z y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = t / (i + (y * c));
double tmp;
if (y <= -4e+75) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 9.5e-208) {
tmp = t_1;
} else if (y <= 3.5e-74) {
tmp = (230661.510616 * (y / i)) + (t / i);
} else if (y <= 2.26e+21) {
tmp = t_1;
} else {
tmp = x + (z / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = t / (i + (y * c))
if (y <= (-4d+75)) then
tmp = x + ((z / y) - (a / (y / x)))
else if (y <= 9.5d-208) then
tmp = t_1
else if (y <= 3.5d-74) then
tmp = (230661.510616d0 * (y / i)) + (t / i)
else if (y <= 2.26d+21) then
tmp = t_1
else
tmp = x + (z / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = t / (i + (y * c));
double tmp;
if (y <= -4e+75) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 9.5e-208) {
tmp = t_1;
} else if (y <= 3.5e-74) {
tmp = (230661.510616 * (y / i)) + (t / i);
} else if (y <= 2.26e+21) {
tmp = t_1;
} else {
tmp = x + (z / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = t / (i + (y * c)) tmp = 0 if y <= -4e+75: tmp = x + ((z / y) - (a / (y / x))) elif y <= 9.5e-208: tmp = t_1 elif y <= 3.5e-74: tmp = (230661.510616 * (y / i)) + (t / i) elif y <= 2.26e+21: tmp = t_1 else: tmp = x + (z / y) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(t / Float64(i + Float64(y * c))) tmp = 0.0 if (y <= -4e+75) tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); elseif (y <= 9.5e-208) tmp = t_1; elseif (y <= 3.5e-74) tmp = Float64(Float64(230661.510616 * Float64(y / i)) + Float64(t / i)); elseif (y <= 2.26e+21) tmp = t_1; else tmp = Float64(x + Float64(z / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = t / (i + (y * c)); tmp = 0.0; if (y <= -4e+75) tmp = x + ((z / y) - (a / (y / x))); elseif (y <= 9.5e-208) tmp = t_1; elseif (y <= 3.5e-74) tmp = (230661.510616 * (y / i)) + (t / i); elseif (y <= 2.26e+21) tmp = t_1; else tmp = x + (z / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4e+75], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.5e-208], t$95$1, If[LessEqual[y, 3.5e-74], N[(N[(230661.510616 * N[(y / i), $MachinePrecision]), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.26e+21], t$95$1, N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{i + y \cdot c}\\
\mathbf{if}\;y \leq -4 \cdot 10^{+75}:\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-208}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{-74}:\\
\;\;\;\;230661.510616 \cdot \frac{y}{i} + \frac{t}{i}\\
\mathbf{elif}\;y \leq 2.26 \cdot 10^{+21}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{y}\\
\end{array}
\end{array}
if y < -3.99999999999999971e75Initial program 0.6%
Taylor expanded in y around inf 70.9%
associate--l+70.9%
associate-/l*76.5%
Simplified76.5%
if -3.99999999999999971e75 < y < 9.5000000000000001e-208 or 3.50000000000000015e-74 < y < 2.26e21Initial program 92.2%
Taylor expanded in t around inf 70.3%
Taylor expanded in y around 0 63.3%
*-commutative63.3%
Simplified63.3%
if 9.5000000000000001e-208 < y < 3.50000000000000015e-74Initial program 99.7%
Taylor expanded in y around 0 93.1%
*-commutative93.1%
Simplified93.1%
Taylor expanded in c around 0 82.5%
Taylor expanded in y around 0 75.5%
if 2.26e21 < y Initial program 4.1%
Taylor expanded in y around inf 62.3%
associate--l+62.3%
associate-/l*71.0%
Simplified71.0%
Taylor expanded in z around inf 71.6%
Final simplification68.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -2.6e+34) (+ x (- (/ z y) (/ a (/ y x)))) (if (<= y 6.4e+25) (/ t (+ i (* y (+ c (* y b))))) (+ x (/ z y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -2.6e+34) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 6.4e+25) {
tmp = t / (i + (y * (c + (y * b))));
} else {
tmp = x + (z / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-2.6d+34)) then
tmp = x + ((z / y) - (a / (y / x)))
else if (y <= 6.4d+25) then
tmp = t / (i + (y * (c + (y * b))))
else
tmp = x + (z / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -2.6e+34) {
tmp = x + ((z / y) - (a / (y / x)));
} else if (y <= 6.4e+25) {
tmp = t / (i + (y * (c + (y * b))));
} else {
tmp = x + (z / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -2.6e+34: tmp = x + ((z / y) - (a / (y / x))) elif y <= 6.4e+25: tmp = t / (i + (y * (c + (y * b)))) else: tmp = x + (z / y) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -2.6e+34) tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); elseif (y <= 6.4e+25) tmp = Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * b))))); else tmp = Float64(x + Float64(z / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -2.6e+34) tmp = x + ((z / y) - (a / (y / x))); elseif (y <= 6.4e+25) tmp = t / (i + (y * (c + (y * b)))); else tmp = x + (z / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -2.6e+34], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.4e+25], N[(t / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.6 \cdot 10^{+34}:\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{elif}\;y \leq 6.4 \cdot 10^{+25}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{y}\\
\end{array}
\end{array}
if y < -2.59999999999999997e34Initial program 0.7%
Taylor expanded in y around inf 66.6%
associate--l+66.6%
associate-/l*71.9%
Simplified71.9%
if -2.59999999999999997e34 < y < 6.3999999999999999e25Initial program 95.3%
Taylor expanded in t around inf 71.3%
Taylor expanded in y around 0 68.6%
*-commutative68.6%
Simplified68.6%
if 6.3999999999999999e25 < y Initial program 4.1%
Taylor expanded in y around inf 62.3%
associate--l+62.3%
associate-/l*71.0%
Simplified71.0%
Taylor expanded in z around inf 71.6%
Final simplification69.8%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -4e+31) (not (<= y 2.8e+29))) (+ x (/ z y)) (/ t (+ i (* y c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -4e+31) || !(y <= 2.8e+29)) {
tmp = x + (z / y);
} else {
tmp = t / (i + (y * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-4d+31)) .or. (.not. (y <= 2.8d+29))) then
tmp = x + (z / y)
else
tmp = t / (i + (y * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -4e+31) || !(y <= 2.8e+29)) {
tmp = x + (z / y);
} else {
tmp = t / (i + (y * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -4e+31) or not (y <= 2.8e+29): tmp = x + (z / y) else: tmp = t / (i + (y * c)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -4e+31) || !(y <= 2.8e+29)) tmp = Float64(x + Float64(z / y)); else tmp = Float64(t / Float64(i + Float64(y * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -4e+31) || ~((y <= 2.8e+29))) tmp = x + (z / y); else tmp = t / (i + (y * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -4e+31], N[Not[LessEqual[y, 2.8e+29]], $MachinePrecision]], N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision], N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{+31} \lor \neg \left(y \leq 2.8 \cdot 10^{+29}\right):\\
\;\;\;\;x + \frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot c}\\
\end{array}
\end{array}
if y < -3.9999999999999999e31 or 2.8e29 < y Initial program 2.5%
Taylor expanded in y around inf 64.3%
associate--l+64.3%
associate-/l*71.4%
Simplified71.4%
Taylor expanded in z around inf 71.7%
if -3.9999999999999999e31 < y < 2.8e29Initial program 95.3%
Taylor expanded in t around inf 71.3%
Taylor expanded in y around 0 63.5%
*-commutative63.5%
Simplified63.5%
Final simplification66.8%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -5.6e+29) (not (<= y 6.8e+19))) (+ x (/ z y)) (/ t i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -5.6e+29) || !(y <= 6.8e+19)) {
tmp = x + (z / y);
} else {
tmp = t / i;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-5.6d+29)) .or. (.not. (y <= 6.8d+19))) then
tmp = x + (z / y)
else
tmp = t / i
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -5.6e+29) || !(y <= 6.8e+19)) {
tmp = x + (z / y);
} else {
tmp = t / i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -5.6e+29) or not (y <= 6.8e+19): tmp = x + (z / y) else: tmp = t / i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -5.6e+29) || !(y <= 6.8e+19)) tmp = Float64(x + Float64(z / y)); else tmp = Float64(t / i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -5.6e+29) || ~((y <= 6.8e+19))) tmp = x + (z / y); else tmp = t / i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -5.6e+29], N[Not[LessEqual[y, 6.8e+19]], $MachinePrecision]], N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision], N[(t / i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.6 \cdot 10^{+29} \lor \neg \left(y \leq 6.8 \cdot 10^{+19}\right):\\
\;\;\;\;x + \frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i}\\
\end{array}
\end{array}
if y < -5.5999999999999999e29 or 6.8e19 < y Initial program 2.5%
Taylor expanded in y around inf 64.3%
associate--l+64.3%
associate-/l*71.4%
Simplified71.4%
Taylor expanded in z around inf 71.7%
if -5.5999999999999999e29 < y < 6.8e19Initial program 95.3%
Taylor expanded in y around 0 50.9%
Final simplification59.2%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -4.9e+38) x (if (<= y 2.95e+57) (/ t i) x)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -4.9e+38) {
tmp = x;
} else if (y <= 2.95e+57) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-4.9d+38)) then
tmp = x
else if (y <= 2.95d+57) then
tmp = t / i
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 c, double i) {
double tmp;
if (y <= -4.9e+38) {
tmp = x;
} else if (y <= 2.95e+57) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -4.9e+38: tmp = x elif y <= 2.95e+57: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -4.9e+38) tmp = x; elseif (y <= 2.95e+57) tmp = Float64(t / i); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -4.9e+38) tmp = x; elseif (y <= 2.95e+57) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -4.9e+38], x, If[LessEqual[y, 2.95e+57], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.9 \cdot 10^{+38}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2.95 \cdot 10^{+57}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -4.90000000000000002e38 or 2.95000000000000006e57 < y Initial program 1.5%
Taylor expanded in y around inf 54.4%
if -4.90000000000000002e38 < y < 2.95000000000000006e57Initial program 94.2%
Taylor expanded in y around 0 49.9%
Final simplification51.7%
(FPCore (x y z t a b c i) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return x;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return x;
}
def code(x, y, z, t, a, b, c, i): return x
function code(x, y, z, t, a, b, c, i) return x end
function tmp = code(x, y, z, t, a, b, c, i) tmp = x; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 58.0%
Taylor expanded in y around inf 23.4%
Final simplification23.4%
herbie shell --seed 2023322
(FPCore (x y z t a b c i)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2"
:precision binary64
(/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))