
(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
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ (* x y) z))))))))
(t_2 (+ c (* y (+ (* y (+ y a)) b)))))
(if (<= (/ t_1 (+ (* y t_2) i)) INFINITY)
(/ t_1 (+ i (/ y (/ 1.0 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 = t + (y * (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))));
double t_2 = c + (y * ((y * (y + a)) + b));
double tmp;
if ((t_1 / ((y * t_2) + i)) <= ((double) INFINITY)) {
tmp = t_1 / (i + (y / (1.0 / t_2)));
} 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 = t + (y * (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))));
double t_2 = c + (y * ((y * (y + a)) + b));
double tmp;
if ((t_1 / ((y * t_2) + i)) <= Double.POSITIVE_INFINITY) {
tmp = t_1 / (i + (y / (1.0 / t_2)));
} else {
tmp = x + ((z - (x * a)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = t + (y * (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z)))))) t_2 = c + (y * ((y * (y + a)) + b)) tmp = 0 if (t_1 / ((y * t_2) + i)) <= math.inf: tmp = t_1 / (i + (y / (1.0 / t_2))) else: tmp = x + ((z - (x * a)) / y) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(Float64(x * y) + z))))))) t_2 = Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))) tmp = 0.0 if (Float64(t_1 / Float64(Float64(y * t_2) + i)) <= Inf) tmp = Float64(t_1 / Float64(i + Float64(y / Float64(1.0 / 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 = t + (y * (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z)))))); t_2 = c + (y * ((y * (y + a)) + b)); tmp = 0.0; if ((t_1 / ((y * t_2) + i)) <= Inf) tmp = t_1 / (i + (y / (1.0 / 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[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$1 / N[(N[(y * t$95$2), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], Infinity], N[(t$95$1 / N[(i + N[(y / N[(1.0 / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(x \cdot y + z\right)\right)\right)\\
t_2 := c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\\
\mathbf{if}\;\frac{t\_1}{y \cdot t\_2 + i} \leq \infty:\\
\;\;\;\;\frac{t\_1}{i + \frac{y}{\frac{1}{t\_2}}}\\
\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 92.4%
*-commutativeN/A
flip-+N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
flip-+N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
Applied egg-rr92.4%
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
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f6471.2%
Simplified71.2%
Final simplification85.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ (* x y) z)))))))
(+ (* y (+ c (* y (+ (* y (+ y a)) b)))) 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 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + 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 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + 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 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + 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(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(Float64(x * y) + z))))))) / Float64(Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))) + 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 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + 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[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $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{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(x \cdot y + z\right)\right)\right)}{y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\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 92.4%
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
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f6471.2%
Simplified71.2%
Final simplification85.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ c (* y (+ (* y (+ y a)) b)))) (t_2 (+ x (/ (- z (* x a)) y))))
(if (<= y -1.18e+57)
t_2
(if (<= y 1e-24)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* x (* y y)))))))
(+ (* y t_1) i))
(if (<= y 6.5e+48)
(*
(/ (/ 1.0 y) t_1)
(+
t
(*
y
(+ 230661.510616 (* y (+ 27464.7644705 (* y (+ (* x y) z))))))))
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = c + (y * ((y * (y + a)) + b));
double t_2 = x + ((z - (x * a)) / y);
double tmp;
if (y <= -1.18e+57) {
tmp = t_2;
} else if (y <= 1e-24) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / ((y * t_1) + i);
} else if (y <= 6.5e+48) {
tmp = ((1.0 / y) / t_1) * (t + (y * (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z)))))));
} 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 = c + (y * ((y * (y + a)) + b))
t_2 = x + ((z - (x * a)) / y)
if (y <= (-1.18d+57)) then
tmp = t_2
else if (y <= 1d-24) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (x * (y * y))))))) / ((y * t_1) + i)
else if (y <= 6.5d+48) then
tmp = ((1.0d0 / y) / t_1) * (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * ((x * y) + z)))))))
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 = c + (y * ((y * (y + a)) + b));
double t_2 = x + ((z - (x * a)) / y);
double tmp;
if (y <= -1.18e+57) {
tmp = t_2;
} else if (y <= 1e-24) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / ((y * t_1) + i);
} else if (y <= 6.5e+48) {
tmp = ((1.0 / y) / t_1) * (t + (y * (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z)))))));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = c + (y * ((y * (y + a)) + b)) t_2 = x + ((z - (x * a)) / y) tmp = 0 if y <= -1.18e+57: tmp = t_2 elif y <= 1e-24: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / ((y * t_1) + i) elif y <= 6.5e+48: tmp = ((1.0 / y) / t_1) * (t + (y * (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))) t_2 = Float64(x + Float64(Float64(z - Float64(x * a)) / y)) tmp = 0.0 if (y <= -1.18e+57) tmp = t_2; elseif (y <= 1e-24) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(x * Float64(y * y))))))) / Float64(Float64(y * t_1) + i)); elseif (y <= 6.5e+48) tmp = Float64(Float64(Float64(1.0 / y) / t_1) * Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(Float64(x * y) + z)))))))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = c + (y * ((y * (y + a)) + b)); t_2 = x + ((z - (x * a)) / y); tmp = 0.0; if (y <= -1.18e+57) tmp = t_2; elseif (y <= 1e-24) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / ((y * t_1) + i); elseif (y <= 6.5e+48) tmp = ((1.0 / y) / t_1) * (t + (y * (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.18e+57], t$95$2, If[LessEqual[y, 1e-24], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * t$95$1), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.5e+48], N[(N[(N[(1.0 / y), $MachinePrecision] / t$95$1), $MachinePrecision] * N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\\
t_2 := x + \frac{z - x \cdot a}{y}\\
\mathbf{if}\;y \leq -1.18 \cdot 10^{+57}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 10^{-24}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + x \cdot \left(y \cdot y\right)\right)\right)}{y \cdot t\_1 + i}\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{+48}:\\
\;\;\;\;\frac{\frac{1}{y}}{t\_1} \cdot \left(t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(x \cdot y + z\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.18e57 or 6.49999999999999972e48 < y Initial program 2.4%
Taylor expanded in y around -inf
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f6470.5%
Simplified70.5%
if -1.18e57 < y < 9.99999999999999924e-25Initial program 96.5%
Taylor expanded in z around 0
*-lowering-*.f64N/A
unpow2N/A
associate-*r*N/A
+-lowering-+.f64N/A
associate-*r*N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6490.7%
Simplified90.7%
if 9.99999999999999924e-25 < y < 6.49999999999999972e48Initial program 68.9%
clear-numN/A
associate-/r/N/A
*-lowering-*.f64N/A
Applied egg-rr68.8%
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-+.f6472.5%
Simplified72.5%
Final simplification82.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (/ (- z (* x a)) y)))
(t_2 (+ (* y (+ c (* y (+ (* y (+ y a)) b)))) i)))
(if (<= y -4.2e+59)
t_1
(if (<= y 4.3e-33)
(/ (+ t (* y (+ 230661.510616 (* y 27464.7644705)))) t_2)
(if (<= y 7.5e+47) (/ (+ t (* y (* x (* y (* y y))))) 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 + ((z - (x * a)) / y);
double t_2 = (y * (c + (y * ((y * (y + a)) + b)))) + i;
double tmp;
if (y <= -4.2e+59) {
tmp = t_1;
} else if (y <= 4.3e-33) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / t_2;
} else if (y <= 7.5e+47) {
tmp = (t + (y * (x * (y * (y * y))))) / t_2;
} 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 = x + ((z - (x * a)) / y)
t_2 = (y * (c + (y * ((y * (y + a)) + b)))) + i
if (y <= (-4.2d+59)) then
tmp = t_1
else if (y <= 4.3d-33) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / t_2
else if (y <= 7.5d+47) then
tmp = (t + (y * (x * (y * (y * y))))) / t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z - (x * a)) / y);
double t_2 = (y * (c + (y * ((y * (y + a)) + b)))) + i;
double tmp;
if (y <= -4.2e+59) {
tmp = t_1;
} else if (y <= 4.3e-33) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / t_2;
} else if (y <= 7.5e+47) {
tmp = (t + (y * (x * (y * (y * y))))) / t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z - (x * a)) / y) t_2 = (y * (c + (y * ((y * (y + a)) + b)))) + i tmp = 0 if y <= -4.2e+59: tmp = t_1 elif y <= 4.3e-33: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / t_2 elif y <= 7.5e+47: tmp = (t + (y * (x * (y * (y * y))))) / t_2 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)) t_2 = Float64(Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))) + i) tmp = 0.0 if (y <= -4.2e+59) tmp = t_1; elseif (y <= 4.3e-33) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / t_2); elseif (y <= 7.5e+47) tmp = Float64(Float64(t + Float64(y * Float64(x * Float64(y * Float64(y * y))))) / t_2); 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); t_2 = (y * (c + (y * ((y * (y + a)) + b)))) + i; tmp = 0.0; if (y <= -4.2e+59) tmp = t_1; elseif (y <= 4.3e-33) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / t_2; elseif (y <= 7.5e+47) tmp = (t + (y * (x * (y * (y * y))))) / t_2; 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]}, Block[{t$95$2 = N[(N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]}, If[LessEqual[y, -4.2e+59], t$95$1, If[LessEqual[y, 4.3e-33], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], If[LessEqual[y, 7.5e+47], N[(N[(t + N[(y * N[(x * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{z - x \cdot a}{y}\\
t_2 := y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right) + i\\
\mathbf{if}\;y \leq -4.2 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.3 \cdot 10^{-33}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{t\_2}\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+47}:\\
\;\;\;\;\frac{t + y \cdot \left(x \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)}{t\_2}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.19999999999999968e59 or 7.4999999999999999e47 < y Initial program 2.4%
Taylor expanded in y around -inf
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f6471.3%
Simplified71.3%
if -4.19999999999999968e59 < y < 4.30000000000000031e-33Initial program 95.8%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6488.0%
Simplified88.0%
if 4.30000000000000031e-33 < y < 7.4999999999999999e47Initial program 71.8%
Taylor expanded in x around inf
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6449.5%
Simplified49.5%
Final simplification79.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (/ (- z (* x a)) y))))
(if (<= y -2.55e+59)
t_1
(if (<= y 1.9e+49)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* x (* y y)))))))
(+ (* y (+ c (* y (+ (* y (+ y a)) b)))) i))
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 <= -2.55e+59) {
tmp = t_1;
} else if (y <= 1.9e+49) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
} 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 <= (-2.55d+59)) then
tmp = t_1
else if (y <= 1.9d+49) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (x * (y * y))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i)
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 <= -2.55e+59) {
tmp = t_1;
} else if (y <= 1.9e+49) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
} 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 <= -2.55e+59: tmp = t_1 elif y <= 1.9e+49: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i) 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 <= -2.55e+59) tmp = t_1; elseif (y <= 1.9e+49) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(x * Float64(y * y))))))) / Float64(Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))) + i)); 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 <= -2.55e+59) tmp = t_1; elseif (y <= 1.9e+49) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i); 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, -2.55e+59], t$95$1, If[LessEqual[y, 1.9e+49], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{z - x \cdot a}{y}\\
\mathbf{if}\;y \leq -2.55 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{+49}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + x \cdot \left(y \cdot y\right)\right)\right)}{y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right) + i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.5500000000000002e59 or 1.8999999999999999e49 < y Initial program 2.4%
Taylor expanded in y around -inf
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f6470.5%
Simplified70.5%
if -2.5500000000000002e59 < y < 1.8999999999999999e49Initial program 93.3%
Taylor expanded in z around 0
*-lowering-*.f64N/A
unpow2N/A
associate-*r*N/A
+-lowering-+.f64N/A
associate-*r*N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6485.9%
Simplified85.9%
Final simplification80.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (/ (- z (* x a)) y))))
(if (<= y -4.6e+59)
t_1
(if (<= y 2.5e+45)
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ (* y (+ c (* y (+ (* y (+ y a)) b)))) i))
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 <= -4.6e+59) {
tmp = t_1;
} else if (y <= 2.5e+45) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
} 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 <= (-4.6d+59)) then
tmp = t_1
else if (y <= 2.5d+45) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i)
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 <= -4.6e+59) {
tmp = t_1;
} else if (y <= 2.5e+45) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
} 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 <= -4.6e+59: tmp = t_1 elif y <= 2.5e+45: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i) 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 <= -4.6e+59) tmp = t_1; elseif (y <= 2.5e+45) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))) + i)); 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 <= -4.6e+59) tmp = t_1; elseif (y <= 2.5e+45) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i); 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, -4.6e+59], t$95$1, If[LessEqual[y, 2.5e+45], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{z - x \cdot a}{y}\\
\mathbf{if}\;y \leq -4.6 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+45}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right) + i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.60000000000000016e59 or 2.5e45 < y Initial program 2.4%
Taylor expanded in y around -inf
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f6471.3%
Simplified71.3%
if -4.60000000000000016e59 < y < 2.5e45Initial program 92.8%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6480.2%
Simplified80.2%
Final simplification77.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (/ (- z (* x a)) y))))
(if (<= y -1e+30)
t_1
(if (<= y 4.2e-24)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ i (* y c)))
(if (<= y 6e+119)
(* z (/ (* y y) (+ c (* y (+ (* y (+ y a)) b)))))
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 <= -1e+30) {
tmp = t_1;
} else if (y <= 4.2e-24) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * c));
} else if (y <= 6e+119) {
tmp = z * ((y * y) / (c + (y * ((y * (y + a)) + b))));
} 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 <= (-1d+30)) then
tmp = t_1
else if (y <= 4.2d-24) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (i + (y * c))
else if (y <= 6d+119) then
tmp = z * ((y * y) / (c + (y * ((y * (y + a)) + b))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z - (x * a)) / y);
double tmp;
if (y <= -1e+30) {
tmp = t_1;
} else if (y <= 4.2e-24) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * c));
} else if (y <= 6e+119) {
tmp = z * ((y * y) / (c + (y * ((y * (y + a)) + b))));
} 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 <= -1e+30: tmp = t_1 elif y <= 4.2e-24: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * c)) elif y <= 6e+119: tmp = z * ((y * y) / (c + (y * ((y * (y + a)) + b)))) 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 <= -1e+30) tmp = t_1; elseif (y <= 4.2e-24) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(i + Float64(y * c))); elseif (y <= 6e+119) tmp = Float64(z * Float64(Float64(y * y) / Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))); 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 <= -1e+30) tmp = t_1; elseif (y <= 4.2e-24) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * c)); elseif (y <= 6e+119) tmp = z * ((y * y) / (c + (y * ((y * (y + a)) + b)))); 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, -1e+30], t$95$1, If[LessEqual[y, 4.2e-24], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e+119], N[(z * N[(N[(y * y), $MachinePrecision] / N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $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 -1 \cdot 10^{+30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-24}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + y \cdot c}\\
\mathbf{elif}\;y \leq 6 \cdot 10^{+119}:\\
\;\;\;\;z \cdot \frac{y \cdot y}{c + y \cdot \left(y \cdot \left(y + a\right) + b\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1e30 or 6.00000000000000002e119 < y Initial program 2.5%
Taylor expanded in y around -inf
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f6470.9%
Simplified70.9%
if -1e30 < y < 4.1999999999999999e-24Initial program 99.1%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6487.2%
Simplified87.2%
Taylor expanded in x around 0
*-lowering-*.f6485.8%
Simplified85.8%
if 4.1999999999999999e-24 < y < 6.00000000000000002e119Initial program 54.6%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6421.5%
Simplified21.5%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr25.4%
Taylor expanded in i around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6429.3%
Simplified29.3%
Final simplification74.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (/ (- z (* x a)) y))))
(if (<= y -5.7e+35)
t_1
(if (<= y 4.2e-24)
(/ (+ t (* y 230661.510616)) (+ i (* y (+ c (* y b)))))
(if (<= y 6e+119)
(* z (/ (* y y) (+ c (* y (+ (* y (+ y a)) b)))))
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 <= -5.7e+35) {
tmp = t_1;
} else if (y <= 4.2e-24) {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b))));
} else if (y <= 6e+119) {
tmp = z * ((y * y) / (c + (y * ((y * (y + a)) + b))));
} 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 <= (-5.7d+35)) then
tmp = t_1
else if (y <= 4.2d-24) then
tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * b))))
else if (y <= 6d+119) then
tmp = z * ((y * y) / (c + (y * ((y * (y + a)) + b))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z - (x * a)) / y);
double tmp;
if (y <= -5.7e+35) {
tmp = t_1;
} else if (y <= 4.2e-24) {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b))));
} else if (y <= 6e+119) {
tmp = z * ((y * y) / (c + (y * ((y * (y + a)) + b))));
} 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 <= -5.7e+35: tmp = t_1 elif y <= 4.2e-24: tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b)))) elif y <= 6e+119: tmp = z * ((y * y) / (c + (y * ((y * (y + a)) + b)))) 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 <= -5.7e+35) tmp = t_1; elseif (y <= 4.2e-24) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); elseif (y <= 6e+119) tmp = Float64(z * Float64(Float64(y * y) / Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))); 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 <= -5.7e+35) tmp = t_1; elseif (y <= 4.2e-24) tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b)))); elseif (y <= 6e+119) tmp = z * ((y * y) / (c + (y * ((y * (y + a)) + b)))); 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, -5.7e+35], t$95$1, If[LessEqual[y, 4.2e-24], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e+119], N[(z * N[(N[(y * y), $MachinePrecision] / N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $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 -5.7 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-24}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{elif}\;y \leq 6 \cdot 10^{+119}:\\
\;\;\;\;z \cdot \frac{y \cdot y}{c + y \cdot \left(y \cdot \left(y + a\right) + b\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.69999999999999993e35 or 6.00000000000000002e119 < y Initial program 2.5%
Taylor expanded in y around -inf
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f6471.7%
Simplified71.7%
if -5.69999999999999993e35 < y < 4.1999999999999999e-24Initial program 98.4%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6489.4%
Simplified89.4%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6484.9%
Simplified84.9%
if 4.1999999999999999e-24 < y < 6.00000000000000002e119Initial program 54.6%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6421.5%
Simplified21.5%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr25.4%
Taylor expanded in i around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6429.3%
Simplified29.3%
Final simplification74.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (/ (- z (* x a)) y))))
(if (<= y -4.8e+60)
t_1
(if (<= y 1.2e+46)
(/
(+ t (* y 230661.510616))
(+ (* y (+ c (* y (+ (* y (+ y a)) b)))) i))
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 <= -4.8e+60) {
tmp = t_1;
} else if (y <= 1.2e+46) {
tmp = (t + (y * 230661.510616)) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
} 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 <= (-4.8d+60)) then
tmp = t_1
else if (y <= 1.2d+46) then
tmp = (t + (y * 230661.510616d0)) / ((y * (c + (y * ((y * (y + a)) + b)))) + i)
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 <= -4.8e+60) {
tmp = t_1;
} else if (y <= 1.2e+46) {
tmp = (t + (y * 230661.510616)) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
} 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 <= -4.8e+60: tmp = t_1 elif y <= 1.2e+46: tmp = (t + (y * 230661.510616)) / ((y * (c + (y * ((y * (y + a)) + b)))) + i) 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 <= -4.8e+60) tmp = t_1; elseif (y <= 1.2e+46) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))) + i)); 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 <= -4.8e+60) tmp = t_1; elseif (y <= 1.2e+46) tmp = (t + (y * 230661.510616)) / ((y * (c + (y * ((y * (y + a)) + b)))) + i); 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, -4.8e+60], t$95$1, If[LessEqual[y, 1.2e+46], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{z - x \cdot a}{y}\\
\mathbf{if}\;y \leq -4.8 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{+46}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right) + i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.8e60 or 1.20000000000000004e46 < y Initial program 2.4%
Taylor expanded in y around -inf
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f6471.3%
Simplified71.3%
if -4.8e60 < y < 1.20000000000000004e46Initial program 92.8%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6479.4%
Simplified79.4%
Final simplification76.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (/ (- z (* x a)) y))))
(if (<= y -1.24e+36)
t_1
(if (<= y 7.2e+43)
(/ (+ t (* y 230661.510616)) (+ i (* y (+ c (* y b)))))
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 <= -1.24e+36) {
tmp = t_1;
} else if (y <= 7.2e+43) {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b))));
} 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 <= (-1.24d+36)) then
tmp = t_1
else if (y <= 7.2d+43) then
tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * b))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z - (x * a)) / y);
double tmp;
if (y <= -1.24e+36) {
tmp = t_1;
} else if (y <= 7.2e+43) {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b))));
} 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 <= -1.24e+36: tmp = t_1 elif y <= 7.2e+43: tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b)))) 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 <= -1.24e+36) tmp = t_1; elseif (y <= 7.2e+43) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); 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 <= -1.24e+36) tmp = t_1; elseif (y <= 7.2e+43) tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b)))); 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, -1.24e+36], t$95$1, If[LessEqual[y, 7.2e+43], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $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 -1.24 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{+43}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.23999999999999995e36 or 7.2000000000000002e43 < y Initial program 4.5%
Taylor expanded in y around -inf
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f6467.1%
Simplified67.1%
if -1.23999999999999995e36 < y < 7.2000000000000002e43Initial program 94.9%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6481.7%
Simplified81.7%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6475.8%
Simplified75.8%
Final simplification72.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (/ (- z (* x a)) y))))
(if (<= y -1.4e+30)
t_1
(if (<= y 7.5e+43) (/ (+ t (* y 230661.510616)) (+ 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 <= -1.4e+30) {
tmp = t_1;
} else if (y <= 7.5e+43) {
tmp = (t + (y * 230661.510616)) / (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 <= (-1.4d+30)) then
tmp = t_1
else if (y <= 7.5d+43) then
tmp = (t + (y * 230661.510616d0)) / (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 <= -1.4e+30) {
tmp = t_1;
} else if (y <= 7.5e+43) {
tmp = (t + (y * 230661.510616)) / (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 <= -1.4e+30: tmp = t_1 elif y <= 7.5e+43: tmp = (t + (y * 230661.510616)) / (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 <= -1.4e+30) tmp = t_1; elseif (y <= 7.5e+43) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / 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 <= -1.4e+30) tmp = t_1; elseif (y <= 7.5e+43) tmp = (t + (y * 230661.510616)) / (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, -1.4e+30], t$95$1, If[LessEqual[y, 7.5e+43], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / 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 -1.4 \cdot 10^{+30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+43}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.39999999999999992e30 or 7.49999999999999967e43 < y Initial program 4.5%
Taylor expanded in y around -inf
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f6467.1%
Simplified67.1%
if -1.39999999999999992e30 < y < 7.49999999999999967e43Initial program 94.9%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6479.0%
Simplified79.0%
Taylor expanded in y around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f6473.2%
Simplified73.2%
Final simplification70.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (/ (- z (* x a)) y))))
(if (<= y -4600000000.0)
t_1
(if (<= y 2.5e+44) (/ (+ t (* y 230661.510616)) i) 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 <= -4600000000.0) {
tmp = t_1;
} else if (y <= 2.5e+44) {
tmp = (t + (y * 230661.510616)) / i;
} 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 <= (-4600000000.0d0)) then
tmp = t_1
else if (y <= 2.5d+44) then
tmp = (t + (y * 230661.510616d0)) / i
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 <= -4600000000.0) {
tmp = t_1;
} else if (y <= 2.5e+44) {
tmp = (t + (y * 230661.510616)) / i;
} 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 <= -4600000000.0: tmp = t_1 elif y <= 2.5e+44: tmp = (t + (y * 230661.510616)) / i 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 <= -4600000000.0) tmp = t_1; elseif (y <= 2.5e+44) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / i); 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 <= -4600000000.0) tmp = t_1; elseif (y <= 2.5e+44) tmp = (t + (y * 230661.510616)) / i; 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, -4600000000.0], t$95$1, If[LessEqual[y, 2.5e+44], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{z - x \cdot a}{y}\\
\mathbf{if}\;y \leq -4600000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+44}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.6e9 or 2.4999999999999998e44 < y Initial program 7.3%
Taylor expanded in y around -inf
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f6463.9%
Simplified63.9%
if -4.6e9 < y < 2.4999999999999998e44Initial program 96.0%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6482.3%
Simplified82.3%
Taylor expanded in y around 0
Simplified56.9%
Final simplification59.6%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -1450000000.0) x (if (<= y 7.2e+43) (/ (+ t (* y 230661.510616)) i) x)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1450000000.0) {
tmp = x;
} else if (y <= 7.2e+43) {
tmp = (t + (y * 230661.510616)) / 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 <= (-1450000000.0d0)) then
tmp = x
else if (y <= 7.2d+43) then
tmp = (t + (y * 230661.510616d0)) / 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 <= -1450000000.0) {
tmp = x;
} else if (y <= 7.2e+43) {
tmp = (t + (y * 230661.510616)) / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1450000000.0: tmp = x elif y <= 7.2e+43: tmp = (t + (y * 230661.510616)) / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1450000000.0) tmp = x; elseif (y <= 7.2e+43) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / 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 <= -1450000000.0) tmp = x; elseif (y <= 7.2e+43) tmp = (t + (y * 230661.510616)) / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1450000000.0], x, If[LessEqual[y, 7.2e+43], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1450000000:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{+43}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.45e9 or 7.2000000000000002e43 < y Initial program 7.3%
Taylor expanded in y around inf
Simplified52.5%
if -1.45e9 < y < 7.2000000000000002e43Initial program 96.0%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6482.3%
Simplified82.3%
Taylor expanded in y around 0
Simplified56.9%
Final simplification55.2%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -1.3e+18) x (if (<= y 2.2e+50) (/ 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 <= -1.3e+18) {
tmp = x;
} else if (y <= 2.2e+50) {
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 <= (-1.3d+18)) then
tmp = x
else if (y <= 2.2d+50) 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 <= -1.3e+18) {
tmp = x;
} else if (y <= 2.2e+50) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.3e+18: tmp = x elif y <= 2.2e+50: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.3e+18) tmp = x; elseif (y <= 2.2e+50) 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 <= -1.3e+18) tmp = x; elseif (y <= 2.2e+50) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.3e+18], x, If[LessEqual[y, 2.2e+50], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{+18}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{+50}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.3e18 or 2.20000000000000017e50 < y Initial program 5.5%
Taylor expanded in y around inf
Simplified54.0%
if -1.3e18 < y < 2.20000000000000017e50Initial program 95.4%
Taylor expanded in y around 0
/-lowering-/.f6447.7%
Simplified47.7%
(FPCore (x y z t a b c i) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return x;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return x;
}
def code(x, y, z, t, a, b, c, i): return x
function code(x, y, z, t, a, b, c, i) return x end
function tmp = code(x, y, z, t, a, b, c, i) tmp = x; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 61.0%
Taylor expanded in y around inf
Simplified22.9%
herbie shell --seed 2024191
(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)))