
(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 17 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
(if (<=
(/
(+
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616))
t)
(+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
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))
(+ (/ z y) (- x (/ a (/ y x))))))
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) / (i + (y * (c + (y * ((y * (y + a)) + b)))))) <= ((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 = (z / y) + (x - (a / (y / x)));
}
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(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))))) <= 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(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); 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[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $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}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)} \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}:\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\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 92.2%
fma-def92.2%
fma-def92.2%
fma-def92.2%
fma-def92.2%
fma-def92.2%
fma-def92.2%
fma-def92.2%
Simplified92.2%
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 55.0%
associate--l+55.0%
associate-/l*63.4%
Simplified63.4%
Final simplification82.0%
(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)
(+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))))
(if (<= t_1 INFINITY) t_1 (+ (/ z y) (- x (/ a (/ y x)))))))
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) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (z / y) + (x - (a / (y / x)));
}
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) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (z / y) + (x - (a / (y / x)));
}
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) / (i + (y * (c + (y * ((y * (y + a)) + b))))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (z / y) + (x - (a / (y / x))) 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(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); 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) / (i + (y * (c + (y * ((y * (y + a)) + b))))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (z / y) + (x - (a / (y / x))); 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[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $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}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\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 92.2%
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 55.0%
associate--l+55.0%
associate-/l*63.4%
Simplified63.4%
Final simplification82.0%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -4e+65) (not (<= y 7.2e+53)))
(+ (/ z y) (- x (/ a (/ y x))))
(/
1.0
(/
(+ i (* y (+ c (* y (+ (* y (+ y a)) b)))))
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -4e+65) || !(y <= 7.2e+53)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = 1.0 / ((i + (y * (c + (y * ((y * (y + a)) + b))))) / (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))));
}
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+65)) .or. (.not. (y <= 7.2d+53))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = 1.0d0 / ((i + (y * (c + (y * ((y * (y + a)) + b))))) / (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))))
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+65) || !(y <= 7.2e+53)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = 1.0 / ((i + (y * (c + (y * ((y * (y + a)) + b))))) / (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -4e+65) or not (y <= 7.2e+53): tmp = (z / y) + (x - (a / (y / x))) else: tmp = 1.0 / ((i + (y * (c + (y * ((y * (y + a)) + b))))) / (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z))))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -4e+65) || !(y <= 7.2e+53)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(1.0 / Float64(Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))) / Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -4e+65) || ~((y <= 7.2e+53))) tmp = (z / y) + (x - (a / (y / x))); else tmp = 1.0 / ((i + (y * (c + (y * ((y * (y + a)) + b))))) / (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -4e+65], N[Not[LessEqual[y, 7.2e+53]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{+65} \lor \neg \left(y \leq 7.2 \cdot 10^{+53}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}}\\
\end{array}
\end{array}
if y < -4e65 or 7.2e53 < y Initial program 1.3%
Taylor expanded in y around inf 57.7%
associate--l+57.7%
associate-/l*66.0%
Simplified66.0%
if -4e65 < y < 7.2e53Initial program 92.0%
clear-num91.8%
inv-pow91.8%
Applied egg-rr91.8%
unpow-191.8%
fma-udef91.8%
*-commutative91.8%
fma-def91.8%
Simplified91.8%
Taylor expanded in x around 0 86.4%
Final simplification79.1%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -8.8e+45)
(/ 1.0 (+ (/ 1.0 x) (/ (- (/ a x) (/ z (* x x))) y)))
(if (<= y 4.9e+51)
(/
(+ (* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616)) t)
(+ i (* y (+ c (* a (* y y))))))
(+ (/ z y) (- x (/ a (/ y x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -8.8e+45) {
tmp = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y));
} else if (y <= 4.9e+51) {
tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (a * (y * y)))));
} else {
tmp = (z / y) + (x - (a / (y / x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-8.8d+45)) then
tmp = 1.0d0 / ((1.0d0 / x) + (((a / x) - (z / (x * x))) / y))
else if (y <= 4.9d+51) then
tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705d0)) + 230661.510616d0)) + t) / (i + (y * (c + (a * (y * y)))))
else
tmp = (z / y) + (x - (a / (y / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -8.8e+45) {
tmp = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y));
} else if (y <= 4.9e+51) {
tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (a * (y * y)))));
} else {
tmp = (z / y) + (x - (a / (y / x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -8.8e+45: tmp = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y)) elif y <= 4.9e+51: tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (a * (y * y))))) else: tmp = (z / y) + (x - (a / (y / x))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -8.8e+45) tmp = Float64(1.0 / Float64(Float64(1.0 / x) + Float64(Float64(Float64(a / x) - Float64(z / Float64(x * x))) / y))); elseif (y <= 4.9e+51) tmp = Float64(Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / Float64(i + Float64(y * Float64(c + Float64(a * Float64(y * y)))))); else tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -8.8e+45) tmp = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y)); elseif (y <= 4.9e+51) tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (a * (y * y))))); else tmp = (z / y) + (x - (a / (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -8.8e+45], 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, 4.9e+51], 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[(i + N[(y * N[(c + N[(a * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.8 \cdot 10^{+45}:\\
\;\;\;\;\frac{1}{\frac{1}{x} + \frac{\frac{a}{x} - \frac{z}{x \cdot x}}{y}}\\
\mathbf{elif}\;y \leq 4.9 \cdot 10^{+51}:\\
\;\;\;\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{i + y \cdot \left(c + a \cdot \left(y \cdot y\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\end{array}
\end{array}
if y < -8.8000000000000001e45Initial program 2.6%
clear-num2.6%
inv-pow2.6%
Applied egg-rr2.6%
unpow-12.6%
fma-udef2.6%
*-commutative2.6%
fma-def2.6%
Simplified2.6%
Taylor expanded in y around -inf 61.8%
mul-1-neg61.8%
distribute-lft-out--61.8%
unpow261.8%
Simplified61.8%
if -8.8000000000000001e45 < y < 4.89999999999999983e51Initial program 94.2%
Taylor expanded in a around inf 87.4%
*-commutative81.2%
unpow281.2%
Simplified87.4%
if 4.89999999999999983e51 < y Initial program 2.1%
Taylor expanded in y around inf 58.2%
associate--l+58.2%
associate-/l*64.3%
Simplified64.3%
Final simplification78.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (/ z y) (- x (/ a (/ y x)))))
(t_2 (+ t (* y (+ 230661.510616 (* z (* y y)))))))
(if (<= y -3.7e+63)
t_1
(if (<= y -9.5e-47)
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
(if (<= y 5.4e-64)
(/ t_2 (+ i (* y (+ c (* y b)))))
(if (<= y 2.3e+15)
(/ t_2 (+ i (* y (+ c (* a (* y y))))))
(if (<= y 2.5e+204)
(/ 1.0 (+ (/ 1.0 x) (/ (- (/ a x) (/ z (* x x))) y)))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (z / y) + (x - (a / (y / x)));
double t_2 = t + (y * (230661.510616 + (z * (y * y))));
double tmp;
if (y <= -3.7e+63) {
tmp = t_1;
} else if (y <= -9.5e-47) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
} else if (y <= 5.4e-64) {
tmp = t_2 / (i + (y * (c + (y * b))));
} else if (y <= 2.3e+15) {
tmp = t_2 / (i + (y * (c + (a * (y * y)))));
} else if (y <= 2.5e+204) {
tmp = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y));
} 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) :: t_2
real(8) :: tmp
t_1 = (z / y) + (x - (a / (y / x)))
t_2 = t + (y * (230661.510616d0 + (z * (y * y))))
if (y <= (-3.7d+63)) then
tmp = t_1
else if (y <= (-9.5d-47)) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * (c + (y * ((y * (y + a)) + b)))))
else if (y <= 5.4d-64) then
tmp = t_2 / (i + (y * (c + (y * b))))
else if (y <= 2.3d+15) then
tmp = t_2 / (i + (y * (c + (a * (y * y)))))
else if (y <= 2.5d+204) then
tmp = 1.0d0 / ((1.0d0 / x) + (((a / x) - (z / (x * x))) / y))
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 = (z / y) + (x - (a / (y / x)));
double t_2 = t + (y * (230661.510616 + (z * (y * y))));
double tmp;
if (y <= -3.7e+63) {
tmp = t_1;
} else if (y <= -9.5e-47) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
} else if (y <= 5.4e-64) {
tmp = t_2 / (i + (y * (c + (y * b))));
} else if (y <= 2.3e+15) {
tmp = t_2 / (i + (y * (c + (a * (y * y)))));
} else if (y <= 2.5e+204) {
tmp = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (z / y) + (x - (a / (y / x))) t_2 = t + (y * (230661.510616 + (z * (y * y)))) tmp = 0 if y <= -3.7e+63: tmp = t_1 elif y <= -9.5e-47: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * ((y * (y + a)) + b))))) elif y <= 5.4e-64: tmp = t_2 / (i + (y * (c + (y * b)))) elif y <= 2.3e+15: tmp = t_2 / (i + (y * (c + (a * (y * y))))) elif y <= 2.5e+204: tmp = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) t_2 = Float64(t + Float64(y * Float64(230661.510616 + Float64(z * Float64(y * y))))) tmp = 0.0 if (y <= -3.7e+63) tmp = t_1; elseif (y <= -9.5e-47) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))))); elseif (y <= 5.4e-64) tmp = Float64(t_2 / Float64(i + Float64(y * Float64(c + Float64(y * b))))); elseif (y <= 2.3e+15) tmp = Float64(t_2 / Float64(i + Float64(y * Float64(c + Float64(a * Float64(y * y)))))); elseif (y <= 2.5e+204) tmp = Float64(1.0 / Float64(Float64(1.0 / x) + Float64(Float64(Float64(a / x) - Float64(z / Float64(x * x))) / y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (z / y) + (x - (a / (y / x))); t_2 = t + (y * (230661.510616 + (z * (y * y)))); tmp = 0.0; if (y <= -3.7e+63) tmp = t_1; elseif (y <= -9.5e-47) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * ((y * (y + a)) + b))))); elseif (y <= 5.4e-64) tmp = t_2 / (i + (y * (c + (y * b)))); elseif (y <= 2.3e+15) tmp = t_2 / (i + (y * (c + (a * (y * y))))); elseif (y <= 2.5e+204) tmp = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t + N[(y * N[(230661.510616 + N[(z * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.7e+63], t$95$1, If[LessEqual[y, -9.5e-47], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.4e-64], N[(t$95$2 / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e+15], N[(t$95$2 / N[(i + N[(y * N[(c + N[(a * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.5e+204], 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], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
t_2 := t + y \cdot \left(230661.510616 + z \cdot \left(y \cdot y\right)\right)\\
\mathbf{if}\;y \leq -3.7 \cdot 10^{+63}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -9.5 \cdot 10^{-47}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\
\mathbf{elif}\;y \leq 5.4 \cdot 10^{-64}:\\
\;\;\;\;\frac{t_2}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{+15}:\\
\;\;\;\;\frac{t_2}{i + y \cdot \left(c + a \cdot \left(y \cdot y\right)\right)}\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+204}:\\
\;\;\;\;\frac{1}{\frac{1}{x} + \frac{\frac{a}{x} - \frac{z}{x \cdot x}}{y}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -3.69999999999999968e63 or 2.50000000000000004e204 < y Initial program 0.3%
Taylor expanded in y around inf 65.4%
associate--l+65.4%
associate-/l*74.9%
Simplified74.9%
if -3.69999999999999968e63 < y < -9.4999999999999991e-47Initial program 74.0%
Taylor expanded in y around 0 49.7%
*-commutative49.7%
Simplified49.7%
if -9.4999999999999991e-47 < y < 5.39999999999999971e-64Initial program 99.8%
Taylor expanded in z around inf 98.5%
*-commutative98.5%
unpow298.5%
Simplified98.5%
Taylor expanded in y around 0 97.8%
if 5.39999999999999971e-64 < y < 2.3e15Initial program 93.8%
Taylor expanded in z around inf 77.4%
*-commutative77.4%
unpow277.4%
Simplified77.4%
Taylor expanded in a around inf 71.6%
*-commutative71.6%
unpow271.6%
Simplified71.6%
if 2.3e15 < y < 2.50000000000000004e204Initial program 12.3%
clear-num12.3%
inv-pow12.3%
Applied egg-rr12.3%
unpow-112.3%
fma-udef12.3%
*-commutative12.3%
fma-def12.3%
Simplified12.3%
Taylor expanded in y around -inf 45.7%
mul-1-neg45.7%
distribute-lft-out--45.7%
unpow245.7%
Simplified45.7%
Final simplification78.8%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -4.2e+63) (not (<= y 7.6e+54)))
(+ (/ z y) (- x (/ a (/ y x))))
(/
(+ t (* y (+ 230661.510616 (* z (* y y)))))
(+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -4.2e+63) || !(y <= 7.6e+54)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
}
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.2d+63)) .or. (.not. (y <= 7.6d+54))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * (230661.510616d0 + (z * (y * y))))) / (i + (y * (c + (y * ((y * (y + a)) + b)))))
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.2e+63) || !(y <= 7.6e+54)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -4.2e+63) or not (y <= 7.6e+54): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * ((y * (y + a)) + b))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -4.2e+63) || !(y <= 7.6e+54)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(z * Float64(y * y))))) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -4.2e+63) || ~((y <= 7.6e+54))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * ((y * (y + a)) + b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -4.2e+63], N[Not[LessEqual[y, 7.6e+54]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(z * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.2 \cdot 10^{+63} \lor \neg \left(y \leq 7.6 \cdot 10^{+54}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + z \cdot \left(y \cdot y\right)\right)}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\
\end{array}
\end{array}
if y < -4.2000000000000004e63 or 7.6000000000000005e54 < y Initial program 1.3%
Taylor expanded in y around inf 57.7%
associate--l+57.7%
associate-/l*66.0%
Simplified66.0%
if -4.2000000000000004e63 < y < 7.6000000000000005e54Initial program 92.0%
Taylor expanded in z around inf 84.8%
*-commutative84.8%
unpow284.8%
Simplified84.8%
Final simplification78.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ 1.0 (+ (/ 1.0 x) (/ (- (/ a x) (/ z (* x x))) y)))))
(if (<= y -1.75e+47)
t_1
(if (<= y 2.4e+15)
(/
(+ t (* y (+ 230661.510616 (* z (* y y)))))
(+ i (* y (+ c (* a (* y y))))))
(if (<= y 2.32e+204) t_1 (+ (/ z y) (- x (/ a (/ y x)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y));
double tmp;
if (y <= -1.75e+47) {
tmp = t_1;
} else if (y <= 2.4e+15) {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (a * (y * y)))));
} else if (y <= 2.32e+204) {
tmp = t_1;
} else {
tmp = (z / y) + (x - (a / (y / x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = 1.0d0 / ((1.0d0 / x) + (((a / x) - (z / (x * x))) / y))
if (y <= (-1.75d+47)) then
tmp = t_1
else if (y <= 2.4d+15) then
tmp = (t + (y * (230661.510616d0 + (z * (y * y))))) / (i + (y * (c + (a * (y * y)))))
else if (y <= 2.32d+204) then
tmp = t_1
else
tmp = (z / y) + (x - (a / (y / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y));
double tmp;
if (y <= -1.75e+47) {
tmp = t_1;
} else if (y <= 2.4e+15) {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (a * (y * y)))));
} else if (y <= 2.32e+204) {
tmp = t_1;
} else {
tmp = (z / y) + (x - (a / (y / x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y)) tmp = 0 if y <= -1.75e+47: tmp = t_1 elif y <= 2.4e+15: tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (a * (y * y))))) elif y <= 2.32e+204: tmp = t_1 else: tmp = (z / y) + (x - (a / (y / x))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(1.0 / Float64(Float64(1.0 / x) + Float64(Float64(Float64(a / x) - Float64(z / Float64(x * x))) / y))) tmp = 0.0 if (y <= -1.75e+47) tmp = t_1; elseif (y <= 2.4e+15) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(z * Float64(y * y))))) / Float64(i + Float64(y * Float64(c + Float64(a * Float64(y * y)))))); elseif (y <= 2.32e+204) tmp = t_1; else tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y)); tmp = 0.0; if (y <= -1.75e+47) tmp = t_1; elseif (y <= 2.4e+15) tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (a * (y * y))))); elseif (y <= 2.32e+204) tmp = t_1; else tmp = (z / y) + (x - (a / (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = 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, -1.75e+47], t$95$1, If[LessEqual[y, 2.4e+15], N[(N[(t + N[(y * N[(230661.510616 + N[(z * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(a * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.32e+204], t$95$1, N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{1}{\frac{1}{x} + \frac{\frac{a}{x} - \frac{z}{x \cdot x}}{y}}\\
\mathbf{if}\;y \leq -1.75 \cdot 10^{+47}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+15}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + z \cdot \left(y \cdot y\right)\right)}{i + y \cdot \left(c + a \cdot \left(y \cdot y\right)\right)}\\
\mathbf{elif}\;y \leq 2.32 \cdot 10^{+204}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\end{array}
\end{array}
if y < -1.75000000000000008e47 or 2.4e15 < y < 2.32000000000000009e204Initial program 6.5%
clear-num6.5%
inv-pow6.5%
Applied egg-rr6.5%
unpow-16.5%
fma-udef6.5%
*-commutative6.5%
fma-def6.5%
Simplified6.5%
Taylor expanded in y around -inf 55.3%
mul-1-neg55.3%
distribute-lft-out--55.3%
unpow255.3%
Simplified55.3%
if -1.75000000000000008e47 < y < 2.4e15Initial program 97.7%
Taylor expanded in z around inf 90.5%
*-commutative90.5%
unpow290.5%
Simplified90.5%
Taylor expanded in a around inf 85.9%
*-commutative85.9%
unpow285.9%
Simplified85.9%
if 2.32000000000000009e204 < y Initial program 0.0%
Taylor expanded in y around inf 82.3%
associate--l+82.3%
associate-/l*89.4%
Simplified89.4%
Final simplification76.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ t (+ i (* y (+ c (* y (+ (* y (+ y a)) b)))))))
(t_2 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -3e+63)
t_2
(if (<= y 9.6e-206)
t_1
(if (<= y 1.2e-125)
(/ (+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))) i)
(if (<= y 6.2e+56) 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 + (y * ((y * (y + a)) + b)))));
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -3e+63) {
tmp = t_2;
} else if (y <= 9.6e-206) {
tmp = t_1;
} else if (y <= 1.2e-125) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i;
} else if (y <= 6.2e+56) {
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 + (y * ((y * (y + a)) + b)))))
t_2 = (z / y) + (x - (a / (y / x)))
if (y <= (-3d+63)) then
tmp = t_2
else if (y <= 9.6d-206) then
tmp = t_1
else if (y <= 1.2d-125) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / i
else if (y <= 6.2d+56) 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 + (y * ((y * (y + a)) + b)))));
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -3e+63) {
tmp = t_2;
} else if (y <= 9.6e-206) {
tmp = t_1;
} else if (y <= 1.2e-125) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i;
} else if (y <= 6.2e+56) {
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 + (y * ((y * (y + a)) + b))))) t_2 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -3e+63: tmp = t_2 elif y <= 9.6e-206: tmp = t_1 elif y <= 1.2e-125: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i elif y <= 6.2e+56: 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 * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))))) t_2 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -3e+63) tmp = t_2; elseif (y <= 9.6e-206) tmp = t_1; elseif (y <= 1.2e-125) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / i); elseif (y <= 6.2e+56) 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 + (y * ((y * (y + a)) + b))))); t_2 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -3e+63) tmp = t_2; elseif (y <= 9.6e-206) tmp = t_1; elseif (y <= 1.2e-125) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i; elseif (y <= 6.2e+56) 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 * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+63], t$95$2, If[LessEqual[y, 9.6e-206], t$95$1, If[LessEqual[y, 1.2e-125], 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, 6.2e+56], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\
t_2 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -3 \cdot 10^{+63}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 9.6 \cdot 10^{-206}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{-125}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i}\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{+56}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -2.99999999999999999e63 or 6.20000000000000009e56 < y Initial program 1.3%
Taylor expanded in y around inf 58.9%
associate--l+58.9%
associate-/l*67.5%
Simplified67.5%
if -2.99999999999999999e63 < y < 9.5999999999999998e-206 or 1.2000000000000001e-125 < y < 6.20000000000000009e56Initial program 89.7%
Taylor expanded in t around inf 65.3%
if 9.5999999999999998e-206 < y < 1.2000000000000001e-125Initial program 99.8%
clear-num99.5%
inv-pow99.5%
Applied egg-rr99.5%
unpow-199.5%
fma-udef99.5%
*-commutative99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in i around inf 84.4%
Taylor expanded in x around 0 84.6%
Final simplification67.5%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.02e+65) (not (<= y 7.7e+56))) (+ (/ z y) (- x (/ a (/ y x)))) (/ (+ t (* y 230661.510616)) (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.02e+65) || !(y <= 7.7e+56)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
}
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.02d+65)) .or. (.not. (y <= 7.7d+56))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * ((y * (y + a)) + b)))))
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.02e+65) || !(y <= 7.7e+56)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.02e+65) or not (y <= 7.7e+56): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + b))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.02e+65) || !(y <= 7.7e+56)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.02e+65) || ~((y <= 7.7e+56))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.02e+65], N[Not[LessEqual[y, 7.7e+56]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.02 \cdot 10^{+65} \lor \neg \left(y \leq 7.7 \cdot 10^{+56}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\
\end{array}
\end{array}
if y < -1.02000000000000005e65 or 7.6999999999999999e56 < y Initial program 1.3%
Taylor expanded in y around inf 58.9%
associate--l+58.9%
associate-/l*67.5%
Simplified67.5%
if -1.02000000000000005e65 < y < 7.6999999999999999e56Initial program 90.9%
Taylor expanded in y around 0 75.2%
*-commutative75.2%
Simplified75.2%
Final simplification72.5%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -6.6e+23)
(/ 1.0 (+ (/ 1.0 x) (/ (- (/ a x) (/ z (* x x))) y)))
(if (<= y 1.9e+52)
(/ (+ t (* y (+ 230661.510616 (* z (* y y))))) (+ i (* y (+ c (* y b)))))
(+ (/ z y) (- x (/ a (/ y x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -6.6e+23) {
tmp = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y));
} else if (y <= 1.9e+52) {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * b))));
} else {
tmp = (z / y) + (x - (a / (y / x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-6.6d+23)) then
tmp = 1.0d0 / ((1.0d0 / x) + (((a / x) - (z / (x * x))) / y))
else if (y <= 1.9d+52) then
tmp = (t + (y * (230661.510616d0 + (z * (y * y))))) / (i + (y * (c + (y * b))))
else
tmp = (z / y) + (x - (a / (y / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -6.6e+23) {
tmp = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y));
} else if (y <= 1.9e+52) {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * b))));
} else {
tmp = (z / y) + (x - (a / (y / x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -6.6e+23: tmp = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y)) elif y <= 1.9e+52: tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * b)))) else: tmp = (z / y) + (x - (a / (y / x))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -6.6e+23) tmp = Float64(1.0 / Float64(Float64(1.0 / x) + Float64(Float64(Float64(a / x) - Float64(z / Float64(x * x))) / y))); elseif (y <= 1.9e+52) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(z * Float64(y * y))))) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); else tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -6.6e+23) tmp = 1.0 / ((1.0 / x) + (((a / x) - (z / (x * x))) / y)); elseif (y <= 1.9e+52) tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * b)))); else tmp = (z / y) + (x - (a / (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -6.6e+23], 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, 1.9e+52], N[(N[(t + N[(y * N[(230661.510616 + N[(z * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.6 \cdot 10^{+23}:\\
\;\;\;\;\frac{1}{\frac{1}{x} + \frac{\frac{a}{x} - \frac{z}{x \cdot x}}{y}}\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{+52}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + z \cdot \left(y \cdot y\right)\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\end{array}
\end{array}
if y < -6.60000000000000059e23Initial program 7.9%
clear-num7.9%
inv-pow7.9%
Applied egg-rr7.9%
unpow-17.9%
fma-udef7.9%
*-commutative7.9%
fma-def7.9%
Simplified7.9%
Taylor expanded in y around -inf 58.2%
mul-1-neg58.2%
distribute-lft-out--58.2%
unpow258.2%
Simplified58.2%
if -6.60000000000000059e23 < y < 1.9e52Initial program 95.3%
Taylor expanded in z around inf 88.8%
*-commutative88.8%
unpow288.8%
Simplified88.8%
Taylor expanded in y around 0 83.5%
if 1.9e52 < y Initial program 2.1%
Taylor expanded in y around inf 58.2%
associate--l+58.2%
associate-/l*64.3%
Simplified64.3%
Final simplification74.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ t (+ i (* y c)))) (t_2 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -4.9e+55)
t_2
(if (<= y 5.4e-211)
t_1
(if (<= y 1.9e-117)
(/ (+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))) i)
(if (<= y 9.5e+57) 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 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -4.9e+55) {
tmp = t_2;
} else if (y <= 5.4e-211) {
tmp = t_1;
} else if (y <= 1.9e-117) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i;
} else if (y <= 9.5e+57) {
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 = (z / y) + (x - (a / (y / x)))
if (y <= (-4.9d+55)) then
tmp = t_2
else if (y <= 5.4d-211) then
tmp = t_1
else if (y <= 1.9d-117) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / i
else if (y <= 9.5d+57) 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 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -4.9e+55) {
tmp = t_2;
} else if (y <= 5.4e-211) {
tmp = t_1;
} else if (y <= 1.9e-117) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i;
} else if (y <= 9.5e+57) {
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 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -4.9e+55: tmp = t_2 elif y <= 5.4e-211: tmp = t_1 elif y <= 1.9e-117: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i elif y <= 9.5e+57: 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(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -4.9e+55) tmp = t_2; elseif (y <= 5.4e-211) tmp = t_1; elseif (y <= 1.9e-117) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / i); elseif (y <= 9.5e+57) 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 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -4.9e+55) tmp = t_2; elseif (y <= 5.4e-211) tmp = t_1; elseif (y <= 1.9e-117) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i; elseif (y <= 9.5e+57) 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[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.9e+55], t$95$2, If[LessEqual[y, 5.4e-211], t$95$1, If[LessEqual[y, 1.9e-117], 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, 9.5e+57], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{i + y \cdot c}\\
t_2 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -4.9 \cdot 10^{+55}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 5.4 \cdot 10^{-211}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-117}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i}\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{+57}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -4.90000000000000015e55 or 9.4999999999999997e57 < y Initial program 2.4%
Taylor expanded in y around inf 57.8%
associate--l+57.8%
associate-/l*66.1%
Simplified66.1%
if -4.90000000000000015e55 < y < 5.3999999999999998e-211 or 1.89999999999999986e-117 < y < 9.4999999999999997e57Initial program 90.3%
clear-num90.1%
inv-pow90.1%
Applied egg-rr90.1%
unpow-190.1%
fma-udef90.1%
*-commutative90.1%
fma-def90.1%
Simplified90.1%
Taylor expanded in y around 0 48.5%
fma-def48.5%
associate-*r/48.5%
unpow248.5%
Simplified48.5%
Taylor expanded in t around inf 59.6%
+-commutative59.6%
*-commutative59.6%
Simplified59.6%
if 5.3999999999999998e-211 < y < 1.89999999999999986e-117Initial program 99.8%
clear-num99.5%
inv-pow99.5%
Applied egg-rr99.5%
unpow-199.5%
fma-udef99.5%
*-commutative99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in i around inf 84.4%
Taylor expanded in x around 0 84.6%
Final simplification63.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ t (+ i (* y c)))) (t_2 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -3.5e+55)
t_2
(if (<= y 9.6e-206)
t_1
(if (<= y 2.05e-122)
(+ (* 230661.510616 (/ y i)) (/ t i))
(if (<= y 3.3e+56) 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 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -3.5e+55) {
tmp = t_2;
} else if (y <= 9.6e-206) {
tmp = t_1;
} else if (y <= 2.05e-122) {
tmp = (230661.510616 * (y / i)) + (t / i);
} else if (y <= 3.3e+56) {
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 = (z / y) + (x - (a / (y / x)))
if (y <= (-3.5d+55)) then
tmp = t_2
else if (y <= 9.6d-206) then
tmp = t_1
else if (y <= 2.05d-122) then
tmp = (230661.510616d0 * (y / i)) + (t / i)
else if (y <= 3.3d+56) 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 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -3.5e+55) {
tmp = t_2;
} else if (y <= 9.6e-206) {
tmp = t_1;
} else if (y <= 2.05e-122) {
tmp = (230661.510616 * (y / i)) + (t / i);
} else if (y <= 3.3e+56) {
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 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -3.5e+55: tmp = t_2 elif y <= 9.6e-206: tmp = t_1 elif y <= 2.05e-122: tmp = (230661.510616 * (y / i)) + (t / i) elif y <= 3.3e+56: 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(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -3.5e+55) tmp = t_2; elseif (y <= 9.6e-206) tmp = t_1; elseif (y <= 2.05e-122) tmp = Float64(Float64(230661.510616 * Float64(y / i)) + Float64(t / i)); elseif (y <= 3.3e+56) 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 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -3.5e+55) tmp = t_2; elseif (y <= 9.6e-206) tmp = t_1; elseif (y <= 2.05e-122) tmp = (230661.510616 * (y / i)) + (t / i); elseif (y <= 3.3e+56) 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[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.5e+55], t$95$2, If[LessEqual[y, 9.6e-206], t$95$1, If[LessEqual[y, 2.05e-122], N[(N[(230661.510616 * N[(y / i), $MachinePrecision]), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e+56], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{i + y \cdot c}\\
t_2 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -3.5 \cdot 10^{+55}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 9.6 \cdot 10^{-206}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.05 \cdot 10^{-122}:\\
\;\;\;\;230661.510616 \cdot \frac{y}{i} + \frac{t}{i}\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{+56}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -3.5000000000000001e55 or 3.30000000000000002e56 < y Initial program 2.4%
Taylor expanded in y around inf 57.8%
associate--l+57.8%
associate-/l*66.1%
Simplified66.1%
if -3.5000000000000001e55 < y < 9.5999999999999998e-206 or 2.05e-122 < y < 3.30000000000000002e56Initial program 90.3%
clear-num90.1%
inv-pow90.1%
Applied egg-rr90.1%
unpow-190.1%
fma-udef90.1%
*-commutative90.1%
fma-def90.1%
Simplified90.1%
Taylor expanded in y around 0 48.5%
fma-def48.5%
associate-*r/48.5%
unpow248.5%
Simplified48.5%
Taylor expanded in t around inf 59.6%
+-commutative59.6%
*-commutative59.6%
Simplified59.6%
if 9.5999999999999998e-206 < y < 2.05e-122Initial program 99.8%
clear-num99.5%
inv-pow99.5%
Applied egg-rr99.5%
unpow-199.5%
fma-udef99.5%
*-commutative99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in i around inf 84.4%
Taylor expanded in y around 0 84.5%
Final simplification63.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ t (+ i (* y c)))))
(if (<= y -1.08e+24)
x
(if (<= y 3e-206)
t_1
(if (<= y 7e-125)
(+ (* 230661.510616 (/ y i)) (/ t i))
(if (<= y 2.7e+59) t_1 x))))))
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 <= -1.08e+24) {
tmp = x;
} else if (y <= 3e-206) {
tmp = t_1;
} else if (y <= 7e-125) {
tmp = (230661.510616 * (y / i)) + (t / i);
} else if (y <= 2.7e+59) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = t / (i + (y * c))
if (y <= (-1.08d+24)) then
tmp = x
else if (y <= 3d-206) then
tmp = t_1
else if (y <= 7d-125) then
tmp = (230661.510616d0 * (y / i)) + (t / i)
else if (y <= 2.7d+59) then
tmp = t_1
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 t_1 = t / (i + (y * c));
double tmp;
if (y <= -1.08e+24) {
tmp = x;
} else if (y <= 3e-206) {
tmp = t_1;
} else if (y <= 7e-125) {
tmp = (230661.510616 * (y / i)) + (t / i);
} else if (y <= 2.7e+59) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = t / (i + (y * c)) tmp = 0 if y <= -1.08e+24: tmp = x elif y <= 3e-206: tmp = t_1 elif y <= 7e-125: tmp = (230661.510616 * (y / i)) + (t / i) elif y <= 2.7e+59: tmp = t_1 else: tmp = x 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 <= -1.08e+24) tmp = x; elseif (y <= 3e-206) tmp = t_1; elseif (y <= 7e-125) tmp = Float64(Float64(230661.510616 * Float64(y / i)) + Float64(t / i)); elseif (y <= 2.7e+59) tmp = t_1; else tmp = x; 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 <= -1.08e+24) tmp = x; elseif (y <= 3e-206) tmp = t_1; elseif (y <= 7e-125) tmp = (230661.510616 * (y / i)) + (t / i); elseif (y <= 2.7e+59) tmp = t_1; else tmp = x; 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, -1.08e+24], x, If[LessEqual[y, 3e-206], t$95$1, If[LessEqual[y, 7e-125], N[(N[(230661.510616 * N[(y / i), $MachinePrecision]), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e+59], t$95$1, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{i + y \cdot c}\\
\mathbf{if}\;y \leq -1.08 \cdot 10^{+24}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 3 \cdot 10^{-206}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-125}:\\
\;\;\;\;230661.510616 \cdot \frac{y}{i} + \frac{t}{i}\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+59}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.0799999999999999e24 or 2.7000000000000001e59 < y Initial program 4.4%
Taylor expanded in y around inf 48.1%
if -1.0799999999999999e24 < y < 3.0000000000000002e-206 or 6.99999999999999995e-125 < y < 2.7000000000000001e59Initial program 93.3%
clear-num93.2%
inv-pow93.2%
Applied egg-rr93.2%
unpow-193.2%
fma-udef93.2%
*-commutative93.2%
fma-def93.2%
Simplified93.2%
Taylor expanded in y around 0 50.7%
fma-def50.7%
associate-*r/50.7%
unpow250.7%
Simplified50.7%
Taylor expanded in t around inf 62.4%
+-commutative62.4%
*-commutative62.4%
Simplified62.4%
if 3.0000000000000002e-206 < y < 6.99999999999999995e-125Initial program 99.8%
clear-num99.5%
inv-pow99.5%
Applied egg-rr99.5%
unpow-199.5%
fma-udef99.5%
*-commutative99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in i around inf 84.4%
Taylor expanded in y around 0 84.5%
Final simplification58.5%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -9.2e+23)
x
(if (<= y -1.5e-119)
(/ t i)
(if (<= y -7.2e-159)
(/ t (* y c))
(if (<= y 1550000000000.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 <= -9.2e+23) {
tmp = x;
} else if (y <= -1.5e-119) {
tmp = t / i;
} else if (y <= -7.2e-159) {
tmp = t / (y * c);
} else if (y <= 1550000000000.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 <= (-9.2d+23)) then
tmp = x
else if (y <= (-1.5d-119)) then
tmp = t / i
else if (y <= (-7.2d-159)) then
tmp = t / (y * c)
else if (y <= 1550000000000.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 <= -9.2e+23) {
tmp = x;
} else if (y <= -1.5e-119) {
tmp = t / i;
} else if (y <= -7.2e-159) {
tmp = t / (y * c);
} else if (y <= 1550000000000.0) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -9.2e+23: tmp = x elif y <= -1.5e-119: tmp = t / i elif y <= -7.2e-159: tmp = t / (y * c) elif y <= 1550000000000.0: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -9.2e+23) tmp = x; elseif (y <= -1.5e-119) tmp = Float64(t / i); elseif (y <= -7.2e-159) tmp = Float64(t / Float64(y * c)); elseif (y <= 1550000000000.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 <= -9.2e+23) tmp = x; elseif (y <= -1.5e-119) tmp = t / i; elseif (y <= -7.2e-159) tmp = t / (y * c); elseif (y <= 1550000000000.0) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -9.2e+23], x, If[LessEqual[y, -1.5e-119], N[(t / i), $MachinePrecision], If[LessEqual[y, -7.2e-159], N[(t / N[(y * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1550000000000.0], N[(t / i), $MachinePrecision], x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.2 \cdot 10^{+23}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -1.5 \cdot 10^{-119}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{elif}\;y \leq -7.2 \cdot 10^{-159}:\\
\;\;\;\;\frac{t}{y \cdot c}\\
\mathbf{elif}\;y \leq 1550000000000:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -9.2000000000000002e23 or 1.55e12 < y Initial program 7.6%
Taylor expanded in y around inf 43.0%
if -9.2000000000000002e23 < y < -1.5000000000000001e-119 or -7.20000000000000042e-159 < y < 1.55e12Initial program 99.7%
Taylor expanded in y around 0 53.9%
if -1.5000000000000001e-119 < y < -7.20000000000000042e-159Initial program 100.0%
Taylor expanded in c around inf 73.4%
Taylor expanded in y around 0 72.7%
Final simplification49.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -8.8e+23) x (if (<= y 2.7e+59) (/ 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 <= -8.8e+23) {
tmp = x;
} else if (y <= 2.7e+59) {
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 <= (-8.8d+23)) then
tmp = x
else if (y <= 2.7d+59) 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 <= -8.8e+23) {
tmp = x;
} else if (y <= 2.7e+59) {
tmp = t / (i + (y * c));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -8.8e+23: tmp = x elif y <= 2.7e+59: 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 <= -8.8e+23) tmp = x; elseif (y <= 2.7e+59) 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 <= -8.8e+23) tmp = x; elseif (y <= 2.7e+59) 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, -8.8e+23], x, If[LessEqual[y, 2.7e+59], N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.8 \cdot 10^{+23}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+59}:\\
\;\;\;\;\frac{t}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -8.80000000000000034e23 or 2.7000000000000001e59 < y Initial program 4.4%
Taylor expanded in y around inf 48.1%
if -8.80000000000000034e23 < y < 2.7000000000000001e59Initial program 94.1%
clear-num93.9%
inv-pow93.9%
Applied egg-rr93.9%
unpow-193.9%
fma-udef93.9%
*-commutative93.9%
fma-def93.9%
Simplified93.9%
Taylor expanded in y around 0 51.7%
fma-def51.7%
associate-*r/51.7%
unpow251.7%
Simplified51.7%
Taylor expanded in t around inf 62.4%
+-commutative62.4%
*-commutative62.4%
Simplified62.4%
Final simplification56.9%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -8.4e+23) x (if (<= y 1040000000000.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 <= -8.4e+23) {
tmp = x;
} else if (y <= 1040000000000.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 <= (-8.4d+23)) then
tmp = x
else if (y <= 1040000000000.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 <= -8.4e+23) {
tmp = x;
} else if (y <= 1040000000000.0) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -8.4e+23: tmp = x elif y <= 1040000000000.0: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -8.4e+23) tmp = x; elseif (y <= 1040000000000.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 <= -8.4e+23) tmp = x; elseif (y <= 1040000000000.0) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -8.4e+23], x, If[LessEqual[y, 1040000000000.0], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.4 \cdot 10^{+23}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1040000000000:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -8.4000000000000005e23 or 1.04e12 < y Initial program 7.6%
Taylor expanded in y around inf 43.0%
if -8.4000000000000005e23 < y < 1.04e12Initial program 99.7%
Taylor expanded in y around 0 52.1%
Final simplification48.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 59.4%
Taylor expanded in y around inf 20.7%
Final simplification20.7%
herbie shell --seed 2023171
(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)))