
(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 11 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 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -1.55e+141)
t_1
(if (<= y -1e+61)
(/ 1.0 (/ (+ 1.0 (/ a y)) x))
(if (<= y 8.6e+58)
(/
(+
(* y (+ (* y (+ (* y (+ z (* y x))) 27464.7644705)) 230661.510616))
t)
(+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) 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 / y) - (a * (x / y)));
double tmp;
if (y <= -1.55e+141) {
tmp = t_1;
} else if (y <= -1e+61) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else if (y <= 8.6e+58) {
tmp = ((y * ((y * ((y * (z + (y * x))) + 27464.7644705)) + 230661.510616)) + t) / ((y * ((y * ((y * (y + a)) + b)) + c)) + 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 / y) - (a * (x / y)))
if (y <= (-1.55d+141)) then
tmp = t_1
else if (y <= (-1d+61)) then
tmp = 1.0d0 / ((1.0d0 + (a / y)) / x)
else if (y <= 8.6d+58) then
tmp = ((y * ((y * ((y * (z + (y * x))) + 27464.7644705d0)) + 230661.510616d0)) + t) / ((y * ((y * ((y * (y + a)) + b)) + c)) + 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 / y) - (a * (x / y)));
double tmp;
if (y <= -1.55e+141) {
tmp = t_1;
} else if (y <= -1e+61) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else if (y <= 8.6e+58) {
tmp = ((y * ((y * ((y * (z + (y * x))) + 27464.7644705)) + 230661.510616)) + t) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -1.55e+141: tmp = t_1 elif y <= -1e+61: tmp = 1.0 / ((1.0 + (a / y)) / x) elif y <= 8.6e+58: tmp = ((y * ((y * ((y * (z + (y * x))) + 27464.7644705)) + 230661.510616)) + t) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -1.55e+141) tmp = t_1; elseif (y <= -1e+61) tmp = Float64(1.0 / Float64(Float64(1.0 + Float64(a / y)) / x)); elseif (y <= 8.6e+58) tmp = Float64(Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(z + Float64(y * x))) + 27464.7644705)) + 230661.510616)) + t) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + 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 / y) - (a * (x / y))); tmp = 0.0; if (y <= -1.55e+141) tmp = t_1; elseif (y <= -1e+61) tmp = 1.0 / ((1.0 + (a / y)) / x); elseif (y <= 8.6e+58) tmp = ((y * ((y * ((y * (z + (y * x))) + 27464.7644705)) + 230661.510616)) + t) / ((y * ((y * ((y * (y + a)) + b)) + c)) + 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 / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.55e+141], t$95$1, If[LessEqual[y, -1e+61], N[(1.0 / N[(N[(1.0 + N[(a / y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.6e+58], N[(N[(N[(y * N[(N[(y * N[(N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -1.55 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1 \cdot 10^{+61}:\\
\;\;\;\;\frac{1}{\frac{1 + \frac{a}{y}}{x}}\\
\mathbf{elif}\;y \leq 8.6 \cdot 10^{+58}:\\
\;\;\;\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(z + y \cdot x\right) + 27464.7644705\right) + 230661.510616\right) + t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.55000000000000002e141 or 8.59999999999999982e58 < y Initial program 1.7%
Taylor expanded in y around inf 76.8%
associate--l+76.8%
associate-/l*79.0%
Simplified79.0%
if -1.55000000000000002e141 < y < -9.99999999999999949e60Initial program 6.7%
clear-num6.7%
inv-pow6.7%
Applied egg-rr6.7%
unpow-16.7%
fma-undefine6.7%
*-commutative6.7%
fma-define6.7%
Simplified6.7%
Taylor expanded in y around inf 62.8%
*-commutative62.8%
associate-/r*62.8%
Simplified62.8%
Taylor expanded in x around inf 73.4%
if -9.99999999999999949e60 < y < 8.59999999999999982e58Initial program 96.6%
Final simplification89.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -1.9e+142)
t_1
(if (<= y -1.2e+62)
(/ 1.0 (/ (+ 1.0 (/ a y)) x))
(if (<= y 7.8e+58)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) 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 / y) - (a * (x / y)));
double tmp;
if (y <= -1.9e+142) {
tmp = t_1;
} else if (y <= -1.2e+62) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else if (y <= 7.8e+58) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + 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 / y) - (a * (x / y)))
if (y <= (-1.9d+142)) then
tmp = t_1
else if (y <= (-1.2d+62)) then
tmp = 1.0d0 / ((1.0d0 + (a / y)) / x)
else if (y <= 7.8d+58) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + 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 / y) - (a * (x / y)));
double tmp;
if (y <= -1.9e+142) {
tmp = t_1;
} else if (y <= -1.2e+62) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else if (y <= 7.8e+58) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -1.9e+142: tmp = t_1 elif y <= -1.2e+62: tmp = 1.0 / ((1.0 + (a / y)) / x) elif y <= 7.8e+58: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -1.9e+142) tmp = t_1; elseif (y <= -1.2e+62) tmp = Float64(1.0 / Float64(Float64(1.0 + Float64(a / y)) / x)); elseif (y <= 7.8e+58) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z / y) - (a * (x / y))); tmp = 0.0; if (y <= -1.9e+142) tmp = t_1; elseif (y <= -1.2e+62) tmp = 1.0 / ((1.0 + (a / y)) / x); elseif (y <= 7.8e+58) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + 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 / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.9e+142], t$95$1, If[LessEqual[y, -1.2e+62], N[(1.0 / N[(N[(1.0 + N[(a / y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.8e+58], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -1.9 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.2 \cdot 10^{+62}:\\
\;\;\;\;\frac{1}{\frac{1 + \frac{a}{y}}{x}}\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{+58}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.89999999999999995e142 or 7.8000000000000002e58 < y Initial program 1.7%
Taylor expanded in y around inf 76.8%
associate--l+76.8%
associate-/l*79.0%
Simplified79.0%
if -1.89999999999999995e142 < y < -1.2e62Initial program 6.7%
clear-num6.7%
inv-pow6.7%
Applied egg-rr6.7%
unpow-16.7%
fma-undefine6.7%
*-commutative6.7%
fma-define6.7%
Simplified6.7%
Taylor expanded in y around inf 62.8%
*-commutative62.8%
associate-/r*62.8%
Simplified62.8%
Taylor expanded in x around inf 73.4%
if -1.2e62 < y < 7.8000000000000002e58Initial program 96.6%
Taylor expanded in x around 0 90.6%
Final simplification85.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -3e+142)
t_1
(if (<= y -9.8e+60)
(/ 1.0 (/ (+ 1.0 (/ a y)) x))
(if (<= y 1.7e+58)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ 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 / y) - (a * (x / y)));
double tmp;
if (y <= -3e+142) {
tmp = t_1;
} else if (y <= -9.8e+60) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else if (y <= 1.7e+58) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (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 / y) - (a * (x / y)))
if (y <= (-3d+142)) then
tmp = t_1
else if (y <= (-9.8d+60)) then
tmp = 1.0d0 / ((1.0d0 + (a / y)) / x)
else if (y <= 1.7d+58) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (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 / y) - (a * (x / y)));
double tmp;
if (y <= -3e+142) {
tmp = t_1;
} else if (y <= -9.8e+60) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else if (y <= 1.7e+58) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (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 / y) - (a * (x / y))) tmp = 0 if y <= -3e+142: tmp = t_1 elif y <= -9.8e+60: tmp = 1.0 / ((1.0 + (a / y)) / x) elif y <= 1.7e+58: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (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 / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -3e+142) tmp = t_1; elseif (y <= -9.8e+60) tmp = Float64(1.0 / Float64(Float64(1.0 + Float64(a / y)) / x)); elseif (y <= 1.7e+58) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / 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 / y) - (a * (x / y))); tmp = 0.0; if (y <= -3e+142) tmp = t_1; elseif (y <= -9.8e+60) tmp = 1.0 / ((1.0 + (a / y)) / x); elseif (y <= 1.7e+58) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (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 / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+142], t$95$1, If[LessEqual[y, -9.8e+60], N[(1.0 / N[(N[(1.0 + N[(a / y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e+58], 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 * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -3 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -9.8 \cdot 10^{+60}:\\
\;\;\;\;\frac{1}{\frac{1 + \frac{a}{y}}{x}}\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+58}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.99999999999999975e142 or 1.7e58 < y Initial program 1.7%
Taylor expanded in y around inf 76.8%
associate--l+76.8%
associate-/l*79.0%
Simplified79.0%
if -2.99999999999999975e142 < y < -9.8000000000000005e60Initial program 6.7%
clear-num6.7%
inv-pow6.7%
Applied egg-rr6.7%
unpow-16.7%
fma-undefine6.7%
*-commutative6.7%
fma-define6.7%
Simplified6.7%
Taylor expanded in y around inf 62.8%
*-commutative62.8%
associate-/r*62.8%
Simplified62.8%
Taylor expanded in x around inf 73.4%
if -9.8000000000000005e60 < y < 1.7e58Initial program 96.6%
Taylor expanded in x around 0 90.6%
Taylor expanded in y around 0 87.3%
*-commutative81.8%
Simplified87.3%
Final simplification83.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -1.42e+141)
t_1
(if (<= y -9.8e+60)
(/ 1.0 (/ (+ 1.0 (/ a y)) x))
(if (<= y 8.6e+25)
(/
(+ t (* y 230661.510616))
(+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) 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 / y) - (a * (x / y)));
double tmp;
if (y <= -1.42e+141) {
tmp = t_1;
} else if (y <= -9.8e+60) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else if (y <= 8.6e+25) {
tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + 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 / y) - (a * (x / y)))
if (y <= (-1.42d+141)) then
tmp = t_1
else if (y <= (-9.8d+60)) then
tmp = 1.0d0 / ((1.0d0 + (a / y)) / x)
else if (y <= 8.6d+25) then
tmp = (t + (y * 230661.510616d0)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + 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 / y) - (a * (x / y)));
double tmp;
if (y <= -1.42e+141) {
tmp = t_1;
} else if (y <= -9.8e+60) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else if (y <= 8.6e+25) {
tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -1.42e+141: tmp = t_1 elif y <= -9.8e+60: tmp = 1.0 / ((1.0 + (a / y)) / x) elif y <= 8.6e+25: tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -1.42e+141) tmp = t_1; elseif (y <= -9.8e+60) tmp = Float64(1.0 / Float64(Float64(1.0 + Float64(a / y)) / x)); elseif (y <= 8.6e+25) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z / y) - (a * (x / y))); tmp = 0.0; if (y <= -1.42e+141) tmp = t_1; elseif (y <= -9.8e+60) tmp = 1.0 / ((1.0 + (a / y)) / x); elseif (y <= 8.6e+25) tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + 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 / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.42e+141], t$95$1, If[LessEqual[y, -9.8e+60], N[(1.0 / N[(N[(1.0 + N[(a / y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.6e+25], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -1.42 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -9.8 \cdot 10^{+60}:\\
\;\;\;\;\frac{1}{\frac{1 + \frac{a}{y}}{x}}\\
\mathbf{elif}\;y \leq 8.6 \cdot 10^{+25}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.42000000000000005e141 or 8.59999999999999996e25 < y Initial program 4.0%
Taylor expanded in y around inf 73.5%
associate--l+73.5%
associate-/l*75.6%
Simplified75.6%
if -1.42000000000000005e141 < y < -9.8000000000000005e60Initial program 6.7%
clear-num6.7%
inv-pow6.7%
Applied egg-rr6.7%
unpow-16.7%
fma-undefine6.7%
*-commutative6.7%
fma-define6.7%
Simplified6.7%
Taylor expanded in y around inf 62.8%
*-commutative62.8%
associate-/r*62.8%
Simplified62.8%
Taylor expanded in x around inf 73.4%
if -9.8000000000000005e60 < y < 8.59999999999999996e25Initial program 97.8%
Taylor expanded in y around 0 86.8%
*-commutative86.8%
Simplified86.8%
Final simplification82.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -5.5e+141)
t_1
(if (<= y -9.8e+60)
(/ 1.0 (/ (+ 1.0 (/ a y)) x))
(if (<= y 2.05e+34)
(/ (+ 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 / y) - (a * (x / y)));
double tmp;
if (y <= -5.5e+141) {
tmp = t_1;
} else if (y <= -9.8e+60) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else if (y <= 2.05e+34) {
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 / y) - (a * (x / y)))
if (y <= (-5.5d+141)) then
tmp = t_1
else if (y <= (-9.8d+60)) then
tmp = 1.0d0 / ((1.0d0 + (a / y)) / x)
else if (y <= 2.05d+34) 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 / y) - (a * (x / y)));
double tmp;
if (y <= -5.5e+141) {
tmp = t_1;
} else if (y <= -9.8e+60) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else if (y <= 2.05e+34) {
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 / y) - (a * (x / y))) tmp = 0 if y <= -5.5e+141: tmp = t_1 elif y <= -9.8e+60: tmp = 1.0 / ((1.0 + (a / y)) / x) elif y <= 2.05e+34: 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 / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -5.5e+141) tmp = t_1; elseif (y <= -9.8e+60) tmp = Float64(1.0 / Float64(Float64(1.0 + Float64(a / y)) / x)); elseif (y <= 2.05e+34) 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 / y) - (a * (x / y))); tmp = 0.0; if (y <= -5.5e+141) tmp = t_1; elseif (y <= -9.8e+60) tmp = 1.0 / ((1.0 + (a / y)) / x); elseif (y <= 2.05e+34) 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 / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e+141], t$95$1, If[LessEqual[y, -9.8e+60], N[(1.0 / N[(N[(1.0 + N[(a / y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.05e+34], 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 + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -9.8 \cdot 10^{+60}:\\
\;\;\;\;\frac{1}{\frac{1 + \frac{a}{y}}{x}}\\
\mathbf{elif}\;y \leq 2.05 \cdot 10^{+34}:\\
\;\;\;\;\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 < -5.49999999999999967e141 or 2.0499999999999999e34 < y Initial program 4.0%
Taylor expanded in y around inf 73.5%
associate--l+73.5%
associate-/l*75.6%
Simplified75.6%
if -5.49999999999999967e141 < y < -9.8000000000000005e60Initial program 6.7%
clear-num6.7%
inv-pow6.7%
Applied egg-rr6.7%
unpow-16.7%
fma-undefine6.7%
*-commutative6.7%
fma-define6.7%
Simplified6.7%
Taylor expanded in y around inf 62.8%
*-commutative62.8%
associate-/r*62.8%
Simplified62.8%
Taylor expanded in x around inf 73.4%
if -9.8000000000000005e60 < y < 2.0499999999999999e34Initial program 97.8%
Taylor expanded in y around 0 86.8%
*-commutative86.8%
Simplified86.8%
Taylor expanded in y around 0 83.9%
*-commutative83.9%
Simplified83.9%
Final simplification80.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -1.45e+141)
t_1
(if (<= y -920000.0)
(/ 1.0 (/ (+ 1.0 (/ a y)) x))
(if (<= y 185000.0) (/ (+ 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 / y) - (a * (x / y)));
double tmp;
if (y <= -1.45e+141) {
tmp = t_1;
} else if (y <= -920000.0) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else if (y <= 185000.0) {
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 / y) - (a * (x / y)))
if (y <= (-1.45d+141)) then
tmp = t_1
else if (y <= (-920000.0d0)) then
tmp = 1.0d0 / ((1.0d0 + (a / y)) / x)
else if (y <= 185000.0d0) 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 / y) - (a * (x / y)));
double tmp;
if (y <= -1.45e+141) {
tmp = t_1;
} else if (y <= -920000.0) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else if (y <= 185000.0) {
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 / y) - (a * (x / y))) tmp = 0 if y <= -1.45e+141: tmp = t_1 elif y <= -920000.0: tmp = 1.0 / ((1.0 + (a / y)) / x) elif y <= 185000.0: 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 / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -1.45e+141) tmp = t_1; elseif (y <= -920000.0) tmp = Float64(1.0 / Float64(Float64(1.0 + Float64(a / y)) / x)); elseif (y <= 185000.0) 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 / y) - (a * (x / y))); tmp = 0.0; if (y <= -1.45e+141) tmp = t_1; elseif (y <= -920000.0) tmp = 1.0 / ((1.0 + (a / y)) / x); elseif (y <= 185000.0) 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 / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.45e+141], t$95$1, If[LessEqual[y, -920000.0], N[(1.0 / N[(N[(1.0 + N[(a / y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 185000.0], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -1.45 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -920000:\\
\;\;\;\;\frac{1}{\frac{1 + \frac{a}{y}}{x}}\\
\mathbf{elif}\;y \leq 185000:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.45000000000000003e141 or 185000 < y Initial program 6.1%
Taylor expanded in y around inf 71.9%
associate--l+71.9%
associate-/l*73.9%
Simplified73.9%
if -1.45000000000000003e141 < y < -9.2e5Initial program 22.2%
clear-num22.2%
inv-pow22.2%
Applied egg-rr22.2%
unpow-122.2%
fma-undefine22.2%
*-commutative22.2%
fma-define22.2%
Simplified22.2%
Taylor expanded in y around inf 48.0%
*-commutative48.0%
associate-/r*48.0%
Simplified48.0%
Taylor expanded in x around inf 56.1%
if -9.2e5 < y < 185000Initial program 99.0%
Taylor expanded in y around 0 89.5%
*-commutative89.5%
Simplified89.5%
Taylor expanded in i around inf 65.4%
Final simplification67.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -1.2e+142)
t_1
(if (<= y -9.8e+60)
(/ 1.0 (/ (+ 1.0 (/ a y)) x))
(if (<= y 4.8e+28) (/ (+ 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 / y) - (a * (x / y)));
double tmp;
if (y <= -1.2e+142) {
tmp = t_1;
} else if (y <= -9.8e+60) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else if (y <= 4.8e+28) {
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 / y) - (a * (x / y)))
if (y <= (-1.2d+142)) then
tmp = t_1
else if (y <= (-9.8d+60)) then
tmp = 1.0d0 / ((1.0d0 + (a / y)) / x)
else if (y <= 4.8d+28) 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 / y) - (a * (x / y)));
double tmp;
if (y <= -1.2e+142) {
tmp = t_1;
} else if (y <= -9.8e+60) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else if (y <= 4.8e+28) {
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 / y) - (a * (x / y))) tmp = 0 if y <= -1.2e+142: tmp = t_1 elif y <= -9.8e+60: tmp = 1.0 / ((1.0 + (a / y)) / x) elif y <= 4.8e+28: 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 / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -1.2e+142) tmp = t_1; elseif (y <= -9.8e+60) tmp = Float64(1.0 / Float64(Float64(1.0 + Float64(a / y)) / x)); elseif (y <= 4.8e+28) 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 / y) - (a * (x / y))); tmp = 0.0; if (y <= -1.2e+142) tmp = t_1; elseif (y <= -9.8e+60) tmp = 1.0 / ((1.0 + (a / y)) / x); elseif (y <= 4.8e+28) 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 / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.2e+142], t$95$1, If[LessEqual[y, -9.8e+60], N[(1.0 / N[(N[(1.0 + N[(a / y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e+28], 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 + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -1.2 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -9.8 \cdot 10^{+60}:\\
\;\;\;\;\frac{1}{\frac{1 + \frac{a}{y}}{x}}\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{+28}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.2e142 or 4.79999999999999962e28 < y Initial program 4.0%
Taylor expanded in y around inf 73.5%
associate--l+73.5%
associate-/l*75.6%
Simplified75.6%
if -1.2e142 < y < -9.8000000000000005e60Initial program 6.7%
clear-num6.7%
inv-pow6.7%
Applied egg-rr6.7%
unpow-16.7%
fma-undefine6.7%
*-commutative6.7%
fma-define6.7%
Simplified6.7%
Taylor expanded in y around inf 62.8%
*-commutative62.8%
associate-/r*62.8%
Simplified62.8%
Taylor expanded in x around inf 73.4%
if -9.8000000000000005e60 < y < 4.79999999999999962e28Initial program 97.8%
Taylor expanded in y around 0 86.8%
*-commutative86.8%
Simplified86.8%
Taylor expanded in y around 0 76.6%
*-commutative76.6%
Simplified76.6%
Final simplification76.0%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -600000.0) (not (<= y 14600000000.0))) (/ 1.0 (/ (+ 1.0 (/ a y)) x)) (/ (+ t (* y 230661.510616)) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -600000.0) || !(y <= 14600000000.0)) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else {
tmp = (t + (y * 230661.510616)) / i;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-600000.0d0)) .or. (.not. (y <= 14600000000.0d0))) then
tmp = 1.0d0 / ((1.0d0 + (a / y)) / x)
else
tmp = (t + (y * 230661.510616d0)) / i
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -600000.0) || !(y <= 14600000000.0)) {
tmp = 1.0 / ((1.0 + (a / y)) / x);
} else {
tmp = (t + (y * 230661.510616)) / i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -600000.0) or not (y <= 14600000000.0): tmp = 1.0 / ((1.0 + (a / y)) / x) else: tmp = (t + (y * 230661.510616)) / i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -600000.0) || !(y <= 14600000000.0)) tmp = Float64(1.0 / Float64(Float64(1.0 + Float64(a / y)) / x)); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -600000.0) || ~((y <= 14600000000.0))) tmp = 1.0 / ((1.0 + (a / y)) / x); else tmp = (t + (y * 230661.510616)) / i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -600000.0], N[Not[LessEqual[y, 14600000000.0]], $MachinePrecision]], N[(1.0 / N[(N[(1.0 + N[(a / y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -600000 \lor \neg \left(y \leq 14600000000\right):\\
\;\;\;\;\frac{1}{\frac{1 + \frac{a}{y}}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\end{array}
\end{array}
if y < -6e5 or 1.46e10 < y Initial program 9.5%
clear-num9.5%
inv-pow9.5%
Applied egg-rr9.5%
unpow-19.5%
fma-undefine9.5%
*-commutative9.5%
fma-define9.5%
Simplified9.5%
Taylor expanded in y around inf 48.4%
*-commutative48.4%
associate-/r*46.7%
Simplified46.7%
Taylor expanded in x around inf 56.0%
if -6e5 < y < 1.46e10Initial program 99.0%
Taylor expanded in y around 0 89.5%
*-commutative89.5%
Simplified89.5%
Taylor expanded in i around inf 65.4%
Final simplification61.2%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -2500000.0) x (if (<= y 7400000000000.0) (/ (+ 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 <= -2500000.0) {
tmp = x;
} else if (y <= 7400000000000.0) {
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 <= (-2500000.0d0)) then
tmp = x
else if (y <= 7400000000000.0d0) 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 <= -2500000.0) {
tmp = x;
} else if (y <= 7400000000000.0) {
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 <= -2500000.0: tmp = x elif y <= 7400000000000.0: 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 <= -2500000.0) tmp = x; elseif (y <= 7400000000000.0) 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 <= -2500000.0) tmp = x; elseif (y <= 7400000000000.0) 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, -2500000.0], x, If[LessEqual[y, 7400000000000.0], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2500000:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 7400000000000:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -2.5e6 or 7.4e12 < y Initial program 9.5%
Taylor expanded in y around inf 40.7%
if -2.5e6 < y < 7.4e12Initial program 99.0%
Taylor expanded in y around 0 89.5%
*-commutative89.5%
Simplified89.5%
Taylor expanded in i around inf 65.4%
Final simplification54.4%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -1700000.0) x (if (<= y 4.4e+24) (/ 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 <= -1700000.0) {
tmp = x;
} else if (y <= 4.4e+24) {
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 <= (-1700000.0d0)) then
tmp = x
else if (y <= 4.4d+24) 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 <= -1700000.0) {
tmp = x;
} else if (y <= 4.4e+24) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1700000.0: tmp = x elif y <= 4.4e+24: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1700000.0) tmp = x; elseif (y <= 4.4e+24) 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 <= -1700000.0) tmp = x; elseif (y <= 4.4e+24) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1700000.0], x, If[LessEqual[y, 4.4e+24], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1700000:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+24}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.7e6 or 4.40000000000000003e24 < y Initial program 7.9%
Taylor expanded in y around inf 41.4%
if -1.7e6 < y < 4.40000000000000003e24Initial program 99.0%
Taylor expanded in y around 0 55.4%
Final simplification49.3%
(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.1%
Taylor expanded in y around inf 20.3%
Final simplification20.3%
herbie shell --seed 2024067
(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)))