
(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 14 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 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
(t_2 (+ 1.0 (fma y (/ b t) a)))
(t_3 (fma (/ y t) (/ z t_2) (/ x t_2))))
(if (<= t_1 (- INFINITY))
t_3
(if (<= t_1 -2e-309)
t_1
(if (<= t_1 0.0)
(/ (+ z (* t (/ x y))) b)
(if (<= t_1 2e+206) t_1 (if (<= t_1 INFINITY) t_3 (/ 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 t_2 = 1.0 + fma(y, (b / t), a);
double t_3 = fma((y / t), (z / t_2), (x / t_2));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = t_3;
} else if (t_1 <= -2e-309) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = (z + (t * (x / y))) / b;
} else if (t_1 <= 2e+206) {
tmp = t_1;
} else if (t_1 <= ((double) INFINITY)) {
tmp = t_3;
} 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))) t_2 = Float64(1.0 + fma(y, Float64(b / t), a)) t_3 = fma(Float64(y / t), Float64(z / t_2), Float64(x / t_2)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = t_3; elseif (t_1 <= -2e-309) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(Float64(z + Float64(t * Float64(x / y))) / b); elseif (t_1 <= 2e+206) tmp = t_1; elseif (t_1 <= Inf) tmp = t_3; else tmp = Float64(z / b); end return 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]}, Block[{t$95$2 = N[(1.0 + N[(y * N[(b / t), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y / t), $MachinePrecision] * N[(z / t$95$2), $MachinePrecision] + N[(x / t$95$2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], t$95$3, If[LessEqual[t$95$1, -2e-309], t$95$1, If[LessEqual[t$95$1, 0.0], N[(N[(z + N[(t * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[t$95$1, 2e+206], t$95$1, If[LessEqual[t$95$1, Infinity], t$95$3, 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}}\\
t_2 := 1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)\\
t_3 := \mathsf{fma}\left(\frac{y}{t}, \frac{z}{t\_2}, \frac{x}{t\_2}\right)\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-309}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{z + t \cdot \frac{x}{y}}{b}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+206}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;t\_3\\
\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.0 or 2.0000000000000001e206 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 52.3%
associate-/l*79.2%
associate-/l*79.1%
Simplified79.1%
Taylor expanded in x around 0 60.3%
+-commutative60.3%
times-frac97.8%
fma-define97.8%
+-commutative97.8%
associate-*l/95.7%
*-commutative95.7%
fma-define95.7%
+-commutative95.7%
associate-*l/95.8%
*-commutative95.8%
fma-define95.8%
Simplified95.8%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -1.9999999999999988e-309 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 2.0000000000000001e206Initial program 99.5%
if -1.9999999999999988e-309 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0Initial program 42.4%
associate-/l*42.3%
associate-/l*65.1%
Simplified65.1%
Taylor expanded in x around 0 42.4%
+-commutative42.4%
times-frac26.1%
fma-define26.1%
+-commutative26.1%
associate-*l/31.1%
*-commutative31.1%
fma-define31.1%
+-commutative31.1%
associate-*l/48.8%
*-commutative48.8%
fma-define48.8%
Simplified48.8%
Taylor expanded in b around inf 69.1%
associate-/l*76.8%
Simplified76.8%
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%
associate-/l*0.6%
associate-/l*11.2%
Simplified11.2%
Taylor expanded in y around inf 96.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
(t_2 (+ 1.0 (+ a (* y (/ b t)))))
(t_3 (* z (+ (/ (/ x z) t_2) (/ y (* t t_2))))))
(if (<= t_1 (- INFINITY))
t_3
(if (<= t_1 -2e-309)
t_1
(if (<= t_1 0.0)
(/ (+ z (* t (/ x y))) b)
(if (<= t_1 5e+279) t_1 (if (<= t_1 INFINITY) t_3 (/ 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 t_2 = 1.0 + (a + (y * (b / t)));
double t_3 = z * (((x / z) / t_2) + (y / (t * t_2)));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = t_3;
} else if (t_1 <= -2e-309) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = (z + (t * (x / y))) / b;
} else if (t_1 <= 5e+279) {
tmp = t_1;
} else if (t_1 <= ((double) INFINITY)) {
tmp = t_3;
} 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 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double t_2 = 1.0 + (a + (y * (b / t)));
double t_3 = z * (((x / z) / t_2) + (y / (t * t_2)));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = t_3;
} else if (t_1 <= -2e-309) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = (z + (t * (x / y))) / b;
} else if (t_1 <= 5e+279) {
tmp = t_1;
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_3;
} 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)) t_2 = 1.0 + (a + (y * (b / t))) t_3 = z * (((x / z) / t_2) + (y / (t * t_2))) tmp = 0 if t_1 <= -math.inf: tmp = t_3 elif t_1 <= -2e-309: tmp = t_1 elif t_1 <= 0.0: tmp = (z + (t * (x / y))) / b elif t_1 <= 5e+279: tmp = t_1 elif t_1 <= math.inf: tmp = t_3 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))) t_2 = Float64(1.0 + Float64(a + Float64(y * Float64(b / t)))) t_3 = Float64(z * Float64(Float64(Float64(x / z) / t_2) + Float64(y / Float64(t * t_2)))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = t_3; elseif (t_1 <= -2e-309) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(Float64(z + Float64(t * Float64(x / y))) / b); elseif (t_1 <= 5e+279) tmp = t_1; elseif (t_1 <= Inf) tmp = t_3; 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)); t_2 = 1.0 + (a + (y * (b / t))); t_3 = z * (((x / z) / t_2) + (y / (t * t_2))); tmp = 0.0; if (t_1 <= -Inf) tmp = t_3; elseif (t_1 <= -2e-309) tmp = t_1; elseif (t_1 <= 0.0) tmp = (z + (t * (x / y))) / b; elseif (t_1 <= 5e+279) tmp = t_1; elseif (t_1 <= Inf) tmp = t_3; 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]}, Block[{t$95$2 = N[(1.0 + N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(N[(x / z), $MachinePrecision] / t$95$2), $MachinePrecision] + N[(y / N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], t$95$3, If[LessEqual[t$95$1, -2e-309], t$95$1, If[LessEqual[t$95$1, 0.0], N[(N[(z + N[(t * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[t$95$1, 5e+279], t$95$1, If[LessEqual[t$95$1, Infinity], t$95$3, 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}}\\
t_2 := 1 + \left(a + y \cdot \frac{b}{t}\right)\\
t_3 := z \cdot \left(\frac{\frac{x}{z}}{t\_2} + \frac{y}{t \cdot t\_2}\right)\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-309}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{z + t \cdot \frac{x}{y}}{b}\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+279}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;t\_3\\
\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.0 or 5.0000000000000002e279 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 43.8%
associate-/l*75.5%
associate-/l*75.4%
Simplified75.4%
Taylor expanded in z around inf 91.8%
associate-/r*94.8%
associate-*l/94.8%
*-commutative94.8%
associate-*l/92.2%
*-commutative92.2%
Simplified92.2%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -1.9999999999999988e-309 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 5.0000000000000002e279Initial program 99.5%
if -1.9999999999999988e-309 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0Initial program 42.4%
associate-/l*42.3%
associate-/l*65.1%
Simplified65.1%
Taylor expanded in x around 0 42.4%
+-commutative42.4%
times-frac26.1%
fma-define26.1%
+-commutative26.1%
associate-*l/31.1%
*-commutative31.1%
fma-define31.1%
+-commutative31.1%
associate-*l/48.8%
*-commutative48.8%
fma-define48.8%
Simplified48.8%
Taylor expanded in b around inf 69.1%
associate-/l*76.8%
Simplified76.8%
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%
associate-/l*0.6%
associate-/l*11.2%
Simplified11.2%
Taylor expanded in y around inf 96.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
(t_2 (+ (+ a 1.0) (* y (/ b t)))))
(if (<= t_1 (- INFINITY))
(/ (+ x (/ y (/ t z))) t_2)
(if (<= t_1 -2e-309)
t_1
(if (<= t_1 0.0)
(/ (+ z (* t (/ x y))) b)
(if (<= t_1 2e+206)
t_1
(if (<= t_1 INFINITY) (/ (+ x (* y (/ z t))) t_2) (/ 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 t_2 = (a + 1.0) + (y * (b / t));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (x + (y / (t / z))) / t_2;
} else if (t_1 <= -2e-309) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = (z + (t * (x / y))) / b;
} else if (t_1 <= 2e+206) {
tmp = t_1;
} else if (t_1 <= ((double) INFINITY)) {
tmp = (x + (y * (z / t))) / 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 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double t_2 = (a + 1.0) + (y * (b / t));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (x + (y / (t / z))) / t_2;
} else if (t_1 <= -2e-309) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = (z + (t * (x / y))) / b;
} else if (t_1 <= 2e+206) {
tmp = t_1;
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = (x + (y * (z / t))) / t_2;
} 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)) t_2 = (a + 1.0) + (y * (b / t)) tmp = 0 if t_1 <= -math.inf: tmp = (x + (y / (t / z))) / t_2 elif t_1 <= -2e-309: tmp = t_1 elif t_1 <= 0.0: tmp = (z + (t * (x / y))) / b elif t_1 <= 2e+206: tmp = t_1 elif t_1 <= math.inf: tmp = (x + (y * (z / t))) / t_2 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))) t_2 = Float64(Float64(a + 1.0) + Float64(y * Float64(b / t))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / t_2); elseif (t_1 <= -2e-309) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(Float64(z + Float64(t * Float64(x / y))) / b); elseif (t_1 <= 2e+206) tmp = t_1; elseif (t_1 <= Inf) tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / t_2); 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)); t_2 = (a + 1.0) + (y * (b / t)); tmp = 0.0; if (t_1 <= -Inf) tmp = (x + (y / (t / z))) / t_2; elseif (t_1 <= -2e-309) tmp = t_1; elseif (t_1 <= 0.0) tmp = (z + (t * (x / y))) / b; elseif (t_1 <= 2e+206) tmp = t_1; elseif (t_1 <= Inf) tmp = (x + (y * (z / t))) / t_2; 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]}, Block[{t$95$2 = N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], If[LessEqual[t$95$1, -2e-309], t$95$1, If[LessEqual[t$95$1, 0.0], N[(N[(z + N[(t * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[t$95$1, 2e+206], t$95$1, If[LessEqual[t$95$1, Infinity], N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], 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}}\\
t_2 := \left(a + 1\right) + y \cdot \frac{b}{t}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{t\_2}\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-309}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{z + t \cdot \frac{x}{y}}{b}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+206}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{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 42.3%
associate-/l*74.4%
associate-/l*74.4%
Simplified74.4%
clear-num74.4%
un-div-inv74.6%
Applied egg-rr74.6%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -1.9999999999999988e-309 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 2.0000000000000001e206Initial program 99.5%
if -1.9999999999999988e-309 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0Initial program 42.4%
associate-/l*42.3%
associate-/l*65.1%
Simplified65.1%
Taylor expanded in x around 0 42.4%
+-commutative42.4%
times-frac26.1%
fma-define26.1%
+-commutative26.1%
associate-*l/31.1%
*-commutative31.1%
fma-define31.1%
+-commutative31.1%
associate-*l/48.8%
*-commutative48.8%
fma-define48.8%
Simplified48.8%
Taylor expanded in b around inf 69.1%
associate-/l*76.8%
Simplified76.8%
if 2.0000000000000001e206 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 57.1%
associate-/l*81.6%
associate-/l*81.4%
Simplified81.4%
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%
associate-/l*0.6%
associate-/l*11.2%
Simplified11.2%
Taylor expanded in y around inf 96.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (+ a 1.0) (/ (* y b) t)))
(t_2 (/ (+ x (/ (* y z) t)) t_1))
(t_3 (/ (+ x (* z (* y (/ 1.0 t)))) t_1)))
(if (<= t_2 -2e-309)
t_3
(if (<= t_2 0.0)
(/ (+ z (* t (/ x y))) b)
(if (<= t_2 INFINITY) t_3 (/ z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a + 1.0) + ((y * b) / t);
double t_2 = (x + ((y * z) / t)) / t_1;
double t_3 = (x + (z * (y * (1.0 / t)))) / t_1;
double tmp;
if (t_2 <= -2e-309) {
tmp = t_3;
} else if (t_2 <= 0.0) {
tmp = (z + (t * (x / y))) / b;
} else if (t_2 <= ((double) INFINITY)) {
tmp = t_3;
} 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 = (a + 1.0) + ((y * b) / t);
double t_2 = (x + ((y * z) / t)) / t_1;
double t_3 = (x + (z * (y * (1.0 / t)))) / t_1;
double tmp;
if (t_2 <= -2e-309) {
tmp = t_3;
} else if (t_2 <= 0.0) {
tmp = (z + (t * (x / y))) / b;
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_3;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a + 1.0) + ((y * b) / t) t_2 = (x + ((y * z) / t)) / t_1 t_3 = (x + (z * (y * (1.0 / t)))) / t_1 tmp = 0 if t_2 <= -2e-309: tmp = t_3 elif t_2 <= 0.0: tmp = (z + (t * (x / y))) / b elif t_2 <= math.inf: tmp = t_3 else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t)) t_2 = Float64(Float64(x + Float64(Float64(y * z) / t)) / t_1) t_3 = Float64(Float64(x + Float64(z * Float64(y * Float64(1.0 / t)))) / t_1) tmp = 0.0 if (t_2 <= -2e-309) tmp = t_3; elseif (t_2 <= 0.0) tmp = Float64(Float64(z + Float64(t * Float64(x / y))) / b); elseif (t_2 <= Inf) tmp = t_3; else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a + 1.0) + ((y * b) / t); t_2 = (x + ((y * z) / t)) / t_1; t_3 = (x + (z * (y * (1.0 / t)))) / t_1; tmp = 0.0; if (t_2 <= -2e-309) tmp = t_3; elseif (t_2 <= 0.0) tmp = (z + (t * (x / y))) / b; elseif (t_2 <= Inf) tmp = t_3; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x + N[(z * N[(y * N[(1.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[t$95$2, -2e-309], t$95$3, If[LessEqual[t$95$2, 0.0], N[(N[(z + N[(t * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[t$95$2, Infinity], t$95$3, N[(z / b), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a + 1\right) + \frac{y \cdot b}{t}\\
t_2 := \frac{x + \frac{y \cdot z}{t}}{t\_1}\\
t_3 := \frac{x + z \cdot \left(y \cdot \frac{1}{t}\right)}{t\_1}\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{-309}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;\frac{z + t \cdot \frac{x}{y}}{b}\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;t\_3\\
\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.9999999999999988e-309 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 88.1%
associate-*r/89.6%
*-commutative89.6%
div-inv89.5%
associate-*l*92.8%
Applied egg-rr92.8%
if -1.9999999999999988e-309 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0Initial program 42.4%
associate-/l*42.3%
associate-/l*65.1%
Simplified65.1%
Taylor expanded in x around 0 42.4%
+-commutative42.4%
times-frac26.1%
fma-define26.1%
+-commutative26.1%
associate-*l/31.1%
*-commutative31.1%
fma-define31.1%
+-commutative31.1%
associate-*l/48.8%
*-commutative48.8%
fma-define48.8%
Simplified48.8%
Taylor expanded in b around inf 69.1%
associate-/l*76.8%
Simplified76.8%
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%
associate-/l*0.6%
associate-/l*11.2%
Simplified11.2%
Taylor expanded in y around inf 96.3%
Final simplification90.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.75e-27) (not (<= t 1.25e-60))) (/ (+ x (* y (/ z t))) (+ (+ a 1.0) (* y (/ b t)))) (/ (+ z (/ (* x t) y)) b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.75e-27) || !(t <= 1.25e-60)) {
tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t)));
} else {
tmp = (z + ((x * t) / y)) / 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.75d-27)) .or. (.not. (t <= 1.25d-60))) then
tmp = (x + (y * (z / t))) / ((a + 1.0d0) + (y * (b / t)))
else
tmp = (z + ((x * t) / y)) / b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.75e-27) || !(t <= 1.25e-60)) {
tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t)));
} else {
tmp = (z + ((x * t) / y)) / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.75e-27) or not (t <= 1.25e-60): tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t))) else: tmp = (z + ((x * t) / y)) / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.75e-27) || !(t <= 1.25e-60)) tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))); else tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.75e-27) || ~((t <= 1.25e-60))) tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t))); else tmp = (z + ((x * t) / y)) / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.75e-27], N[Not[LessEqual[t, 1.25e-60]], $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[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.75 \cdot 10^{-27} \lor \neg \left(t \leq 1.25 \cdot 10^{-60}\right):\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\end{array}
\end{array}
if t < -1.7500000000000001e-27 or 1.25e-60 < t Initial program 79.3%
associate-/l*87.9%
associate-/l*95.5%
Simplified95.5%
if -1.7500000000000001e-27 < t < 1.25e-60Initial program 63.2%
associate-/l*55.1%
associate-/l*47.8%
Simplified47.8%
Taylor expanded in x around 0 66.8%
+-commutative66.8%
times-frac59.7%
fma-define59.8%
+-commutative59.8%
associate-*l/52.3%
*-commutative52.3%
fma-define52.3%
+-commutative52.3%
associate-*l/47.7%
*-commutative47.7%
fma-define47.7%
Simplified47.7%
Taylor expanded in b around inf 72.1%
Final simplification84.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y (/ z t)))))
(if (<= t -1.75e-27)
(/ t_1 (+ (+ a 1.0) (/ y (/ t b))))
(if (<= t 2.1e-60)
(/ (+ z (/ (* x t) y)) b)
(/ 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 <= -1.75e-27) {
tmp = t_1 / ((a + 1.0) + (y / (t / b)));
} else if (t <= 2.1e-60) {
tmp = (z + ((x * t) / y)) / b;
} 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 <= (-1.75d-27)) then
tmp = t_1 / ((a + 1.0d0) + (y / (t / b)))
else if (t <= 2.1d-60) then
tmp = (z + ((x * t) / y)) / b
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 <= -1.75e-27) {
tmp = t_1 / ((a + 1.0) + (y / (t / b)));
} else if (t <= 2.1e-60) {
tmp = (z + ((x * t) / y)) / b;
} 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 <= -1.75e-27: tmp = t_1 / ((a + 1.0) + (y / (t / b))) elif t <= 2.1e-60: tmp = (z + ((x * t) / y)) / b 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 <= -1.75e-27) tmp = Float64(t_1 / Float64(Float64(a + 1.0) + Float64(y / Float64(t / b)))); elseif (t <= 2.1e-60) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); 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 <= -1.75e-27) tmp = t_1 / ((a + 1.0) + (y / (t / b))); elseif (t <= 2.1e-60) tmp = (z + ((x * t) / y)) / b; 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, -1.75e-27], N[(t$95$1 / N[(N[(a + 1.0), $MachinePrecision] + N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e-60], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $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 -1.75 \cdot 10^{-27}:\\
\;\;\;\;\frac{t\_1}{\left(a + 1\right) + \frac{y}{\frac{t}{b}}}\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{-60}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_1}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\end{array}
\end{array}
if t < -1.7500000000000001e-27Initial program 76.0%
associate-/l*85.3%
associate-/l*97.2%
Simplified97.2%
Taylor expanded in y around 0 85.3%
associate-*r/98.4%
*-commutative98.4%
associate-/r/97.8%
Simplified97.8%
if -1.7500000000000001e-27 < t < 2.09999999999999991e-60Initial program 63.2%
associate-/l*55.1%
associate-/l*47.8%
Simplified47.8%
Taylor expanded in x around 0 66.8%
+-commutative66.8%
times-frac59.7%
fma-define59.8%
+-commutative59.8%
associate-*l/52.3%
*-commutative52.3%
fma-define52.3%
+-commutative52.3%
associate-*l/47.7%
*-commutative47.7%
fma-define47.7%
Simplified47.7%
Taylor expanded in b around inf 72.1%
if 2.09999999999999991e-60 < t Initial program 82.8%
associate-/l*90.8%
associate-/l*93.6%
Simplified93.6%
Final simplification85.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -720000.0) (not (<= t 3e-22))) (+ (/ x (+ a 1.0)) (* (/ y t) (/ z (+ a 1.0)))) (/ (+ z (/ (* x t) y)) b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -720000.0) || !(t <= 3e-22)) {
tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0)));
} else {
tmp = (z + ((x * t) / y)) / 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 <= (-720000.0d0)) .or. (.not. (t <= 3d-22))) then
tmp = (x / (a + 1.0d0)) + ((y / t) * (z / (a + 1.0d0)))
else
tmp = (z + ((x * t) / y)) / b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -720000.0) || !(t <= 3e-22)) {
tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0)));
} else {
tmp = (z + ((x * t) / y)) / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -720000.0) or not (t <= 3e-22): tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0))) else: tmp = (z + ((x * t) / y)) / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -720000.0) || !(t <= 3e-22)) tmp = Float64(Float64(x / Float64(a + 1.0)) + Float64(Float64(y / t) * Float64(z / Float64(a + 1.0)))); else tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -720000.0) || ~((t <= 3e-22))) tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0))); else tmp = (z + ((x * t) / y)) / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -720000.0], N[Not[LessEqual[t, 3e-22]], $MachinePrecision]], N[(N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] * N[(z / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -720000 \lor \neg \left(t \leq 3 \cdot 10^{-22}\right):\\
\;\;\;\;\frac{x}{a + 1} + \frac{y}{t} \cdot \frac{z}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\end{array}
\end{array}
if t < -7.2e5 or 2.9999999999999999e-22 < t Initial program 77.7%
associate-/l*87.0%
associate-/l*95.8%
Simplified95.8%
Taylor expanded in x around 0 77.0%
+-commutative77.0%
times-frac88.2%
fma-define88.2%
+-commutative88.2%
associate-*l/91.9%
*-commutative91.9%
fma-define91.9%
+-commutative91.9%
associate-*l/97.0%
*-commutative97.0%
fma-define97.0%
Simplified97.0%
Taylor expanded in b around 0 66.5%
times-frac75.4%
Simplified75.4%
if -7.2e5 < t < 2.9999999999999999e-22Initial program 66.1%
associate-/l*58.6%
associate-/l*51.2%
Simplified51.2%
Taylor expanded in x around 0 69.4%
+-commutative69.4%
times-frac62.9%
fma-define62.9%
+-commutative62.9%
associate-*l/55.5%
*-commutative55.5%
fma-define55.5%
+-commutative55.5%
associate-*l/51.1%
*-commutative51.1%
fma-define51.1%
Simplified51.1%
Taylor expanded in b around inf 71.9%
Final simplification73.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -5.5e+46) (not (<= t 5.2e-58))) (/ x (+ 1.0 (+ a (* y (/ b t))))) (/ (+ z (/ (* x t) y)) b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -5.5e+46) || !(t <= 5.2e-58)) {
tmp = x / (1.0 + (a + (y * (b / t))));
} else {
tmp = (z + ((x * t) / y)) / 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 <= (-5.5d+46)) .or. (.not. (t <= 5.2d-58))) then
tmp = x / (1.0d0 + (a + (y * (b / t))))
else
tmp = (z + ((x * t) / y)) / b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -5.5e+46) || !(t <= 5.2e-58)) {
tmp = x / (1.0 + (a + (y * (b / t))));
} else {
tmp = (z + ((x * t) / y)) / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -5.5e+46) or not (t <= 5.2e-58): tmp = x / (1.0 + (a + (y * (b / t)))) else: tmp = (z + ((x * t) / y)) / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -5.5e+46) || !(t <= 5.2e-58)) tmp = Float64(x / Float64(1.0 + Float64(a + Float64(y * Float64(b / t))))); else tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -5.5e+46) || ~((t <= 5.2e-58))) tmp = x / (1.0 + (a + (y * (b / t)))); else tmp = (z + ((x * t) / y)) / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -5.5e+46], N[Not[LessEqual[t, 5.2e-58]], $MachinePrecision]], N[(x / N[(1.0 + N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.5 \cdot 10^{+46} \lor \neg \left(t \leq 5.2 \cdot 10^{-58}\right):\\
\;\;\;\;\frac{x}{1 + \left(a + y \cdot \frac{b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\end{array}
\end{array}
if t < -5.4999999999999998e46 or 5.20000000000000013e-58 < t Initial program 78.3%
associate-/l*87.7%
associate-/l*96.5%
Simplified96.5%
Taylor expanded in x around inf 66.0%
associate-*l/71.2%
*-commutative71.2%
Simplified71.2%
if -5.4999999999999998e46 < t < 5.20000000000000013e-58Initial program 65.6%
associate-/l*58.2%
associate-/l*50.9%
Simplified50.9%
Taylor expanded in x around 0 68.9%
+-commutative68.9%
times-frac63.2%
fma-define63.2%
+-commutative63.2%
associate-*l/55.9%
*-commutative55.9%
fma-define55.9%
+-commutative55.9%
associate-*l/51.5%
*-commutative51.5%
fma-define51.5%
Simplified51.5%
Taylor expanded in b around inf 71.0%
Final simplification71.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -3.9e+46)
(/ x (+ 1.0 (+ a (* y (/ b t)))))
(if (<= t 2.15e-22)
(/ (+ z (/ (* x t) y)) b)
(/ (+ x (/ (* y z) t)) (+ a 1.0)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -3.9e+46) {
tmp = x / (1.0 + (a + (y * (b / t))));
} else if (t <= 2.15e-22) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = (x + ((y * z) / t)) / (a + 1.0);
}
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.9d+46)) then
tmp = x / (1.0d0 + (a + (y * (b / t))))
else if (t <= 2.15d-22) then
tmp = (z + ((x * t) / y)) / b
else
tmp = (x + ((y * z) / t)) / (a + 1.0d0)
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.9e+46) {
tmp = x / (1.0 + (a + (y * (b / t))));
} else if (t <= 2.15e-22) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = (x + ((y * z) / t)) / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -3.9e+46: tmp = x / (1.0 + (a + (y * (b / t)))) elif t <= 2.15e-22: tmp = (z + ((x * t) / y)) / b else: tmp = (x + ((y * z) / t)) / (a + 1.0) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -3.9e+46) tmp = Float64(x / Float64(1.0 + Float64(a + Float64(y * Float64(b / t))))); elseif (t <= 2.15e-22) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); else tmp = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(a + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -3.9e+46) tmp = x / (1.0 + (a + (y * (b / t)))); elseif (t <= 2.15e-22) tmp = (z + ((x * t) / y)) / b; else tmp = (x + ((y * z) / t)) / (a + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -3.9e+46], N[(x / N[(1.0 + N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.15e-22], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.9 \cdot 10^{+46}:\\
\;\;\;\;\frac{x}{1 + \left(a + y \cdot \frac{b}{t}\right)}\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{-22}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y \cdot z}{t}}{a + 1}\\
\end{array}
\end{array}
if t < -3.89999999999999995e46Initial program 73.3%
associate-/l*84.3%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around inf 64.4%
associate-*l/73.7%
*-commutative73.7%
Simplified73.7%
if -3.89999999999999995e46 < t < 2.15000000000000019e-22Initial program 66.9%
associate-/l*59.8%
associate-/l*52.8%
Simplified52.8%
Taylor expanded in x around 0 70.1%
+-commutative70.1%
times-frac64.6%
fma-define64.6%
+-commutative64.6%
associate-*l/57.6%
*-commutative57.6%
fma-define57.6%
+-commutative57.6%
associate-*l/53.3%
*-commutative53.3%
fma-define53.3%
Simplified53.3%
Taylor expanded in b around inf 70.6%
if 2.15000000000000019e-22 < t Initial program 81.5%
associate-/l*90.0%
associate-/l*93.1%
Simplified93.1%
Taylor expanded in b around 0 69.8%
Final simplification71.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -4.15e+46) (not (<= t 250.0))) (/ x (+ a 1.0)) (/ (+ z (/ (* x t) y)) b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -4.15e+46) || !(t <= 250.0)) {
tmp = x / (a + 1.0);
} else {
tmp = (z + ((x * t) / y)) / 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 <= (-4.15d+46)) .or. (.not. (t <= 250.0d0))) then
tmp = x / (a + 1.0d0)
else
tmp = (z + ((x * t) / y)) / b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -4.15e+46) || !(t <= 250.0)) {
tmp = x / (a + 1.0);
} else {
tmp = (z + ((x * t) / y)) / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -4.15e+46) or not (t <= 250.0): tmp = x / (a + 1.0) else: tmp = (z + ((x * t) / y)) / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -4.15e+46) || !(t <= 250.0)) tmp = Float64(x / Float64(a + 1.0)); else tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -4.15e+46) || ~((t <= 250.0))) tmp = x / (a + 1.0); else tmp = (z + ((x * t) / y)) / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -4.15e+46], N[Not[LessEqual[t, 250.0]], $MachinePrecision]], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.15 \cdot 10^{+46} \lor \neg \left(t \leq 250\right):\\
\;\;\;\;\frac{x}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\end{array}
\end{array}
if t < -4.14999999999999976e46 or 250 < t Initial program 78.0%
associate-/l*88.2%
associate-/l*97.9%
Simplified97.9%
Taylor expanded in y around 0 60.2%
if -4.14999999999999976e46 < t < 250Initial program 66.9%
associate-/l*60.1%
associate-/l*53.4%
Simplified53.4%
Taylor expanded in x around 0 70.0%
+-commutative70.0%
times-frac65.5%
fma-define65.5%
+-commutative65.5%
associate-*l/58.7%
*-commutative58.7%
fma-define58.7%
+-commutative58.7%
associate-*l/54.7%
*-commutative54.7%
fma-define54.7%
Simplified54.7%
Taylor expanded in b around inf 69.2%
Final simplification65.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -6.1e+47) (not (<= t 1.18))) (/ x (+ a 1.0)) (/ (+ z (* t (/ x y))) b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -6.1e+47) || !(t <= 1.18)) {
tmp = x / (a + 1.0);
} else {
tmp = (z + (t * (x / y))) / 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 <= (-6.1d+47)) .or. (.not. (t <= 1.18d0))) then
tmp = x / (a + 1.0d0)
else
tmp = (z + (t * (x / y))) / b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -6.1e+47) || !(t <= 1.18)) {
tmp = x / (a + 1.0);
} else {
tmp = (z + (t * (x / y))) / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -6.1e+47) or not (t <= 1.18): tmp = x / (a + 1.0) else: tmp = (z + (t * (x / y))) / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -6.1e+47) || !(t <= 1.18)) tmp = Float64(x / Float64(a + 1.0)); else tmp = Float64(Float64(z + Float64(t * Float64(x / y))) / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -6.1e+47) || ~((t <= 1.18))) tmp = x / (a + 1.0); else tmp = (z + (t * (x / y))) / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -6.1e+47], N[Not[LessEqual[t, 1.18]], $MachinePrecision]], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(z + N[(t * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.1 \cdot 10^{+47} \lor \neg \left(t \leq 1.18\right):\\
\;\;\;\;\frac{x}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{z + t \cdot \frac{x}{y}}{b}\\
\end{array}
\end{array}
if t < -6.10000000000000019e47 or 1.17999999999999994 < t Initial program 78.0%
associate-/l*88.2%
associate-/l*97.9%
Simplified97.9%
Taylor expanded in y around 0 60.2%
if -6.10000000000000019e47 < t < 1.17999999999999994Initial program 66.9%
associate-/l*60.1%
associate-/l*53.4%
Simplified53.4%
Taylor expanded in x around 0 70.0%
+-commutative70.0%
times-frac65.5%
fma-define65.5%
+-commutative65.5%
associate-*l/58.7%
*-commutative58.7%
fma-define58.7%
+-commutative58.7%
associate-*l/54.7%
*-commutative54.7%
fma-define54.7%
Simplified54.7%
Taylor expanded in b around inf 69.2%
associate-/l*67.0%
Simplified67.0%
Final simplification63.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -5.6e+47) (not (<= t 1.18))) (/ x (+ a 1.0)) (/ z b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -5.6e+47) || !(t <= 1.18)) {
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 <= (-5.6d+47)) .or. (.not. (t <= 1.18d0))) 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 <= -5.6e+47) || !(t <= 1.18)) {
tmp = x / (a + 1.0);
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -5.6e+47) or not (t <= 1.18): tmp = x / (a + 1.0) else: tmp = z / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -5.6e+47) || !(t <= 1.18)) 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 <= -5.6e+47) || ~((t <= 1.18))) 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, -5.6e+47], N[Not[LessEqual[t, 1.18]], $MachinePrecision]], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], N[(z / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.6 \cdot 10^{+47} \lor \neg \left(t \leq 1.18\right):\\
\;\;\;\;\frac{x}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if t < -5.59999999999999976e47 or 1.17999999999999994 < t Initial program 78.0%
associate-/l*88.2%
associate-/l*97.9%
Simplified97.9%
Taylor expanded in y around 0 60.2%
if -5.59999999999999976e47 < t < 1.17999999999999994Initial program 66.9%
associate-/l*60.1%
associate-/l*53.4%
Simplified53.4%
Taylor expanded in y around inf 53.4%
Final simplification56.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -2.7e+137) (not (<= t 15.5))) (/ x a) (/ z b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -2.7e+137) || !(t <= 15.5)) {
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 ((t <= (-2.7d+137)) .or. (.not. (t <= 15.5d0))) 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 ((t <= -2.7e+137) || !(t <= 15.5)) {
tmp = x / a;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -2.7e+137) or not (t <= 15.5): tmp = x / a else: tmp = z / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -2.7e+137) || !(t <= 15.5)) 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 ((t <= -2.7e+137) || ~((t <= 15.5))) tmp = x / a; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -2.7e+137], N[Not[LessEqual[t, 15.5]], $MachinePrecision]], N[(x / a), $MachinePrecision], N[(z / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.7 \cdot 10^{+137} \lor \neg \left(t \leq 15.5\right):\\
\;\;\;\;\frac{x}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if t < -2.70000000000000017e137 or 15.5 < t Initial program 77.9%
associate-/l*89.0%
associate-/l*97.5%
Simplified97.5%
Taylor expanded in a around inf 40.3%
Taylor expanded in x around inf 37.7%
if -2.70000000000000017e137 < t < 15.5Initial program 68.3%
associate-/l*62.9%
associate-/l*58.8%
Simplified58.8%
Taylor expanded in y around inf 49.5%
Final simplification44.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 72.1%
associate-/l*73.2%
associate-/l*74.1%
Simplified74.1%
Taylor expanded in a around inf 31.3%
Taylor expanded in x around inf 21.4%
(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 2024181
(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))))