
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i): return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i): return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(if (<=
(/
(+
t
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616)))
(+ i (* y (+ (* y (+ (* y (+ y a)) b)) c))))
INFINITY)
(/
(fma (fma (fma (fma x y z) y 27464.7644705) y 230661.510616) y t)
(fma (fma (fma (+ y a) y b) y c) y i))
(+ x (- (/ z y) (* a (/ x y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * ((y * ((y * (y + a)) + b)) + c)))) <= ((double) INFINITY)) {
tmp = fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma((y + a), y, b), y, c), y, i);
} else {
tmp = x + ((z / y) - (a * (x / y)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(Float64(t + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616))) / Float64(i + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)))) <= Inf) tmp = Float64(fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(Float64(y + a), y, b), y, c), y, i)); else tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(t + N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(N[(N[(x * y + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(N[(y + a), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{t + y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right)}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)} \leq \infty:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y + a, y, b\right), y, c\right), y, i\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\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.1%
fma-define92.1%
fma-define92.1%
fma-define92.1%
fma-define92.1%
fma-define92.1%
fma-define92.1%
fma-define92.1%
Simplified92.1%
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%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
Simplified0.0%
Taylor expanded in y around inf 66.3%
associate--l+66.3%
associate-/l*71.7%
Simplified71.7%
Final simplification82.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(/
(+
t
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616)))
(+ i (* y (+ (* y (+ (* y (+ y a)) b)) c))))))
(if (<= t_1 INFINITY) t_1 (+ x (- (/ z y) (* a (/ x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = x + ((z / y) - (a * (x / 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 * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = x + ((z / y) - (a * (x / y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * ((y * ((y * (y + a)) + b)) + c))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = x + ((z / y) - (a * (x / y))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(t + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616))) / Float64(i + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * ((y * ((y * (y + a)) + b)) + c))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = x + ((z / y) - (a * (x / 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[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right)}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\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.1%
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%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
Simplified0.0%
Taylor expanded in y around inf 66.3%
associate--l+66.3%
associate-/l*71.7%
Simplified71.7%
Final simplification82.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -9.5e+47)
t_1
(if (<= y -4.2e-46)
(/
(+
t
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616)))
(* y (+ c (* y (+ b (* y a))))))
(if (<= y 2.25e+56)
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ i (* y (+ (* y (+ (* y (+ y a)) b)) 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 <= -9.5e+47) {
tmp = t_1;
} else if (y <= -4.2e-46) {
tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (y * (c + (y * (b + (y * a)))));
} else if (y <= 2.25e+56) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * ((y * ((y * (y + a)) + b)) + 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 <= (-9.5d+47)) then
tmp = t_1
else if (y <= (-4.2d-46)) then
tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705d0)) + 230661.510616d0))) / (y * (c + (y * (b + (y * a)))))
else if (y <= 2.25d+56) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * ((y * ((y * (y + a)) + b)) + 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 <= -9.5e+47) {
tmp = t_1;
} else if (y <= -4.2e-46) {
tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (y * (c + (y * (b + (y * a)))));
} else if (y <= 2.25e+56) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * ((y * ((y * (y + a)) + b)) + 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 <= -9.5e+47: tmp = t_1 elif y <= -4.2e-46: tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (y * (c + (y * (b + (y * a))))) elif y <= 2.25e+56: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * ((y * ((y * (y + a)) + b)) + 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 <= -9.5e+47) tmp = t_1; elseif (y <= -4.2e-46) tmp = Float64(Float64(t + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616))) / Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * a)))))); elseif (y <= 2.25e+56) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + 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 <= -9.5e+47) tmp = t_1; elseif (y <= -4.2e-46) tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (y * (c + (y * (b + (y * a))))); elseif (y <= 2.25e+56) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * ((y * ((y * (y + a)) + b)) + 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, -9.5e+47], t$95$1, If[LessEqual[y, -4.2e-46], N[(N[(t + N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * N[(c + N[(y * N[(b + N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.25e+56], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $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 -9.5 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4.2 \cdot 10^{-46}:\\
\;\;\;\;\frac{t + y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right)}{y \cdot \left(c + y \cdot \left(b + y \cdot a\right)\right)}\\
\mathbf{elif}\;y \leq 2.25 \cdot 10^{+56}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.50000000000000001e47 or 2.2500000000000002e56 < y Initial program 1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
Simplified1.1%
Taylor expanded in y around inf 65.3%
associate--l+65.3%
associate-/l*70.3%
Simplified70.3%
if -9.50000000000000001e47 < y < -4.19999999999999975e-46Initial program 90.5%
fma-define90.5%
fma-define90.5%
fma-define90.5%
fma-define90.5%
fma-define90.5%
fma-define90.5%
fma-define90.5%
Simplified90.5%
Taylor expanded in i around 0 90.5%
Taylor expanded in a around inf 90.0%
if -4.19999999999999975e-46 < y < 2.2500000000000002e56Initial program 98.2%
Taylor expanded in y around 0 91.2%
*-commutative91.2%
Simplified91.2%
Final simplification80.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* y (+ (* y (+ (* y (+ y a)) b)) c)))
(t_2 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -5e+50)
t_2
(if (<= y -5.8e-43)
(/ (+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))) t_1)
(if (<= y 7.8e+55)
(/ (+ t (* y (+ 230661.510616 (* y 27464.7644705)))) (+ i t_1))
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = y * ((y * ((y * (y + a)) + b)) + c);
double t_2 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -5e+50) {
tmp = t_2;
} else if (y <= -5.8e-43) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / t_1;
} else if (y <= 7.8e+55) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((y * ((y * (y + a)) + b)) + c)
t_2 = x + ((z / y) - (a * (x / y)))
if (y <= (-5d+50)) then
tmp = t_2
else if (y <= (-5.8d-43)) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / t_1
else if (y <= 7.8d+55) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = y * ((y * ((y * (y + a)) + b)) + c);
double t_2 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -5e+50) {
tmp = t_2;
} else if (y <= -5.8e-43) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / t_1;
} else if (y <= 7.8e+55) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = y * ((y * ((y * (y + a)) + b)) + c) t_2 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -5e+50: tmp = t_2 elif y <= -5.8e-43: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / t_1 elif y <= 7.8e+55: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) t_2 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -5e+50) tmp = t_2; elseif (y <= -5.8e-43) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / t_1); elseif (y <= 7.8e+55) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = y * ((y * ((y * (y + a)) + b)) + c); t_2 = x + ((z / y) - (a * (x / y))); tmp = 0.0; if (y <= -5e+50) tmp = t_2; elseif (y <= -5.8e-43) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / t_1; elseif (y <= 7.8e+55) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5e+50], t$95$2, If[LessEqual[y, -5.8e-43], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y, 7.8e+55], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)\\
t_2 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -5 \cdot 10^{+50}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -5.8 \cdot 10^{-43}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{t\_1}\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{+55}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + t\_1}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -5e50 or 7.80000000000000054e55 < y Initial program 1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
Simplified1.1%
Taylor expanded in y around inf 65.3%
associate--l+65.3%
associate-/l*70.3%
Simplified70.3%
if -5e50 < y < -5.8000000000000003e-43Initial program 89.6%
fma-define89.6%
fma-define89.6%
fma-define89.6%
fma-define89.6%
fma-define89.6%
fma-define89.6%
fma-define89.6%
Simplified89.6%
Taylor expanded in i around 0 89.6%
Taylor expanded in y around 0 89.6%
if -5.8000000000000003e-43 < y < 7.80000000000000054e55Initial program 98.3%
Taylor expanded in y around 0 90.5%
*-commutative90.5%
Simplified90.5%
Final simplification80.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -1.6e+45)
t_1
(if (<= y -6.1e-43)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(* y (+ c (* y (+ b (* y a))))))
(if (<= y 1.1e+56)
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ i (* y (+ (* y (+ (* y (+ y a)) b)) 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.6e+45) {
tmp = t_1;
} else if (y <= -6.1e-43) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (y * (c + (y * (b + (y * a)))));
} else if (y <= 1.1e+56) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * ((y * ((y * (y + a)) + b)) + 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.6d+45)) then
tmp = t_1
else if (y <= (-6.1d-43)) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (y * (c + (y * (b + (y * a)))))
else if (y <= 1.1d+56) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * ((y * ((y * (y + a)) + b)) + 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.6e+45) {
tmp = t_1;
} else if (y <= -6.1e-43) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (y * (c + (y * (b + (y * a)))));
} else if (y <= 1.1e+56) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * ((y * ((y * (y + a)) + b)) + 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.6e+45: tmp = t_1 elif y <= -6.1e-43: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (y * (c + (y * (b + (y * a))))) elif y <= 1.1e+56: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * ((y * ((y * (y + a)) + b)) + 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.6e+45) tmp = t_1; elseif (y <= -6.1e-43) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * a)))))); elseif (y <= 1.1e+56) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + 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.6e+45) tmp = t_1; elseif (y <= -6.1e-43) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (y * (c + (y * (b + (y * a))))); elseif (y <= 1.1e+56) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * ((y * ((y * (y + a)) + b)) + 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.6e+45], t$95$1, If[LessEqual[y, -6.1e-43], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * N[(c + N[(y * N[(b + N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e+56], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $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 -1.6 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -6.1 \cdot 10^{-43}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{y \cdot \left(c + y \cdot \left(b + y \cdot a\right)\right)}\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{+56}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.6000000000000001e45 or 1.10000000000000008e56 < y Initial program 1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
Simplified1.1%
Taylor expanded in y around inf 65.3%
associate--l+65.3%
associate-/l*70.3%
Simplified70.3%
if -1.6000000000000001e45 < y < -6.10000000000000037e-43Initial program 89.6%
fma-define89.6%
fma-define89.6%
fma-define89.6%
fma-define89.6%
fma-define89.6%
fma-define89.6%
fma-define89.6%
Simplified89.6%
Taylor expanded in i around 0 89.6%
Taylor expanded in a around inf 89.1%
Taylor expanded in z around inf 89.1%
if -6.10000000000000037e-43 < y < 1.10000000000000008e56Initial program 98.3%
Taylor expanded in y around 0 90.5%
*-commutative90.5%
Simplified90.5%
Final simplification80.2%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.05e+51) (not (<= y 8e+55)))
(+ x (- (/ z y) (* a (/ x y))))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ i (* y (+ (* y (+ (* y (+ y a)) b)) c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.05e+51) || !(y <= 8e+55)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.05d+51)) .or. (.not. (y <= 8d+55))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (i + (y * ((y * ((y * (y + a)) + b)) + c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.05e+51) || !(y <= 8e+55)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.05e+51) or not (y <= 8e+55): tmp = x + ((z / y) - (a * (x / y))) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * ((y * ((y * (y + a)) + b)) + c))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.05e+51) || !(y <= 8e+55)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(i + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.05e+51) || ~((y <= 8e+55))) tmp = x + ((z / y) - (a * (x / y))); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * ((y * ((y * (y + a)) + b)) + c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.05e+51], N[Not[LessEqual[y, 8e+55]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.05 \cdot 10^{+51} \lor \neg \left(y \leq 8 \cdot 10^{+55}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\
\end{array}
\end{array}
if y < -1.0500000000000001e51 or 8.00000000000000008e55 < y Initial program 1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
Simplified1.1%
Taylor expanded in y around inf 65.3%
associate--l+65.3%
associate-/l*70.3%
Simplified70.3%
if -1.0500000000000001e51 < y < 8.00000000000000008e55Initial program 97.6%
Taylor expanded in x around 0 93.2%
Final simplification81.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -1.35e+44)
t_1
(if (<= y -9.5e-46)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(* y (+ c (* y (+ b (* y a))))))
(if (<= y 6.4e+58)
(/
(+ t (* y 230661.510616))
(+ i (* y (+ (* y (+ (* y (+ y a)) b)) 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.35e+44) {
tmp = t_1;
} else if (y <= -9.5e-46) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (y * (c + (y * (b + (y * a)))));
} else if (y <= 6.4e+58) {
tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + 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.35d+44)) then
tmp = t_1
else if (y <= (-9.5d-46)) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (y * (c + (y * (b + (y * a)))))
else if (y <= 6.4d+58) then
tmp = (t + (y * 230661.510616d0)) / (i + (y * ((y * ((y * (y + a)) + b)) + 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.35e+44) {
tmp = t_1;
} else if (y <= -9.5e-46) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (y * (c + (y * (b + (y * a)))));
} else if (y <= 6.4e+58) {
tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + 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.35e+44: tmp = t_1 elif y <= -9.5e-46: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (y * (c + (y * (b + (y * a))))) elif y <= 6.4e+58: tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + 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.35e+44) tmp = t_1; elseif (y <= -9.5e-46) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * a)))))); elseif (y <= 6.4e+58) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + 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.35e+44) tmp = t_1; elseif (y <= -9.5e-46) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (y * (c + (y * (b + (y * a))))); elseif (y <= 6.4e+58) tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + 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.35e+44], t$95$1, If[LessEqual[y, -9.5e-46], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * N[(c + N[(y * N[(b + N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.4e+58], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $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 -1.35 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -9.5 \cdot 10^{-46}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{y \cdot \left(c + y \cdot \left(b + y \cdot a\right)\right)}\\
\mathbf{elif}\;y \leq 6.4 \cdot 10^{+58}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.35e44 or 6.40000000000000031e58 < y Initial program 1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
Simplified1.1%
Taylor expanded in y around inf 65.3%
associate--l+65.3%
associate-/l*70.3%
Simplified70.3%
if -1.35e44 < y < -9.49999999999999993e-46Initial program 90.5%
fma-define90.5%
fma-define90.5%
fma-define90.5%
fma-define90.5%
fma-define90.5%
fma-define90.5%
fma-define90.5%
Simplified90.5%
Taylor expanded in i around 0 90.5%
Taylor expanded in a around inf 90.0%
Taylor expanded in z around inf 81.0%
if -9.49999999999999993e-46 < y < 6.40000000000000031e58Initial program 98.2%
Taylor expanded in y around 0 90.5%
*-commutative90.5%
Simplified90.5%
Final simplification79.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -3.1e+42)
t_1
(if (<= y -2.8e-25)
(/
(+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616)
(+ c (* y (+ b (* y a)))))
(if (<= y 7.6e+53)
(/
(+ t (* y 230661.510616))
(+ i (* y (+ (* y (+ (* y (+ y a)) b)) 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 <= -3.1e+42) {
tmp = t_1;
} else if (y <= -2.8e-25) {
tmp = ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) / (c + (y * (b + (y * a))));
} else if (y <= 7.6e+53) {
tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + 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 <= (-3.1d+42)) then
tmp = t_1
else if (y <= (-2.8d-25)) then
tmp = ((y * ((y * ((x * y) + z)) + 27464.7644705d0)) + 230661.510616d0) / (c + (y * (b + (y * a))))
else if (y <= 7.6d+53) then
tmp = (t + (y * 230661.510616d0)) / (i + (y * ((y * ((y * (y + a)) + b)) + 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 <= -3.1e+42) {
tmp = t_1;
} else if (y <= -2.8e-25) {
tmp = ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) / (c + (y * (b + (y * a))));
} else if (y <= 7.6e+53) {
tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + 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 <= -3.1e+42: tmp = t_1 elif y <= -2.8e-25: tmp = ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) / (c + (y * (b + (y * a)))) elif y <= 7.6e+53: tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + 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 <= -3.1e+42) tmp = t_1; elseif (y <= -2.8e-25) tmp = Float64(Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616) / Float64(c + Float64(y * Float64(b + Float64(y * a))))); elseif (y <= 7.6e+53) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + 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 <= -3.1e+42) tmp = t_1; elseif (y <= -2.8e-25) tmp = ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) / (c + (y * (b + (y * a)))); elseif (y <= 7.6e+53) tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + 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, -3.1e+42], t$95$1, If[LessEqual[y, -2.8e-25], N[(N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision] / N[(c + N[(y * N[(b + N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.6e+53], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $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.1 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.8 \cdot 10^{-25}:\\
\;\;\;\;\frac{y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616}{c + y \cdot \left(b + y \cdot a\right)}\\
\mathbf{elif}\;y \leq 7.6 \cdot 10^{+53}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.1000000000000002e42 or 7.59999999999999995e53 < y Initial program 1.9%
fma-define1.9%
fma-define1.9%
fma-define1.9%
fma-define1.9%
fma-define1.9%
fma-define1.9%
fma-define1.9%
Simplified1.9%
Taylor expanded in y around inf 64.8%
associate--l+64.8%
associate-/l*69.8%
Simplified69.8%
if -3.1000000000000002e42 < y < -2.79999999999999988e-25Initial program 85.1%
fma-define85.1%
fma-define85.1%
fma-define85.1%
fma-define85.1%
fma-define85.1%
fma-define85.1%
fma-define85.1%
Simplified85.1%
Taylor expanded in i around 0 85.1%
Taylor expanded in a around inf 84.4%
Taylor expanded in t around 0 98.4%
if -2.79999999999999988e-25 < y < 7.59999999999999995e53Initial program 98.3%
Taylor expanded in y around 0 89.6%
*-commutative89.6%
Simplified89.6%
Final simplification79.7%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.02e+49) (not (<= y 5.7e+44))) (+ x (- (/ z y) (* a (/ x y)))) (/ (+ t (* y 230661.510616)) (+ i (* y (+ (* y (+ (* y (+ y a)) b)) c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.02e+49) || !(y <= 5.7e+44)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.02d+49)) .or. (.not. (y <= 5.7d+44))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = (t + (y * 230661.510616d0)) / (i + (y * ((y * ((y * (y + a)) + b)) + c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.02e+49) || !(y <= 5.7e+44)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.02e+49) or not (y <= 5.7e+44): tmp = x + ((z / y) - (a * (x / y))) else: tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + c))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.02e+49) || !(y <= 5.7e+44)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.02e+49) || ~((y <= 5.7e+44))) tmp = x + ((z / y) - (a * (x / y))); else tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.02e+49], N[Not[LessEqual[y, 5.7e+44]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.02 \cdot 10^{+49} \lor \neg \left(y \leq 5.7 \cdot 10^{+44}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\
\end{array}
\end{array}
if y < -1.02e49 or 5.7000000000000003e44 < y Initial program 1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
Simplified1.1%
Taylor expanded in y around inf 65.3%
associate--l+65.3%
associate-/l*70.3%
Simplified70.3%
if -1.02e49 < y < 5.7000000000000003e44Initial program 97.6%
Taylor expanded in y around 0 85.3%
*-commutative85.3%
Simplified85.3%
Final simplification77.7%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -6.5e+46) (not (<= y 2.4e+44))) (+ x (- (/ z y) (* a (/ x y)))) (/ t (+ i (* y (+ (* y (+ (* y (+ y a)) b)) c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -6.5e+46) || !(y <= 2.4e+44)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = t / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-6.5d+46)) .or. (.not. (y <= 2.4d+44))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = t / (i + (y * ((y * ((y * (y + a)) + b)) + c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -6.5e+46) || !(y <= 2.4e+44)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = t / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -6.5e+46) or not (y <= 2.4e+44): tmp = x + ((z / y) - (a * (x / y))) else: tmp = t / (i + (y * ((y * ((y * (y + a)) + b)) + c))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -6.5e+46) || !(y <= 2.4e+44)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); else tmp = Float64(t / Float64(i + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -6.5e+46) || ~((y <= 2.4e+44))) tmp = x + ((z / y) - (a * (x / y))); else tmp = t / (i + (y * ((y * ((y * (y + a)) + b)) + c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -6.5e+46], N[Not[LessEqual[y, 2.4e+44]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(i + N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.5 \cdot 10^{+46} \lor \neg \left(y \leq 2.4 \cdot 10^{+44}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\
\end{array}
\end{array}
if y < -6.50000000000000008e46 or 2.40000000000000013e44 < y Initial program 1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
fma-define1.1%
Simplified1.1%
Taylor expanded in y around inf 65.3%
associate--l+65.3%
associate-/l*70.3%
Simplified70.3%
if -6.50000000000000008e46 < y < 2.40000000000000013e44Initial program 97.6%
fma-define97.6%
fma-define97.6%
fma-define97.6%
fma-define97.6%
fma-define97.6%
fma-define97.6%
fma-define97.6%
Simplified97.6%
Taylor expanded in t around inf 70.5%
Final simplification70.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -2.2e+132)
t_1
(if (<= y -6.2e-48)
(/ (* y (+ x (/ z y))) a)
(if (<= y 1.3e+18) (/ (+ 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 <= -2.2e+132) {
tmp = t_1;
} else if (y <= -6.2e-48) {
tmp = (y * (x + (z / y))) / a;
} else if (y <= 1.3e+18) {
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 <= (-2.2d+132)) then
tmp = t_1
else if (y <= (-6.2d-48)) then
tmp = (y * (x + (z / y))) / a
else if (y <= 1.3d+18) 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 <= -2.2e+132) {
tmp = t_1;
} else if (y <= -6.2e-48) {
tmp = (y * (x + (z / y))) / a;
} else if (y <= 1.3e+18) {
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 <= -2.2e+132: tmp = t_1 elif y <= -6.2e-48: tmp = (y * (x + (z / y))) / a elif y <= 1.3e+18: 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 <= -2.2e+132) tmp = t_1; elseif (y <= -6.2e-48) tmp = Float64(Float64(y * Float64(x + Float64(z / y))) / a); elseif (y <= 1.3e+18) 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 <= -2.2e+132) tmp = t_1; elseif (y <= -6.2e-48) tmp = (y * (x + (z / y))) / a; elseif (y <= 1.3e+18) 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, -2.2e+132], t$95$1, If[LessEqual[y, -6.2e-48], N[(N[(y * N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[y, 1.3e+18], 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 -2.2 \cdot 10^{+132}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -6.2 \cdot 10^{-48}:\\
\;\;\;\;\frac{y \cdot \left(x + \frac{z}{y}\right)}{a}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+18}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.19999999999999989e132 or 1.3e18 < y Initial program 2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
Simplified2.2%
Taylor expanded in y around inf 70.7%
associate--l+70.7%
associate-/l*76.4%
Simplified76.4%
if -2.19999999999999989e132 < y < -6.20000000000000033e-48Initial program 37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
Simplified37.0%
Taylor expanded in i around 0 37.0%
Taylor expanded in a around inf 33.9%
Taylor expanded in y around inf 28.5%
associate--l+28.5%
*-commutative28.5%
times-frac28.5%
Simplified28.5%
Taylor expanded in a around inf 31.5%
if -6.20000000000000033e-48 < y < 1.3e18Initial program 99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in y around 0 47.2%
Taylor expanded in i around inf 59.6%
*-commutative59.6%
Simplified59.6%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -9e+136)
x
(if (<= y -2.55e-48)
(/ (* y (+ x (/ z y))) a)
(if (<= y 1.3e+17) (/ (+ 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 <= -9e+136) {
tmp = x;
} else if (y <= -2.55e-48) {
tmp = (y * (x + (z / y))) / a;
} else if (y <= 1.3e+17) {
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 <= (-9d+136)) then
tmp = x
else if (y <= (-2.55d-48)) then
tmp = (y * (x + (z / y))) / a
else if (y <= 1.3d+17) 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 <= -9e+136) {
tmp = x;
} else if (y <= -2.55e-48) {
tmp = (y * (x + (z / y))) / a;
} else if (y <= 1.3e+17) {
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 <= -9e+136: tmp = x elif y <= -2.55e-48: tmp = (y * (x + (z / y))) / a elif y <= 1.3e+17: 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 <= -9e+136) tmp = x; elseif (y <= -2.55e-48) tmp = Float64(Float64(y * Float64(x + Float64(z / y))) / a); elseif (y <= 1.3e+17) 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 <= -9e+136) tmp = x; elseif (y <= -2.55e-48) tmp = (y * (x + (z / y))) / a; elseif (y <= 1.3e+17) 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, -9e+136], x, If[LessEqual[y, -2.55e-48], N[(N[(y * N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[y, 1.3e+17], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9 \cdot 10^{+136}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -2.55 \cdot 10^{-48}:\\
\;\;\;\;\frac{y \cdot \left(x + \frac{z}{y}\right)}{a}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+17}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -8.9999999999999999e136 or 1.3e17 < y Initial program 2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
Simplified2.2%
Taylor expanded in y around inf 61.8%
if -8.9999999999999999e136 < y < -2.55000000000000006e-48Initial program 33.0%
fma-define33.0%
fma-define33.0%
fma-define33.0%
fma-define33.0%
fma-define33.0%
fma-define33.0%
fma-define33.0%
Simplified33.0%
Taylor expanded in i around 0 33.0%
Taylor expanded in a around inf 30.3%
Taylor expanded in y around inf 28.4%
associate--l+28.4%
*-commutative28.4%
times-frac28.4%
Simplified28.4%
Taylor expanded in a around inf 33.5%
if -2.55000000000000006e-48 < y < 1.3e17Initial program 99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in y around 0 47.2%
Taylor expanded in i around inf 59.6%
*-commutative59.6%
Simplified59.6%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -2.2e+132)
x
(if (<= y -6.2e-48)
(* y (/ x a))
(if (<= y 1.65e+16) (/ (+ 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 <= -2.2e+132) {
tmp = x;
} else if (y <= -6.2e-48) {
tmp = y * (x / a);
} else if (y <= 1.65e+16) {
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 <= (-2.2d+132)) then
tmp = x
else if (y <= (-6.2d-48)) then
tmp = y * (x / a)
else if (y <= 1.65d+16) 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 <= -2.2e+132) {
tmp = x;
} else if (y <= -6.2e-48) {
tmp = y * (x / a);
} else if (y <= 1.65e+16) {
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 <= -2.2e+132: tmp = x elif y <= -6.2e-48: tmp = y * (x / a) elif y <= 1.65e+16: 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 <= -2.2e+132) tmp = x; elseif (y <= -6.2e-48) tmp = Float64(y * Float64(x / a)); elseif (y <= 1.65e+16) 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 <= -2.2e+132) tmp = x; elseif (y <= -6.2e-48) tmp = y * (x / a); elseif (y <= 1.65e+16) 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, -2.2e+132], x, If[LessEqual[y, -6.2e-48], N[(y * N[(x / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e+16], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.2 \cdot 10^{+132}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -6.2 \cdot 10^{-48}:\\
\;\;\;\;y \cdot \frac{x}{a}\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{+16}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -2.19999999999999989e132 or 1.65e16 < y Initial program 2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
Simplified2.2%
Taylor expanded in y around inf 59.7%
if -2.19999999999999989e132 < y < -6.20000000000000033e-48Initial program 37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
Simplified37.0%
Taylor expanded in i around 0 37.0%
Taylor expanded in a around inf 33.9%
Taylor expanded in y around inf 28.5%
associate--l+28.5%
*-commutative28.5%
times-frac28.5%
Simplified28.5%
Taylor expanded in y around inf 26.1%
if -6.20000000000000033e-48 < y < 1.65e16Initial program 99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in y around 0 47.2%
Taylor expanded in i around inf 59.6%
*-commutative59.6%
Simplified59.6%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -2.5e+132) x (if (<= y -6.2e-48) (* y (/ x a)) (if (<= y 1.65e+16) (/ 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 <= -2.5e+132) {
tmp = x;
} else if (y <= -6.2e-48) {
tmp = y * (x / a);
} else if (y <= 1.65e+16) {
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 <= (-2.5d+132)) then
tmp = x
else if (y <= (-6.2d-48)) then
tmp = y * (x / a)
else if (y <= 1.65d+16) 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 <= -2.5e+132) {
tmp = x;
} else if (y <= -6.2e-48) {
tmp = y * (x / a);
} else if (y <= 1.65e+16) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -2.5e+132: tmp = x elif y <= -6.2e-48: tmp = y * (x / a) elif y <= 1.65e+16: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -2.5e+132) tmp = x; elseif (y <= -6.2e-48) tmp = Float64(y * Float64(x / a)); elseif (y <= 1.65e+16) 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 <= -2.5e+132) tmp = x; elseif (y <= -6.2e-48) tmp = y * (x / a); elseif (y <= 1.65e+16) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -2.5e+132], x, If[LessEqual[y, -6.2e-48], N[(y * N[(x / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e+16], N[(t / i), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.5 \cdot 10^{+132}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -6.2 \cdot 10^{-48}:\\
\;\;\;\;y \cdot \frac{x}{a}\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{+16}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -2.5000000000000001e132 or 1.65e16 < y Initial program 2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
Simplified2.2%
Taylor expanded in y around inf 59.7%
if -2.5000000000000001e132 < y < -6.20000000000000033e-48Initial program 37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
Simplified37.0%
Taylor expanded in i around 0 37.0%
Taylor expanded in a around inf 33.9%
Taylor expanded in y around inf 28.5%
associate--l+28.5%
*-commutative28.5%
times-frac28.5%
Simplified28.5%
Taylor expanded in y around inf 26.1%
if -6.20000000000000033e-48 < y < 1.65e16Initial program 99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in y around 0 51.2%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -2.2e+132) x (if (<= y -2e-49) (* x (/ y a)) (if (<= y 1.6e+16) (/ 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 <= -2.2e+132) {
tmp = x;
} else if (y <= -2e-49) {
tmp = x * (y / a);
} else if (y <= 1.6e+16) {
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 <= (-2.2d+132)) then
tmp = x
else if (y <= (-2d-49)) then
tmp = x * (y / a)
else if (y <= 1.6d+16) 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 <= -2.2e+132) {
tmp = x;
} else if (y <= -2e-49) {
tmp = x * (y / a);
} else if (y <= 1.6e+16) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -2.2e+132: tmp = x elif y <= -2e-49: tmp = x * (y / a) elif y <= 1.6e+16: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -2.2e+132) tmp = x; elseif (y <= -2e-49) tmp = Float64(x * Float64(y / a)); elseif (y <= 1.6e+16) 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 <= -2.2e+132) tmp = x; elseif (y <= -2e-49) tmp = x * (y / a); elseif (y <= 1.6e+16) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -2.2e+132], x, If[LessEqual[y, -2e-49], N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e+16], N[(t / i), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.2 \cdot 10^{+132}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -2 \cdot 10^{-49}:\\
\;\;\;\;x \cdot \frac{y}{a}\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{+16}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -2.19999999999999989e132 or 1.6e16 < y Initial program 2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
fma-define2.2%
Simplified2.2%
Taylor expanded in y around inf 59.7%
if -2.19999999999999989e132 < y < -1.99999999999999987e-49Initial program 37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
fma-define37.0%
Simplified37.0%
Taylor expanded in i around 0 37.0%
Taylor expanded in a around inf 33.9%
Taylor expanded in y around inf 26.0%
associate-/l*26.0%
Simplified26.0%
if -1.99999999999999987e-49 < y < 1.6e16Initial program 99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in y around 0 51.2%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -2.6e-48) x (if (<= y 3.25e+16) (/ 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 <= -2.6e-48) {
tmp = x;
} else if (y <= 3.25e+16) {
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 <= (-2.6d-48)) then
tmp = x
else if (y <= 3.25d+16) 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 <= -2.6e-48) {
tmp = x;
} else if (y <= 3.25e+16) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -2.6e-48: tmp = x elif y <= 3.25e+16: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -2.6e-48) tmp = x; elseif (y <= 3.25e+16) 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 <= -2.6e-48) tmp = x; elseif (y <= 3.25e+16) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -2.6e-48], x, If[LessEqual[y, 3.25e+16], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.6 \cdot 10^{-48}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 3.25 \cdot 10^{+16}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -2.59999999999999987e-48 or 3.25e16 < y Initial program 10.0%
fma-define10.0%
fma-define10.0%
fma-define10.0%
fma-define10.0%
fma-define10.0%
fma-define10.0%
fma-define10.0%
Simplified10.0%
Taylor expanded in y around inf 48.6%
if -2.59999999999999987e-48 < y < 3.25e16Initial program 99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in y around 0 51.2%
(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 48.6%
fma-define48.6%
fma-define48.6%
fma-define48.6%
fma-define48.6%
fma-define48.6%
fma-define48.6%
fma-define48.6%
Simplified48.6%
Taylor expanded in y around inf 29.2%
herbie shell --seed 2024165
(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)))