
(FPCore (x y z t a b) :precision binary64 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
real(8) function code(x, y, z, t, a, b)
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
code = (x + ((y * z) / t)) / ((a + 1.0d0) + ((y * b) / t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
def code(x, y, z, t, a, b): return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t))
function code(x, y, z, t, a, b) return Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) end
function tmp = code(x, y, z, t, a, b) tmp = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
real(8) function code(x, y, z, t, a, b)
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
code = (x + ((y * z) / t)) / ((a + 1.0d0) + ((y * b) / t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
def code(x, y, z, t, a, b): return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t))
function code(x, y, z, t, a, b) return Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) end
function tmp = code(x, y, z, t, a, b) tmp = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* y b) t))
(t_2 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) t_1)))
(t_3 (+ 1.0 (+ a t_1)))
(t_4 (* z (+ (/ x (* z t_3)) (/ y (* t t_3))))))
(if (<= t_2 (- INFINITY))
t_4
(if (<= t_2 -1e-298)
t_2
(if (<= t_2 0.0)
(/ (+ x (/ y (/ t z))) (+ a (* y (/ b t))))
(if (<= t_2 2e+293)
t_2
(if (<= t_2 INFINITY)
t_4
(/ (- z (* (/ a b) (/ (* z t) y))) b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * b) / t;
double t_2 = (x + ((y * z) / t)) / ((a + 1.0) + t_1);
double t_3 = 1.0 + (a + t_1);
double t_4 = z * ((x / (z * t_3)) + (y / (t * t_3)));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_4;
} else if (t_2 <= -1e-298) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = (x + (y / (t / z))) / (a + (y * (b / t)));
} else if (t_2 <= 2e+293) {
tmp = t_2;
} else if (t_2 <= ((double) INFINITY)) {
tmp = t_4;
} else {
tmp = (z - ((a / b) * ((z * t) / y))) / b;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * b) / t;
double t_2 = (x + ((y * z) / t)) / ((a + 1.0) + t_1);
double t_3 = 1.0 + (a + t_1);
double t_4 = z * ((x / (z * t_3)) + (y / (t * t_3)));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_4;
} else if (t_2 <= -1e-298) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = (x + (y / (t / z))) / (a + (y * (b / t)));
} else if (t_2 <= 2e+293) {
tmp = t_2;
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_4;
} else {
tmp = (z - ((a / b) * ((z * t) / y))) / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * b) / t t_2 = (x + ((y * z) / t)) / ((a + 1.0) + t_1) t_3 = 1.0 + (a + t_1) t_4 = z * ((x / (z * t_3)) + (y / (t * t_3))) tmp = 0 if t_2 <= -math.inf: tmp = t_4 elif t_2 <= -1e-298: tmp = t_2 elif t_2 <= 0.0: tmp = (x + (y / (t / z))) / (a + (y * (b / t))) elif t_2 <= 2e+293: tmp = t_2 elif t_2 <= math.inf: tmp = t_4 else: tmp = (z - ((a / b) * ((z * t) / y))) / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * b) / t) t_2 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + t_1)) t_3 = Float64(1.0 + Float64(a + t_1)) t_4 = Float64(z * Float64(Float64(x / Float64(z * t_3)) + Float64(y / Float64(t * t_3)))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_4; elseif (t_2 <= -1e-298) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(a + Float64(y * Float64(b / t)))); elseif (t_2 <= 2e+293) tmp = t_2; elseif (t_2 <= Inf) tmp = t_4; else tmp = Float64(Float64(z - Float64(Float64(a / b) * Float64(Float64(z * t) / y))) / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * b) / t; t_2 = (x + ((y * z) / t)) / ((a + 1.0) + t_1); t_3 = 1.0 + (a + t_1); t_4 = z * ((x / (z * t_3)) + (y / (t * t_3))); tmp = 0.0; if (t_2 <= -Inf) tmp = t_4; elseif (t_2 <= -1e-298) tmp = t_2; elseif (t_2 <= 0.0) tmp = (x + (y / (t / z))) / (a + (y * (b / t))); elseif (t_2 <= 2e+293) tmp = t_2; elseif (t_2 <= Inf) tmp = t_4; else tmp = (z - ((a / b) * ((z * t) / y))) / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(1.0 + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(z * N[(N[(x / N[(z * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$4, If[LessEqual[t$95$2, -1e-298], t$95$2, If[LessEqual[t$95$2, 0.0], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+293], t$95$2, If[LessEqual[t$95$2, Infinity], t$95$4, N[(N[(z - N[(N[(a / b), $MachinePrecision] * N[(N[(z * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot b}{t}\\
t_2 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + t\_1}\\
t_3 := 1 + \left(a + t\_1\right)\\
t_4 := z \cdot \left(\frac{x}{z \cdot t\_3} + \frac{y}{t \cdot t\_3}\right)\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-298}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + y \cdot \frac{b}{t}}\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+293}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;\frac{z - \frac{a}{b} \cdot \frac{z \cdot t}{y}}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0 or 1.9999999999999998e293 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 27.1%
associate-/l*61.6%
associate-/l*61.6%
Simplified61.6%
Taylor expanded in z around inf 95.2%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -9.99999999999999912e-299 or 0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 1.9999999999999998e293Initial program 99.8%
if -9.99999999999999912e-299 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 0.0Initial program 56.9%
associate-/l*56.8%
associate-/l*78.5%
Simplified78.5%
clear-num78.5%
un-div-inv78.6%
Applied egg-rr78.6%
Taylor expanded in a around inf 78.6%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 0.0%
Taylor expanded in a around inf 0.0%
Taylor expanded in x around 0 1.1%
Taylor expanded in b around inf 61.5%
mul-1-neg61.5%
unsub-neg61.5%
times-frac92.4%
Simplified92.4%
Final simplification95.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* y b) t))
(t_2 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) t_1)))
(t_3 (+ a t_1)))
(if (<= t_2 (- INFINITY))
(* z (+ (/ x (* z t_3)) (/ y (* t t_3))))
(if (<= t_2 -1e-298)
t_2
(if (<= t_2 0.0)
(/ (+ x (/ y (/ t z))) (+ a (* y (/ b t))))
(if (<= t_2 2e+293) t_2 (/ z b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * b) / t;
double t_2 = (x + ((y * z) / t)) / ((a + 1.0) + t_1);
double t_3 = a + t_1;
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = z * ((x / (z * t_3)) + (y / (t * t_3)));
} else if (t_2 <= -1e-298) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = (x + (y / (t / z))) / (a + (y * (b / t)));
} else if (t_2 <= 2e+293) {
tmp = t_2;
} else {
tmp = z / b;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * b) / t;
double t_2 = (x + ((y * z) / t)) / ((a + 1.0) + t_1);
double t_3 = a + t_1;
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = z * ((x / (z * t_3)) + (y / (t * t_3)));
} else if (t_2 <= -1e-298) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = (x + (y / (t / z))) / (a + (y * (b / t)));
} else if (t_2 <= 2e+293) {
tmp = t_2;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * b) / t t_2 = (x + ((y * z) / t)) / ((a + 1.0) + t_1) t_3 = a + t_1 tmp = 0 if t_2 <= -math.inf: tmp = z * ((x / (z * t_3)) + (y / (t * t_3))) elif t_2 <= -1e-298: tmp = t_2 elif t_2 <= 0.0: tmp = (x + (y / (t / z))) / (a + (y * (b / t))) elif t_2 <= 2e+293: tmp = t_2 else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * b) / t) t_2 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + t_1)) t_3 = Float64(a + t_1) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(z * Float64(Float64(x / Float64(z * t_3)) + Float64(y / Float64(t * t_3)))); elseif (t_2 <= -1e-298) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(a + Float64(y * Float64(b / t)))); elseif (t_2 <= 2e+293) tmp = t_2; else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * b) / t; t_2 = (x + ((y * z) / t)) / ((a + 1.0) + t_1); t_3 = a + t_1; tmp = 0.0; if (t_2 <= -Inf) tmp = z * ((x / (z * t_3)) + (y / (t * t_3))); elseif (t_2 <= -1e-298) tmp = t_2; elseif (t_2 <= 0.0) tmp = (x + (y / (t / z))) / (a + (y * (b / t))); elseif (t_2 <= 2e+293) tmp = t_2; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a + t$95$1), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(z * N[(N[(x / N[(z * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, -1e-298], t$95$2, If[LessEqual[t$95$2, 0.0], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+293], t$95$2, N[(z / b), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot b}{t}\\
t_2 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + t\_1}\\
t_3 := a + t\_1\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;z \cdot \left(\frac{x}{z \cdot t\_3} + \frac{y}{t \cdot t\_3}\right)\\
\mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-298}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + y \cdot \frac{b}{t}}\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+293}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0Initial program 27.8%
Taylor expanded in a around inf 16.7%
Taylor expanded in z around inf 78.7%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -9.99999999999999912e-299 or 0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 1.9999999999999998e293Initial program 99.8%
if -9.99999999999999912e-299 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 0.0Initial program 56.9%
associate-/l*56.8%
associate-/l*78.5%
Simplified78.5%
clear-num78.5%
un-div-inv78.6%
Applied egg-rr78.6%
Taylor expanded in a around inf 78.6%
if 1.9999999999999998e293 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 13.3%
associate-/l*32.0%
associate-/l*39.4%
Simplified39.4%
Taylor expanded in y around inf 71.9%
Final simplification92.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t)))))
(if (<= t_1 2e-307)
(/ (+ x (* y (/ z t))) (+ (+ a 1.0) (/ y (/ t b))))
(if (<= t_1 2e+293) t_1 (/ z b)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_1 <= 2e-307) {
tmp = (x + (y * (z / t))) / ((a + 1.0) + (y / (t / b)));
} else if (t_1 <= 2e+293) {
tmp = t_1;
} else {
tmp = z / b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = (x + ((y * z) / t)) / ((a + 1.0d0) + ((y * b) / t))
if (t_1 <= 2d-307) then
tmp = (x + (y * (z / t))) / ((a + 1.0d0) + (y / (t / b)))
else if (t_1 <= 2d+293) then
tmp = t_1
else
tmp = z / b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_1 <= 2e-307) {
tmp = (x + (y * (z / t))) / ((a + 1.0) + (y / (t / b)));
} else if (t_1 <= 2e+293) {
tmp = t_1;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)) tmp = 0 if t_1 <= 2e-307: tmp = (x + (y * (z / t))) / ((a + 1.0) + (y / (t / b))) elif t_1 <= 2e+293: tmp = t_1 else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) tmp = 0.0 if (t_1 <= 2e-307) tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(Float64(a + 1.0) + Float64(y / Float64(t / b)))); elseif (t_1 <= 2e+293) tmp = t_1; else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)); tmp = 0.0; if (t_1 <= 2e-307) tmp = (x + (y * (z / t))) / ((a + 1.0) + (y / (t / b))); elseif (t_1 <= 2e+293) tmp = t_1; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 2e-307], N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+293], t$95$1, N[(z / b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t\_1 \leq 2 \cdot 10^{-307}:\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + \frac{y}{\frac{t}{b}}}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+293}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 1.99999999999999982e-307Initial program 83.6%
associate-/l*82.3%
associate-/l*87.2%
Simplified87.2%
clear-num87.1%
un-div-inv87.3%
Applied egg-rr87.3%
if 1.99999999999999982e-307 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 1.9999999999999998e293Initial program 99.9%
if 1.9999999999999998e293 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 13.3%
associate-/l*32.0%
associate-/l*39.4%
Simplified39.4%
Taylor expanded in y around inf 71.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (/ y (/ t z)))))
(if (or (<= (+ a 1.0) -2000000000.0) (not (<= (+ a 1.0) 2.0)))
(/ t_1 (+ a (* y (/ b t))))
(/ t_1 (+ 1.0 (/ y (/ t b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y / (t / z));
double tmp;
if (((a + 1.0) <= -2000000000.0) || !((a + 1.0) <= 2.0)) {
tmp = t_1 / (a + (y * (b / t)));
} else {
tmp = t_1 / (1.0 + (y / (t / b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x + (y / (t / z))
if (((a + 1.0d0) <= (-2000000000.0d0)) .or. (.not. ((a + 1.0d0) <= 2.0d0))) then
tmp = t_1 / (a + (y * (b / t)))
else
tmp = t_1 / (1.0d0 + (y / (t / b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y / (t / z));
double tmp;
if (((a + 1.0) <= -2000000000.0) || !((a + 1.0) <= 2.0)) {
tmp = t_1 / (a + (y * (b / t)));
} else {
tmp = t_1 / (1.0 + (y / (t / b)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y / (t / z)) tmp = 0 if ((a + 1.0) <= -2000000000.0) or not ((a + 1.0) <= 2.0): tmp = t_1 / (a + (y * (b / t))) else: tmp = t_1 / (1.0 + (y / (t / b))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y / Float64(t / z))) tmp = 0.0 if ((Float64(a + 1.0) <= -2000000000.0) || !(Float64(a + 1.0) <= 2.0)) tmp = Float64(t_1 / Float64(a + Float64(y * Float64(b / t)))); else tmp = Float64(t_1 / Float64(1.0 + Float64(y / Float64(t / b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y / (t / z)); tmp = 0.0; if (((a + 1.0) <= -2000000000.0) || ~(((a + 1.0) <= 2.0))) tmp = t_1 / (a + (y * (b / t))); else tmp = t_1 / (1.0 + (y / (t / b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[N[(a + 1.0), $MachinePrecision], -2000000000.0], N[Not[LessEqual[N[(a + 1.0), $MachinePrecision], 2.0]], $MachinePrecision]], N[(t$95$1 / N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 / N[(1.0 + N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{\frac{t}{z}}\\
\mathbf{if}\;a + 1 \leq -2000000000 \lor \neg \left(a + 1 \leq 2\right):\\
\;\;\;\;\frac{t\_1}{a + y \cdot \frac{b}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_1}{1 + \frac{y}{\frac{t}{b}}}\\
\end{array}
\end{array}
if (+.f64 a #s(literal 1 binary64)) < -2e9 or 2 < (+.f64 a #s(literal 1 binary64)) Initial program 81.9%
associate-/l*80.5%
associate-/l*84.6%
Simplified84.6%
clear-num84.6%
un-div-inv85.8%
Applied egg-rr85.8%
Taylor expanded in a around inf 84.5%
if -2e9 < (+.f64 a #s(literal 1 binary64)) < 2Initial program 80.2%
associate-/l*79.4%
associate-/l*81.0%
Simplified81.0%
clear-num81.0%
un-div-inv81.1%
Applied egg-rr81.1%
clear-num81.0%
un-div-inv81.2%
Applied egg-rr81.3%
Taylor expanded in a around 0 80.9%
Final simplification82.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ a 1.0) -2000000000.0) (not (<= (+ a 1.0) 1.1))) (/ (+ x (* y (/ z t))) (+ a (* y (/ b t)))) (/ (+ x (/ y (/ t z))) (+ 1.0 (/ y (/ t b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((a + 1.0) <= -2000000000.0) || !((a + 1.0) <= 1.1)) {
tmp = (x + (y * (z / t))) / (a + (y * (b / t)));
} else {
tmp = (x + (y / (t / z))) / (1.0 + (y / (t / b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (((a + 1.0d0) <= (-2000000000.0d0)) .or. (.not. ((a + 1.0d0) <= 1.1d0))) then
tmp = (x + (y * (z / t))) / (a + (y * (b / t)))
else
tmp = (x + (y / (t / z))) / (1.0d0 + (y / (t / b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((a + 1.0) <= -2000000000.0) || !((a + 1.0) <= 1.1)) {
tmp = (x + (y * (z / t))) / (a + (y * (b / t)));
} else {
tmp = (x + (y / (t / z))) / (1.0 + (y / (t / b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((a + 1.0) <= -2000000000.0) or not ((a + 1.0) <= 1.1): tmp = (x + (y * (z / t))) / (a + (y * (b / t))) else: tmp = (x + (y / (t / z))) / (1.0 + (y / (t / b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(a + 1.0) <= -2000000000.0) || !(Float64(a + 1.0) <= 1.1)) tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(a + Float64(y * Float64(b / t)))); else tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(1.0 + Float64(y / Float64(t / b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((a + 1.0) <= -2000000000.0) || ~(((a + 1.0) <= 1.1))) tmp = (x + (y * (z / t))) / (a + (y * (b / t))); else tmp = (x + (y / (t / z))) / (1.0 + (y / (t / b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(a + 1.0), $MachinePrecision], -2000000000.0], N[Not[LessEqual[N[(a + 1.0), $MachinePrecision], 1.1]], $MachinePrecision]], N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a + 1 \leq -2000000000 \lor \neg \left(a + 1 \leq 1.1\right):\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{a + y \cdot \frac{b}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{1 + \frac{y}{\frac{t}{b}}}\\
\end{array}
\end{array}
if (+.f64 a #s(literal 1 binary64)) < -2e9 or 1.1000000000000001 < (+.f64 a #s(literal 1 binary64)) Initial program 82.0%
associate-/l*79.9%
associate-/l*84.1%
Simplified84.1%
Taylor expanded in a around inf 82.7%
if -2e9 < (+.f64 a #s(literal 1 binary64)) < 1.1000000000000001Initial program 80.0%
associate-/l*80.0%
associate-/l*81.7%
Simplified81.7%
clear-num81.7%
un-div-inv81.8%
Applied egg-rr81.8%
clear-num81.7%
un-div-inv81.9%
Applied egg-rr81.9%
Taylor expanded in a around 0 81.5%
Final simplification82.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (/ b t))))
(if (or (<= (+ a 1.0) -2000000000.0) (not (<= (+ a 1.0) 1.1)))
(/ (+ x (* y (/ z t))) (+ a t_1))
(/ (+ x (/ y (/ t z))) (+ 1.0 t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b / t);
double tmp;
if (((a + 1.0) <= -2000000000.0) || !((a + 1.0) <= 1.1)) {
tmp = (x + (y * (z / t))) / (a + t_1);
} else {
tmp = (x + (y / (t / z))) / (1.0 + t_1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = y * (b / t)
if (((a + 1.0d0) <= (-2000000000.0d0)) .or. (.not. ((a + 1.0d0) <= 1.1d0))) then
tmp = (x + (y * (z / t))) / (a + t_1)
else
tmp = (x + (y / (t / z))) / (1.0d0 + 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 t_1 = y * (b / t);
double tmp;
if (((a + 1.0) <= -2000000000.0) || !((a + 1.0) <= 1.1)) {
tmp = (x + (y * (z / t))) / (a + t_1);
} else {
tmp = (x + (y / (t / z))) / (1.0 + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * (b / t) tmp = 0 if ((a + 1.0) <= -2000000000.0) or not ((a + 1.0) <= 1.1): tmp = (x + (y * (z / t))) / (a + t_1) else: tmp = (x + (y / (t / z))) / (1.0 + t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(b / t)) tmp = 0.0 if ((Float64(a + 1.0) <= -2000000000.0) || !(Float64(a + 1.0) <= 1.1)) tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(a + t_1)); else tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(1.0 + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * (b / t); tmp = 0.0; if (((a + 1.0) <= -2000000000.0) || ~(((a + 1.0) <= 1.1))) tmp = (x + (y * (z / t))) / (a + t_1); else tmp = (x + (y / (t / z))) / (1.0 + t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[N[(a + 1.0), $MachinePrecision], -2000000000.0], N[Not[LessEqual[N[(a + 1.0), $MachinePrecision], 1.1]], $MachinePrecision]], N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{b}{t}\\
\mathbf{if}\;a + 1 \leq -2000000000 \lor \neg \left(a + 1 \leq 1.1\right):\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{a + t\_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{1 + t\_1}\\
\end{array}
\end{array}
if (+.f64 a #s(literal 1 binary64)) < -2e9 or 1.1000000000000001 < (+.f64 a #s(literal 1 binary64)) Initial program 82.0%
associate-/l*79.9%
associate-/l*84.1%
Simplified84.1%
Taylor expanded in a around inf 82.7%
if -2e9 < (+.f64 a #s(literal 1 binary64)) < 1.1000000000000001Initial program 80.0%
associate-/l*80.0%
associate-/l*81.7%
Simplified81.7%
clear-num81.7%
un-div-inv81.8%
Applied egg-rr81.8%
Taylor expanded in a around 0 81.3%
Final simplification82.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y (/ z t)))) (t_2 (* y (/ b t))))
(if (or (<= (+ a 1.0) -2000000000.0) (not (<= (+ a 1.0) 1.1)))
(/ t_1 (+ a t_2))
(/ t_1 (+ 1.0 t_2)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * (z / t));
double t_2 = y * (b / t);
double tmp;
if (((a + 1.0) <= -2000000000.0) || !((a + 1.0) <= 1.1)) {
tmp = t_1 / (a + t_2);
} else {
tmp = t_1 / (1.0 + t_2);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (y * (z / t))
t_2 = y * (b / t)
if (((a + 1.0d0) <= (-2000000000.0d0)) .or. (.not. ((a + 1.0d0) <= 1.1d0))) then
tmp = t_1 / (a + t_2)
else
tmp = t_1 / (1.0d0 + t_2)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * (z / t));
double t_2 = y * (b / t);
double tmp;
if (((a + 1.0) <= -2000000000.0) || !((a + 1.0) <= 1.1)) {
tmp = t_1 / (a + t_2);
} else {
tmp = t_1 / (1.0 + t_2);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * (z / t)) t_2 = y * (b / t) tmp = 0 if ((a + 1.0) <= -2000000000.0) or not ((a + 1.0) <= 1.1): tmp = t_1 / (a + t_2) else: tmp = t_1 / (1.0 + t_2) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * Float64(z / t))) t_2 = Float64(y * Float64(b / t)) tmp = 0.0 if ((Float64(a + 1.0) <= -2000000000.0) || !(Float64(a + 1.0) <= 1.1)) tmp = Float64(t_1 / Float64(a + t_2)); else tmp = Float64(t_1 / Float64(1.0 + t_2)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * (z / t)); t_2 = y * (b / t); tmp = 0.0; if (((a + 1.0) <= -2000000000.0) || ~(((a + 1.0) <= 1.1))) tmp = t_1 / (a + t_2); else tmp = t_1 / (1.0 + t_2); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[N[(a + 1.0), $MachinePrecision], -2000000000.0], N[Not[LessEqual[N[(a + 1.0), $MachinePrecision], 1.1]], $MachinePrecision]], N[(t$95$1 / N[(a + t$95$2), $MachinePrecision]), $MachinePrecision], N[(t$95$1 / N[(1.0 + t$95$2), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{z}{t}\\
t_2 := y \cdot \frac{b}{t}\\
\mathbf{if}\;a + 1 \leq -2000000000 \lor \neg \left(a + 1 \leq 1.1\right):\\
\;\;\;\;\frac{t\_1}{a + t\_2}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_1}{1 + t\_2}\\
\end{array}
\end{array}
if (+.f64 a #s(literal 1 binary64)) < -2e9 or 1.1000000000000001 < (+.f64 a #s(literal 1 binary64)) Initial program 82.0%
associate-/l*79.9%
associate-/l*84.1%
Simplified84.1%
Taylor expanded in a around inf 82.7%
if -2e9 < (+.f64 a #s(literal 1 binary64)) < 1.1000000000000001Initial program 80.0%
associate-/l*80.0%
associate-/l*81.7%
Simplified81.7%
Taylor expanded in a around 0 81.3%
Final simplification82.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ a 1.0) -2000000000.0) (not (<= (+ a 1.0) 1.0))) (/ (+ x (* z (* y (/ 1.0 t)))) (+ a 1.0)) (/ (+ x (* y (/ z t))) (+ 1.0 (* y (/ b t))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((a + 1.0) <= -2000000000.0) || !((a + 1.0) <= 1.0)) {
tmp = (x + (z * (y * (1.0 / t)))) / (a + 1.0);
} else {
tmp = (x + (y * (z / t))) / (1.0 + (y * (b / t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (((a + 1.0d0) <= (-2000000000.0d0)) .or. (.not. ((a + 1.0d0) <= 1.0d0))) then
tmp = (x + (z * (y * (1.0d0 / t)))) / (a + 1.0d0)
else
tmp = (x + (y * (z / t))) / (1.0d0 + (y * (b / t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((a + 1.0) <= -2000000000.0) || !((a + 1.0) <= 1.0)) {
tmp = (x + (z * (y * (1.0 / t)))) / (a + 1.0);
} else {
tmp = (x + (y * (z / t))) / (1.0 + (y * (b / t)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((a + 1.0) <= -2000000000.0) or not ((a + 1.0) <= 1.0): tmp = (x + (z * (y * (1.0 / t)))) / (a + 1.0) else: tmp = (x + (y * (z / t))) / (1.0 + (y * (b / t))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(a + 1.0) <= -2000000000.0) || !(Float64(a + 1.0) <= 1.0)) tmp = Float64(Float64(x + Float64(z * Float64(y * Float64(1.0 / t)))) / Float64(a + 1.0)); else tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(1.0 + Float64(y * Float64(b / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((a + 1.0) <= -2000000000.0) || ~(((a + 1.0) <= 1.0))) tmp = (x + (z * (y * (1.0 / t)))) / (a + 1.0); else tmp = (x + (y * (z / t))) / (1.0 + (y * (b / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(a + 1.0), $MachinePrecision], -2000000000.0], N[Not[LessEqual[N[(a + 1.0), $MachinePrecision], 1.0]], $MachinePrecision]], N[(N[(x + N[(z * N[(y * N[(1.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a + 1 \leq -2000000000 \lor \neg \left(a + 1 \leq 1\right):\\
\;\;\;\;\frac{x + z \cdot \left(y \cdot \frac{1}{t}\right)}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{1 + y \cdot \frac{b}{t}}\\
\end{array}
\end{array}
if (+.f64 a #s(literal 1 binary64)) < -2e9 or 1 < (+.f64 a #s(literal 1 binary64)) Initial program 82.1%
associate-/l*80.1%
associate-/l*84.2%
Simplified84.2%
Taylor expanded in b around 0 74.0%
associate-*r/74.6%
*-commutative74.6%
div-inv74.7%
associate-*l*75.3%
Applied egg-rr75.3%
if -2e9 < (+.f64 a #s(literal 1 binary64)) < 1Initial program 79.8%
associate-/l*79.9%
associate-/l*81.5%
Simplified81.5%
Taylor expanded in a around 0 81.4%
Final simplification78.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -3.1e-230) (not (<= t 1.75e-154))) (/ (+ x (/ y (/ t z))) (+ (+ a 1.0) (* y (/ b t)))) (/ (* y z) (+ (* y b) (* t a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -3.1e-230) || !(t <= 1.75e-154)) {
tmp = (x + (y / (t / z))) / ((a + 1.0) + (y * (b / t)));
} else {
tmp = (y * z) / ((y * b) + (t * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((t <= (-3.1d-230)) .or. (.not. (t <= 1.75d-154))) then
tmp = (x + (y / (t / z))) / ((a + 1.0d0) + (y * (b / t)))
else
tmp = (y * z) / ((y * b) + (t * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -3.1e-230) || !(t <= 1.75e-154)) {
tmp = (x + (y / (t / z))) / ((a + 1.0) + (y * (b / t)));
} else {
tmp = (y * z) / ((y * b) + (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -3.1e-230) or not (t <= 1.75e-154): tmp = (x + (y / (t / z))) / ((a + 1.0) + (y * (b / t))) else: tmp = (y * z) / ((y * b) + (t * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -3.1e-230) || !(t <= 1.75e-154)) tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))); else tmp = Float64(Float64(y * z) / Float64(Float64(y * b) + Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -3.1e-230) || ~((t <= 1.75e-154))) tmp = (x + (y / (t / z))) / ((a + 1.0) + (y * (b / t))); else tmp = (y * z) / ((y * b) + (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -3.1e-230], N[Not[LessEqual[t, 1.75e-154]], $MachinePrecision]], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * z), $MachinePrecision] / N[(N[(y * b), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.1 \cdot 10^{-230} \lor \neg \left(t \leq 1.75 \cdot 10^{-154}\right):\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot a}\\
\end{array}
\end{array}
if t < -3.1e-230 or 1.75e-154 < t Initial program 83.4%
associate-/l*84.2%
associate-/l*88.9%
Simplified88.9%
clear-num88.9%
un-div-inv89.4%
Applied egg-rr89.4%
if -3.1e-230 < t < 1.75e-154Initial program 63.3%
Taylor expanded in a around inf 56.2%
Taylor expanded in x around 0 56.5%
Taylor expanded in t around 0 79.4%
Final simplification88.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -3.1e-230) (not (<= t 2.3e-157))) (/ (+ x (* y (/ z t))) (+ (+ a 1.0) (* y (/ b t)))) (/ (* y z) (+ (* y b) (* t a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -3.1e-230) || !(t <= 2.3e-157)) {
tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t)));
} else {
tmp = (y * z) / ((y * b) + (t * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((t <= (-3.1d-230)) .or. (.not. (t <= 2.3d-157))) then
tmp = (x + (y * (z / t))) / ((a + 1.0d0) + (y * (b / t)))
else
tmp = (y * z) / ((y * b) + (t * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -3.1e-230) || !(t <= 2.3e-157)) {
tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t)));
} else {
tmp = (y * z) / ((y * b) + (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -3.1e-230) or not (t <= 2.3e-157): tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t))) else: tmp = (y * z) / ((y * b) + (t * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -3.1e-230) || !(t <= 2.3e-157)) tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))); else tmp = Float64(Float64(y * z) / Float64(Float64(y * b) + Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -3.1e-230) || ~((t <= 2.3e-157))) tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t))); else tmp = (y * z) / ((y * b) + (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -3.1e-230], N[Not[LessEqual[t, 2.3e-157]], $MachinePrecision]], N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * z), $MachinePrecision] / N[(N[(y * b), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.1 \cdot 10^{-230} \lor \neg \left(t \leq 2.3 \cdot 10^{-157}\right):\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot a}\\
\end{array}
\end{array}
if t < -3.1e-230 or 2.29999999999999989e-157 < t Initial program 83.4%
associate-/l*84.2%
associate-/l*88.9%
Simplified88.9%
if -3.1e-230 < t < 2.29999999999999989e-157Initial program 63.3%
Taylor expanded in a around inf 56.2%
Taylor expanded in x around 0 56.5%
Taylor expanded in t around 0 79.4%
Final simplification87.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y (/ z t)))))
(if (<= t -2.9e-230)
(/ t_1 (+ (+ a 1.0) (/ y (/ t b))))
(if (<= t 1.25e-157)
(/ (* y z) (+ (* y b) (* t a)))
(/ t_1 (+ (+ a 1.0) (* y (/ b t))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * (z / t));
double tmp;
if (t <= -2.9e-230) {
tmp = t_1 / ((a + 1.0) + (y / (t / b)));
} else if (t <= 1.25e-157) {
tmp = (y * z) / ((y * b) + (t * a));
} else {
tmp = t_1 / ((a + 1.0) + (y * (b / t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x + (y * (z / t))
if (t <= (-2.9d-230)) then
tmp = t_1 / ((a + 1.0d0) + (y / (t / b)))
else if (t <= 1.25d-157) then
tmp = (y * z) / ((y * b) + (t * a))
else
tmp = t_1 / ((a + 1.0d0) + (y * (b / t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * (z / t));
double tmp;
if (t <= -2.9e-230) {
tmp = t_1 / ((a + 1.0) + (y / (t / b)));
} else if (t <= 1.25e-157) {
tmp = (y * z) / ((y * b) + (t * a));
} else {
tmp = t_1 / ((a + 1.0) + (y * (b / t)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * (z / t)) tmp = 0 if t <= -2.9e-230: tmp = t_1 / ((a + 1.0) + (y / (t / b))) elif t <= 1.25e-157: tmp = (y * z) / ((y * b) + (t * a)) else: tmp = t_1 / ((a + 1.0) + (y * (b / t))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * Float64(z / t))) tmp = 0.0 if (t <= -2.9e-230) tmp = Float64(t_1 / Float64(Float64(a + 1.0) + Float64(y / Float64(t / b)))); elseif (t <= 1.25e-157) tmp = Float64(Float64(y * z) / Float64(Float64(y * b) + Float64(t * a))); else tmp = Float64(t_1 / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * (z / t)); tmp = 0.0; if (t <= -2.9e-230) tmp = t_1 / ((a + 1.0) + (y / (t / b))); elseif (t <= 1.25e-157) tmp = (y * z) / ((y * b) + (t * a)); else tmp = t_1 / ((a + 1.0) + (y * (b / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.9e-230], N[(t$95$1 / N[(N[(a + 1.0), $MachinePrecision] + N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e-157], N[(N[(y * z), $MachinePrecision] / N[(N[(y * b), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 / N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{z}{t}\\
\mathbf{if}\;t \leq -2.9 \cdot 10^{-230}:\\
\;\;\;\;\frac{t\_1}{\left(a + 1\right) + \frac{y}{\frac{t}{b}}}\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-157}:\\
\;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_1}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\end{array}
\end{array}
if t < -2.90000000000000005e-230Initial program 86.9%
associate-/l*86.1%
associate-/l*87.8%
Simplified87.8%
clear-num87.8%
un-div-inv87.8%
Applied egg-rr87.8%
if -2.90000000000000005e-230 < t < 1.25000000000000005e-157Initial program 63.3%
Taylor expanded in a around inf 56.2%
Taylor expanded in x around 0 56.5%
Taylor expanded in t around 0 79.4%
if 1.25000000000000005e-157 < t Initial program 79.6%
associate-/l*82.2%
associate-/l*90.1%
Simplified90.1%
Final simplification87.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -9.5e-93)
(/ (+ x (* z (* y (/ 1.0 t)))) (+ a 1.0))
(if (<= t 3e-77)
(/ (* y z) (+ (* y b) (* t a)))
(if (<= t 6.7e+24)
(/ (+ x (/ (* y z) t)) (+ a 1.0))
(/ x (+ 1.0 (+ a (* y (/ b t)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -9.5e-93) {
tmp = (x + (z * (y * (1.0 / t)))) / (a + 1.0);
} else if (t <= 3e-77) {
tmp = (y * z) / ((y * b) + (t * a));
} else if (t <= 6.7e+24) {
tmp = (x + ((y * z) / t)) / (a + 1.0);
} else {
tmp = x / (1.0 + (a + (y * (b / t))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (t <= (-9.5d-93)) then
tmp = (x + (z * (y * (1.0d0 / t)))) / (a + 1.0d0)
else if (t <= 3d-77) then
tmp = (y * z) / ((y * b) + (t * a))
else if (t <= 6.7d+24) then
tmp = (x + ((y * z) / t)) / (a + 1.0d0)
else
tmp = x / (1.0d0 + (a + (y * (b / t))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -9.5e-93) {
tmp = (x + (z * (y * (1.0 / t)))) / (a + 1.0);
} else if (t <= 3e-77) {
tmp = (y * z) / ((y * b) + (t * a));
} else if (t <= 6.7e+24) {
tmp = (x + ((y * z) / t)) / (a + 1.0);
} else {
tmp = x / (1.0 + (a + (y * (b / t))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -9.5e-93: tmp = (x + (z * (y * (1.0 / t)))) / (a + 1.0) elif t <= 3e-77: tmp = (y * z) / ((y * b) + (t * a)) elif t <= 6.7e+24: tmp = (x + ((y * z) / t)) / (a + 1.0) else: tmp = x / (1.0 + (a + (y * (b / t)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -9.5e-93) tmp = Float64(Float64(x + Float64(z * Float64(y * Float64(1.0 / t)))) / Float64(a + 1.0)); elseif (t <= 3e-77) tmp = Float64(Float64(y * z) / Float64(Float64(y * b) + Float64(t * a))); elseif (t <= 6.7e+24) tmp = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(a + 1.0)); else tmp = Float64(x / Float64(1.0 + Float64(a + Float64(y * Float64(b / t))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -9.5e-93) tmp = (x + (z * (y * (1.0 / t)))) / (a + 1.0); elseif (t <= 3e-77) tmp = (y * z) / ((y * b) + (t * a)); elseif (t <= 6.7e+24) tmp = (x + ((y * z) / t)) / (a + 1.0); else tmp = x / (1.0 + (a + (y * (b / t)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -9.5e-93], N[(N[(x + N[(z * N[(y * N[(1.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e-77], N[(N[(y * z), $MachinePrecision] / N[(N[(y * b), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.7e+24], N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], N[(x / N[(1.0 + N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.5 \cdot 10^{-93}:\\
\;\;\;\;\frac{x + z \cdot \left(y \cdot \frac{1}{t}\right)}{a + 1}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{-77}:\\
\;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot a}\\
\mathbf{elif}\;t \leq 6.7 \cdot 10^{+24}:\\
\;\;\;\;\frac{x + \frac{y \cdot z}{t}}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 + \left(a + y \cdot \frac{b}{t}\right)}\\
\end{array}
\end{array}
if t < -9.5000000000000001e-93Initial program 88.2%
associate-/l*90.7%
associate-/l*93.0%
Simplified93.0%
Taylor expanded in b around 0 81.9%
associate-*r/83.2%
*-commutative83.2%
div-inv83.2%
associate-*l*84.3%
Applied egg-rr84.3%
if -9.5000000000000001e-93 < t < 3.00000000000000016e-77Initial program 75.5%
Taylor expanded in a around inf 62.8%
Taylor expanded in x around 0 53.5%
Taylor expanded in t around 0 66.0%
if 3.00000000000000016e-77 < t < 6.6999999999999999e24Initial program 86.0%
associate-/l*86.0%
associate-/l*86.0%
Simplified86.0%
Taylor expanded in b around 0 81.1%
if 6.6999999999999999e24 < t Initial program 77.7%
associate-/l*83.3%
associate-/l*97.1%
Simplified97.1%
Taylor expanded in x around inf 71.9%
associate-*l/80.3%
*-commutative80.3%
Simplified80.3%
Final simplification77.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -1.4e-93)
(/ (+ x (* y (/ z t))) (+ a 1.0))
(if (<= t 9.2e-67)
(/ (* y z) (+ (* y b) (* t a)))
(if (<= t 3.5e+23)
(/ (+ x (/ (* y z) t)) (+ a 1.0))
(/ x (+ 1.0 (+ a (* y (/ b t)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.4e-93) {
tmp = (x + (y * (z / t))) / (a + 1.0);
} else if (t <= 9.2e-67) {
tmp = (y * z) / ((y * b) + (t * a));
} else if (t <= 3.5e+23) {
tmp = (x + ((y * z) / t)) / (a + 1.0);
} else {
tmp = x / (1.0 + (a + (y * (b / t))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (t <= (-1.4d-93)) then
tmp = (x + (y * (z / t))) / (a + 1.0d0)
else if (t <= 9.2d-67) then
tmp = (y * z) / ((y * b) + (t * a))
else if (t <= 3.5d+23) then
tmp = (x + ((y * z) / t)) / (a + 1.0d0)
else
tmp = x / (1.0d0 + (a + (y * (b / t))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.4e-93) {
tmp = (x + (y * (z / t))) / (a + 1.0);
} else if (t <= 9.2e-67) {
tmp = (y * z) / ((y * b) + (t * a));
} else if (t <= 3.5e+23) {
tmp = (x + ((y * z) / t)) / (a + 1.0);
} else {
tmp = x / (1.0 + (a + (y * (b / t))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -1.4e-93: tmp = (x + (y * (z / t))) / (a + 1.0) elif t <= 9.2e-67: tmp = (y * z) / ((y * b) + (t * a)) elif t <= 3.5e+23: tmp = (x + ((y * z) / t)) / (a + 1.0) else: tmp = x / (1.0 + (a + (y * (b / t)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -1.4e-93) tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(a + 1.0)); elseif (t <= 9.2e-67) tmp = Float64(Float64(y * z) / Float64(Float64(y * b) + Float64(t * a))); elseif (t <= 3.5e+23) tmp = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(a + 1.0)); else tmp = Float64(x / Float64(1.0 + Float64(a + Float64(y * Float64(b / t))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -1.4e-93) tmp = (x + (y * (z / t))) / (a + 1.0); elseif (t <= 9.2e-67) tmp = (y * z) / ((y * b) + (t * a)); elseif (t <= 3.5e+23) tmp = (x + ((y * z) / t)) / (a + 1.0); else tmp = x / (1.0 + (a + (y * (b / t)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.4e-93], N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.2e-67], N[(N[(y * z), $MachinePrecision] / N[(N[(y * b), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e+23], N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], N[(x / N[(1.0 + N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{-93}:\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{a + 1}\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{-67}:\\
\;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot a}\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{+23}:\\
\;\;\;\;\frac{x + \frac{y \cdot z}{t}}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 + \left(a + y \cdot \frac{b}{t}\right)}\\
\end{array}
\end{array}
if t < -1.39999999999999999e-93Initial program 88.2%
associate-/l*90.7%
associate-/l*93.0%
Simplified93.0%
Taylor expanded in b around 0 81.9%
associate-*r/83.2%
*-commutative83.2%
Applied egg-rr83.2%
if -1.39999999999999999e-93 < t < 9.2000000000000002e-67Initial program 75.5%
Taylor expanded in a around inf 62.8%
Taylor expanded in x around 0 53.5%
Taylor expanded in t around 0 66.0%
if 9.2000000000000002e-67 < t < 3.5000000000000002e23Initial program 86.0%
associate-/l*86.0%
associate-/l*86.0%
Simplified86.0%
Taylor expanded in b around 0 81.1%
if 3.5000000000000002e23 < t Initial program 77.7%
associate-/l*83.3%
associate-/l*97.1%
Simplified97.1%
Taylor expanded in x around inf 71.9%
associate-*l/80.3%
*-commutative80.3%
Simplified80.3%
Final simplification76.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (* y (/ z t))) (+ a 1.0))))
(if (<= t -7.8e-94)
t_1
(if (<= t 1.1e-75)
(/ (* y z) (+ (* y b) (* t a)))
(if (<= t 2.7e+24) t_1 (/ x (+ 1.0 (+ a (* y (/ b t))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (y * (z / t))) / (a + 1.0);
double tmp;
if (t <= -7.8e-94) {
tmp = t_1;
} else if (t <= 1.1e-75) {
tmp = (y * z) / ((y * b) + (t * a));
} else if (t <= 2.7e+24) {
tmp = t_1;
} else {
tmp = x / (1.0 + (a + (y * (b / t))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = (x + (y * (z / t))) / (a + 1.0d0)
if (t <= (-7.8d-94)) then
tmp = t_1
else if (t <= 1.1d-75) then
tmp = (y * z) / ((y * b) + (t * a))
else if (t <= 2.7d+24) then
tmp = t_1
else
tmp = x / (1.0d0 + (a + (y * (b / t))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (y * (z / t))) / (a + 1.0);
double tmp;
if (t <= -7.8e-94) {
tmp = t_1;
} else if (t <= 1.1e-75) {
tmp = (y * z) / ((y * b) + (t * a));
} else if (t <= 2.7e+24) {
tmp = t_1;
} else {
tmp = x / (1.0 + (a + (y * (b / t))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + (y * (z / t))) / (a + 1.0) tmp = 0 if t <= -7.8e-94: tmp = t_1 elif t <= 1.1e-75: tmp = (y * z) / ((y * b) + (t * a)) elif t <= 2.7e+24: tmp = t_1 else: tmp = x / (1.0 + (a + (y * (b / t)))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(a + 1.0)) tmp = 0.0 if (t <= -7.8e-94) tmp = t_1; elseif (t <= 1.1e-75) tmp = Float64(Float64(y * z) / Float64(Float64(y * b) + Float64(t * a))); elseif (t <= 2.7e+24) tmp = t_1; else tmp = Float64(x / Float64(1.0 + Float64(a + Float64(y * Float64(b / t))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + (y * (z / t))) / (a + 1.0); tmp = 0.0; if (t <= -7.8e-94) tmp = t_1; elseif (t <= 1.1e-75) tmp = (y * z) / ((y * b) + (t * a)); elseif (t <= 2.7e+24) tmp = t_1; else tmp = x / (1.0 + (a + (y * (b / t)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.8e-94], t$95$1, If[LessEqual[t, 1.1e-75], N[(N[(y * z), $MachinePrecision] / N[(N[(y * b), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e+24], t$95$1, N[(x / N[(1.0 + N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + y \cdot \frac{z}{t}}{a + 1}\\
\mathbf{if}\;t \leq -7.8 \cdot 10^{-94}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{-75}:\\
\;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot a}\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{+24}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 + \left(a + y \cdot \frac{b}{t}\right)}\\
\end{array}
\end{array}
if t < -7.8000000000000004e-94 or 1.10000000000000003e-75 < t < 2.7e24Initial program 87.8%
associate-/l*89.7%
associate-/l*91.6%
Simplified91.6%
Taylor expanded in b around 0 81.7%
associate-*r/82.7%
*-commutative82.7%
Applied egg-rr82.7%
if -7.8000000000000004e-94 < t < 1.10000000000000003e-75Initial program 75.5%
Taylor expanded in a around inf 62.8%
Taylor expanded in x around 0 53.5%
Taylor expanded in t around 0 66.0%
if 2.7e24 < t Initial program 77.7%
associate-/l*83.3%
associate-/l*97.1%
Simplified97.1%
Taylor expanded in x around inf 71.9%
associate-*l/80.3%
*-commutative80.3%
Simplified80.3%
Final simplification76.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ y (/ t z))) a)))
(if (<= a -6800000000000.0)
t_1
(if (<= a 3.8e-33)
(/ x (+ 1.0 (+ a (* y (/ b t)))))
(if (<= a 3000000000000.0) (/ z b) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (y / (t / z))) / a;
double tmp;
if (a <= -6800000000000.0) {
tmp = t_1;
} else if (a <= 3.8e-33) {
tmp = x / (1.0 + (a + (y * (b / t))));
} else if (a <= 3000000000000.0) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = (x + (y / (t / z))) / a
if (a <= (-6800000000000.0d0)) then
tmp = t_1
else if (a <= 3.8d-33) then
tmp = x / (1.0d0 + (a + (y * (b / t))))
else if (a <= 3000000000000.0d0) then
tmp = z / b
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (y / (t / z))) / a;
double tmp;
if (a <= -6800000000000.0) {
tmp = t_1;
} else if (a <= 3.8e-33) {
tmp = x / (1.0 + (a + (y * (b / t))));
} else if (a <= 3000000000000.0) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + (y / (t / z))) / a tmp = 0 if a <= -6800000000000.0: tmp = t_1 elif a <= 3.8e-33: tmp = x / (1.0 + (a + (y * (b / t)))) elif a <= 3000000000000.0: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(y / Float64(t / z))) / a) tmp = 0.0 if (a <= -6800000000000.0) tmp = t_1; elseif (a <= 3.8e-33) tmp = Float64(x / Float64(1.0 + Float64(a + Float64(y * Float64(b / t))))); elseif (a <= 3000000000000.0) tmp = Float64(z / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + (y / (t / z))) / a; tmp = 0.0; if (a <= -6800000000000.0) tmp = t_1; elseif (a <= 3.8e-33) tmp = x / (1.0 + (a + (y * (b / t)))); elseif (a <= 3000000000000.0) tmp = z / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[a, -6800000000000.0], t$95$1, If[LessEqual[a, 3.8e-33], N[(x / N[(1.0 + N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3000000000000.0], N[(z / b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y}{\frac{t}{z}}}{a}\\
\mathbf{if}\;a \leq -6800000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{-33}:\\
\;\;\;\;\frac{x}{1 + \left(a + y \cdot \frac{b}{t}\right)}\\
\mathbf{elif}\;a \leq 3000000000000:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -6.8e12 or 3e12 < a Initial program 82.8%
associate-/l*81.4%
associate-/l*85.8%
Simplified85.8%
clear-num85.8%
un-div-inv87.1%
Applied egg-rr87.1%
clear-num85.8%
un-div-inv85.8%
Applied egg-rr87.1%
Taylor expanded in a around inf 75.1%
associate-/l*75.8%
Simplified75.8%
clear-num85.8%
un-div-inv87.1%
Applied egg-rr77.1%
if -6.8e12 < a < 3.79999999999999994e-33Initial program 82.2%
associate-/l*80.6%
associate-/l*82.3%
Simplified82.3%
Taylor expanded in x around inf 61.9%
associate-*l/62.8%
*-commutative62.8%
Simplified62.8%
if 3.79999999999999994e-33 < a < 3e12Initial program 48.7%
associate-/l*57.0%
associate-/l*57.0%
Simplified57.0%
Taylor expanded in y around inf 73.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ y (/ t z))) a)))
(if (<= a -0.87)
t_1
(if (<= a 1.9e-33)
(+ x (/ (* y z) t))
(if (<= a 2800000000000.0) (/ z b) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (y / (t / z))) / a;
double tmp;
if (a <= -0.87) {
tmp = t_1;
} else if (a <= 1.9e-33) {
tmp = x + ((y * z) / t);
} else if (a <= 2800000000000.0) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = (x + (y / (t / z))) / a
if (a <= (-0.87d0)) then
tmp = t_1
else if (a <= 1.9d-33) then
tmp = x + ((y * z) / t)
else if (a <= 2800000000000.0d0) then
tmp = z / b
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (y / (t / z))) / a;
double tmp;
if (a <= -0.87) {
tmp = t_1;
} else if (a <= 1.9e-33) {
tmp = x + ((y * z) / t);
} else if (a <= 2800000000000.0) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + (y / (t / z))) / a tmp = 0 if a <= -0.87: tmp = t_1 elif a <= 1.9e-33: tmp = x + ((y * z) / t) elif a <= 2800000000000.0: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(y / Float64(t / z))) / a) tmp = 0.0 if (a <= -0.87) tmp = t_1; elseif (a <= 1.9e-33) tmp = Float64(x + Float64(Float64(y * z) / t)); elseif (a <= 2800000000000.0) tmp = Float64(z / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + (y / (t / z))) / a; tmp = 0.0; if (a <= -0.87) tmp = t_1; elseif (a <= 1.9e-33) tmp = x + ((y * z) / t); elseif (a <= 2800000000000.0) tmp = z / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[a, -0.87], t$95$1, If[LessEqual[a, 1.9e-33], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2800000000000.0], N[(z / b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y}{\frac{t}{z}}}{a}\\
\mathbf{if}\;a \leq -0.87:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{-33}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\mathbf{elif}\;a \leq 2800000000000:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -0.869999999999999996 or 2.8e12 < a Initial program 83.2%
associate-/l*81.8%
associate-/l*86.1%
Simplified86.1%
clear-num86.1%
un-div-inv87.3%
Applied egg-rr87.3%
clear-num86.1%
un-div-inv86.1%
Applied egg-rr87.3%
Taylor expanded in a around inf 74.5%
associate-/l*75.2%
Simplified75.2%
clear-num86.1%
un-div-inv87.3%
Applied egg-rr76.4%
if -0.869999999999999996 < a < 1.89999999999999997e-33Initial program 82.4%
associate-/l*80.7%
associate-/l*81.6%
Simplified81.6%
Taylor expanded in b around 0 56.3%
Taylor expanded in a around 0 56.1%
if 1.89999999999999997e-33 < a < 2.8e12Initial program 45.4%
associate-/l*53.1%
associate-/l*60.6%
Simplified60.6%
Taylor expanded in y around inf 68.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (* y (/ z t))) a)))
(if (<= a -1.0)
t_1
(if (<= a 6.5e-36) (+ x (/ (* y z) t)) (if (<= a 1.3e+14) (/ z b) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (y * (z / t))) / a;
double tmp;
if (a <= -1.0) {
tmp = t_1;
} else if (a <= 6.5e-36) {
tmp = x + ((y * z) / t);
} else if (a <= 1.3e+14) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = (x + (y * (z / t))) / a
if (a <= (-1.0d0)) then
tmp = t_1
else if (a <= 6.5d-36) then
tmp = x + ((y * z) / t)
else if (a <= 1.3d+14) then
tmp = z / b
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (y * (z / t))) / a;
double tmp;
if (a <= -1.0) {
tmp = t_1;
} else if (a <= 6.5e-36) {
tmp = x + ((y * z) / t);
} else if (a <= 1.3e+14) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + (y * (z / t))) / a tmp = 0 if a <= -1.0: tmp = t_1 elif a <= 6.5e-36: tmp = x + ((y * z) / t) elif a <= 1.3e+14: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(y * Float64(z / t))) / a) tmp = 0.0 if (a <= -1.0) tmp = t_1; elseif (a <= 6.5e-36) tmp = Float64(x + Float64(Float64(y * z) / t)); elseif (a <= 1.3e+14) tmp = Float64(z / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + (y * (z / t))) / a; tmp = 0.0; if (a <= -1.0) tmp = t_1; elseif (a <= 6.5e-36) tmp = x + ((y * z) / t); elseif (a <= 1.3e+14) tmp = z / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[a, -1.0], t$95$1, If[LessEqual[a, 6.5e-36], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.3e+14], N[(z / b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + y \cdot \frac{z}{t}}{a}\\
\mathbf{if}\;a \leq -1:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-36}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{+14}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1 or 1.3e14 < a Initial program 83.2%
associate-/l*81.8%
associate-/l*86.1%
Simplified86.1%
clear-num86.1%
un-div-inv87.3%
Applied egg-rr87.3%
clear-num86.1%
un-div-inv86.1%
Applied egg-rr87.3%
Taylor expanded in a around inf 74.5%
associate-/l*75.2%
Simplified75.2%
if -1 < a < 6.50000000000000012e-36Initial program 82.4%
associate-/l*80.7%
associate-/l*81.6%
Simplified81.6%
Taylor expanded in b around 0 56.3%
Taylor expanded in a around 0 56.1%
if 6.50000000000000012e-36 < a < 1.3e14Initial program 45.4%
associate-/l*53.1%
associate-/l*60.6%
Simplified60.6%
Taylor expanded in y around inf 68.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (+ a 1.0))))
(if (<= t -8.2e-90)
t_1
(if (<= t 1.2e-44)
(/ z b)
(if (<= t 1650000.0) (/ (* y z) (* t (+ a 1.0))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a + 1.0);
double tmp;
if (t <= -8.2e-90) {
tmp = t_1;
} else if (t <= 1.2e-44) {
tmp = z / b;
} else if (t <= 1650000.0) {
tmp = (y * z) / (t * (a + 1.0));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x / (a + 1.0d0)
if (t <= (-8.2d-90)) then
tmp = t_1
else if (t <= 1.2d-44) then
tmp = z / b
else if (t <= 1650000.0d0) then
tmp = (y * z) / (t * (a + 1.0d0))
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 t_1 = x / (a + 1.0);
double tmp;
if (t <= -8.2e-90) {
tmp = t_1;
} else if (t <= 1.2e-44) {
tmp = z / b;
} else if (t <= 1650000.0) {
tmp = (y * z) / (t * (a + 1.0));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a + 1.0) tmp = 0 if t <= -8.2e-90: tmp = t_1 elif t <= 1.2e-44: tmp = z / b elif t <= 1650000.0: tmp = (y * z) / (t * (a + 1.0)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a + 1.0)) tmp = 0.0 if (t <= -8.2e-90) tmp = t_1; elseif (t <= 1.2e-44) tmp = Float64(z / b); elseif (t <= 1650000.0) tmp = Float64(Float64(y * z) / Float64(t * Float64(a + 1.0))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a + 1.0); tmp = 0.0; if (t <= -8.2e-90) tmp = t_1; elseif (t <= 1.2e-44) tmp = z / b; elseif (t <= 1650000.0) tmp = (y * z) / (t * (a + 1.0)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.2e-90], t$95$1, If[LessEqual[t, 1.2e-44], N[(z / b), $MachinePrecision], If[LessEqual[t, 1650000.0], N[(N[(y * z), $MachinePrecision] / N[(t * N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
\mathbf{if}\;t \leq -8.2 \cdot 10^{-90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-44}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;t \leq 1650000:\\
\;\;\;\;\frac{y \cdot z}{t \cdot \left(a + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -8.2000000000000007e-90 or 1.65e6 < t Initial program 83.7%
associate-/l*87.5%
associate-/l*94.9%
Simplified94.9%
Taylor expanded in y around 0 64.9%
if -8.2000000000000007e-90 < t < 1.20000000000000004e-44Initial program 75.3%
associate-/l*66.1%
associate-/l*62.0%
Simplified62.0%
Taylor expanded in y around inf 51.5%
if 1.20000000000000004e-44 < t < 1.65e6Initial program 99.4%
associate-/l*99.4%
associate-/l*99.4%
Simplified99.4%
Taylor expanded in b around 0 99.4%
Taylor expanded in x around 0 85.8%
Final simplification60.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (+ a 1.0))))
(if (<= t -5e-91)
t_1
(if (<= t 1.2e-44)
(/ z b)
(if (<= t 205000.0) (* y (/ (/ z t) (+ a 1.0))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a + 1.0);
double tmp;
if (t <= -5e-91) {
tmp = t_1;
} else if (t <= 1.2e-44) {
tmp = z / b;
} else if (t <= 205000.0) {
tmp = y * ((z / t) / (a + 1.0));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x / (a + 1.0d0)
if (t <= (-5d-91)) then
tmp = t_1
else if (t <= 1.2d-44) then
tmp = z / b
else if (t <= 205000.0d0) then
tmp = y * ((z / t) / (a + 1.0d0))
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 t_1 = x / (a + 1.0);
double tmp;
if (t <= -5e-91) {
tmp = t_1;
} else if (t <= 1.2e-44) {
tmp = z / b;
} else if (t <= 205000.0) {
tmp = y * ((z / t) / (a + 1.0));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a + 1.0) tmp = 0 if t <= -5e-91: tmp = t_1 elif t <= 1.2e-44: tmp = z / b elif t <= 205000.0: tmp = y * ((z / t) / (a + 1.0)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a + 1.0)) tmp = 0.0 if (t <= -5e-91) tmp = t_1; elseif (t <= 1.2e-44) tmp = Float64(z / b); elseif (t <= 205000.0) tmp = Float64(y * Float64(Float64(z / t) / Float64(a + 1.0))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a + 1.0); tmp = 0.0; if (t <= -5e-91) tmp = t_1; elseif (t <= 1.2e-44) tmp = z / b; elseif (t <= 205000.0) tmp = y * ((z / t) / (a + 1.0)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5e-91], t$95$1, If[LessEqual[t, 1.2e-44], N[(z / b), $MachinePrecision], If[LessEqual[t, 205000.0], N[(y * N[(N[(z / t), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
\mathbf{if}\;t \leq -5 \cdot 10^{-91}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-44}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;t \leq 205000:\\
\;\;\;\;y \cdot \frac{\frac{z}{t}}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.99999999999999997e-91 or 205000 < t Initial program 83.7%
associate-/l*87.5%
associate-/l*94.9%
Simplified94.9%
Taylor expanded in y around 0 64.9%
if -4.99999999999999997e-91 < t < 1.20000000000000004e-44Initial program 75.3%
associate-/l*66.1%
associate-/l*62.0%
Simplified62.0%
Taylor expanded in y around inf 51.5%
if 1.20000000000000004e-44 < t < 205000Initial program 99.4%
associate-/l*99.4%
associate-/l*99.4%
Simplified99.4%
Taylor expanded in b around 0 99.4%
Taylor expanded in x around 0 85.8%
associate-/l*85.6%
associate-/r*85.5%
Simplified85.5%
Final simplification60.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -5.8e-90) (not (<= t 1.25e-10))) (/ x (+ 1.0 (+ a (* y (/ b t))))) (/ (* y z) (+ (* y b) (* t a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -5.8e-90) || !(t <= 1.25e-10)) {
tmp = x / (1.0 + (a + (y * (b / t))));
} else {
tmp = (y * z) / ((y * b) + (t * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((t <= (-5.8d-90)) .or. (.not. (t <= 1.25d-10))) then
tmp = x / (1.0d0 + (a + (y * (b / t))))
else
tmp = (y * z) / ((y * b) + (t * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -5.8e-90) || !(t <= 1.25e-10)) {
tmp = x / (1.0 + (a + (y * (b / t))));
} else {
tmp = (y * z) / ((y * b) + (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -5.8e-90) or not (t <= 1.25e-10): tmp = x / (1.0 + (a + (y * (b / t)))) else: tmp = (y * z) / ((y * b) + (t * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -5.8e-90) || !(t <= 1.25e-10)) tmp = Float64(x / Float64(1.0 + Float64(a + Float64(y * Float64(b / t))))); else tmp = Float64(Float64(y * z) / Float64(Float64(y * b) + Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -5.8e-90) || ~((t <= 1.25e-10))) tmp = x / (1.0 + (a + (y * (b / t)))); else tmp = (y * z) / ((y * b) + (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -5.8e-90], N[Not[LessEqual[t, 1.25e-10]], $MachinePrecision]], N[(x / N[(1.0 + N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * z), $MachinePrecision] / N[(N[(y * b), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.8 \cdot 10^{-90} \lor \neg \left(t \leq 1.25 \cdot 10^{-10}\right):\\
\;\;\;\;\frac{x}{1 + \left(a + y \cdot \frac{b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot a}\\
\end{array}
\end{array}
if t < -5.79999999999999967e-90 or 1.25000000000000008e-10 < t Initial program 84.0%
associate-/l*87.7%
associate-/l*95.0%
Simplified95.0%
Taylor expanded in x around inf 70.6%
associate-*l/74.8%
*-commutative74.8%
Simplified74.8%
if -5.79999999999999967e-90 < t < 1.25000000000000008e-10Initial program 76.5%
Taylor expanded in a around inf 63.0%
Taylor expanded in x around 0 54.1%
Taylor expanded in t around 0 64.6%
Final simplification70.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.15e-90) (not (<= t 1.2e-44))) (/ x (+ a 1.0)) (/ z b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.15e-90) || !(t <= 1.2e-44)) {
tmp = x / (a + 1.0);
} else {
tmp = z / b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((t <= (-1.15d-90)) .or. (.not. (t <= 1.2d-44))) then
tmp = x / (a + 1.0d0)
else
tmp = z / b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.15e-90) || !(t <= 1.2e-44)) {
tmp = x / (a + 1.0);
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.15e-90) or not (t <= 1.2e-44): tmp = x / (a + 1.0) else: tmp = z / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.15e-90) || !(t <= 1.2e-44)) tmp = Float64(x / Float64(a + 1.0)); else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.15e-90) || ~((t <= 1.2e-44))) tmp = x / (a + 1.0); else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.15e-90], N[Not[LessEqual[t, 1.2e-44]], $MachinePrecision]], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], N[(z / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.15 \cdot 10^{-90} \lor \neg \left(t \leq 1.2 \cdot 10^{-44}\right):\\
\;\;\;\;\frac{x}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if t < -1.1499999999999999e-90 or 1.20000000000000004e-44 < t Initial program 84.4%
associate-/l*88.1%
associate-/l*95.1%
Simplified95.1%
Taylor expanded in y around 0 63.1%
if -1.1499999999999999e-90 < t < 1.20000000000000004e-44Initial program 75.3%
associate-/l*66.1%
associate-/l*62.0%
Simplified62.0%
Taylor expanded in y around inf 51.5%
Final simplification58.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -6000000.0) (not (<= a 2e+14))) (/ x a) (/ z b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -6000000.0) || !(a <= 2e+14)) {
tmp = x / a;
} else {
tmp = z / b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((a <= (-6000000.0d0)) .or. (.not. (a <= 2d+14))) then
tmp = x / a
else
tmp = z / b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -6000000.0) || !(a <= 2e+14)) {
tmp = x / a;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -6000000.0) or not (a <= 2e+14): tmp = x / a else: tmp = z / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -6000000.0) || !(a <= 2e+14)) tmp = Float64(x / a); else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -6000000.0) || ~((a <= 2e+14))) tmp = x / a; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -6000000.0], N[Not[LessEqual[a, 2e+14]], $MachinePrecision]], N[(x / a), $MachinePrecision], N[(z / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6000000 \lor \neg \left(a \leq 2 \cdot 10^{+14}\right):\\
\;\;\;\;\frac{x}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if a < -6e6 or 2e14 < a Initial program 83.2%
Taylor expanded in a around inf 82.5%
Taylor expanded in y around 0 52.9%
if -6e6 < a < 2e14Initial program 78.7%
associate-/l*78.0%
associate-/l*79.6%
Simplified79.6%
Taylor expanded in y around inf 34.1%
Final simplification43.9%
(FPCore (x y z t a b) :precision binary64 (if (<= a -5900000.0) (/ 1.0 (/ a x)) (if (<= a 3000000000000.0) (/ z b) (/ x a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -5900000.0) {
tmp = 1.0 / (a / x);
} else if (a <= 3000000000000.0) {
tmp = z / b;
} else {
tmp = x / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (a <= (-5900000.0d0)) then
tmp = 1.0d0 / (a / x)
else if (a <= 3000000000000.0d0) then
tmp = z / b
else
tmp = x / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -5900000.0) {
tmp = 1.0 / (a / x);
} else if (a <= 3000000000000.0) {
tmp = z / b;
} else {
tmp = x / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -5900000.0: tmp = 1.0 / (a / x) elif a <= 3000000000000.0: tmp = z / b else: tmp = x / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -5900000.0) tmp = Float64(1.0 / Float64(a / x)); elseif (a <= 3000000000000.0) tmp = Float64(z / b); else tmp = Float64(x / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -5900000.0) tmp = 1.0 / (a / x); elseif (a <= 3000000000000.0) tmp = z / b; else tmp = x / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -5900000.0], N[(1.0 / N[(a / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3000000000000.0], N[(z / b), $MachinePrecision], N[(x / a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5900000:\\
\;\;\;\;\frac{1}{\frac{a}{x}}\\
\mathbf{elif}\;a \leq 3000000000000:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a}\\
\end{array}
\end{array}
if a < -5.9e6Initial program 78.8%
Taylor expanded in a around inf 77.7%
Taylor expanded in y around 0 50.6%
clear-num50.8%
inv-pow50.8%
Applied egg-rr50.8%
unpow-150.8%
Simplified50.8%
if -5.9e6 < a < 3e12Initial program 78.7%
associate-/l*78.0%
associate-/l*79.6%
Simplified79.6%
Taylor expanded in y around inf 34.1%
if 3e12 < a Initial program 88.6%
Taylor expanded in a around inf 88.5%
Taylor expanded in y around 0 55.8%
(FPCore (x y z t a b) :precision binary64 (/ x a))
double code(double x, double y, double z, double t, double a, double b) {
return x / a;
}
real(8) function code(x, y, z, t, a, b)
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
code = x / a
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / a;
}
def code(x, y, z, t, a, b): return x / a
function code(x, y, z, t, a, b) return Float64(x / a) end
function tmp = code(x, y, z, t, a, b) tmp = x / a; end
code[x_, y_, z_, t_, a_, b_] := N[(x / a), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a}
\end{array}
Initial program 81.1%
Taylor expanded in a around inf 57.4%
Taylor expanded in y around 0 29.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b)))))))
(if (< t -1.3659085366310088e-271)
t_1
(if (< t 3.036967103737246e-130) (/ z b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
double tmp;
if (t < -1.3659085366310088e-271) {
tmp = t_1;
} else if (t < 3.036967103737246e-130) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = 1.0d0 * ((x + ((y / t) * z)) * (1.0d0 / ((a + 1.0d0) + ((y / t) * b))))
if (t < (-1.3659085366310088d-271)) then
tmp = t_1
else if (t < 3.036967103737246d-130) then
tmp = z / b
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
double tmp;
if (t < -1.3659085366310088e-271) {
tmp = t_1;
} else if (t < 3.036967103737246e-130) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b)))) tmp = 0 if t < -1.3659085366310088e-271: tmp = t_1 elif t < 3.036967103737246e-130: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(1.0 * Float64(Float64(x + Float64(Float64(y / t) * z)) * Float64(1.0 / Float64(Float64(a + 1.0) + Float64(Float64(y / t) * b))))) tmp = 0.0 if (t < -1.3659085366310088e-271) tmp = t_1; elseif (t < 3.036967103737246e-130) tmp = Float64(z / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b)))); tmp = 0.0; if (t < -1.3659085366310088e-271) tmp = t_1; elseif (t < 3.036967103737246e-130) tmp = z / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.0 * N[(N[(x + N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.3659085366310088e-271], t$95$1, If[Less[t, 3.036967103737246e-130], N[(z / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 1 \cdot \left(\left(x + \frac{y}{t} \cdot z\right) \cdot \frac{1}{\left(a + 1\right) + \frac{y}{t} \cdot b}\right)\\
\mathbf{if}\;t < -1.3659085366310088 \cdot 10^{-271}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < 3.036967103737246 \cdot 10^{-130}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024156
(FPCore (x y z t a b)
:name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1707385670788761/12500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (* 1 (* (+ x (* (/ y t) z)) (/ 1 (+ (+ a 1) (* (/ y t) b))))) (if (< t 1518483551868623/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ z b) (* 1 (* (+ x (* (/ y t) z)) (/ 1 (+ (+ a 1) (* (/ y t) b))))))))
(/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))