
(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 21 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 (+ (* (+ (* (+ a y) y) b) y) c))
(t_2 (fma (fma (fma (+ a y) y b) y c) y i))
(t_3 (/ y t_2))
(t_4 (/ t t_2))
(t_5 (pow t_1 2.0)))
(if (<= y -5.6e+75)
(- x (/ (- (/ -27464.7644705 y) z) y))
(if (<= y -2200000000.0)
(fma
y
(fma
(- i)
(+
(+ (+ (/ (* x y) t_5) (/ z t_5)) (/ 230661.510616 (* (* y y) t_5)))
(/ 27464.7644705 (* t_5 y)))
(+
(/ (+ (* (+ (* x y) z) y) 27464.7644705) t_1)
(/ 230661.510616 (* t_1 y))))
t_4)
(if (<= y 2.3e+51)
(fma
(* y y)
(* (* t_3 y) x)
(+ (* (fma (fma z y 27464.7644705) y 230661.510616) t_3) t_4))
(- x (/ (* (- (/ a y) 1.0) z) y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = ((((a + y) * y) + b) * y) + c;
double t_2 = fma(fma(fma((a + y), y, b), y, c), y, i);
double t_3 = y / t_2;
double t_4 = t / t_2;
double t_5 = pow(t_1, 2.0);
double tmp;
if (y <= -5.6e+75) {
tmp = x - (((-27464.7644705 / y) - z) / y);
} else if (y <= -2200000000.0) {
tmp = fma(y, fma(-i, (((((x * y) / t_5) + (z / t_5)) + (230661.510616 / ((y * y) * t_5))) + (27464.7644705 / (t_5 * y))), ((((((x * y) + z) * y) + 27464.7644705) / t_1) + (230661.510616 / (t_1 * y)))), t_4);
} else if (y <= 2.3e+51) {
tmp = fma((y * y), ((t_3 * y) * x), ((fma(fma(z, y, 27464.7644705), y, 230661.510616) * t_3) + t_4));
} else {
tmp = x - ((((a / y) - 1.0) * z) / y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(Float64(Float64(a + y) * y) + b) * y) + c) t_2 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i) t_3 = Float64(y / t_2) t_4 = Float64(t / t_2) t_5 = t_1 ^ 2.0 tmp = 0.0 if (y <= -5.6e+75) tmp = Float64(x - Float64(Float64(Float64(-27464.7644705 / y) - z) / y)); elseif (y <= -2200000000.0) tmp = fma(y, fma(Float64(-i), Float64(Float64(Float64(Float64(Float64(x * y) / t_5) + Float64(z / t_5)) + Float64(230661.510616 / Float64(Float64(y * y) * t_5))) + Float64(27464.7644705 / Float64(t_5 * y))), Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) / t_1) + Float64(230661.510616 / Float64(t_1 * y)))), t_4); elseif (y <= 2.3e+51) tmp = fma(Float64(y * y), Float64(Float64(t_3 * y) * x), Float64(Float64(fma(fma(z, y, 27464.7644705), y, 230661.510616) * t_3) + t_4)); else tmp = Float64(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, Block[{t$95$3 = N[(y / t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(t / t$95$2), $MachinePrecision]}, Block[{t$95$5 = N[Power[t$95$1, 2.0], $MachinePrecision]}, If[LessEqual[y, -5.6e+75], N[(x - N[(N[(N[(-27464.7644705 / y), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2200000000.0], N[(y * N[((-i) * N[(N[(N[(N[(N[(x * y), $MachinePrecision] / t$95$5), $MachinePrecision] + N[(z / t$95$5), $MachinePrecision]), $MachinePrecision] + N[(230661.510616 / N[(N[(y * y), $MachinePrecision] * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(27464.7644705 / N[(t$95$5 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(230661.510616 / N[(t$95$1 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$4), $MachinePrecision], If[LessEqual[y, 2.3e+51], N[(N[(y * y), $MachinePrecision] * N[(N[(t$95$3 * y), $MachinePrecision] * x), $MachinePrecision] + N[(N[(N[(N[(z * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * t$95$3), $MachinePrecision] + t$95$4), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(a + y\right) \cdot y + b\right) \cdot y + c\\
t_2 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
t_3 := \frac{y}{t\_2}\\
t_4 := \frac{t}{t\_2}\\
t_5 := {t\_1}^{2}\\
\mathbf{if}\;y \leq -5.6 \cdot 10^{+75}:\\
\;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\
\mathbf{elif}\;y \leq -2200000000:\\
\;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(-i, \left(\left(\frac{x \cdot y}{t\_5} + \frac{z}{t\_5}\right) + \frac{230661.510616}{\left(y \cdot y\right) \cdot t\_5}\right) + \frac{27464.7644705}{t\_5 \cdot y}, \frac{\left(x \cdot y + z\right) \cdot y + 27464.7644705}{t\_1} + \frac{230661.510616}{t\_1 \cdot y}\right), t\_4\right)\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{+51}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot y, \left(t\_3 \cdot y\right) \cdot x, \mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right) \cdot t\_3 + t\_4\right)\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\
\end{array}
\end{array}
if y < -5.60000000000000023e75Initial program 0.2%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites60.4%
Taylor expanded in a around 0
Applied rewrites69.6%
Taylor expanded in b around 0
Applied rewrites79.7%
if -5.60000000000000023e75 < y < -2.2e9Initial program 19.6%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites31.5%
Taylor expanded in i around 0
Applied rewrites70.7%
if -2.2e9 < y < 2.30000000000000005e51Initial program 95.5%
Taylor expanded in x around 0
+-commutativeN/A
+-commutativeN/A
associate-+l+N/A
Applied rewrites95.5%
Applied rewrites95.5%
Applied rewrites96.8%
if 2.30000000000000005e51 < y Initial program 3.8%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites52.7%
Taylor expanded in z around inf
Applied rewrites69.5%
Final simplification85.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma (fma (fma (+ a y) y b) y c) y i)) (t_2 (/ y t_1)))
(if (<=
(/
(+
(* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
t)
(+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
INFINITY)
(fma
(* y y)
(* (* t_2 y) x)
(+ (* (fma (fma z y 27464.7644705) y 230661.510616) t_2) (/ t t_1)))
(- x (/ (* (- (/ a y) 1.0) z) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(fma(fma((a + y), y, b), y, c), y, i);
double t_2 = y / t_1;
double tmp;
if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= ((double) INFINITY)) {
tmp = fma((y * y), ((t_2 * y) * x), ((fma(fma(z, y, 27464.7644705), y, 230661.510616) * t_2) + (t / t_1)));
} else {
tmp = x - ((((a / y) - 1.0) * z) / y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i) t_2 = Float64(y / t_1) tmp = 0.0 if (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(a + y) * y) + b) * y) + c) * y) + i)) <= Inf) tmp = fma(Float64(y * y), Float64(Float64(t_2 * y) * x), Float64(Float64(fma(fma(z, y, 27464.7644705), y, 230661.510616) * t_2) + Float64(t / t_1))); else tmp = Float64(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, Block[{t$95$2 = N[(y / t$95$1), $MachinePrecision]}, If[LessEqual[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[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(y * y), $MachinePrecision] * N[(N[(t$95$2 * y), $MachinePrecision] * x), $MachinePrecision] + N[(N[(N[(N[(z * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * t$95$2), $MachinePrecision] + N[(t / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
t_2 := \frac{y}{t\_1}\\
\mathbf{if}\;\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(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y \cdot y, \left(t\_2 \cdot y\right) \cdot x, \mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right) \cdot t\_2 + \frac{t}{t\_1}\right)\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0Initial program 87.9%
Taylor expanded in x around 0
+-commutativeN/A
+-commutativeN/A
associate-+l+N/A
Applied rewrites89.6%
Applied rewrites89.8%
Applied rewrites90.9%
if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 0.0%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites52.0%
Taylor expanded in z around inf
Applied rewrites70.1%
Final simplification82.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma (fma (fma (+ a y) y b) y c) y i)))
(if (<=
(/
(+
(* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
t)
(+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
INFINITY)
(fma
y
(/ (fma (fma z y 27464.7644705) y 230661.510616) t_1)
(fma x (* (/ (* y y) t_1) (* y y)) (/ t t_1)))
(- x (/ (* (- (/ a y) 1.0) z) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(fma(fma((a + y), y, b), y, c), y, i);
double tmp;
if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= ((double) INFINITY)) {
tmp = fma(y, (fma(fma(z, y, 27464.7644705), y, 230661.510616) / t_1), fma(x, (((y * y) / t_1) * (y * y)), (t / t_1)));
} else {
tmp = x - ((((a / y) - 1.0) * z) / y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i) tmp = 0.0 if (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(a + y) * y) + b) * y) + c) * y) + i)) <= Inf) tmp = fma(y, Float64(fma(fma(z, y, 27464.7644705), y, 230661.510616) / t_1), fma(x, Float64(Float64(Float64(y * y) / t_1) * Float64(y * y)), Float64(t / t_1))); else tmp = Float64(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, If[LessEqual[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[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], Infinity], N[(y * N[(N[(N[(z * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(x * N[(N[(N[(y * y), $MachinePrecision] / t$95$1), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision] + N[(t / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
\mathbf{if}\;\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(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, \mathsf{fma}\left(x, \frac{y \cdot y}{t\_1} \cdot \left(y \cdot y\right), \frac{t}{t\_1}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0Initial program 87.9%
Taylor expanded in x around 0
+-commutativeN/A
+-commutativeN/A
associate-+l+N/A
Applied rewrites89.6%
Applied rewrites89.8%
if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 0.0%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites52.0%
Taylor expanded in z around inf
Applied rewrites70.1%
Final simplification81.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma (fma (fma (+ a y) y b) y c) y i)))
(if (<=
(/
(+
(* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
t)
(+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
INFINITY)
(fma
y
(/ (fma (fma (fma x y z) y 27464.7644705) y 230661.510616) t_1)
(/ t t_1))
(- x (/ (* (- (/ a y) 1.0) z) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(fma(fma((a + y), y, b), y, c), y, i);
double tmp;
if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= ((double) INFINITY)) {
tmp = fma(y, (fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616) / t_1), (t / t_1));
} else {
tmp = x - ((((a / y) - 1.0) * z) / y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i) tmp = 0.0 if (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(a + y) * y) + b) * y) + c) * y) + i)) <= Inf) tmp = fma(y, Float64(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616) / t_1), Float64(t / t_1)); else tmp = Float64(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, If[LessEqual[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[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], Infinity], N[(y * N[(N[(N[(N[(x * y + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(t / t$95$1), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
\mathbf{if}\;\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(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, \frac{t}{t\_1}\right)\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0Initial program 87.9%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites89.0%
if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 0.0%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites52.0%
Taylor expanded in z around inf
Applied rewrites70.1%
Final simplification81.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(/
(+
(* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
t)
(+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))))
(if (<= t_1 5e+293) t_1 (- x (/ (* (- (/ a y) 1.0) z) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i);
double tmp;
if (t_1 <= 5e+293) {
tmp = t_1;
} else {
tmp = x - ((((a / y) - 1.0) * z) / 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) :: t_1
real(8) :: tmp
t_1 = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)
if (t_1 <= 5d+293) then
tmp = t_1
else
tmp = x - ((((a / y) - 1.0d0) * z) / 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 t_1 = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i);
double tmp;
if (t_1 <= 5e+293) {
tmp = t_1;
} else {
tmp = x - ((((a / y) - 1.0) * z) / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i) tmp = 0 if t_1 <= 5e+293: tmp = t_1 else: tmp = x - ((((a / y) - 1.0) * z) / y) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = 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(a + y) * y) + b) * y) + c) * y) + i)) tmp = 0.0 if (t_1 <= 5e+293) tmp = t_1; else tmp = Float64(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i); tmp = 0.0; if (t_1 <= 5e+293) tmp = t_1; else tmp = x - ((((a / y) - 1.0) * z) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = 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[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 5e+293], t$95$1, N[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \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(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
\mathbf{if}\;t\_1 \leq 5 \cdot 10^{+293}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 5.00000000000000033e293Initial program 89.0%
if 5.00000000000000033e293 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 0.1%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites51.1%
Taylor expanded in z around inf
Applied rewrites68.9%
Final simplification80.7%
(FPCore (x y z t a b c i)
:precision binary64
(if (<=
(/
(+
(* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
t)
(+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
5e+293)
(/
1.0
(/
(fma (fma (fma (+ a y) y b) y c) y i)
(fma (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) y t)))
(- x (/ (* (- (/ a y) 1.0) z) y))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= 5e+293) {
tmp = 1.0 / (fma(fma(fma((a + y), y, b), y, c), y, i) / fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t));
} else {
tmp = x - ((((a / y) - 1.0) * z) / y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (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(a + y) * y) + b) * y) + c) * y) + i)) <= 5e+293) tmp = Float64(1.0 / Float64(fma(fma(fma(Float64(a + y), y, b), y, c), y, i) / fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t))); else tmp = Float64(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[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[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], 5e+293], N[(1.0 / N[(N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision] / N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\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(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 5 \cdot 10^{+293}:\\
\;\;\;\;\frac{1}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 5.00000000000000033e293Initial program 89.0%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6488.8
Applied rewrites88.8%
if 5.00000000000000033e293 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 0.1%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites51.1%
Taylor expanded in z around inf
Applied rewrites68.9%
Final simplification80.5%
(FPCore (x y z t a b c i)
:precision binary64
(if (<=
(/
(+
(* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
t)
(+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
5e+293)
(*
(/ -1.0 (fma (fma (fma (+ a y) y b) y c) y i))
(- (fma (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) y t)))
(- x (/ (* (- (/ a y) 1.0) z) y))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= 5e+293) {
tmp = (-1.0 / fma(fma(fma((a + y), y, b), y, c), y, i)) * -fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t);
} else {
tmp = x - ((((a / y) - 1.0) * z) / y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (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(a + y) * y) + b) * y) + c) * y) + i)) <= 5e+293) tmp = Float64(Float64(-1.0 / fma(fma(fma(Float64(a + y), y, b), y, c), y, i)) * Float64(-fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t))); else tmp = Float64(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[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[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], 5e+293], N[(N[(-1.0 / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision] * (-N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision])), $MachinePrecision], N[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\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(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 5 \cdot 10^{+293}:\\
\;\;\;\;\frac{-1}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} \cdot \left(-\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 5.00000000000000033e293Initial program 89.0%
lift-/.f64N/A
frac-2negN/A
div-invN/A
lower-*.f64N/A
Applied rewrites88.8%
if 5.00000000000000033e293 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 0.1%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites51.1%
Taylor expanded in z around inf
Applied rewrites68.9%
Final simplification80.5%
(FPCore (x y z t a b c i)
:precision binary64
(if (<=
(/
(+
(* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
t)
(+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
5e+293)
(/ t i)
(/ z y)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= 5e+293) {
tmp = t / i;
} else {
tmp = z / 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 ((((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= 5d+293) then
tmp = t / i
else
tmp = z / 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 ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= 5e+293) {
tmp = t / i;
} else {
tmp = z / y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= 5e+293: tmp = t / i else: tmp = z / y return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (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(a + y) * y) + b) * y) + c) * y) + i)) <= 5e+293) tmp = Float64(t / i); else tmp = Float64(z / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= 5e+293) tmp = t / i; else tmp = z / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[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[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], 5e+293], N[(t / i), $MachinePrecision], N[(z / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\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(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 5 \cdot 10^{+293}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{y}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 5.00000000000000033e293Initial program 89.0%
Taylor expanded in y around 0
lower-/.f6443.5
Applied rewrites43.5%
if 5.00000000000000033e293 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 0.1%
Taylor expanded in x around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites0.5%
Taylor expanded in y around inf
Applied rewrites12.1%
Final simplification30.5%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -1.16e+65)
(- x (/ (- (/ -27464.7644705 y) z) y))
(if (<= y 2.25e+38)
(/
(fma (fma (fma z y 27464.7644705) y 230661.510616) y t)
(fma (fma (fma (+ a y) y b) y c) y i))
(- x (/ (* (- (/ a y) 1.0) z) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.16e+65) {
tmp = x - (((-27464.7644705 / y) - z) / y);
} else if (y <= 2.25e+38) {
tmp = fma(fma(fma(z, y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma((a + y), y, b), y, c), y, i);
} else {
tmp = x - ((((a / y) - 1.0) * z) / y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.16e+65) tmp = Float64(x - Float64(Float64(Float64(-27464.7644705 / y) - z) / y)); elseif (y <= 2.25e+38) tmp = Float64(fma(fma(fma(z, y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(Float64(a + y), y, b), y, c), y, i)); else tmp = Float64(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.16e+65], N[(x - N[(N[(N[(-27464.7644705 / y), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.25e+38], N[(N[(N[(N[(z * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.16 \cdot 10^{+65}:\\
\;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\
\mathbf{elif}\;y \leq 2.25 \cdot 10^{+38}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\
\end{array}
\end{array}
if y < -1.15999999999999997e65Initial program 0.3%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites58.9%
Taylor expanded in a around 0
Applied rewrites67.7%
Taylor expanded in b around 0
Applied rewrites77.1%
if -1.15999999999999997e65 < y < 2.2499999999999999e38Initial program 89.8%
Taylor expanded in x around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites86.0%
if 2.2499999999999999e38 < y Initial program 3.8%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites51.0%
Taylor expanded in z around inf
Applied rewrites67.3%
Final simplification79.9%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -1.16e+65)
(- x (/ (- (/ -27464.7644705 y) z) y))
(if (<= y 4.3e+37)
(/
(fma (+ (* 27464.7644705 y) 230661.510616) y t)
(fma (fma (fma (+ a y) y b) y c) y i))
(- x (/ (* (- (/ a y) 1.0) z) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.16e+65) {
tmp = x - (((-27464.7644705 / y) - z) / y);
} else if (y <= 4.3e+37) {
tmp = fma(((27464.7644705 * y) + 230661.510616), y, t) / fma(fma(fma((a + y), y, b), y, c), y, i);
} else {
tmp = x - ((((a / y) - 1.0) * z) / y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.16e+65) tmp = Float64(x - Float64(Float64(Float64(-27464.7644705 / y) - z) / y)); elseif (y <= 4.3e+37) tmp = Float64(fma(Float64(Float64(27464.7644705 * y) + 230661.510616), y, t) / fma(fma(fma(Float64(a + y), y, b), y, c), y, i)); else tmp = Float64(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.16e+65], N[(x - N[(N[(N[(-27464.7644705 / y), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.3e+37], N[(N[(N[(N[(27464.7644705 * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.16 \cdot 10^{+65}:\\
\;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\
\mathbf{elif}\;y \leq 4.3 \cdot 10^{+37}:\\
\;\;\;\;\frac{\mathsf{fma}\left(27464.7644705 \cdot y + 230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\
\end{array}
\end{array}
if y < -1.15999999999999997e65Initial program 0.3%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites58.9%
Taylor expanded in a around 0
Applied rewrites67.7%
Taylor expanded in b around 0
Applied rewrites77.1%
if -1.15999999999999997e65 < y < 4.2999999999999997e37Initial program 89.8%
Taylor expanded in x around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites86.0%
Taylor expanded in z around 0
Applied rewrites79.4%
if 4.2999999999999997e37 < y Initial program 3.8%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites51.0%
Taylor expanded in z around inf
Applied rewrites67.3%
Final simplification76.1%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -5.2e+53)
(- x (/ (- (/ -27464.7644705 y) z) y))
(if (<= y 2.2e-59)
(/ t (fma (fma (fma (+ a y) y b) y c) y i))
(if (<= y 2.95e+34)
(/ (fma (fma (fma (fma x y z) y 27464.7644705) y 230661.510616) y t) i)
(- x (/ (* (- (/ a y) 1.0) z) y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -5.2e+53) {
tmp = x - (((-27464.7644705 / y) - z) / y);
} else if (y <= 2.2e-59) {
tmp = t / fma(fma(fma((a + y), y, b), y, c), y, i);
} else if (y <= 2.95e+34) {
tmp = fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / i;
} else {
tmp = x - ((((a / y) - 1.0) * z) / y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -5.2e+53) tmp = Float64(x - Float64(Float64(Float64(-27464.7644705 / y) - z) / y)); elseif (y <= 2.2e-59) tmp = Float64(t / fma(fma(fma(Float64(a + y), y, b), y, c), y, i)); elseif (y <= 2.95e+34) tmp = Float64(fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / i); else tmp = Float64(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -5.2e+53], N[(x - N[(N[(N[(-27464.7644705 / y), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e-59], N[(t / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.95e+34], N[(N[(N[(N[(N[(x * y + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / i), $MachinePrecision], N[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.2 \cdot 10^{+53}:\\
\;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-59}:\\
\;\;\;\;\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
\mathbf{elif}\;y \leq 2.95 \cdot 10^{+34}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{i}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\
\end{array}
\end{array}
if y < -5.19999999999999996e53Initial program 2.3%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites56.9%
Taylor expanded in a around 0
Applied rewrites65.4%
Taylor expanded in b around 0
Applied rewrites74.4%
if -5.19999999999999996e53 < y < 2.1999999999999999e-59Initial program 92.0%
Taylor expanded in t around inf
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-+.f6472.0
Applied rewrites72.0%
if 2.1999999999999999e-59 < y < 2.9499999999999999e34Initial program 79.8%
Taylor expanded in i around inf
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6453.5
Applied rewrites53.5%
if 2.9499999999999999e34 < y Initial program 3.8%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites51.0%
Taylor expanded in z around inf
Applied rewrites67.3%
Final simplification70.0%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -5.2e+53)
(- x (/ (- (/ -27464.7644705 y) z) y))
(if (<= y 2.95e+34)
(/ (fma 230661.510616 y t) (fma (fma (fma (+ a y) y b) y c) y i))
(- x (/ (* (- (/ a y) 1.0) z) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -5.2e+53) {
tmp = x - (((-27464.7644705 / y) - z) / y);
} else if (y <= 2.95e+34) {
tmp = fma(230661.510616, y, t) / fma(fma(fma((a + y), y, b), y, c), y, i);
} else {
tmp = x - ((((a / y) - 1.0) * z) / y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -5.2e+53) tmp = Float64(x - Float64(Float64(Float64(-27464.7644705 / y) - z) / y)); elseif (y <= 2.95e+34) tmp = Float64(fma(230661.510616, y, t) / fma(fma(fma(Float64(a + y), y, b), y, c), y, i)); else tmp = Float64(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -5.2e+53], N[(x - N[(N[(N[(-27464.7644705 / y), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.95e+34], N[(N[(230661.510616 * y + t), $MachinePrecision] / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.2 \cdot 10^{+53}:\\
\;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\
\mathbf{elif}\;y \leq 2.95 \cdot 10^{+34}:\\
\;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\
\end{array}
\end{array}
if y < -5.19999999999999996e53Initial program 2.3%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites56.9%
Taylor expanded in a around 0
Applied rewrites65.4%
Taylor expanded in b around 0
Applied rewrites74.4%
if -5.19999999999999996e53 < y < 2.9499999999999999e34Initial program 90.4%
Taylor expanded in x around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites86.5%
Taylor expanded in y around 0
Applied rewrites79.8%
if 2.9499999999999999e34 < y Initial program 3.8%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites51.0%
Taylor expanded in z around inf
Applied rewrites67.3%
Final simplification75.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- x (/ (- (/ -27464.7644705 y) z) y))))
(if (<= y -4.8e+76)
t_1
(if (<= y -5.5e-50)
(* (/ z b) y)
(if (<= y 1.1e-5)
(/ (+ (* (+ (* 27464.7644705 y) 230661.510616) y) t) i)
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x - (((-27464.7644705 / y) - z) / y);
double tmp;
if (y <= -4.8e+76) {
tmp = t_1;
} else if (y <= -5.5e-50) {
tmp = (z / b) * y;
} else if (y <= 1.1e-5) {
tmp = ((((27464.7644705 * y) + 230661.510616) * y) + t) / i;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = x - ((((-27464.7644705d0) / y) - z) / y)
if (y <= (-4.8d+76)) then
tmp = t_1
else if (y <= (-5.5d-50)) then
tmp = (z / b) * y
else if (y <= 1.1d-5) then
tmp = ((((27464.7644705d0 * y) + 230661.510616d0) * y) + t) / i
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x - (((-27464.7644705 / y) - z) / y);
double tmp;
if (y <= -4.8e+76) {
tmp = t_1;
} else if (y <= -5.5e-50) {
tmp = (z / b) * y;
} else if (y <= 1.1e-5) {
tmp = ((((27464.7644705 * y) + 230661.510616) * y) + t) / i;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x - (((-27464.7644705 / y) - z) / y) tmp = 0 if y <= -4.8e+76: tmp = t_1 elif y <= -5.5e-50: tmp = (z / b) * y elif y <= 1.1e-5: tmp = ((((27464.7644705 * y) + 230661.510616) * y) + t) / i else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x - Float64(Float64(Float64(-27464.7644705 / y) - z) / y)) tmp = 0.0 if (y <= -4.8e+76) tmp = t_1; elseif (y <= -5.5e-50) tmp = Float64(Float64(z / b) * y); elseif (y <= 1.1e-5) tmp = Float64(Float64(Float64(Float64(Float64(27464.7644705 * y) + 230661.510616) * y) + t) / i); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x - (((-27464.7644705 / y) - z) / y); tmp = 0.0; if (y <= -4.8e+76) tmp = t_1; elseif (y <= -5.5e-50) tmp = (z / b) * y; elseif (y <= 1.1e-5) tmp = ((((27464.7644705 * y) + 230661.510616) * y) + t) / i; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x - N[(N[(N[(-27464.7644705 / y), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.8e+76], t$95$1, If[LessEqual[y, -5.5e-50], N[(N[(z / b), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y, 1.1e-5], N[(N[(N[(N[(N[(27464.7644705 * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / i), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{\frac{-27464.7644705}{y} - z}{y}\\
\mathbf{if}\;y \leq -4.8 \cdot 10^{+76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -5.5 \cdot 10^{-50}:\\
\;\;\;\;\frac{z}{b} \cdot y\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-5}:\\
\;\;\;\;\frac{\left(27464.7644705 \cdot y + 230661.510616\right) \cdot y + t}{i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.8e76 or 1.1e-5 < y Initial program 7.4%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites51.7%
Taylor expanded in a around 0
Applied rewrites61.1%
Taylor expanded in b around 0
Applied rewrites68.0%
if -4.8e76 < y < -5.49999999999999975e-50Initial program 50.9%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites57.6%
Taylor expanded in b around inf
Applied rewrites15.5%
Taylor expanded in z around inf
Applied rewrites16.4%
Applied rewrites22.9%
if -5.49999999999999975e-50 < y < 1.1e-5Initial program 99.8%
Taylor expanded in y around 0
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites58.6%
Taylor expanded in i around inf
Applied rewrites69.4%
Final simplification63.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- x (/ (- (* a x) z) y))))
(if (<= y -4.8e+76)
t_1
(if (<= y -5.5e-50)
(* (/ z b) y)
(if (<= y 1.1e-5)
(/ (+ (* (+ (* 27464.7644705 y) 230661.510616) y) t) i)
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x - (((a * x) - z) / y);
double tmp;
if (y <= -4.8e+76) {
tmp = t_1;
} else if (y <= -5.5e-50) {
tmp = (z / b) * y;
} else if (y <= 1.1e-5) {
tmp = ((((27464.7644705 * y) + 230661.510616) * y) + t) / i;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = x - (((a * x) - z) / y)
if (y <= (-4.8d+76)) then
tmp = t_1
else if (y <= (-5.5d-50)) then
tmp = (z / b) * y
else if (y <= 1.1d-5) then
tmp = ((((27464.7644705d0 * y) + 230661.510616d0) * y) + t) / i
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x - (((a * x) - z) / y);
double tmp;
if (y <= -4.8e+76) {
tmp = t_1;
} else if (y <= -5.5e-50) {
tmp = (z / b) * y;
} else if (y <= 1.1e-5) {
tmp = ((((27464.7644705 * y) + 230661.510616) * y) + t) / i;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x - (((a * x) - z) / y) tmp = 0 if y <= -4.8e+76: tmp = t_1 elif y <= -5.5e-50: tmp = (z / b) * y elif y <= 1.1e-5: tmp = ((((27464.7644705 * y) + 230661.510616) * y) + t) / i else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x - Float64(Float64(Float64(a * x) - z) / y)) tmp = 0.0 if (y <= -4.8e+76) tmp = t_1; elseif (y <= -5.5e-50) tmp = Float64(Float64(z / b) * y); elseif (y <= 1.1e-5) tmp = Float64(Float64(Float64(Float64(Float64(27464.7644705 * y) + 230661.510616) * y) + t) / i); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x - (((a * x) - z) / y); tmp = 0.0; if (y <= -4.8e+76) tmp = t_1; elseif (y <= -5.5e-50) tmp = (z / b) * y; elseif (y <= 1.1e-5) tmp = ((((27464.7644705 * y) + 230661.510616) * y) + t) / i; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x - N[(N[(N[(a * x), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.8e+76], t$95$1, If[LessEqual[y, -5.5e-50], N[(N[(z / b), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y, 1.1e-5], N[(N[(N[(N[(N[(27464.7644705 * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / i), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{a \cdot x - z}{y}\\
\mathbf{if}\;y \leq -4.8 \cdot 10^{+76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -5.5 \cdot 10^{-50}:\\
\;\;\;\;\frac{z}{b} \cdot y\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-5}:\\
\;\;\;\;\frac{\left(27464.7644705 \cdot y + 230661.510616\right) \cdot y + t}{i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.8e76 or 1.1e-5 < y Initial program 7.4%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites51.7%
Taylor expanded in y around inf
Applied rewrites64.8%
if -4.8e76 < y < -5.49999999999999975e-50Initial program 50.9%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites57.6%
Taylor expanded in b around inf
Applied rewrites15.5%
Taylor expanded in z around inf
Applied rewrites16.4%
Applied rewrites22.9%
if -5.49999999999999975e-50 < y < 1.1e-5Initial program 99.8%
Taylor expanded in y around 0
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites58.6%
Taylor expanded in i around inf
Applied rewrites69.4%
Final simplification61.9%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -5.2e+53)
(- x (/ (- (/ -27464.7644705 y) z) y))
(if (<= y 2.95e+34)
(/ t (fma (fma (fma (+ a y) y b) y c) y i))
(- x (/ (* (- (/ a y) 1.0) z) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -5.2e+53) {
tmp = x - (((-27464.7644705 / y) - z) / y);
} else if (y <= 2.95e+34) {
tmp = t / fma(fma(fma((a + y), y, b), y, c), y, i);
} else {
tmp = x - ((((a / y) - 1.0) * z) / y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -5.2e+53) tmp = Float64(x - Float64(Float64(Float64(-27464.7644705 / y) - z) / y)); elseif (y <= 2.95e+34) tmp = Float64(t / fma(fma(fma(Float64(a + y), y, b), y, c), y, i)); else tmp = Float64(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -5.2e+53], N[(x - N[(N[(N[(-27464.7644705 / y), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.95e+34], N[(t / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.2 \cdot 10^{+53}:\\
\;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\
\mathbf{elif}\;y \leq 2.95 \cdot 10^{+34}:\\
\;\;\;\;\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\
\end{array}
\end{array}
if y < -5.19999999999999996e53Initial program 2.3%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites56.9%
Taylor expanded in a around 0
Applied rewrites65.4%
Taylor expanded in b around 0
Applied rewrites74.4%
if -5.19999999999999996e53 < y < 2.9499999999999999e34Initial program 90.4%
Taylor expanded in t around inf
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-+.f6466.4
Applied rewrites66.4%
if 2.9499999999999999e34 < y Initial program 3.8%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites51.0%
Taylor expanded in z around inf
Applied rewrites67.3%
Final simplification68.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- x (/ (- (/ -27464.7644705 y) z) y))))
(if (<= y -5.2e+53)
t_1
(if (<= y 1.22e+33) (/ t (fma (fma (fma (+ a y) y b) y c) y i)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x - (((-27464.7644705 / y) - z) / y);
double tmp;
if (y <= -5.2e+53) {
tmp = t_1;
} else if (y <= 1.22e+33) {
tmp = t / fma(fma(fma((a + y), y, b), y, c), y, i);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x - Float64(Float64(Float64(-27464.7644705 / y) - z) / y)) tmp = 0.0 if (y <= -5.2e+53) tmp = t_1; elseif (y <= 1.22e+33) tmp = Float64(t / fma(fma(fma(Float64(a + y), y, b), y, c), y, i)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x - N[(N[(N[(-27464.7644705 / y), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.2e+53], t$95$1, If[LessEqual[y, 1.22e+33], N[(t / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{\frac{-27464.7644705}{y} - z}{y}\\
\mathbf{if}\;y \leq -5.2 \cdot 10^{+53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.22 \cdot 10^{+33}:\\
\;\;\;\;\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.19999999999999996e53 or 1.22000000000000005e33 < y Initial program 3.1%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites53.8%
Taylor expanded in a around 0
Applied rewrites63.5%
Taylor expanded in b around 0
Applied rewrites70.6%
if -5.19999999999999996e53 < y < 1.22000000000000005e33Initial program 90.4%
Taylor expanded in t around inf
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-+.f6466.4
Applied rewrites66.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- x (/ (- (* a x) z) y))))
(if (<= y -4.8e+76)
t_1
(if (<= y -5.5e-50) (* (/ z b) y) (if (<= y 27000000.0) (/ t i) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x - (((a * x) - z) / y);
double tmp;
if (y <= -4.8e+76) {
tmp = t_1;
} else if (y <= -5.5e-50) {
tmp = (z / b) * y;
} else if (y <= 27000000.0) {
tmp = t / i;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = x - (((a * x) - z) / y)
if (y <= (-4.8d+76)) then
tmp = t_1
else if (y <= (-5.5d-50)) then
tmp = (z / b) * y
else if (y <= 27000000.0d0) then
tmp = t / i
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x - (((a * x) - z) / y);
double tmp;
if (y <= -4.8e+76) {
tmp = t_1;
} else if (y <= -5.5e-50) {
tmp = (z / b) * y;
} else if (y <= 27000000.0) {
tmp = t / i;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x - (((a * x) - z) / y) tmp = 0 if y <= -4.8e+76: tmp = t_1 elif y <= -5.5e-50: tmp = (z / b) * y elif y <= 27000000.0: tmp = t / i else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x - Float64(Float64(Float64(a * x) - z) / y)) tmp = 0.0 if (y <= -4.8e+76) tmp = t_1; elseif (y <= -5.5e-50) tmp = Float64(Float64(z / b) * y); elseif (y <= 27000000.0) tmp = Float64(t / i); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x - (((a * x) - z) / y); tmp = 0.0; if (y <= -4.8e+76) tmp = t_1; elseif (y <= -5.5e-50) tmp = (z / b) * y; elseif (y <= 27000000.0) tmp = t / i; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x - N[(N[(N[(a * x), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.8e+76], t$95$1, If[LessEqual[y, -5.5e-50], N[(N[(z / b), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y, 27000000.0], N[(t / i), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{a \cdot x - z}{y}\\
\mathbf{if}\;y \leq -4.8 \cdot 10^{+76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -5.5 \cdot 10^{-50}:\\
\;\;\;\;\frac{z}{b} \cdot y\\
\mathbf{elif}\;y \leq 27000000:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.8e76 or 2.7e7 < y Initial program 6.6%
Taylor expanded in y around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites52.2%
Taylor expanded in y around inf
Applied rewrites65.3%
if -4.8e76 < y < -5.49999999999999975e-50Initial program 50.9%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites57.6%
Taylor expanded in b around inf
Applied rewrites15.5%
Taylor expanded in z around inf
Applied rewrites16.4%
Applied rewrites22.9%
if -5.49999999999999975e-50 < y < 2.7e7Initial program 99.8%
Taylor expanded in y around 0
lower-/.f6457.3
Applied rewrites57.3%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -7.8e+77)
(/ z y)
(if (<= y -5.5e-50)
(* (/ z b) y)
(if (<= y 2900000.0) (/ t i) (* (/ -1.0 y) (- z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -7.8e+77) {
tmp = z / y;
} else if (y <= -5.5e-50) {
tmp = (z / b) * y;
} else if (y <= 2900000.0) {
tmp = t / i;
} else {
tmp = (-1.0 / y) * -z;
}
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.8d+77)) then
tmp = z / y
else if (y <= (-5.5d-50)) then
tmp = (z / b) * y
else if (y <= 2900000.0d0) then
tmp = t / i
else
tmp = ((-1.0d0) / y) * -z
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.8e+77) {
tmp = z / y;
} else if (y <= -5.5e-50) {
tmp = (z / b) * y;
} else if (y <= 2900000.0) {
tmp = t / i;
} else {
tmp = (-1.0 / y) * -z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -7.8e+77: tmp = z / y elif y <= -5.5e-50: tmp = (z / b) * y elif y <= 2900000.0: tmp = t / i else: tmp = (-1.0 / y) * -z return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -7.8e+77) tmp = Float64(z / y); elseif (y <= -5.5e-50) tmp = Float64(Float64(z / b) * y); elseif (y <= 2900000.0) tmp = Float64(t / i); else tmp = Float64(Float64(-1.0 / y) * Float64(-z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -7.8e+77) tmp = z / y; elseif (y <= -5.5e-50) tmp = (z / b) * y; elseif (y <= 2900000.0) tmp = t / i; else tmp = (-1.0 / y) * -z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -7.8e+77], N[(z / y), $MachinePrecision], If[LessEqual[y, -5.5e-50], N[(N[(z / b), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y, 2900000.0], N[(t / i), $MachinePrecision], N[(N[(-1.0 / y), $MachinePrecision] * (-z)), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.8 \cdot 10^{+77}:\\
\;\;\;\;\frac{z}{y}\\
\mathbf{elif}\;y \leq -5.5 \cdot 10^{-50}:\\
\;\;\;\;\frac{z}{b} \cdot y\\
\mathbf{elif}\;y \leq 2900000:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{y} \cdot \left(-z\right)\\
\end{array}
\end{array}
if y < -7.7999999999999995e77Initial program 0.2%
Taylor expanded in x around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites0.5%
Taylor expanded in y around inf
Applied rewrites15.7%
if -7.7999999999999995e77 < y < -5.49999999999999975e-50Initial program 50.9%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites57.6%
Taylor expanded in b around inf
Applied rewrites15.5%
Taylor expanded in z around inf
Applied rewrites16.4%
Applied rewrites22.9%
if -5.49999999999999975e-50 < y < 2.9e6Initial program 99.8%
Taylor expanded in y around 0
lower-/.f6457.3
Applied rewrites57.3%
if 2.9e6 < y Initial program 10.8%
Taylor expanded in x around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites5.7%
Taylor expanded in y around inf
Applied rewrites12.5%
Applied rewrites12.5%
Final simplification33.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -7.8e+77) (/ z y) (if (<= y -5.5e-50) (* (/ z b) y) (if (<= y 2900000.0) (/ t i) (/ z y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -7.8e+77) {
tmp = z / y;
} else if (y <= -5.5e-50) {
tmp = (z / b) * y;
} else if (y <= 2900000.0) {
tmp = t / i;
} else {
tmp = z / 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 <= (-7.8d+77)) then
tmp = z / y
else if (y <= (-5.5d-50)) then
tmp = (z / b) * y
else if (y <= 2900000.0d0) then
tmp = t / i
else
tmp = z / 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 <= -7.8e+77) {
tmp = z / y;
} else if (y <= -5.5e-50) {
tmp = (z / b) * y;
} else if (y <= 2900000.0) {
tmp = t / i;
} else {
tmp = z / y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -7.8e+77: tmp = z / y elif y <= -5.5e-50: tmp = (z / b) * y elif y <= 2900000.0: tmp = t / i else: tmp = z / y return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -7.8e+77) tmp = Float64(z / y); elseif (y <= -5.5e-50) tmp = Float64(Float64(z / b) * y); elseif (y <= 2900000.0) tmp = Float64(t / i); else tmp = Float64(z / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -7.8e+77) tmp = z / y; elseif (y <= -5.5e-50) tmp = (z / b) * y; elseif (y <= 2900000.0) tmp = t / i; else tmp = z / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -7.8e+77], N[(z / y), $MachinePrecision], If[LessEqual[y, -5.5e-50], N[(N[(z / b), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y, 2900000.0], N[(t / i), $MachinePrecision], N[(z / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.8 \cdot 10^{+77}:\\
\;\;\;\;\frac{z}{y}\\
\mathbf{elif}\;y \leq -5.5 \cdot 10^{-50}:\\
\;\;\;\;\frac{z}{b} \cdot y\\
\mathbf{elif}\;y \leq 2900000:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{y}\\
\end{array}
\end{array}
if y < -7.7999999999999995e77 or 2.9e6 < y Initial program 6.6%
Taylor expanded in x around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites3.6%
Taylor expanded in y around inf
Applied rewrites13.7%
if -7.7999999999999995e77 < y < -5.49999999999999975e-50Initial program 50.9%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites57.6%
Taylor expanded in b around inf
Applied rewrites15.5%
Taylor expanded in z around inf
Applied rewrites16.4%
Applied rewrites22.9%
if -5.49999999999999975e-50 < y < 2.9e6Initial program 99.8%
Taylor expanded in y around 0
lower-/.f6457.3
Applied rewrites57.3%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -7.8e+77) (/ z y) (if (<= y -5.5e-50) (* (/ y b) z) (if (<= y 2900000.0) (/ t i) (/ z y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -7.8e+77) {
tmp = z / y;
} else if (y <= -5.5e-50) {
tmp = (y / b) * z;
} else if (y <= 2900000.0) {
tmp = t / i;
} else {
tmp = z / 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 <= (-7.8d+77)) then
tmp = z / y
else if (y <= (-5.5d-50)) then
tmp = (y / b) * z
else if (y <= 2900000.0d0) then
tmp = t / i
else
tmp = z / 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 <= -7.8e+77) {
tmp = z / y;
} else if (y <= -5.5e-50) {
tmp = (y / b) * z;
} else if (y <= 2900000.0) {
tmp = t / i;
} else {
tmp = z / y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -7.8e+77: tmp = z / y elif y <= -5.5e-50: tmp = (y / b) * z elif y <= 2900000.0: tmp = t / i else: tmp = z / y return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -7.8e+77) tmp = Float64(z / y); elseif (y <= -5.5e-50) tmp = Float64(Float64(y / b) * z); elseif (y <= 2900000.0) tmp = Float64(t / i); else tmp = Float64(z / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -7.8e+77) tmp = z / y; elseif (y <= -5.5e-50) tmp = (y / b) * z; elseif (y <= 2900000.0) tmp = t / i; else tmp = z / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -7.8e+77], N[(z / y), $MachinePrecision], If[LessEqual[y, -5.5e-50], N[(N[(y / b), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[y, 2900000.0], N[(t / i), $MachinePrecision], N[(z / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.8 \cdot 10^{+77}:\\
\;\;\;\;\frac{z}{y}\\
\mathbf{elif}\;y \leq -5.5 \cdot 10^{-50}:\\
\;\;\;\;\frac{y}{b} \cdot z\\
\mathbf{elif}\;y \leq 2900000:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{y}\\
\end{array}
\end{array}
if y < -7.7999999999999995e77 or 2.9e6 < y Initial program 6.6%
Taylor expanded in x around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites3.6%
Taylor expanded in y around inf
Applied rewrites13.7%
if -7.7999999999999995e77 < y < -5.49999999999999975e-50Initial program 50.9%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites57.6%
Taylor expanded in b around inf
Applied rewrites15.5%
Taylor expanded in z around inf
Applied rewrites16.4%
Applied rewrites22.8%
if -5.49999999999999975e-50 < y < 2.9e6Initial program 99.8%
Taylor expanded in y around 0
lower-/.f6457.3
Applied rewrites57.3%
Final simplification33.7%
(FPCore (x y z t a b c i) :precision binary64 (/ z y))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return z / y;
}
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 = z / y
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return z / y;
}
def code(x, y, z, t, a, b, c, i): return z / y
function code(x, y, z, t, a, b, c, i) return Float64(z / y) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = z / y; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(z / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{z}{y}
\end{array}
Initial program 52.2%
Taylor expanded in x around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites49.4%
Taylor expanded in y around inf
Applied rewrites8.0%
herbie shell --seed 2024270
(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)))