
(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 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i): return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y (+ c (* y (+ b (* y (+ y a)))))) i)))
(if (or (<= y -3.8e+64) (not (<= y 1.12e+34)))
(- (+ (/ z y) x) (+ (/ a (/ y x)) (/ b (/ (* y y) x))))
(+
(/ t t_1)
(+
(/ (* x (pow y 4.0)) t_1)
(/ (* y (+ 230661.510616 (* y (+ (* y z) 27464.7644705)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * (c + (y * (b + (y * (y + a)))))) + i;
double tmp;
if ((y <= -3.8e+64) || !(y <= 1.12e+34)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t / t_1) + (((x * pow(y, 4.0)) / t_1) + ((y * (230661.510616 + (y * ((y * z) + 27464.7644705)))) / 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 = (y * (c + (y * (b + (y * (y + a)))))) + i
if ((y <= (-3.8d+64)) .or. (.not. (y <= 1.12d+34))) then
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)))
else
tmp = (t / t_1) + (((x * (y ** 4.0d0)) / t_1) + ((y * (230661.510616d0 + (y * ((y * z) + 27464.7644705d0)))) / 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 = (y * (c + (y * (b + (y * (y + a)))))) + i;
double tmp;
if ((y <= -3.8e+64) || !(y <= 1.12e+34)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t / t_1) + (((x * Math.pow(y, 4.0)) / t_1) + ((y * (230661.510616 + (y * ((y * z) + 27464.7644705)))) / t_1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * (c + (y * (b + (y * (y + a)))))) + i tmp = 0 if (y <= -3.8e+64) or not (y <= 1.12e+34): tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))) else: tmp = (t / t_1) + (((x * math.pow(y, 4.0)) / t_1) + ((y * (230661.510616 + (y * ((y * z) + 27464.7644705)))) / t_1)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i) tmp = 0.0 if ((y <= -3.8e+64) || !(y <= 1.12e+34)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(a / Float64(y / x)) + Float64(b / Float64(Float64(y * y) / x)))); else tmp = Float64(Float64(t / t_1) + Float64(Float64(Float64(x * (y ^ 4.0)) / t_1) + Float64(Float64(y * Float64(230661.510616 + Float64(y * Float64(Float64(y * z) + 27464.7644705)))) / t_1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * (c + (y * (b + (y * (y + a)))))) + i; tmp = 0.0; if ((y <= -3.8e+64) || ~((y <= 1.12e+34))) tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))); else tmp = (t / t_1) + (((x * (y ^ 4.0)) / t_1) + ((y * (230661.510616 + (y * ((y * z) + 27464.7644705)))) / t_1)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]}, If[Or[LessEqual[y, -3.8e+64], N[Not[LessEqual[y, 1.12e+34]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision] + N[(b / N[(N[(y * y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t / t$95$1), $MachinePrecision] + N[(N[(N[(x * N[Power[y, 4.0], $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(N[(y * N[(230661.510616 + N[(y * N[(N[(y * z), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{+64} \lor \neg \left(y \leq 1.12 \cdot 10^{+34}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \left(\frac{a}{\frac{y}{x}} + \frac{b}{\frac{y \cdot y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{t_1} + \left(\frac{x \cdot {y}^{4}}{t_1} + \frac{y \cdot \left(230661.510616 + y \cdot \left(y \cdot z + 27464.7644705\right)\right)}{t_1}\right)\\
\end{array}
\end{array}
if y < -3.8000000000000001e64 or 1.12e34 < y Initial program 3.0%
add-cbrt-cube1.3%
rem-cube-cbrt1.3%
add-cbrt-cube1.3%
*-commutative1.3%
*-commutative1.3%
fma-def1.3%
fma-def1.3%
Applied egg-rr1.3%
Taylor expanded in y around inf 58.2%
associate--r+58.2%
+-commutative58.2%
associate-*r/58.2%
metadata-eval58.2%
unpow258.2%
*-commutative58.2%
associate-/l*65.7%
unpow265.7%
*-commutative65.7%
associate-/l*65.6%
associate-/l*72.4%
unpow272.4%
Simplified72.4%
Taylor expanded in y around inf 75.0%
if -3.8000000000000001e64 < y < 1.12e34Initial program 95.6%
Taylor expanded in x around 0 95.7%
Final simplification86.3%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -4.5e+61) (not (<= y 1.12e+34)))
(- (+ (/ z y) x) (+ (/ a (/ y x)) (/ b (/ (* y y) x))))
(/
(+
t
(+
(* x (pow y 4.0))
(* y (+ 230661.510616 (* y (+ (* y z) 27464.7644705))))))
(+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -4.5e+61) || !(y <= 1.12e+34)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + ((x * pow(y, 4.0)) + (y * (230661.510616 + (y * ((y * z) + 27464.7644705)))))) / ((y * (c + (y * (b + (y * (y + a)))))) + 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 <= (-4.5d+61)) .or. (.not. (y <= 1.12d+34))) then
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)))
else
tmp = (t + ((x * (y ** 4.0d0)) + (y * (230661.510616d0 + (y * ((y * z) + 27464.7644705d0)))))) / ((y * (c + (y * (b + (y * (y + a)))))) + 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 <= -4.5e+61) || !(y <= 1.12e+34)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + ((x * Math.pow(y, 4.0)) + (y * (230661.510616 + (y * ((y * z) + 27464.7644705)))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -4.5e+61) or not (y <= 1.12e+34): tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))) else: tmp = (t + ((x * math.pow(y, 4.0)) + (y * (230661.510616 + (y * ((y * z) + 27464.7644705)))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -4.5e+61) || !(y <= 1.12e+34)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(a / Float64(y / x)) + Float64(b / Float64(Float64(y * y) / x)))); else tmp = Float64(Float64(t + Float64(Float64(x * (y ^ 4.0)) + Float64(y * Float64(230661.510616 + Float64(y * Float64(Float64(y * z) + 27464.7644705)))))) / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -4.5e+61) || ~((y <= 1.12e+34))) tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))); else tmp = (t + ((x * (y ^ 4.0)) + (y * (230661.510616 + (y * ((y * z) + 27464.7644705)))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -4.5e+61], N[Not[LessEqual[y, 1.12e+34]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision] + N[(b / N[(N[(y * y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(N[(x * N[Power[y, 4.0], $MachinePrecision]), $MachinePrecision] + N[(y * N[(230661.510616 + N[(y * N[(N[(y * z), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.5 \cdot 10^{+61} \lor \neg \left(y \leq 1.12 \cdot 10^{+34}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \left(\frac{a}{\frac{y}{x}} + \frac{b}{\frac{y \cdot y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + \left(x \cdot {y}^{4} + y \cdot \left(230661.510616 + y \cdot \left(y \cdot z + 27464.7644705\right)\right)\right)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\end{array}
\end{array}
if y < -4.5e61 or 1.12e34 < y Initial program 3.0%
add-cbrt-cube1.3%
rem-cube-cbrt1.3%
add-cbrt-cube1.3%
*-commutative1.3%
*-commutative1.3%
fma-def1.3%
fma-def1.3%
Applied egg-rr1.3%
Taylor expanded in y around inf 58.2%
associate--r+58.2%
+-commutative58.2%
associate-*r/58.2%
metadata-eval58.2%
unpow258.2%
*-commutative58.2%
associate-/l*65.7%
unpow265.7%
*-commutative65.7%
associate-/l*65.6%
associate-/l*72.4%
unpow272.4%
Simplified72.4%
Taylor expanded in y around inf 75.0%
if -4.5e61 < y < 1.12e34Initial program 95.6%
Taylor expanded in x around 0 95.6%
Final simplification86.3%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -6.2e+65) (not (<= y 1.12e+34)))
(- (+ (/ z y) x) (+ (/ a (/ y x)) (/ b (/ (* y y) x))))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -6.2e+65) || !(y <= 1.12e+34)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + 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 <= (-6.2d+65)) .or. (.not. (y <= 1.12d+34))) then
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + 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 <= -6.2e+65) || !(y <= 1.12e+34)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -6.2e+65) or not (y <= 1.12e+34): tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -6.2e+65) || !(y <= 1.12e+34)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(a / Float64(y / x)) + Float64(b / Float64(Float64(y * y) / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))))) / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -6.2e+65) || ~((y <= 1.12e+34))) tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -6.2e+65], N[Not[LessEqual[y, 1.12e+34]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision] + N[(b / N[(N[(y * y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.2 \cdot 10^{+65} \lor \neg \left(y \leq 1.12 \cdot 10^{+34}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \left(\frac{a}{\frac{y}{x}} + \frac{b}{\frac{y \cdot y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\end{array}
\end{array}
if y < -6.19999999999999981e65 or 1.12e34 < y Initial program 3.0%
add-cbrt-cube1.3%
rem-cube-cbrt1.3%
add-cbrt-cube1.3%
*-commutative1.3%
*-commutative1.3%
fma-def1.3%
fma-def1.3%
Applied egg-rr1.3%
Taylor expanded in y around inf 58.2%
associate--r+58.2%
+-commutative58.2%
associate-*r/58.2%
metadata-eval58.2%
unpow258.2%
*-commutative58.2%
associate-/l*65.7%
unpow265.7%
*-commutative65.7%
associate-/l*65.6%
associate-/l*72.4%
unpow272.4%
Simplified72.4%
Taylor expanded in y around inf 75.0%
if -6.19999999999999981e65 < y < 1.12e34Initial program 95.6%
Final simplification86.3%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -3.3e+70) (not (<= y 1.12e+34)))
(- (+ (/ z y) x) (+ (/ a (/ y x)) (/ b (/ (* y y) x))))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* x (* y y)))))))
(+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -3.3e+70) || !(y <= 1.12e+34)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + 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 <= (-3.3d+70)) .or. (.not. (y <= 1.12d+34))) then
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (x * (y * y))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + 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 <= -3.3e+70) || !(y <= 1.12e+34)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -3.3e+70) or not (y <= 1.12e+34): tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -3.3e+70) || !(y <= 1.12e+34)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(a / Float64(y / x)) + Float64(b / Float64(Float64(y * y) / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(x * Float64(y * y))))))) / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -3.3e+70) || ~((y <= 1.12e+34))) tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -3.3e+70], N[Not[LessEqual[y, 1.12e+34]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision] + N[(b / N[(N[(y * y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.3 \cdot 10^{+70} \lor \neg \left(y \leq 1.12 \cdot 10^{+34}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \left(\frac{a}{\frac{y}{x}} + \frac{b}{\frac{y \cdot y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + x \cdot \left(y \cdot y\right)\right)\right)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\end{array}
\end{array}
if y < -3.30000000000000016e70 or 1.12e34 < y Initial program 3.1%
add-cbrt-cube1.3%
rem-cube-cbrt1.3%
add-cbrt-cube1.3%
*-commutative1.3%
*-commutative1.3%
fma-def1.3%
fma-def1.3%
Applied egg-rr1.3%
Taylor expanded in y around inf 58.7%
associate--r+58.7%
+-commutative58.7%
associate-*r/58.7%
metadata-eval58.7%
unpow258.7%
*-commutative58.7%
associate-/l*66.2%
unpow266.2%
*-commutative66.2%
associate-/l*66.2%
associate-/l*73.1%
unpow273.1%
Simplified73.1%
Taylor expanded in y around inf 75.6%
if -3.30000000000000016e70 < y < 1.12e34Initial program 95.0%
Taylor expanded in z around 0 92.3%
*-commutative92.3%
*-commutative92.3%
unpow292.3%
Simplified92.3%
Final simplification84.8%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.2e+50) (not (<= y 1.12e+34)))
(- (+ (/ z y) x) (+ (/ a (/ y x)) (/ b (/ (* y y) x))))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ i (* y (+ c (* a (* y y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.2e+50) || !(y <= 1.12e+34)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (a * (y * y)))));
}
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+50)) .or. (.not. (y <= 1.12d+34))) then
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / (i + (y * (c + (a * (y * y)))))
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+50) || !(y <= 1.12e+34)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (a * (y * y)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.2e+50) or not (y <= 1.12e+34): tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (a * (y * y))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.2e+50) || !(y <= 1.12e+34)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(a / Float64(y / x)) + Float64(b / Float64(Float64(y * y) / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))))) / Float64(i + Float64(y * Float64(c + Float64(a * Float64(y * y)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.2e+50) || ~((y <= 1.12e+34))) tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (a * (y * y))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.2e+50], N[Not[LessEqual[y, 1.12e+34]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision] + N[(b / N[(N[(y * y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(a * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{+50} \lor \neg \left(y \leq 1.12 \cdot 10^{+34}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \left(\frac{a}{\frac{y}{x}} + \frac{b}{\frac{y \cdot y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{i + y \cdot \left(c + a \cdot \left(y \cdot y\right)\right)}\\
\end{array}
\end{array}
if y < -1.2000000000000001e50 or 1.12e34 < y Initial program 3.9%
add-cbrt-cube1.4%
rem-cube-cbrt1.4%
add-cbrt-cube1.4%
*-commutative1.4%
*-commutative1.4%
fma-def1.4%
fma-def1.4%
Applied egg-rr1.4%
Taylor expanded in y around inf 57.3%
associate--r+57.3%
+-commutative57.3%
associate-*r/57.3%
metadata-eval57.3%
unpow257.3%
*-commutative57.3%
associate-/l*64.6%
unpow264.6%
*-commutative64.6%
associate-/l*64.6%
associate-/l*71.3%
unpow271.3%
Simplified71.3%
Taylor expanded in y around inf 73.8%
if -1.2000000000000001e50 < y < 1.12e34Initial program 96.3%
Taylor expanded in a around inf 92.4%
*-commutative92.4%
unpow292.4%
Simplified92.4%
Final simplification83.8%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -3.1e+61) (not (<= y 2.9e+39)))
(- (+ (/ z y) x) (+ (/ a (/ y x)) (/ b (/ (* y y) x))))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ 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 <= -3.1e+61) || !(y <= 2.9e+39)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (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 <= (-3.1d+61)) .or. (.not. (y <= 2.9d+39))) then
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / (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 <= -3.1e+61) || !(y <= 2.9e+39)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -3.1e+61) or not (y <= 2.9e+39): tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -3.1e+61) || !(y <= 2.9e+39)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(a / Float64(y / x)) + Float64(b / Float64(Float64(y * y) / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))))) / 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 <= -3.1e+61) || ~((y <= 2.9e+39))) tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -3.1e+61], N[Not[LessEqual[y, 2.9e+39]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision] + N[(b / N[(N[(y * y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $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 -3.1 \cdot 10^{+61} \lor \neg \left(y \leq 2.9 \cdot 10^{+39}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \left(\frac{a}{\frac{y}{x}} + \frac{b}{\frac{y \cdot y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -3.0999999999999999e61 or 2.90000000000000029e39 < y Initial program 3.1%
add-cbrt-cube1.3%
rem-cube-cbrt1.3%
add-cbrt-cube1.3%
*-commutative1.3%
*-commutative1.3%
fma-def1.3%
fma-def1.3%
Applied egg-rr1.3%
Taylor expanded in y around inf 58.7%
associate--r+58.7%
+-commutative58.7%
associate-*r/58.7%
metadata-eval58.7%
unpow258.7%
*-commutative58.7%
associate-/l*66.2%
unpow266.2%
*-commutative66.2%
associate-/l*66.2%
associate-/l*73.1%
unpow273.1%
Simplified73.1%
Taylor expanded in y around inf 75.6%
if -3.0999999999999999e61 < y < 2.90000000000000029e39Initial program 95.0%
Taylor expanded in y around 0 89.5%
Final simplification83.3%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.2e+70) (not (<= y 5e+38)))
(- (+ (/ z y) x) (+ (/ a (/ y x)) (/ b (/ (* y y) x))))
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ (* y (+ c (* y (+ b (* y (+ y a)))))) 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+70) || !(y <= 5e+38)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * (b + (y * (y + a)))))) + 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+70)) .or. (.not. (y <= 5d+38))) then
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)))
else
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / ((y * (c + (y * (b + (y * (y + a)))))) + 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+70) || !(y <= 5e+38)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.2e+70) or not (y <= 5e+38): tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))) else: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * (b + (y * (y + a)))))) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.2e+70) || !(y <= 5e+38)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(a / Float64(y / x)) + Float64(b / Float64(Float64(y * y) / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.2e+70) || ~((y <= 5e+38))) tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))); else tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * (b + (y * (y + a)))))) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.2e+70], N[Not[LessEqual[y, 5e+38]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision] + N[(b / N[(N[(y * y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{+70} \lor \neg \left(y \leq 5 \cdot 10^{+38}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \left(\frac{a}{\frac{y}{x}} + \frac{b}{\frac{y \cdot y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\end{array}
\end{array}
if y < -1.19999999999999993e70 or 4.9999999999999997e38 < y Initial program 3.1%
add-cbrt-cube1.4%
rem-cube-cbrt1.3%
add-cbrt-cube1.3%
*-commutative1.3%
*-commutative1.3%
fma-def1.3%
fma-def1.3%
Applied egg-rr1.3%
Taylor expanded in y around inf 59.2%
associate--r+59.2%
+-commutative59.2%
associate-*r/59.2%
metadata-eval59.2%
unpow259.2%
*-commutative59.2%
associate-/l*66.8%
unpow266.8%
*-commutative66.8%
associate-/l*66.8%
associate-/l*73.7%
unpow273.7%
Simplified73.7%
Taylor expanded in y around inf 76.3%
if -1.19999999999999993e70 < y < 4.9999999999999997e38Initial program 94.3%
Taylor expanded in y around 0 87.9%
*-commutative87.9%
Simplified87.9%
Final simplification82.7%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.2e+70) (not (<= y 4.4e+35)))
(- (+ (/ z y) x) (+ (/ a (/ y x)) (/ b (/ (* y y) x))))
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ i (* y (+ c (* (* y 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.2e+70) || !(y <= 4.4e+35)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + ((y * 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.2d+70)) .or. (.not. (y <= 4.4d+35))) then
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)))
else
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * (c + ((y * 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.2e+70) || !(y <= 4.4e+35)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + ((y * y) * (y + a)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.2e+70) or not (y <= 4.4e+35): tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))) else: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + ((y * y) * (y + a))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.2e+70) || !(y <= 4.4e+35)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(a / Float64(y / x)) + Float64(b / Float64(Float64(y * y) / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * Float64(c + Float64(Float64(y * 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.2e+70) || ~((y <= 4.4e+35))) tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))); else tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + ((y * y) * (y + a))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.2e+70], N[Not[LessEqual[y, 4.4e+35]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision] + N[(b / N[(N[(y * y), $MachinePrecision] / x), $MachinePrecision]), $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[(N[(y * y), $MachinePrecision] * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{+70} \lor \neg \left(y \leq 4.4 \cdot 10^{+35}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \left(\frac{a}{\frac{y}{x}} + \frac{b}{\frac{y \cdot y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(c + \left(y \cdot y\right) \cdot \left(y + a\right)\right)}\\
\end{array}
\end{array}
if y < -1.19999999999999993e70 or 4.3999999999999997e35 < y Initial program 3.1%
add-cbrt-cube1.4%
rem-cube-cbrt1.3%
add-cbrt-cube1.3%
*-commutative1.3%
*-commutative1.3%
fma-def1.3%
fma-def1.3%
Applied egg-rr1.3%
Taylor expanded in y around inf 59.2%
associate--r+59.2%
+-commutative59.2%
associate-*r/59.2%
metadata-eval59.2%
unpow259.2%
*-commutative59.2%
associate-/l*66.8%
unpow266.8%
*-commutative66.8%
associate-/l*66.8%
associate-/l*73.7%
unpow273.7%
Simplified73.7%
Taylor expanded in y around inf 76.3%
if -1.19999999999999993e70 < y < 4.3999999999999997e35Initial program 94.3%
Taylor expanded in y around 0 87.9%
*-commutative87.9%
Simplified87.9%
Taylor expanded in y around inf 85.8%
cube-mult85.8%
unpow285.8%
distribute-rgt-in85.8%
*-commutative85.8%
unpow285.8%
Simplified85.8%
Final simplification81.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ (/ z y) x) (+ (/ a (/ y x)) (/ b (/ (* y y) x))))))
(if (<= y -7.2e+45)
t_1
(if (<= y -3e-43)
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
i)
(if (<= y 2.1e+36)
(/ t (+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
double tmp;
if (y <= -7.2e+45) {
tmp = t_1;
} else if (y <= -3e-43) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / i;
} else if (y <= 2.1e+36) {
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + 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 = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)))
if (y <= (-7.2d+45)) then
tmp = t_1
else if (y <= (-3d-43)) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / i
else if (y <= 2.1d+36) then
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + 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 = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
double tmp;
if (y <= -7.2e+45) {
tmp = t_1;
} else if (y <= -3e-43) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / i;
} else if (y <= 2.1e+36) {
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))) tmp = 0 if y <= -7.2e+45: tmp = t_1 elif y <= -3e-43: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / i elif y <= 2.1e+36: tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(z / y) + x) - Float64(Float64(a / Float64(y / x)) + Float64(b / Float64(Float64(y * y) / x)))) tmp = 0.0 if (y <= -7.2e+45) tmp = t_1; elseif (y <= -3e-43) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))))) / i); elseif (y <= 2.1e+36) tmp = Float64(t / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))); tmp = 0.0; if (y <= -7.2e+45) tmp = t_1; elseif (y <= -3e-43) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / i; elseif (y <= 2.1e+36) tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision] + N[(b / N[(N[(y * y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.2e+45], t$95$1, If[LessEqual[y, -3e-43], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], If[LessEqual[y, 2.1e+36], N[(t / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\frac{z}{y} + x\right) - \left(\frac{a}{\frac{y}{x}} + \frac{b}{\frac{y \cdot y}{x}}\right)\\
\mathbf{if}\;y \leq -7.2 \cdot 10^{+45}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -3 \cdot 10^{-43}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{i}\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{+36}:\\
\;\;\;\;\frac{t}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -7.2e45 or 2.10000000000000004e36 < y Initial program 4.7%
add-cbrt-cube2.2%
rem-cube-cbrt2.2%
add-cbrt-cube2.2%
*-commutative2.2%
*-commutative2.2%
fma-def2.2%
fma-def2.2%
Applied egg-rr2.2%
Taylor expanded in y around inf 57.3%
associate--r+57.3%
+-commutative57.3%
associate-*r/57.3%
metadata-eval57.3%
unpow257.3%
*-commutative57.3%
associate-/l*64.6%
unpow264.6%
*-commutative64.6%
associate-/l*64.6%
associate-/l*71.3%
unpow271.3%
Simplified71.3%
Taylor expanded in y around inf 73.9%
if -7.2e45 < y < -3.00000000000000003e-43Initial program 71.5%
Taylor expanded in i around inf 53.6%
if -3.00000000000000003e-43 < y < 2.10000000000000004e36Initial program 98.9%
Taylor expanded in t around inf 81.0%
Final simplification75.9%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -4.3e+34) (not (<= y 1.58e+38))) (- (+ (/ z y) x) (+ (/ a (/ y x)) (/ b (/ (* y y) x)))) (/ (+ t (* y 230661.510616)) (+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -4.3e+34) || !(y <= 1.58e+38)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * 230661.510616)) / ((y * (c + (y * (b + (y * (y + a)))))) + 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 <= (-4.3d+34)) .or. (.not. (y <= 1.58d+38))) then
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)))
else
tmp = (t + (y * 230661.510616d0)) / ((y * (c + (y * (b + (y * (y + a)))))) + 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 <= -4.3e+34) || !(y <= 1.58e+38)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * 230661.510616)) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -4.3e+34) or not (y <= 1.58e+38): tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))) else: tmp = (t + (y * 230661.510616)) / ((y * (c + (y * (b + (y * (y + a)))))) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -4.3e+34) || !(y <= 1.58e+38)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(a / Float64(y / x)) + Float64(b / Float64(Float64(y * y) / x)))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -4.3e+34) || ~((y <= 1.58e+38))) tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))); else tmp = (t + (y * 230661.510616)) / ((y * (c + (y * (b + (y * (y + a)))))) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -4.3e+34], N[Not[LessEqual[y, 1.58e+38]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision] + N[(b / N[(N[(y * y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.3 \cdot 10^{+34} \lor \neg \left(y \leq 1.58 \cdot 10^{+38}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \left(\frac{a}{\frac{y}{x}} + \frac{b}{\frac{y \cdot y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\end{array}
\end{array}
if y < -4.29999999999999994e34 or 1.58e38 < y Initial program 6.3%
add-cbrt-cube3.0%
rem-cube-cbrt3.0%
add-cbrt-cube3.0%
*-commutative3.0%
*-commutative3.0%
fma-def3.0%
fma-def3.0%
Applied egg-rr3.0%
Taylor expanded in y around inf 56.4%
associate--r+56.4%
+-commutative56.4%
associate-*r/56.4%
metadata-eval56.4%
unpow256.4%
*-commutative56.4%
associate-/l*63.6%
unpow263.6%
*-commutative63.6%
associate-/l*63.6%
associate-/l*70.2%
unpow270.2%
Simplified70.2%
Taylor expanded in y around inf 72.8%
if -4.29999999999999994e34 < y < 1.58e38Initial program 95.5%
Taylor expanded in y around 0 88.7%
*-commutative88.7%
Simplified88.7%
Final simplification81.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -7.5e+36) (not (<= y 2.35e+36))) (- (+ (/ z y) x) (+ (/ a (/ y x)) (/ b (/ (* y y) x)))) (/ t (+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -7.5e+36) || !(y <= 2.35e+36)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + 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 <= (-7.5d+36)) .or. (.not. (y <= 2.35d+36))) then
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)))
else
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + 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 <= -7.5e+36) || !(y <= 2.35e+36)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -7.5e+36) or not (y <= 2.35e+36): tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))) else: tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -7.5e+36) || !(y <= 2.35e+36)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(a / Float64(y / x)) + Float64(b / Float64(Float64(y * y) / x)))); else tmp = Float64(t / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -7.5e+36) || ~((y <= 2.35e+36))) tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))); else tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -7.5e+36], N[Not[LessEqual[y, 2.35e+36]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision] + N[(b / N[(N[(y * y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.5 \cdot 10^{+36} \lor \neg \left(y \leq 2.35 \cdot 10^{+36}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \left(\frac{a}{\frac{y}{x}} + \frac{b}{\frac{y \cdot y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\end{array}
\end{array}
if y < -7.50000000000000054e36 or 2.34999999999999994e36 < y Initial program 6.3%
add-cbrt-cube3.0%
rem-cube-cbrt3.0%
add-cbrt-cube3.0%
*-commutative3.0%
*-commutative3.0%
fma-def3.0%
fma-def3.0%
Applied egg-rr3.0%
Taylor expanded in y around inf 56.4%
associate--r+56.4%
+-commutative56.4%
associate-*r/56.4%
metadata-eval56.4%
unpow256.4%
*-commutative56.4%
associate-/l*63.6%
unpow263.6%
*-commutative63.6%
associate-/l*63.6%
associate-/l*70.2%
unpow270.2%
Simplified70.2%
Taylor expanded in y around inf 72.8%
if -7.50000000000000054e36 < y < 2.34999999999999994e36Initial program 95.5%
Taylor expanded in t around inf 75.2%
Final simplification74.1%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.15e+45) (not (<= y 2.05e+37)))
(- (+ (/ z y) x) (+ (/ a (/ y x)) (/ b (/ (* y y) x))))
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ 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 <= -1.15e+45) || !(y <= 2.05e+37)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (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 <= (-1.15d+45)) .or. (.not. (y <= 2.05d+37))) then
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)))
else
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (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 <= -1.15e+45) || !(y <= 2.05e+37)) {
tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.15e+45) or not (y <= 2.05e+37): tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))) else: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.15e+45) || !(y <= 2.05e+37)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(a / Float64(y / x)) + Float64(b / Float64(Float64(y * y) / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / 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 <= -1.15e+45) || ~((y <= 2.05e+37))) tmp = ((z / y) + x) - ((a / (y / x)) + (b / ((y * y) / x))); else tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.15e+45], N[Not[LessEqual[y, 2.05e+37]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision] + N[(b / N[(N[(y * y), $MachinePrecision] / x), $MachinePrecision]), $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 * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.15 \cdot 10^{+45} \lor \neg \left(y \leq 2.05 \cdot 10^{+37}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \left(\frac{a}{\frac{y}{x}} + \frac{b}{\frac{y \cdot y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -1.15000000000000006e45 or 2.0499999999999999e37 < y Initial program 4.7%
add-cbrt-cube2.2%
rem-cube-cbrt2.2%
add-cbrt-cube2.2%
*-commutative2.2%
*-commutative2.2%
fma-def2.2%
fma-def2.2%
Applied egg-rr2.2%
Taylor expanded in y around inf 57.3%
associate--r+57.3%
+-commutative57.3%
associate-*r/57.3%
metadata-eval57.3%
unpow257.3%
*-commutative57.3%
associate-/l*64.6%
unpow264.6%
*-commutative64.6%
associate-/l*64.6%
associate-/l*71.3%
unpow271.3%
Simplified71.3%
Taylor expanded in y around inf 73.9%
if -1.15000000000000006e45 < y < 2.0499999999999999e37Initial program 95.5%
Taylor expanded in y around 0 89.7%
*-commutative89.7%
Simplified89.7%
Taylor expanded in y around 0 85.5%
Final simplification80.1%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -2.7e+31) (not (<= y 2.1e+34))) (- (+ (/ z y) x) (/ (* x a) y)) (/ t (+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.7e+31) || !(y <= 2.1e+34)) {
tmp = ((z / y) + x) - ((x * a) / y);
} else {
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + 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 <= (-2.7d+31)) .or. (.not. (y <= 2.1d+34))) then
tmp = ((z / y) + x) - ((x * a) / y)
else
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + 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 <= -2.7e+31) || !(y <= 2.1e+34)) {
tmp = ((z / y) + x) - ((x * a) / y);
} else {
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.7e+31) or not (y <= 2.1e+34): tmp = ((z / y) + x) - ((x * a) / y) else: tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.7e+31) || !(y <= 2.1e+34)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(x * a) / y)); else tmp = Float64(t / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2.7e+31) || ~((y <= 2.1e+34))) tmp = ((z / y) + x) - ((x * a) / y); else tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.7e+31], N[Not[LessEqual[y, 2.1e+34]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(t / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{+31} \lor \neg \left(y \leq 2.1 \cdot 10^{+34}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \frac{x \cdot a}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\end{array}
\end{array}
if y < -2.69999999999999986e31 or 2.10000000000000017e34 < y Initial program 6.2%
Taylor expanded in y around inf 69.6%
if -2.69999999999999986e31 < y < 2.10000000000000017e34Initial program 96.2%
Taylor expanded in t around inf 75.7%
Final simplification72.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ (/ z y) x) (/ (* x a) y))))
(if (<= y -1.15e+45)
t_1
(if (<= y -4.2e-178)
(/ (+ t (* y (+ 230661.510616 (* y 27464.7644705)))) i)
(if (<= y 3.1e+34) (/ t (+ i (* y c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = ((z / y) + x) - ((x * a) / y);
double tmp;
if (y <= -1.15e+45) {
tmp = t_1;
} else if (y <= -4.2e-178) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / i;
} else if (y <= 3.1e+34) {
tmp = t / (i + (y * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = ((z / y) + x) - ((x * a) / y)
if (y <= (-1.15d+45)) then
tmp = t_1
else if (y <= (-4.2d-178)) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / i
else if (y <= 3.1d+34) then
tmp = t / (i + (y * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = ((z / y) + x) - ((x * a) / y);
double tmp;
if (y <= -1.15e+45) {
tmp = t_1;
} else if (y <= -4.2e-178) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / i;
} else if (y <= 3.1e+34) {
tmp = t / (i + (y * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = ((z / y) + x) - ((x * a) / y) tmp = 0 if y <= -1.15e+45: tmp = t_1 elif y <= -4.2e-178: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / i elif y <= 3.1e+34: tmp = t / (i + (y * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(z / y) + x) - Float64(Float64(x * a) / y)) tmp = 0.0 if (y <= -1.15e+45) tmp = t_1; elseif (y <= -4.2e-178) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / i); elseif (y <= 3.1e+34) tmp = Float64(t / Float64(i + Float64(y * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = ((z / y) + x) - ((x * a) / y); tmp = 0.0; if (y <= -1.15e+45) tmp = t_1; elseif (y <= -4.2e-178) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / i; elseif (y <= 3.1e+34) tmp = t / (i + (y * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.15e+45], t$95$1, If[LessEqual[y, -4.2e-178], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], If[LessEqual[y, 3.1e+34], N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\frac{z}{y} + x\right) - \frac{x \cdot a}{y}\\
\mathbf{if}\;y \leq -1.15 \cdot 10^{+45}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -4.2 \cdot 10^{-178}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i}\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{+34}:\\
\;\;\;\;\frac{t}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.15000000000000006e45 or 3.09999999999999977e34 < y Initial program 4.7%
Taylor expanded in y around inf 71.2%
if -1.15000000000000006e45 < y < -4.2e-178Initial program 89.6%
Taylor expanded in y around 0 78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in i around inf 60.2%
if -4.2e-178 < y < 3.09999999999999977e34Initial program 98.6%
Taylor expanded in t around inf 80.7%
Taylor expanded in y around 0 78.5%
*-commutative78.5%
Simplified78.5%
Final simplification71.8%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -2.4e+31) (not (<= y 1.3e+37))) (- (+ (/ z y) x) (/ (* x a) y)) (/ t (+ i (* y (+ c (* a (* y y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.4e+31) || !(y <= 1.3e+37)) {
tmp = ((z / y) + x) - ((x * a) / y);
} else {
tmp = t / (i + (y * (c + (a * (y * y)))));
}
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.4d+31)) .or. (.not. (y <= 1.3d+37))) then
tmp = ((z / y) + x) - ((x * a) / y)
else
tmp = t / (i + (y * (c + (a * (y * y)))))
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.4e+31) || !(y <= 1.3e+37)) {
tmp = ((z / y) + x) - ((x * a) / y);
} else {
tmp = t / (i + (y * (c + (a * (y * y)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.4e+31) or not (y <= 1.3e+37): tmp = ((z / y) + x) - ((x * a) / y) else: tmp = t / (i + (y * (c + (a * (y * y))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.4e+31) || !(y <= 1.3e+37)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(x * a) / y)); else tmp = Float64(t / Float64(i + Float64(y * Float64(c + Float64(a * Float64(y * y)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2.4e+31) || ~((y <= 1.3e+37))) tmp = ((z / y) + x) - ((x * a) / y); else tmp = t / (i + (y * (c + (a * (y * y))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.4e+31], N[Not[LessEqual[y, 1.3e+37]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(t / N[(i + N[(y * N[(c + N[(a * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.4 \cdot 10^{+31} \lor \neg \left(y \leq 1.3 \cdot 10^{+37}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \frac{x \cdot a}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + a \cdot \left(y \cdot y\right)\right)}\\
\end{array}
\end{array}
if y < -2.39999999999999982e31 or 1.3e37 < y Initial program 6.2%
Taylor expanded in y around inf 69.6%
if -2.39999999999999982e31 < y < 1.3e37Initial program 96.2%
Taylor expanded in t around inf 75.7%
Taylor expanded in a around inf 73.5%
*-commutative73.5%
unpow273.5%
Simplified73.5%
Final simplification71.6%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -2.6e+31) (not (<= y 5.5e+38))) (- (+ (/ z y) x) (/ (* x a) y)) (/ t (+ i (* y (+ c (* 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 <= -2.6e+31) || !(y <= 5.5e+38)) {
tmp = ((z / y) + x) - ((x * a) / y);
} else {
tmp = t / (i + (y * (c + (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 <= (-2.6d+31)) .or. (.not. (y <= 5.5d+38))) then
tmp = ((z / y) + x) - ((x * a) / y)
else
tmp = t / (i + (y * (c + (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 <= -2.6e+31) || !(y <= 5.5e+38)) {
tmp = ((z / y) + x) - ((x * a) / y);
} else {
tmp = t / (i + (y * (c + (y * (y * a)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.6e+31) or not (y <= 5.5e+38): tmp = ((z / y) + x) - ((x * a) / y) else: tmp = t / (i + (y * (c + (y * (y * a))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.6e+31) || !(y <= 5.5e+38)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(x * a) / y)); else tmp = Float64(t / Float64(i + Float64(y * Float64(c + 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 <= -2.6e+31) || ~((y <= 5.5e+38))) tmp = ((z / y) + x) - ((x * a) / y); else tmp = t / (i + (y * (c + (y * (y * a))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.6e+31], N[Not[LessEqual[y, 5.5e+38]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(t / N[(i + N[(y * N[(c + N[(y * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.6 \cdot 10^{+31} \lor \neg \left(y \leq 5.5 \cdot 10^{+38}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \frac{x \cdot a}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot \left(y \cdot a\right)\right)}\\
\end{array}
\end{array}
if y < -2.6e31 or 5.5000000000000003e38 < y Initial program 6.2%
Taylor expanded in y around inf 69.6%
if -2.6e31 < y < 5.5000000000000003e38Initial program 96.2%
Taylor expanded in t around inf 75.7%
Taylor expanded in a around inf 73.5%
*-commutative73.5%
unpow273.5%
Simplified73.5%
Taylor expanded in a around 0 73.5%
*-commutative73.5%
unpow273.5%
associate-*l*73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
Final simplification71.6%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -7e+24) (not (<= y 1.46e+34))) (- (+ (/ z y) x) (/ (* x a) y)) (/ t (+ 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 <= -7e+24) || !(y <= 1.46e+34)) {
tmp = ((z / y) + x) - ((x * a) / y);
} else {
tmp = t / (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 <= (-7d+24)) .or. (.not. (y <= 1.46d+34))) then
tmp = ((z / y) + x) - ((x * a) / y)
else
tmp = t / (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 <= -7e+24) || !(y <= 1.46e+34)) {
tmp = ((z / y) + x) - ((x * a) / y);
} else {
tmp = t / (i + (y * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -7e+24) or not (y <= 1.46e+34): tmp = ((z / y) + x) - ((x * a) / y) else: tmp = t / (i + (y * c)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -7e+24) || !(y <= 1.46e+34)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(x * a) / y)); else tmp = Float64(t / 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 <= -7e+24) || ~((y <= 1.46e+34))) tmp = ((z / y) + x) - ((x * a) / y); else tmp = t / (i + (y * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -7e+24], N[Not[LessEqual[y, 1.46e+34]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7 \cdot 10^{+24} \lor \neg \left(y \leq 1.46 \cdot 10^{+34}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \frac{x \cdot a}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot c}\\
\end{array}
\end{array}
if y < -7.0000000000000004e24 or 1.46e34 < y Initial program 7.0%
Taylor expanded in y around inf 69.0%
if -7.0000000000000004e24 < y < 1.46e34Initial program 96.2%
Taylor expanded in t around inf 75.6%
Taylor expanded in y around 0 71.2%
*-commutative71.2%
Simplified71.2%
Final simplification70.2%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -1.5e+45) x (if (<= y 6.2e+37) (/ t (+ i (* y c))) x)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.5e+45) {
tmp = x;
} else if (y <= 6.2e+37) {
tmp = t / (i + (y * c));
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-1.5d+45)) then
tmp = x
else if (y <= 6.2d+37) then
tmp = t / (i + (y * c))
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.5e+45) {
tmp = x;
} else if (y <= 6.2e+37) {
tmp = t / (i + (y * c));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.5e+45: tmp = x elif y <= 6.2e+37: tmp = t / (i + (y * c)) else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.5e+45) tmp = x; elseif (y <= 6.2e+37) tmp = Float64(t / Float64(i + Float64(y * c))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -1.5e+45) tmp = x; elseif (y <= 6.2e+37) tmp = t / (i + (y * c)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.5e+45], x, If[LessEqual[y, 6.2e+37], N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.5 \cdot 10^{+45}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{+37}:\\
\;\;\;\;\frac{t}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.50000000000000005e45 or 6.2000000000000004e37 < y Initial program 4.7%
Taylor expanded in y around inf 57.4%
if -1.50000000000000005e45 < y < 6.2000000000000004e37Initial program 95.5%
Taylor expanded in t around inf 74.2%
Taylor expanded in y around 0 69.2%
*-commutative69.2%
Simplified69.2%
Final simplification63.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -1.15e+45) x (if (<= y 2.1e+17) (/ 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.15e+45) {
tmp = x;
} else if (y <= 2.1e+17) {
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.15d+45)) then
tmp = x
else if (y <= 2.1d+17) 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.15e+45) {
tmp = x;
} else if (y <= 2.1e+17) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.15e+45: tmp = x elif y <= 2.1e+17: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.15e+45) tmp = x; elseif (y <= 2.1e+17) 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.15e+45) tmp = x; elseif (y <= 2.1e+17) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.15e+45], x, If[LessEqual[y, 2.1e+17], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.15 \cdot 10^{+45}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{+17}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.15000000000000006e45 or 2.1e17 < y Initial program 5.4%
Taylor expanded in y around inf 56.5%
if -1.15000000000000006e45 < y < 2.1e17Initial program 96.2%
Taylor expanded in y around 0 57.0%
Final simplification56.8%
(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 53.7%
Taylor expanded in y around inf 28.4%
Final simplification28.4%
herbie shell --seed 2023240
(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)))