
(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 14 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 (or (<= y -1.6e+42) (not (<= y 1.9e+70)))
(- (+ x (/ z y)) (* a (/ x y)))
(/
(+ (* y (+ (* y (+ (* y (+ z (* y x))) 27464.7644705)) 230661.510616)) t)
(+ i (* y (+ c (* y (+ b (* y (+ y a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.6e+42) || !(y <= 1.9e+70)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = ((y * ((y * ((y * (z + (y * x))) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
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.6d+42)) .or. (.not. (y <= 1.9d+70))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = ((y * ((y * ((y * (z + (y * x))) + 27464.7644705d0)) + 230661.510616d0)) + t) / (i + (y * (c + (y * (b + (y * (y + a)))))))
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.6e+42) || !(y <= 1.9e+70)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = ((y * ((y * ((y * (z + (y * x))) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.6e+42) or not (y <= 1.9e+70): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = ((y * ((y * ((y * (z + (y * x))) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * (b + (y * (y + a))))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.6e+42) || !(y <= 1.9e+70)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(z + Float64(y * x))) + 27464.7644705)) + 230661.510616)) + t) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.6e+42) || ~((y <= 1.9e+70))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = ((y * ((y * ((y * (z + (y * x))) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * (b + (y * (y + a))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.6e+42], N[Not[LessEqual[y, 1.9e+70]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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[(i + N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.6 \cdot 10^{+42} \lor \neg \left(y \leq 1.9 \cdot 10^{+70}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(z + y \cdot x\right) + 27464.7644705\right) + 230661.510616\right) + t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)}\\
\end{array}
\end{array}
if y < -1.60000000000000001e42 or 1.8999999999999999e70 < y Initial program 0.5%
fma-define0.5%
fma-define0.5%
fma-define0.5%
fma-define0.5%
fma-define0.5%
fma-define0.5%
fma-define0.5%
Simplified0.5%
Taylor expanded in y around inf 70.2%
associate-/l*73.8%
Simplified73.8%
if -1.60000000000000001e42 < y < 1.8999999999999999e70Initial program 96.4%
Final simplification86.8%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.35e+37) (not (<= y 1.9e+70)))
(- (+ x (/ z y)) (* a (/ x y)))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ i (* y (+ c (* y (+ b (* y (+ y a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.35e+37) || !(y <= 1.9e+70)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
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.35d+37)) .or. (.not. (y <= 1.9d+70))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (i + (y * (c + (y * (b + (y * (y + a)))))))
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.35e+37) || !(y <= 1.9e+70)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.35e+37) or not (y <= 1.9e+70): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * (y + a))))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.35e+37) || !(y <= 1.9e+70)) tmp = Float64(Float64(x + 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(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.35e+37) || ~((y <= 1.9e+70))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * (y + a))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.35e+37], N[Not[LessEqual[y, 1.9e+70]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $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[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.35 \cdot 10^{+37} \lor \neg \left(y \leq 1.9 \cdot 10^{+70}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)}\\
\end{array}
\end{array}
if y < -1.34999999999999993e37 or 1.8999999999999999e70 < y Initial program 0.5%
fma-define0.5%
fma-define0.5%
fma-define0.5%
fma-define0.5%
fma-define0.5%
fma-define0.5%
fma-define0.5%
Simplified0.5%
Taylor expanded in y around inf 70.2%
associate-/l*73.8%
Simplified73.8%
if -1.34999999999999993e37 < y < 1.8999999999999999e70Initial program 96.4%
Taylor expanded in x around 0 91.8%
Final simplification84.1%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -85000000000.0) (not (<= y 4.9e+64)))
(- (+ x (/ z y)) (* a (/ x y)))
(/
(+ (* y (+ (* y (+ (* y (+ z (* y x))) 27464.7644705)) 230661.510616)) t)
(+ i (* y (+ c (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -85000000000.0) || !(y <= 4.9e+64)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = ((y * ((y * ((y * (z + (y * x))) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-85000000000.0d0)) .or. (.not. (y <= 4.9d+64))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = ((y * ((y * ((y * (z + (y * x))) + 27464.7644705d0)) + 230661.510616d0)) + t) / (i + (y * (c + (y * b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -85000000000.0) || !(y <= 4.9e+64)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = ((y * ((y * ((y * (z + (y * x))) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -85000000000.0) or not (y <= 4.9e+64): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = ((y * ((y * ((y * (z + (y * x))) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -85000000000.0) || !(y <= 4.9e+64)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(z + Float64(y * x))) + 27464.7644705)) + 230661.510616)) + t) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -85000000000.0) || ~((y <= 4.9e+64))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = ((y * ((y * ((y * (z + (y * x))) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -85000000000.0], N[Not[LessEqual[y, 4.9e+64]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -85000000000 \lor \neg \left(y \leq 4.9 \cdot 10^{+64}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(z + y \cdot x\right) + 27464.7644705\right) + 230661.510616\right) + t}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -8.5e10 or 4.9000000000000003e64 < y Initial program 3.9%
fma-define3.9%
fma-define3.9%
fma-define3.9%
fma-define3.9%
fma-define3.9%
fma-define3.9%
fma-define3.9%
Simplified3.9%
Taylor expanded in y around inf 68.8%
associate-/l*72.2%
Simplified72.2%
if -8.5e10 < y < 4.9000000000000003e64Initial program 97.0%
add-cube-cbrt96.9%
pow396.9%
Applied egg-rr96.9%
Taylor expanded in y around 0 88.6%
*-commutative88.6%
Simplified88.6%
Final simplification81.3%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -85000000000.0) (not (<= y 2.15e+70)))
(- (+ x (/ z y)) (* a (/ x y)))
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ i (* y (+ c (* y (+ b (* y (+ y a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -85000000000.0) || !(y <= 2.15e+70)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
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 <= (-85000000000.0d0)) .or. (.not. (y <= 2.15d+70))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * (c + (y * (b + (y * (y + a)))))))
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 <= -85000000000.0) || !(y <= 2.15e+70)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -85000000000.0) or not (y <= 2.15e+70): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * (y + a))))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -85000000000.0) || !(y <= 2.15e+70)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -85000000000.0) || ~((y <= 2.15e+70))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * (y + a))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -85000000000.0], N[Not[LessEqual[y, 2.15e+70]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -85000000000 \lor \neg \left(y \leq 2.15 \cdot 10^{+70}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)}\\
\end{array}
\end{array}
if y < -8.5e10 or 2.15e70 < y Initial program 3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
Simplified3.1%
Taylor expanded in y around inf 69.3%
associate-/l*72.8%
Simplified72.8%
if -8.5e10 < y < 2.15e70Initial program 97.0%
Taylor expanded in y around 0 86.3%
*-commutative86.3%
Simplified86.3%
Final simplification80.3%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -4e-37) (not (<= y 4.9e+64)))
(- (+ x (/ z y)) (* a (/ x y)))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ i (* y (+ c (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -4e-37) || !(y <= 4.9e+64)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-4d-37)) .or. (.not. (y <= 4.9d+64))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (i + (y * (c + (y * b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -4e-37) || !(y <= 4.9e+64)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -4e-37) or not (y <= 4.9e+64): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -4e-37) || !(y <= 4.9e+64)) tmp = Float64(Float64(x + 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(c + Float64(y * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -4e-37) || ~((y <= 4.9e+64))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -4e-37], N[Not[LessEqual[y, 4.9e+64]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $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[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{-37} \lor \neg \left(y \leq 4.9 \cdot 10^{+64}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\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)}\\
\end{array}
\end{array}
if y < -4.00000000000000027e-37 or 4.9000000000000003e64 < y Initial program 9.5%
fma-define9.5%
fma-define9.5%
fma-define9.5%
fma-define9.5%
fma-define9.5%
fma-define9.5%
fma-define9.5%
Simplified9.5%
Taylor expanded in y around inf 65.8%
associate-/l*69.0%
Simplified69.0%
if -4.00000000000000027e-37 < y < 4.9000000000000003e64Initial program 96.9%
fma-define96.9%
fma-define96.9%
fma-define96.9%
fma-define96.9%
fma-define96.9%
fma-define96.9%
fma-define96.9%
Simplified96.9%
Taylor expanded in x around 0 94.7%
+-commutative94.7%
Simplified94.7%
Taylor expanded in y around 0 89.5%
*-commutative89.5%
Simplified89.5%
Final simplification79.8%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -66000000000.0) (not (<= y 1.4e+70))) (- (+ x (/ z y)) (* a (/ x y))) (/ (+ t (* y 230661.510616)) (+ i (* y (+ c (* y (+ b (* y (+ y a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -66000000000.0) || !(y <= 1.4e+70)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
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 <= (-66000000000.0d0)) .or. (.not. (y <= 1.4d+70))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * (b + (y * (y + a)))))))
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 <= -66000000000.0) || !(y <= 1.4e+70)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -66000000000.0) or not (y <= 1.4e+70): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * (y + a))))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -66000000000.0) || !(y <= 1.4e+70)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -66000000000.0) || ~((y <= 1.4e+70))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * (y + a))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -66000000000.0], N[Not[LessEqual[y, 1.4e+70]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -66000000000 \lor \neg \left(y \leq 1.4 \cdot 10^{+70}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)}\\
\end{array}
\end{array}
if y < -6.6e10 or 1.39999999999999995e70 < y Initial program 3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
Simplified3.1%
Taylor expanded in y around inf 69.3%
associate-/l*72.8%
Simplified72.8%
if -6.6e10 < y < 1.39999999999999995e70Initial program 97.0%
Taylor expanded in y around 0 83.9%
*-commutative83.9%
Simplified83.9%
Final simplification79.0%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -4e-37) (not (<= y 3e+50)))
(- (+ x (/ z y)) (* a (/ x y)))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ i (* y c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -4e-37) || !(y <= 3e+50)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * 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 <= (-4d-37)) .or. (.not. (y <= 3d+50))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (i + (y * 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 <= -4e-37) || !(y <= 3e+50)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -4e-37) or not (y <= 3e+50): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * c)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -4e-37) || !(y <= 3e+50)) tmp = Float64(Float64(x + 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 * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -4e-37) || ~((y <= 3e+50))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -4e-37], N[Not[LessEqual[y, 3e+50]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $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 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{-37} \lor \neg \left(y \leq 3 \cdot 10^{+50}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + y \cdot c}\\
\end{array}
\end{array}
if y < -4.00000000000000027e-37 or 2.9999999999999998e50 < y Initial program 10.2%
fma-define10.2%
fma-define10.2%
fma-define10.2%
fma-define10.2%
fma-define10.2%
fma-define10.2%
fma-define10.2%
Simplified10.2%
Taylor expanded in y around inf 64.8%
associate-/l*67.9%
Simplified67.9%
if -4.00000000000000027e-37 < y < 2.9999999999999998e50Initial program 97.6%
fma-define97.5%
fma-define97.5%
fma-define97.5%
fma-define97.5%
fma-define97.5%
fma-define97.5%
fma-define97.5%
Simplified97.5%
Taylor expanded in x around 0 95.3%
+-commutative95.3%
Simplified95.3%
Taylor expanded in y around 0 81.5%
Final simplification75.0%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -0.11) (not (<= y 1.4e+70))) (- (+ x (/ z y)) (* a (/ x y))) (/ t (+ i (* y (+ c (* y (+ b (* y (+ y a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -0.11) || !(y <= 1.4e+70)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = t / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
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 <= (-0.11d0)) .or. (.not. (y <= 1.4d+70))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = t / (i + (y * (c + (y * (b + (y * (y + a)))))))
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 <= -0.11) || !(y <= 1.4e+70)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = t / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -0.11) or not (y <= 1.4e+70): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = t / (i + (y * (c + (y * (b + (y * (y + a))))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -0.11) || !(y <= 1.4e+70)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -0.11) || ~((y <= 1.4e+70))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = t / (i + (y * (c + (y * (b + (y * (y + a))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -0.11], N[Not[LessEqual[y, 1.4e+70]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.11 \lor \neg \left(y \leq 1.4 \cdot 10^{+70}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)}\\
\end{array}
\end{array}
if y < -0.110000000000000001 or 1.39999999999999995e70 < y Initial program 4.0%
fma-define4.0%
fma-define4.0%
fma-define4.0%
fma-define4.0%
fma-define4.0%
fma-define4.0%
fma-define4.0%
Simplified4.0%
Taylor expanded in y around inf 68.7%
associate-/l*72.2%
Simplified72.2%
if -0.110000000000000001 < y < 1.39999999999999995e70Initial program 97.0%
fma-define97.0%
fma-define97.0%
fma-define97.0%
fma-define97.0%
fma-define97.0%
fma-define97.0%
fma-define97.0%
Simplified97.0%
Taylor expanded in t around inf 73.4%
Final simplification72.9%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.2e-49) (not (<= y 3e-12))) (- (+ x (/ z y)) (* a (/ x y))) (/ (+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.2e-49) || !(y <= 3e-12)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / 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 <= (-1.2d-49)) .or. (.not. (y <= 3d-12))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / 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 <= -1.2e-49) || !(y <= 3e-12)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.2e-49) or not (y <= 3e-12): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.2e-49) || !(y <= 3e-12)) tmp = Float64(Float64(x + 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)))))) / i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.2e-49) || ~((y <= 3e-12))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.2e-49], N[Not[LessEqual[y, 3e-12]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $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] / i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{-49} \lor \neg \left(y \leq 3 \cdot 10^{-12}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i}\\
\end{array}
\end{array}
if y < -1.19999999999999996e-49 or 3.0000000000000001e-12 < y Initial program 14.7%
fma-define14.7%
fma-define14.7%
fma-define14.7%
fma-define14.7%
fma-define14.7%
fma-define14.7%
fma-define14.7%
Simplified14.7%
Taylor expanded in y around inf 60.9%
associate-/l*63.8%
Simplified63.8%
if -1.19999999999999996e-49 < y < 3.0000000000000001e-12Initial program 99.8%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around 0 99.0%
+-commutative99.0%
Simplified99.0%
Taylor expanded in y around 0 68.7%
Final simplification66.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.2e-49) (not (<= y 3e-12))) (- (+ x (/ z y)) (* a (/ x y))) (/ (+ t (* y (+ 230661.510616 (* y 27464.7644705)))) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.2e-49) || !(y <= 3e-12)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / 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 <= (-1.2d-49)) .or. (.not. (y <= 3d-12))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / 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 <= -1.2e-49) || !(y <= 3e-12)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.2e-49) or not (y <= 3e-12): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.2e-49) || !(y <= 3e-12)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.2e-49) || ~((y <= 3e-12))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.2e-49], N[Not[LessEqual[y, 3e-12]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{-49} \lor \neg \left(y \leq 3 \cdot 10^{-12}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i}\\
\end{array}
\end{array}
if y < -1.19999999999999996e-49 or 3.0000000000000001e-12 < y Initial program 14.7%
fma-define14.7%
fma-define14.7%
fma-define14.7%
fma-define14.7%
fma-define14.7%
fma-define14.7%
fma-define14.7%
Simplified14.7%
Taylor expanded in y around inf 60.9%
associate-/l*63.8%
Simplified63.8%
if -1.19999999999999996e-49 < y < 3.0000000000000001e-12Initial program 99.8%
Taylor expanded in y around 0 93.7%
*-commutative93.7%
Simplified93.7%
Taylor expanded in i around inf 68.0%
Final simplification65.8%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.2e-49) (not (<= y 1850000.0))) (- (+ x (/ z y)) (* a (/ x y))) (/ t i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.2e-49) || !(y <= 1850000.0)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = t / 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 <= (-1.2d-49)) .or. (.not. (y <= 1850000.0d0))) then
tmp = (x + (z / y)) - (a * (x / y))
else
tmp = t / 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 <= -1.2e-49) || !(y <= 1850000.0)) {
tmp = (x + (z / y)) - (a * (x / y));
} else {
tmp = t / i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.2e-49) or not (y <= 1850000.0): tmp = (x + (z / y)) - (a * (x / y)) else: tmp = t / i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.2e-49) || !(y <= 1850000.0)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(a * Float64(x / y))); else tmp = Float64(t / i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.2e-49) || ~((y <= 1850000.0))) tmp = (x + (z / y)) - (a * (x / y)); else tmp = t / i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.2e-49], N[Not[LessEqual[y, 1850000.0]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{-49} \lor \neg \left(y \leq 1850000\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - a \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i}\\
\end{array}
\end{array}
if y < -1.19999999999999996e-49 or 1.85e6 < y Initial program 14.1%
fma-define14.1%
fma-define14.0%
fma-define14.0%
fma-define14.0%
fma-define14.0%
fma-define14.0%
fma-define14.0%
Simplified14.0%
Taylor expanded in y around inf 61.3%
associate-/l*64.3%
Simplified64.3%
if -1.19999999999999996e-49 < y < 1.85e6Initial program 99.8%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in y around 0 61.1%
Final simplification62.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -1.55e+89) x (if (<= y -1.2e-49) (* x (/ y a)) (if (<= y 11.2) (/ t i) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.55e+89) {
tmp = x;
} else if (y <= -1.2e-49) {
tmp = x * (y / a);
} else if (y <= 11.2) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-1.55d+89)) then
tmp = x
else if (y <= (-1.2d-49)) then
tmp = x * (y / a)
else if (y <= 11.2d0) then
tmp = t / i
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.55e+89) {
tmp = x;
} else if (y <= -1.2e-49) {
tmp = x * (y / a);
} else if (y <= 11.2) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.55e+89: tmp = x elif y <= -1.2e-49: tmp = x * (y / a) elif y <= 11.2: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.55e+89) tmp = x; elseif (y <= -1.2e-49) tmp = Float64(x * Float64(y / a)); elseif (y <= 11.2) tmp = Float64(t / i); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -1.55e+89) tmp = x; elseif (y <= -1.2e-49) tmp = x * (y / a); elseif (y <= 11.2) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.55e+89], x, If[LessEqual[y, -1.2e-49], N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 11.2], N[(t / i), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.55 \cdot 10^{+89}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -1.2 \cdot 10^{-49}:\\
\;\;\;\;x \cdot \frac{y}{a}\\
\mathbf{elif}\;y \leq 11.2:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.55e89 or 11.199999999999999 < y Initial program 6.7%
fma-define6.7%
fma-define6.7%
fma-define6.7%
fma-define6.7%
fma-define6.7%
fma-define6.7%
fma-define6.7%
Simplified6.7%
Taylor expanded in y around inf 61.9%
if -1.55e89 < y < -1.19999999999999996e-49Initial program 45.6%
fma-define45.6%
fma-define45.6%
fma-define45.6%
fma-define45.6%
fma-define45.6%
fma-define45.6%
fma-define45.6%
Simplified45.6%
Taylor expanded in a around inf 11.0%
Taylor expanded in y around inf 24.4%
associate-/l*28.2%
Simplified28.2%
if -1.19999999999999996e-49 < y < 11.199999999999999Initial program 99.8%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in y around 0 61.1%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -6.6e+24) x (if (<= y 220000000000.0) (/ t i) x)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -6.6e+24) {
tmp = x;
} else if (y <= 220000000000.0) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-6.6d+24)) then
tmp = x
else if (y <= 220000000000.0d0) then
tmp = t / i
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -6.6e+24) {
tmp = x;
} else if (y <= 220000000000.0) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -6.6e+24: tmp = x elif y <= 220000000000.0: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -6.6e+24) tmp = x; elseif (y <= 220000000000.0) tmp = Float64(t / i); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -6.6e+24) tmp = x; elseif (y <= 220000000000.0) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -6.6e+24], x, If[LessEqual[y, 220000000000.0], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.6 \cdot 10^{+24}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 220000000000:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -6.5999999999999998e24 or 2.2e11 < y Initial program 7.1%
fma-define7.1%
fma-define7.1%
fma-define7.1%
fma-define7.1%
fma-define7.1%
fma-define7.1%
fma-define7.1%
Simplified7.1%
Taylor expanded in y around inf 56.8%
if -6.5999999999999998e24 < y < 2.2e11Initial program 99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in y around 0 56.4%
(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 55.6%
fma-define55.6%
fma-define55.6%
fma-define55.6%
fma-define55.6%
fma-define55.6%
fma-define55.6%
fma-define55.6%
Simplified55.6%
Taylor expanded in y around inf 28.5%
herbie shell --seed 2024157
(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)))