
(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 15 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
(/
(+
(* 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 (* x a)) 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 - (x * a)) / 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 - (x * a)) / 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 - (x * a)) / 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(Float64(z - Float64(x * a)) / 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 - (x * a)) / 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[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / 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 - x \cdot a}{y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) 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) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) 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
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6477.6%
Simplified77.6%
Final simplification85.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y (+ (* y (+ y a)) b)) c)) (t_2 (+ (* y t_1) i)))
(if (<= y -2.45e+62)
(- (+ (+ x (/ z y)) (/ 27464.7644705 (* y y))) (/ (* x a) y))
(if (<= y -7.5e-29)
(*
(/ (/ 1.0 y) t_1)
(+
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616))
t))
(if (<= y 9.6e-78)
(/ (+ t (* y 230661.510616)) t_2)
(if (<= y 1.4e+43)
(/ (+ t (* y (* z (* y y)))) t_2)
(+ x (/ (- z (* x a)) 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 + a)) + b)) + c;
double t_2 = (y * t_1) + i;
double tmp;
if (y <= -2.45e+62) {
tmp = ((x + (z / y)) + (27464.7644705 / (y * y))) - ((x * a) / y);
} else if (y <= -7.5e-29) {
tmp = ((1.0 / y) / t_1) * ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t);
} else if (y <= 9.6e-78) {
tmp = (t + (y * 230661.510616)) / t_2;
} else if (y <= 1.4e+43) {
tmp = (t + (y * (z * (y * y)))) / t_2;
} else {
tmp = x + ((z - (x * a)) / 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) :: t_2
real(8) :: tmp
t_1 = (y * ((y * (y + a)) + b)) + c
t_2 = (y * t_1) + i
if (y <= (-2.45d+62)) then
tmp = ((x + (z / y)) + (27464.7644705d0 / (y * y))) - ((x * a) / y)
else if (y <= (-7.5d-29)) then
tmp = ((1.0d0 / y) / t_1) * ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705d0)) + 230661.510616d0)) + t)
else if (y <= 9.6d-78) then
tmp = (t + (y * 230661.510616d0)) / t_2
else if (y <= 1.4d+43) then
tmp = (t + (y * (z * (y * y)))) / t_2
else
tmp = x + ((z - (x * a)) / 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 = (y * ((y * (y + a)) + b)) + c;
double t_2 = (y * t_1) + i;
double tmp;
if (y <= -2.45e+62) {
tmp = ((x + (z / y)) + (27464.7644705 / (y * y))) - ((x * a) / y);
} else if (y <= -7.5e-29) {
tmp = ((1.0 / y) / t_1) * ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t);
} else if (y <= 9.6e-78) {
tmp = (t + (y * 230661.510616)) / t_2;
} else if (y <= 1.4e+43) {
tmp = (t + (y * (z * (y * y)))) / t_2;
} else {
tmp = x + ((z - (x * a)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * ((y * (y + a)) + b)) + c t_2 = (y * t_1) + i tmp = 0 if y <= -2.45e+62: tmp = ((x + (z / y)) + (27464.7644705 / (y * y))) - ((x * a) / y) elif y <= -7.5e-29: tmp = ((1.0 / y) / t_1) * ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) elif y <= 9.6e-78: tmp = (t + (y * 230661.510616)) / t_2 elif y <= 1.4e+43: tmp = (t + (y * (z * (y * y)))) / t_2 else: tmp = x + ((z - (x * a)) / y) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c) t_2 = Float64(Float64(y * t_1) + i) tmp = 0.0 if (y <= -2.45e+62) tmp = Float64(Float64(Float64(x + Float64(z / y)) + Float64(27464.7644705 / Float64(y * y))) - Float64(Float64(x * a) / y)); elseif (y <= -7.5e-29) tmp = Float64(Float64(Float64(1.0 / y) / t_1) * Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616)) + t)); elseif (y <= 9.6e-78) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / t_2); elseif (y <= 1.4e+43) tmp = Float64(Float64(t + Float64(y * Float64(z * Float64(y * y)))) / t_2); else tmp = Float64(x + Float64(Float64(z - Float64(x * a)) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * ((y * (y + a)) + b)) + c; t_2 = (y * t_1) + i; tmp = 0.0; if (y <= -2.45e+62) tmp = ((x + (z / y)) + (27464.7644705 / (y * y))) - ((x * a) / y); elseif (y <= -7.5e-29) tmp = ((1.0 / y) / t_1) * ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t); elseif (y <= 9.6e-78) tmp = (t + (y * 230661.510616)) / t_2; elseif (y <= 1.4e+43) tmp = (t + (y * (z * (y * y)))) / t_2; else tmp = x + ((z - (x * a)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * t$95$1), $MachinePrecision] + i), $MachinePrecision]}, If[LessEqual[y, -2.45e+62], N[(N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] + N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.5e-29], N[(N[(N[(1.0 / y), $MachinePrecision] / t$95$1), $MachinePrecision] * 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]), $MachinePrecision], If[LessEqual[y, 9.6e-78], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], If[LessEqual[y, 1.4e+43], N[(N[(t + N[(y * N[(z * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], N[(x + N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\\
t_2 := y \cdot t\_1 + i\\
\mathbf{if}\;y \leq -2.45 \cdot 10^{+62}:\\
\;\;\;\;\left(\left(x + \frac{z}{y}\right) + \frac{27464.7644705}{y \cdot y}\right) - \frac{x \cdot a}{y}\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-29}:\\
\;\;\;\;\frac{\frac{1}{y}}{t\_1} \cdot \left(y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t\right)\\
\mathbf{elif}\;y \leq 9.6 \cdot 10^{-78}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{t\_2}\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{+43}:\\
\;\;\;\;\frac{t + y \cdot \left(z \cdot \left(y \cdot y\right)\right)}{t\_2}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\
\end{array}
\end{array}
if y < -2.4499999999999998e62Initial program 0.2%
Taylor expanded in y around inf
--lowering--.f64N/A
+-commutativeN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
associate-+r+N/A
Simplified66.7%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-lowering-*.f6474.8%
Simplified74.8%
if -2.4499999999999998e62 < y < -7.50000000000000006e-29Initial program 66.4%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr66.5%
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
Applied egg-rr66.3%
Taylor expanded in i around 0
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6455.6%
Simplified55.6%
if -7.50000000000000006e-29 < y < 9.59999999999999999e-78Initial program 99.8%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6496.6%
Simplified96.6%
if 9.59999999999999999e-78 < y < 1.40000000000000009e43Initial program 91.4%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6472.3%
Simplified72.3%
if 1.40000000000000009e43 < y Initial program 0.4%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6480.9%
Simplified80.9%
Final simplification81.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
(t_2 (+ x (/ (- z (* x a)) y))))
(if (<= y -8.8e+159)
t_2
(if (<= y -7.2e-14)
(/ -1.0 (- (/ -1.0 x) (/ (- (/ a x) (/ z (* x x))) y)))
(if (<= y 5.2e-83)
(/ (+ t (* y 230661.510616)) t_1)
(if (<= y 2.5e+44) (/ (+ t (* y (* z (* y y)))) 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 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double t_2 = x + ((z - (x * a)) / y);
double tmp;
if (y <= -8.8e+159) {
tmp = t_2;
} else if (y <= -7.2e-14) {
tmp = -1.0 / ((-1.0 / x) - (((a / x) - (z / (x * x))) / y));
} else if (y <= 5.2e-83) {
tmp = (t + (y * 230661.510616)) / t_1;
} else if (y <= 2.5e+44) {
tmp = (t + (y * (z * (y * y)))) / 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 = (y * ((y * ((y * (y + a)) + b)) + c)) + i
t_2 = x + ((z - (x * a)) / y)
if (y <= (-8.8d+159)) then
tmp = t_2
else if (y <= (-7.2d-14)) then
tmp = (-1.0d0) / (((-1.0d0) / x) - (((a / x) - (z / (x * x))) / y))
else if (y <= 5.2d-83) then
tmp = (t + (y * 230661.510616d0)) / t_1
else if (y <= 2.5d+44) then
tmp = (t + (y * (z * (y * y)))) / 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 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double t_2 = x + ((z - (x * a)) / y);
double tmp;
if (y <= -8.8e+159) {
tmp = t_2;
} else if (y <= -7.2e-14) {
tmp = -1.0 / ((-1.0 / x) - (((a / x) - (z / (x * x))) / y));
} else if (y <= 5.2e-83) {
tmp = (t + (y * 230661.510616)) / t_1;
} else if (y <= 2.5e+44) {
tmp = (t + (y * (z * (y * y)))) / t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i t_2 = x + ((z - (x * a)) / y) tmp = 0 if y <= -8.8e+159: tmp = t_2 elif y <= -7.2e-14: tmp = -1.0 / ((-1.0 / x) - (((a / x) - (z / (x * x))) / y)) elif y <= 5.2e-83: tmp = (t + (y * 230661.510616)) / t_1 elif y <= 2.5e+44: tmp = (t + (y * (z * (y * y)))) / t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i) t_2 = Float64(x + Float64(Float64(z - Float64(x * a)) / y)) tmp = 0.0 if (y <= -8.8e+159) tmp = t_2; elseif (y <= -7.2e-14) tmp = Float64(-1.0 / Float64(Float64(-1.0 / x) - Float64(Float64(Float64(a / x) - Float64(z / Float64(x * x))) / y))); elseif (y <= 5.2e-83) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / t_1); elseif (y <= 2.5e+44) tmp = Float64(Float64(t + Float64(y * Float64(z * Float64(y * y)))) / t_1); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i; t_2 = x + ((z - (x * a)) / y); tmp = 0.0; if (y <= -8.8e+159) tmp = t_2; elseif (y <= -7.2e-14) tmp = -1.0 / ((-1.0 / x) - (((a / x) - (z / (x * x))) / y)); elseif (y <= 5.2e-83) tmp = (t + (y * 230661.510616)) / t_1; elseif (y <= 2.5e+44) tmp = (t + (y * (z * (y * y)))) / 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[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -8.8e+159], t$95$2, If[LessEqual[y, -7.2e-14], N[(-1.0 / N[(N[(-1.0 / x), $MachinePrecision] - N[(N[(N[(a / x), $MachinePrecision] - N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.2e-83], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y, 2.5e+44], N[(N[(t + N[(y * N[(z * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i\\
t_2 := x + \frac{z - x \cdot a}{y}\\
\mathbf{if}\;y \leq -8.8 \cdot 10^{+159}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -7.2 \cdot 10^{-14}:\\
\;\;\;\;\frac{-1}{\frac{-1}{x} - \frac{\frac{a}{x} - \frac{z}{x \cdot x}}{y}}\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{-83}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{t\_1}\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+44}:\\
\;\;\;\;\frac{t + y \cdot \left(z \cdot \left(y \cdot y\right)\right)}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -8.7999999999999997e159 or 2.4999999999999998e44 < y Initial program 0.2%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6482.6%
Simplified82.6%
if -8.7999999999999997e159 < y < -7.1999999999999996e-14Initial program 32.7%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr32.7%
Taylor expanded in y around -inf
+-lowering-+.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f6445.6%
Simplified45.6%
if -7.1999999999999996e-14 < y < 5.20000000000000018e-83Initial program 99.8%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6494.9%
Simplified94.9%
if 5.20000000000000018e-83 < y < 2.4999999999999998e44Initial program 91.4%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6472.3%
Simplified72.3%
Final simplification81.2%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -4.1e+161)
(+ x (/ (- z (* x a)) y))
(if (<= y -7.2e-14)
(/ -1.0 (- (/ -1.0 x) (/ (- (/ a x) (/ z (* x x))) y)))
(if (<= y 68000000000000.0)
(/
(+ t (* y 230661.510616))
(+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
(- (+ x (/ z y)) (/ (* x a) y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -4.1e+161) {
tmp = x + ((z - (x * a)) / y);
} else if (y <= -7.2e-14) {
tmp = -1.0 / ((-1.0 / x) - (((a / x) - (z / (x * x))) / y));
} else if (y <= 68000000000000.0) {
tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = (x + (z / y)) - ((x * a) / 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 <= (-4.1d+161)) then
tmp = x + ((z - (x * a)) / y)
else if (y <= (-7.2d-14)) then
tmp = (-1.0d0) / (((-1.0d0) / x) - (((a / x) - (z / (x * x))) / y))
else if (y <= 68000000000000.0d0) then
tmp = (t + (y * 230661.510616d0)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
else
tmp = (x + (z / y)) - ((x * a) / 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 <= -4.1e+161) {
tmp = x + ((z - (x * a)) / y);
} else if (y <= -7.2e-14) {
tmp = -1.0 / ((-1.0 / x) - (((a / x) - (z / (x * x))) / y));
} else if (y <= 68000000000000.0) {
tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = (x + (z / y)) - ((x * a) / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -4.1e+161: tmp = x + ((z - (x * a)) / y) elif y <= -7.2e-14: tmp = -1.0 / ((-1.0 / x) - (((a / x) - (z / (x * x))) / y)) elif y <= 68000000000000.0: tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) else: tmp = (x + (z / y)) - ((x * a) / y) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -4.1e+161) tmp = Float64(x + Float64(Float64(z - Float64(x * a)) / y)); elseif (y <= -7.2e-14) tmp = Float64(-1.0 / Float64(Float64(-1.0 / x) - Float64(Float64(Float64(a / x) - Float64(z / Float64(x * x))) / y))); elseif (y <= 68000000000000.0) 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(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -4.1e+161) tmp = x + ((z - (x * a)) / y); elseif (y <= -7.2e-14) tmp = -1.0 / ((-1.0 / x) - (((a / x) - (z / (x * x))) / y)); elseif (y <= 68000000000000.0) tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); else tmp = (x + (z / y)) - ((x * a) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -4.1e+161], N[(x + N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.2e-14], N[(-1.0 / N[(N[(-1.0 / x), $MachinePrecision] - N[(N[(N[(a / x), $MachinePrecision] - N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 68000000000000.0], 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[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.1 \cdot 10^{+161}:\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\
\mathbf{elif}\;y \leq -7.2 \cdot 10^{-14}:\\
\;\;\;\;\frac{-1}{\frac{-1}{x} - \frac{\frac{a}{x} - \frac{z}{x \cdot x}}{y}}\\
\mathbf{elif}\;y \leq 68000000000000:\\
\;\;\;\;\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}:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\end{array}
\end{array}
if y < -4.1000000000000001e161Initial program 0.0%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6484.8%
Simplified84.8%
if -4.1000000000000001e161 < y < -7.1999999999999996e-14Initial program 32.7%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr32.7%
Taylor expanded in y around -inf
+-lowering-+.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f6445.6%
Simplified45.6%
if -7.1999999999999996e-14 < y < 6.8e13Initial program 99.7%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6486.4%
Simplified86.4%
if 6.8e13 < y Initial program 7.4%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr7.4%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6473.2%
Simplified73.2%
Final simplification78.1%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -6.4e+158)
(+ x (/ (- z (* x a)) y))
(if (<= y -4.3e-14)
(/ -1.0 (- (/ -1.0 x) (/ (- (/ a x) (/ z (* x x))) y)))
(if (<= y 58000000000000.0)
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ i (* y (+ c (* y b)))))
(- (+ x (/ z y)) (/ (* x a) y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -6.4e+158) {
tmp = x + ((z - (x * a)) / y);
} else if (y <= -4.3e-14) {
tmp = -1.0 / ((-1.0 / x) - (((a / x) - (z / (x * x))) / y));
} else if (y <= 58000000000000.0) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b))));
} else {
tmp = (x + (z / y)) - ((x * a) / 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 <= (-6.4d+158)) then
tmp = x + ((z - (x * a)) / y)
else if (y <= (-4.3d-14)) then
tmp = (-1.0d0) / (((-1.0d0) / x) - (((a / x) - (z / (x * x))) / y))
else if (y <= 58000000000000.0d0) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * (c + (y * b))))
else
tmp = (x + (z / y)) - ((x * a) / 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 <= -6.4e+158) {
tmp = x + ((z - (x * a)) / y);
} else if (y <= -4.3e-14) {
tmp = -1.0 / ((-1.0 / x) - (((a / x) - (z / (x * x))) / y));
} else if (y <= 58000000000000.0) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b))));
} else {
tmp = (x + (z / y)) - ((x * a) / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -6.4e+158: tmp = x + ((z - (x * a)) / y) elif y <= -4.3e-14: tmp = -1.0 / ((-1.0 / x) - (((a / x) - (z / (x * x))) / y)) elif y <= 58000000000000.0: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b)))) else: tmp = (x + (z / y)) - ((x * a) / y) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -6.4e+158) tmp = Float64(x + Float64(Float64(z - Float64(x * a)) / y)); elseif (y <= -4.3e-14) tmp = Float64(-1.0 / Float64(Float64(-1.0 / x) - Float64(Float64(Float64(a / x) - Float64(z / Float64(x * x))) / y))); elseif (y <= 58000000000000.0) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); else tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -6.4e+158) tmp = x + ((z - (x * a)) / y); elseif (y <= -4.3e-14) tmp = -1.0 / ((-1.0 / x) - (((a / x) - (z / (x * x))) / y)); elseif (y <= 58000000000000.0) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b)))); else tmp = (x + (z / y)) - ((x * a) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -6.4e+158], N[(x + N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.3e-14], N[(-1.0 / N[(N[(-1.0 / x), $MachinePrecision] - N[(N[(N[(a / x), $MachinePrecision] - N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 58000000000000.0], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.4 \cdot 10^{+158}:\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\
\mathbf{elif}\;y \leq -4.3 \cdot 10^{-14}:\\
\;\;\;\;\frac{-1}{\frac{-1}{x} - \frac{\frac{a}{x} - \frac{z}{x \cdot x}}{y}}\\
\mathbf{elif}\;y \leq 58000000000000:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\end{array}
\end{array}
if y < -6.39999999999999989e158Initial program 0.0%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6484.8%
Simplified84.8%
if -6.39999999999999989e158 < y < -4.29999999999999998e-14Initial program 32.7%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr32.7%
Taylor expanded in y around -inf
+-lowering-+.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f6445.6%
Simplified45.6%
if -4.29999999999999998e-14 < y < 5.8e13Initial program 99.7%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6486.4%
Simplified86.4%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6480.6%
Simplified80.6%
if 5.8e13 < y Initial program 7.4%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr7.4%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6473.2%
Simplified73.2%
Final simplification75.2%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -2.15e+162)
(+ x (/ (- z (* x a)) y))
(if (<= y -7.2e-14)
(/ -1.0 (+ (- (/ z (* y (* x x))) (/ (/ a x) y)) (/ -1.0 x)))
(if (<= y 3200000000000.0)
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ i (* y (+ c (* y b)))))
(- (+ x (/ z y)) (/ (* x a) y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -2.15e+162) {
tmp = x + ((z - (x * a)) / y);
} else if (y <= -7.2e-14) {
tmp = -1.0 / (((z / (y * (x * x))) - ((a / x) / y)) + (-1.0 / x));
} else if (y <= 3200000000000.0) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b))));
} else {
tmp = (x + (z / y)) - ((x * a) / 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.15d+162)) then
tmp = x + ((z - (x * a)) / y)
else if (y <= (-7.2d-14)) then
tmp = (-1.0d0) / (((z / (y * (x * x))) - ((a / x) / y)) + ((-1.0d0) / x))
else if (y <= 3200000000000.0d0) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * (c + (y * b))))
else
tmp = (x + (z / y)) - ((x * a) / 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.15e+162) {
tmp = x + ((z - (x * a)) / y);
} else if (y <= -7.2e-14) {
tmp = -1.0 / (((z / (y * (x * x))) - ((a / x) / y)) + (-1.0 / x));
} else if (y <= 3200000000000.0) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b))));
} else {
tmp = (x + (z / y)) - ((x * a) / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -2.15e+162: tmp = x + ((z - (x * a)) / y) elif y <= -7.2e-14: tmp = -1.0 / (((z / (y * (x * x))) - ((a / x) / y)) + (-1.0 / x)) elif y <= 3200000000000.0: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b)))) else: tmp = (x + (z / y)) - ((x * a) / y) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -2.15e+162) tmp = Float64(x + Float64(Float64(z - Float64(x * a)) / y)); elseif (y <= -7.2e-14) tmp = Float64(-1.0 / Float64(Float64(Float64(z / Float64(y * Float64(x * x))) - Float64(Float64(a / x) / y)) + Float64(-1.0 / x))); elseif (y <= 3200000000000.0) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); else tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -2.15e+162) tmp = x + ((z - (x * a)) / y); elseif (y <= -7.2e-14) tmp = -1.0 / (((z / (y * (x * x))) - ((a / x) / y)) + (-1.0 / x)); elseif (y <= 3200000000000.0) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b)))); else tmp = (x + (z / y)) - ((x * a) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -2.15e+162], N[(x + N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.2e-14], N[(-1.0 / N[(N[(N[(z / N[(y * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(a / x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3200000000000.0], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.15 \cdot 10^{+162}:\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\
\mathbf{elif}\;y \leq -7.2 \cdot 10^{-14}:\\
\;\;\;\;\frac{-1}{\left(\frac{z}{y \cdot \left(x \cdot x\right)} - \frac{\frac{a}{x}}{y}\right) + \frac{-1}{x}}\\
\mathbf{elif}\;y \leq 3200000000000:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\end{array}
\end{array}
if y < -2.1500000000000001e162Initial program 0.0%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6484.8%
Simplified84.8%
if -2.1500000000000001e162 < y < -7.1999999999999996e-14Initial program 32.7%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr32.7%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr32.7%
Taylor expanded in y around inf
associate--l+N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6445.6%
Simplified45.6%
if -7.1999999999999996e-14 < y < 3.2e12Initial program 99.7%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6486.4%
Simplified86.4%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6480.6%
Simplified80.6%
if 3.2e12 < y Initial program 7.4%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr7.4%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6473.2%
Simplified73.2%
Final simplification75.2%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -1.1e+157)
(+ x (/ (- z (* x a)) y))
(if (<= y -7.2e-14)
(/ -1.0 (+ (- (/ z (* y (* x x))) (/ (/ a x) y)) (/ -1.0 x)))
(if (<= y 62000000000000.0)
(/ t (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
(- (+ x (/ z y)) (/ (* x a) y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.1e+157) {
tmp = x + ((z - (x * a)) / y);
} else if (y <= -7.2e-14) {
tmp = -1.0 / (((z / (y * (x * x))) - ((a / x) / y)) + (-1.0 / x));
} else if (y <= 62000000000000.0) {
tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = (x + (z / y)) - ((x * a) / 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.1d+157)) then
tmp = x + ((z - (x * a)) / y)
else if (y <= (-7.2d-14)) then
tmp = (-1.0d0) / (((z / (y * (x * x))) - ((a / x) / y)) + ((-1.0d0) / x))
else if (y <= 62000000000000.0d0) then
tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
else
tmp = (x + (z / y)) - ((x * a) / 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.1e+157) {
tmp = x + ((z - (x * a)) / y);
} else if (y <= -7.2e-14) {
tmp = -1.0 / (((z / (y * (x * x))) - ((a / x) / y)) + (-1.0 / x));
} else if (y <= 62000000000000.0) {
tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = (x + (z / y)) - ((x * a) / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.1e+157: tmp = x + ((z - (x * a)) / y) elif y <= -7.2e-14: tmp = -1.0 / (((z / (y * (x * x))) - ((a / x) / y)) + (-1.0 / x)) elif y <= 62000000000000.0: tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) else: tmp = (x + (z / y)) - ((x * a) / y) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.1e+157) tmp = Float64(x + Float64(Float64(z - Float64(x * a)) / y)); elseif (y <= -7.2e-14) tmp = Float64(-1.0 / Float64(Float64(Float64(z / Float64(y * Float64(x * x))) - Float64(Float64(a / x) / y)) + Float64(-1.0 / x))); elseif (y <= 62000000000000.0) tmp = Float64(t / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); else tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -1.1e+157) tmp = x + ((z - (x * a)) / y); elseif (y <= -7.2e-14) tmp = -1.0 / (((z / (y * (x * x))) - ((a / x) / y)) + (-1.0 / x)); elseif (y <= 62000000000000.0) tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); else tmp = (x + (z / y)) - ((x * a) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.1e+157], N[(x + N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.2e-14], N[(-1.0 / N[(N[(N[(z / N[(y * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(a / x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 62000000000000.0], 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[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.1 \cdot 10^{+157}:\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\
\mathbf{elif}\;y \leq -7.2 \cdot 10^{-14}:\\
\;\;\;\;\frac{-1}{\left(\frac{z}{y \cdot \left(x \cdot x\right)} - \frac{\frac{a}{x}}{y}\right) + \frac{-1}{x}}\\
\mathbf{elif}\;y \leq 62000000000000:\\
\;\;\;\;\frac{t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\mathbf{else}:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\end{array}
\end{array}
if y < -1.1000000000000001e157Initial program 0.0%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6484.8%
Simplified84.8%
if -1.1000000000000001e157 < y < -7.1999999999999996e-14Initial program 32.7%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr32.7%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr32.7%
Taylor expanded in y around inf
associate--l+N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6445.6%
Simplified45.6%
if -7.1999999999999996e-14 < y < 6.2e13Initial program 99.7%
Taylor expanded in y around 0
Simplified71.0%
if 6.2e13 < y Initial program 7.4%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr7.4%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6473.2%
Simplified73.2%
Final simplification70.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ (* x a) y)) (t_2 (+ x (/ z y))))
(if (<= y -9e+64)
(- (+ t_2 (/ 27464.7644705 (* y y))) t_1)
(if (<= y 3500000000000.0)
(/ t (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
(- t_2 t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x * a) / y;
double t_2 = x + (z / y);
double tmp;
if (y <= -9e+64) {
tmp = (t_2 + (27464.7644705 / (y * y))) - t_1;
} else if (y <= 3500000000000.0) {
tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = t_2 - t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * a) / y
t_2 = x + (z / y)
if (y <= (-9d+64)) then
tmp = (t_2 + (27464.7644705d0 / (y * y))) - t_1
else if (y <= 3500000000000.0d0) then
tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
else
tmp = t_2 - t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x * a) / y;
double t_2 = x + (z / y);
double tmp;
if (y <= -9e+64) {
tmp = (t_2 + (27464.7644705 / (y * y))) - t_1;
} else if (y <= 3500000000000.0) {
tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = t_2 - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x * a) / y t_2 = x + (z / y) tmp = 0 if y <= -9e+64: tmp = (t_2 + (27464.7644705 / (y * y))) - t_1 elif y <= 3500000000000.0: tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) else: tmp = t_2 - t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x * a) / y) t_2 = Float64(x + Float64(z / y)) tmp = 0.0 if (y <= -9e+64) tmp = Float64(Float64(t_2 + Float64(27464.7644705 / Float64(y * y))) - t_1); elseif (y <= 3500000000000.0) tmp = Float64(t / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); else tmp = Float64(t_2 - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x * a) / y; t_2 = x + (z / y); tmp = 0.0; if (y <= -9e+64) tmp = (t_2 + (27464.7644705 / (y * y))) - t_1; elseif (y <= 3500000000000.0) tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); else tmp = t_2 - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9e+64], N[(N[(t$95$2 + N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[y, 3500000000000.0], 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[(t$95$2 - t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot a}{y}\\
t_2 := x + \frac{z}{y}\\
\mathbf{if}\;y \leq -9 \cdot 10^{+64}:\\
\;\;\;\;\left(t\_2 + \frac{27464.7644705}{y \cdot y}\right) - t\_1\\
\mathbf{elif}\;y \leq 3500000000000:\\
\;\;\;\;\frac{t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\mathbf{else}:\\
\;\;\;\;t\_2 - t\_1\\
\end{array}
\end{array}
if y < -8.99999999999999946e64Initial program 0.2%
Taylor expanded in y around inf
--lowering--.f64N/A
+-commutativeN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
associate-+r+N/A
Simplified68.0%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-lowering-*.f6476.2%
Simplified76.2%
if -8.99999999999999946e64 < y < 3.5e12Initial program 93.7%
Taylor expanded in y around 0
Simplified63.4%
if 3.5e12 < y Initial program 7.4%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr7.4%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6473.2%
Simplified73.2%
Final simplification68.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ (* x a) y)) (t_2 (+ x (/ z y))))
(if (<= y -3.6e+41)
(- (+ t_2 (/ 27464.7644705 (* y y))) t_1)
(if (<= y 68000000000000.0) (/ t (+ i (* y c))) (- t_2 t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x * a) / y;
double t_2 = x + (z / y);
double tmp;
if (y <= -3.6e+41) {
tmp = (t_2 + (27464.7644705 / (y * y))) - t_1;
} else if (y <= 68000000000000.0) {
tmp = t / (i + (y * c));
} else {
tmp = t_2 - t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * a) / y
t_2 = x + (z / y)
if (y <= (-3.6d+41)) then
tmp = (t_2 + (27464.7644705d0 / (y * y))) - t_1
else if (y <= 68000000000000.0d0) then
tmp = t / (i + (y * c))
else
tmp = t_2 - t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x * a) / y;
double t_2 = x + (z / y);
double tmp;
if (y <= -3.6e+41) {
tmp = (t_2 + (27464.7644705 / (y * y))) - t_1;
} else if (y <= 68000000000000.0) {
tmp = t / (i + (y * c));
} else {
tmp = t_2 - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x * a) / y t_2 = x + (z / y) tmp = 0 if y <= -3.6e+41: tmp = (t_2 + (27464.7644705 / (y * y))) - t_1 elif y <= 68000000000000.0: tmp = t / (i + (y * c)) else: tmp = t_2 - t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x * a) / y) t_2 = Float64(x + Float64(z / y)) tmp = 0.0 if (y <= -3.6e+41) tmp = Float64(Float64(t_2 + Float64(27464.7644705 / Float64(y * y))) - t_1); elseif (y <= 68000000000000.0) tmp = Float64(t / Float64(i + Float64(y * c))); else tmp = Float64(t_2 - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x * a) / y; t_2 = x + (z / y); tmp = 0.0; if (y <= -3.6e+41) tmp = (t_2 + (27464.7644705 / (y * y))) - t_1; elseif (y <= 68000000000000.0) tmp = t / (i + (y * c)); else tmp = t_2 - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.6e+41], N[(N[(t$95$2 + N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[y, 68000000000000.0], N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$2 - t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot a}{y}\\
t_2 := x + \frac{z}{y}\\
\mathbf{if}\;y \leq -3.6 \cdot 10^{+41}:\\
\;\;\;\;\left(t\_2 + \frac{27464.7644705}{y \cdot y}\right) - t\_1\\
\mathbf{elif}\;y \leq 68000000000000:\\
\;\;\;\;\frac{t}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t\_2 - t\_1\\
\end{array}
\end{array}
if y < -3.60000000000000025e41Initial program 2.0%
Taylor expanded in y around inf
--lowering--.f64N/A
+-commutativeN/A
associate-+r+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
associate-+r+N/A
Simplified63.4%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-lowering-*.f6471.2%
Simplified71.2%
if -3.60000000000000025e41 < y < 6.8e13Initial program 95.6%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr95.5%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr95.6%
Taylor expanded in y around 0
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6454.1%
Simplified54.1%
Taylor expanded in t around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6461.6%
Simplified61.6%
if 6.8e13 < y Initial program 7.4%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr7.4%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6473.2%
Simplified73.2%
Final simplification66.4%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -7.2e+44)
(+ x (/ (- z (* x a)) y))
(if (<= y 2900000000000.0)
(/ t (+ i (* y c)))
(- (+ x (/ z y)) (/ (* x a) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -7.2e+44) {
tmp = x + ((z - (x * a)) / y);
} else if (y <= 2900000000000.0) {
tmp = t / (i + (y * c));
} else {
tmp = (x + (z / y)) - ((x * a) / 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 <= (-7.2d+44)) then
tmp = x + ((z - (x * a)) / y)
else if (y <= 2900000000000.0d0) then
tmp = t / (i + (y * c))
else
tmp = (x + (z / y)) - ((x * a) / 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 <= -7.2e+44) {
tmp = x + ((z - (x * a)) / y);
} else if (y <= 2900000000000.0) {
tmp = t / (i + (y * c));
} else {
tmp = (x + (z / y)) - ((x * a) / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -7.2e+44: tmp = x + ((z - (x * a)) / y) elif y <= 2900000000000.0: tmp = t / (i + (y * c)) else: tmp = (x + (z / y)) - ((x * a) / y) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -7.2e+44) tmp = Float64(x + Float64(Float64(z - Float64(x * a)) / y)); elseif (y <= 2900000000000.0) tmp = Float64(t / Float64(i + Float64(y * c))); else tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -7.2e+44) tmp = x + ((z - (x * a)) / y); elseif (y <= 2900000000000.0) tmp = t / (i + (y * c)); else tmp = (x + (z / y)) - ((x * a) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -7.2e+44], N[(x + N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2900000000000.0], N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.2 \cdot 10^{+44}:\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\
\mathbf{elif}\;y \leq 2900000000000:\\
\;\;\;\;\frac{t}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\end{array}
\end{array}
if y < -7.2e44Initial program 2.0%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6471.2%
Simplified71.2%
if -7.2e44 < y < 2.9e12Initial program 95.6%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr95.5%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr95.6%
Taylor expanded in y around 0
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6454.1%
Simplified54.1%
Taylor expanded in t around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6461.6%
Simplified61.6%
if 2.9e12 < y Initial program 7.4%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr7.4%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6473.2%
Simplified73.2%
Final simplification66.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (/ (- z (* x a)) y))))
(if (<= y -3.25e+41)
t_1
(if (<= y 2200000000000.0) (/ t (+ i (* y c))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z - (x * a)) / y);
double tmp;
if (y <= -3.25e+41) {
tmp = t_1;
} else if (y <= 2200000000000.0) {
tmp = t / (i + (y * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((z - (x * a)) / y)
if (y <= (-3.25d+41)) then
tmp = t_1
else if (y <= 2200000000000.0d0) then
tmp = t / (i + (y * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z - (x * a)) / y);
double tmp;
if (y <= -3.25e+41) {
tmp = t_1;
} else if (y <= 2200000000000.0) {
tmp = t / (i + (y * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z - (x * a)) / y) tmp = 0 if y <= -3.25e+41: tmp = t_1 elif y <= 2200000000000.0: tmp = t / (i + (y * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x + Float64(Float64(z - Float64(x * a)) / y)) tmp = 0.0 if (y <= -3.25e+41) tmp = t_1; elseif (y <= 2200000000000.0) tmp = Float64(t / Float64(i + Float64(y * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z - (x * a)) / y); tmp = 0.0; if (y <= -3.25e+41) tmp = t_1; elseif (y <= 2200000000000.0) tmp = t / (i + (y * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.25e+41], t$95$1, If[LessEqual[y, 2200000000000.0], N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{z - x \cdot a}{y}\\
\mathbf{if}\;y \leq -3.25 \cdot 10^{+41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2200000000000:\\
\;\;\;\;\frac{t}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.24999999999999988e41 or 2.2e12 < y Initial program 4.7%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6472.2%
Simplified72.2%
if -3.24999999999999988e41 < y < 2.2e12Initial program 95.6%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr95.5%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr95.6%
Taylor expanded in y around 0
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6454.1%
Simplified54.1%
Taylor expanded in t around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6461.6%
Simplified61.6%
Final simplification66.4%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -150.0) x (if (<= y 14200000000000.0) (/ t i) (if (<= y 5.5e+111) (/ z y) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -150.0) {
tmp = x;
} else if (y <= 14200000000000.0) {
tmp = t / i;
} else if (y <= 5.5e+111) {
tmp = z / y;
} 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 <= (-150.0d0)) then
tmp = x
else if (y <= 14200000000000.0d0) then
tmp = t / i
else if (y <= 5.5d+111) then
tmp = z / 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 c, double i) {
double tmp;
if (y <= -150.0) {
tmp = x;
} else if (y <= 14200000000000.0) {
tmp = t / i;
} else if (y <= 5.5e+111) {
tmp = z / y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -150.0: tmp = x elif y <= 14200000000000.0: tmp = t / i elif y <= 5.5e+111: tmp = z / y else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -150.0) tmp = x; elseif (y <= 14200000000000.0) tmp = Float64(t / i); elseif (y <= 5.5e+111) tmp = Float64(z / y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -150.0) tmp = x; elseif (y <= 14200000000000.0) tmp = t / i; elseif (y <= 5.5e+111) tmp = z / y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -150.0], x, If[LessEqual[y, 14200000000000.0], N[(t / i), $MachinePrecision], If[LessEqual[y, 5.5e+111], N[(z / y), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -150:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 14200000000000:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{+111}:\\
\;\;\;\;\frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -150 or 5.4999999999999998e111 < y Initial program 7.0%
Taylor expanded in y around inf
Simplified53.2%
if -150 < y < 1.42e13Initial program 99.6%
Taylor expanded in y around 0
/-lowering-/.f6450.4%
Simplified50.4%
if 1.42e13 < y < 5.4999999999999998e111Initial program 21.3%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6416.8%
Simplified16.8%
Taylor expanded in y around inf
/-lowering-/.f6435.0%
Simplified35.0%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -4.4e+65) x (if (<= y 1.22e+44) (/ t (+ i (* y c))) x)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -4.4e+65) {
tmp = x;
} else if (y <= 1.22e+44) {
tmp = t / (i + (y * c));
} 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.4d+65)) then
tmp = x
else if (y <= 1.22d+44) then
tmp = t / (i + (y * c))
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.4e+65) {
tmp = x;
} else if (y <= 1.22e+44) {
tmp = t / (i + (y * c));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -4.4e+65: tmp = x elif y <= 1.22e+44: tmp = t / (i + (y * c)) else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -4.4e+65) tmp = x; elseif (y <= 1.22e+44) tmp = Float64(t / Float64(i + Float64(y * c))); 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.4e+65) tmp = x; elseif (y <= 1.22e+44) tmp = t / (i + (y * c)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -4.4e+65], x, If[LessEqual[y, 1.22e+44], N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.4 \cdot 10^{+65}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.22 \cdot 10^{+44}:\\
\;\;\;\;\frac{t}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -4.3999999999999997e65 or 1.22e44 < y Initial program 0.3%
Taylor expanded in y around inf
Simplified56.3%
if -4.3999999999999997e65 < y < 1.22e44Initial program 92.1%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr92.0%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr92.0%
Taylor expanded in y around 0
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6451.0%
Simplified51.0%
Taylor expanded in t around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6457.9%
Simplified57.9%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -250.0) x (if (<= y 105000.0) (/ 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 <= -250.0) {
tmp = x;
} else if (y <= 105000.0) {
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 <= (-250.0d0)) then
tmp = x
else if (y <= 105000.0d0) 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 <= -250.0) {
tmp = x;
} else if (y <= 105000.0) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -250.0: tmp = x elif y <= 105000.0: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -250.0) tmp = x; elseif (y <= 105000.0) 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 <= -250.0) tmp = x; elseif (y <= 105000.0) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -250.0], x, If[LessEqual[y, 105000.0], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -250:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 105000:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -250 or 105000 < y Initial program 10.6%
Taylor expanded in y around inf
Simplified46.3%
if -250 < y < 105000Initial program 99.6%
Taylor expanded in y around 0
/-lowering-/.f6451.1%
Simplified51.1%
(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 54.4%
Taylor expanded in y around inf
Simplified25.2%
herbie shell --seed 2024158
(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)))