
(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 17 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)) (+ t_1 (+ a 1.0))))
(t_3 (+ 1.0 (+ a t_1))))
(if (<= t_2 -5e-304)
(+ (/ x t_3) (/ (* y z) (* t t_3)))
(if (<= t_2 0.0)
(/ (* t (/ (fma y (/ z t) x) y)) b)
(if (<= t_2 5e+286) 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)) / (t_1 + (a + 1.0));
double t_3 = 1.0 + (a + t_1);
double tmp;
if (t_2 <= -5e-304) {
tmp = (x / t_3) + ((y * z) / (t * t_3));
} else if (t_2 <= 0.0) {
tmp = (t * (fma(y, (z / t), x) / y)) / b;
} else if (t_2 <= 5e+286) {
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(t_1 + Float64(a + 1.0))) t_3 = Float64(1.0 + Float64(a + t_1)) tmp = 0.0 if (t_2 <= -5e-304) tmp = Float64(Float64(x / t_3) + Float64(Float64(y * z) / Float64(t * t_3))); elseif (t_2 <= 0.0) tmp = Float64(Float64(t * Float64(fma(y, Float64(z / t), x) / y)) / b); elseif (t_2 <= 5e+286) tmp = t_2; else tmp = Float64(z / b); end return 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[(t$95$1 + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(1.0 + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e-304], N[(N[(x / t$95$3), $MachinePrecision] + N[(N[(y * z), $MachinePrecision] / N[(t * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 0.0], N[(N[(t * N[(N[(y * N[(z / t), $MachinePrecision] + x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[t$95$2, 5e+286], 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}}{t_1 + \left(a + 1\right)}\\
t_3 := 1 + \left(a + t_1\right)\\
\mathbf{if}\;t_2 \leq -5 \cdot 10^{-304}:\\
\;\;\;\;\frac{x}{t_3} + \frac{y \cdot z}{t \cdot t_3}\\
\mathbf{elif}\;t_2 \leq 0:\\
\;\;\;\;\frac{t \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}}{b}\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+286}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < -4.99999999999999965e-304Initial program 93.0%
*-commutative93.0%
associate-*l/88.6%
*-commutative88.6%
associate-*l/84.2%
Simplified84.2%
Taylor expanded in x around 0 95.2%
if -4.99999999999999965e-304 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < -0.0Initial program 46.4%
*-commutative46.4%
associate-*l/46.3%
*-commutative46.3%
associate-*l/59.3%
Simplified59.3%
Taylor expanded in b around inf 51.3%
times-frac59.8%
+-commutative59.8%
associate-*r/59.8%
fma-udef59.8%
Simplified59.8%
associate-*l/75.0%
Applied egg-rr75.0%
if -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < 5.0000000000000004e286Initial program 99.5%
if 5.0000000000000004e286 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) Initial program 6.1%
*-commutative6.1%
associate-*l/14.3%
*-commutative14.3%
associate-*l/21.9%
Simplified21.9%
Taylor expanded in t around 0 77.1%
Final simplification90.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (/ (* y b) t) (+ a 1.0)))))
(if (<= t_1 -5e-304)
t_1
(if (<= t_1 0.0)
(/ (+ z (/ (* x t) y)) b)
(if (<= t_1 5e+286) 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)) / (((y * b) / t) + (a + 1.0));
double tmp;
if (t_1 <= -5e-304) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = (z + ((x * t) / y)) / b;
} else if (t_1 <= 5e+286) {
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)) / (((y * b) / t) + (a + 1.0d0))
if (t_1 <= (-5d-304)) then
tmp = t_1
else if (t_1 <= 0.0d0) then
tmp = (z + ((x * t) / y)) / b
else if (t_1 <= 5d+286) 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)) / (((y * b) / t) + (a + 1.0));
double tmp;
if (t_1 <= -5e-304) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = (z + ((x * t) / y)) / b;
} else if (t_1 <= 5e+286) {
tmp = t_1;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0)) tmp = 0 if t_1 <= -5e-304: tmp = t_1 elif t_1 <= 0.0: tmp = (z + ((x * t) / y)) / b elif t_1 <= 5e+286: 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(Float64(y * b) / t) + Float64(a + 1.0))) tmp = 0.0 if (t_1 <= -5e-304) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); elseif (t_1 <= 5e+286) 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)) / (((y * b) / t) + (a + 1.0)); tmp = 0.0; if (t_1 <= -5e-304) tmp = t_1; elseif (t_1 <= 0.0) tmp = (z + ((x * t) / y)) / b; elseif (t_1 <= 5e+286) 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[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-304], t$95$1, If[LessEqual[t$95$1, 0.0], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[t$95$1, 5e+286], t$95$1, N[(z / b), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-304}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_1 \leq 0:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+286}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < -4.99999999999999965e-304 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < 5.0000000000000004e286Initial program 96.3%
if -4.99999999999999965e-304 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < -0.0Initial program 46.4%
*-commutative46.4%
associate-*l/46.3%
*-commutative46.3%
associate-*l/59.3%
Simplified59.3%
Taylor expanded in b around inf 51.3%
times-frac59.8%
+-commutative59.8%
associate-*r/59.8%
fma-udef59.8%
Simplified59.8%
Taylor expanded in t around 0 55.5%
Taylor expanded in b around 0 70.7%
if 5.0000000000000004e286 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) Initial program 6.1%
*-commutative6.1%
associate-*l/14.3%
*-commutative14.3%
associate-*l/21.9%
Simplified21.9%
Taylor expanded in t around 0 77.1%
Final simplification89.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (* y (/ z t))) (+ (+ a 1.0) (* y (/ b t)))))
(t_2 (/ (+ z (/ (* x t) y)) b)))
(if (<= t -3e-93)
t_1
(if (<= t 2.5e-188)
t_2
(if (<= t 1.7e-176)
(+ (/ x (+ a 1.0)) (* (/ y t) (/ z (+ a 1.0))))
(if (<= t 1.15e-98) t_2 t_1))))))
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 = (z + ((x * t) / y)) / b;
double tmp;
if (t <= -3e-93) {
tmp = t_1;
} else if (t <= 2.5e-188) {
tmp = t_2;
} else if (t <= 1.7e-176) {
tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0)));
} else if (t <= 1.15e-98) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = (x + (y * (z / t))) / ((a + 1.0d0) + (y * (b / t)))
t_2 = (z + ((x * t) / y)) / b
if (t <= (-3d-93)) then
tmp = t_1
else if (t <= 2.5d-188) then
tmp = t_2
else if (t <= 1.7d-176) then
tmp = (x / (a + 1.0d0)) + ((y / t) * (z / (a + 1.0d0)))
else if (t <= 1.15d-98) then
tmp = t_2
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 + 1.0) + (y * (b / t)));
double t_2 = (z + ((x * t) / y)) / b;
double tmp;
if (t <= -3e-93) {
tmp = t_1;
} else if (t <= 2.5e-188) {
tmp = t_2;
} else if (t <= 1.7e-176) {
tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0)));
} else if (t <= 1.15e-98) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t))) t_2 = (z + ((x * t) / y)) / b tmp = 0 if t <= -3e-93: tmp = t_1 elif t <= 2.5e-188: tmp = t_2 elif t <= 1.7e-176: tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0))) elif t <= 1.15e-98: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))) t_2 = Float64(Float64(z + Float64(Float64(x * t) / y)) / b) tmp = 0.0 if (t <= -3e-93) tmp = t_1; elseif (t <= 2.5e-188) tmp = t_2; elseif (t <= 1.7e-176) tmp = Float64(Float64(x / Float64(a + 1.0)) + Float64(Float64(y / t) * Float64(z / Float64(a + 1.0)))); elseif (t <= 1.15e-98) tmp = t_2; 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 + 1.0) + (y * (b / t))); t_2 = (z + ((x * t) / y)) / b; tmp = 0.0; if (t <= -3e-93) tmp = t_1; elseif (t <= 2.5e-188) tmp = t_2; elseif (t <= 1.7e-176) tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0))); elseif (t <= 1.15e-98) tmp = t_2; 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] / N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, If[LessEqual[t, -3e-93], t$95$1, If[LessEqual[t, 2.5e-188], t$95$2, If[LessEqual[t, 1.7e-176], N[(N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] * N[(z / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e-98], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
t_2 := \frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{if}\;t \leq -3 \cdot 10^{-93}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-188}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-176}:\\
\;\;\;\;\frac{x}{a + 1} + \frac{y}{t} \cdot \frac{z}{a + 1}\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-98}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -3.0000000000000001e-93 or 1.15e-98 < t Initial program 84.3%
*-commutative84.3%
associate-*l/86.2%
*-commutative86.2%
associate-*l/91.0%
Simplified91.0%
if -3.0000000000000001e-93 < t < 2.5e-188 or 1.6999999999999999e-176 < t < 1.15e-98Initial program 56.3%
*-commutative56.3%
associate-*l/47.9%
*-commutative47.9%
associate-*l/42.7%
Simplified42.7%
Taylor expanded in b around inf 47.3%
times-frac34.5%
+-commutative34.5%
associate-*r/34.5%
fma-udef34.5%
Simplified34.5%
Taylor expanded in t around 0 75.4%
Taylor expanded in b around 0 76.6%
if 2.5e-188 < t < 1.6999999999999999e-176Initial program 80.8%
*-commutative80.8%
associate-*l/42.9%
*-commutative42.9%
associate-*l/42.9%
Simplified42.9%
Taylor expanded in x around 0 99.7%
Taylor expanded in y around 0 99.7%
times-frac99.7%
Simplified99.7%
Taylor expanded in b around 0 99.7%
Final simplification86.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y (/ z t)))) (t_2 (/ (+ z (/ (* x t) y)) b)))
(if (<= t -1.1e-96)
(/ t_1 (+ (+ a 1.0) (/ b (/ t y))))
(if (<= t 9.5e-188)
t_2
(if (<= t 1.9e-177)
(+ (/ x (+ a 1.0)) (* (/ y t) (/ z (+ a 1.0))))
(if (<= t 1.05e-98) t_2 (/ 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 t_2 = (z + ((x * t) / y)) / b;
double tmp;
if (t <= -1.1e-96) {
tmp = t_1 / ((a + 1.0) + (b / (t / y)));
} else if (t <= 9.5e-188) {
tmp = t_2;
} else if (t <= 1.9e-177) {
tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0)));
} else if (t <= 1.05e-98) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = x + (y * (z / t))
t_2 = (z + ((x * t) / y)) / b
if (t <= (-1.1d-96)) then
tmp = t_1 / ((a + 1.0d0) + (b / (t / y)))
else if (t <= 9.5d-188) then
tmp = t_2
else if (t <= 1.9d-177) then
tmp = (x / (a + 1.0d0)) + ((y / t) * (z / (a + 1.0d0)))
else if (t <= 1.05d-98) then
tmp = t_2
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 t_2 = (z + ((x * t) / y)) / b;
double tmp;
if (t <= -1.1e-96) {
tmp = t_1 / ((a + 1.0) + (b / (t / y)));
} else if (t <= 9.5e-188) {
tmp = t_2;
} else if (t <= 1.9e-177) {
tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0)));
} else if (t <= 1.05e-98) {
tmp = t_2;
} 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)) t_2 = (z + ((x * t) / y)) / b tmp = 0 if t <= -1.1e-96: tmp = t_1 / ((a + 1.0) + (b / (t / y))) elif t <= 9.5e-188: tmp = t_2 elif t <= 1.9e-177: tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0))) elif t <= 1.05e-98: tmp = t_2 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))) t_2 = Float64(Float64(z + Float64(Float64(x * t) / y)) / b) tmp = 0.0 if (t <= -1.1e-96) tmp = Float64(t_1 / Float64(Float64(a + 1.0) + Float64(b / Float64(t / y)))); elseif (t <= 9.5e-188) tmp = t_2; elseif (t <= 1.9e-177) tmp = Float64(Float64(x / Float64(a + 1.0)) + Float64(Float64(y / t) * Float64(z / Float64(a + 1.0)))); elseif (t <= 1.05e-98) tmp = t_2; 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)); t_2 = (z + ((x * t) / y)) / b; tmp = 0.0; if (t <= -1.1e-96) tmp = t_1 / ((a + 1.0) + (b / (t / y))); elseif (t <= 9.5e-188) tmp = t_2; elseif (t <= 1.9e-177) tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0))); elseif (t <= 1.05e-98) tmp = t_2; 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]}, Block[{t$95$2 = N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, If[LessEqual[t, -1.1e-96], N[(t$95$1 / N[(N[(a + 1.0), $MachinePrecision] + N[(b / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.5e-188], t$95$2, If[LessEqual[t, 1.9e-177], N[(N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] * N[(z / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e-98], t$95$2, 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}\\
t_2 := \frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{if}\;t \leq -1.1 \cdot 10^{-96}:\\
\;\;\;\;\frac{t_1}{\left(a + 1\right) + \frac{b}{\frac{t}{y}}}\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-188}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-177}:\\
\;\;\;\;\frac{x}{a + 1} + \frac{y}{t} \cdot \frac{z}{a + 1}\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{-98}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\frac{t_1}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\end{array}
\end{array}
if t < -1.0999999999999999e-96Initial program 90.3%
*-commutative90.3%
associate-*l/93.1%
*-commutative93.1%
associate-*l/93.1%
Simplified93.1%
Taylor expanded in b around 0 93.1%
associate-/l*94.5%
Simplified94.5%
if -1.0999999999999999e-96 < t < 9.50000000000000063e-188 or 1.90000000000000002e-177 < t < 1.04999999999999996e-98Initial program 56.3%
*-commutative56.3%
associate-*l/47.9%
*-commutative47.9%
associate-*l/42.7%
Simplified42.7%
Taylor expanded in b around inf 47.3%
times-frac34.5%
+-commutative34.5%
associate-*r/34.5%
fma-udef34.5%
Simplified34.5%
Taylor expanded in t around 0 75.4%
Taylor expanded in b around 0 76.6%
if 9.50000000000000063e-188 < t < 1.90000000000000002e-177Initial program 80.8%
*-commutative80.8%
associate-*l/42.9%
*-commutative42.9%
associate-*l/42.9%
Simplified42.9%
Taylor expanded in x around 0 99.7%
Taylor expanded in y around 0 99.7%
times-frac99.7%
Simplified99.7%
Taylor expanded in b around 0 99.7%
if 1.04999999999999996e-98 < t Initial program 79.6%
*-commutative79.6%
associate-*l/80.9%
*-commutative80.9%
associate-*l/89.3%
Simplified89.3%
Final simplification86.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ y (/ t z))) (+ a (+ 1.0 (* b (/ y t))))))
(t_2 (/ (+ z (/ (* x t) y)) b)))
(if (<= t -3.2e-97)
t_1
(if (<= t 9.5e-188)
t_2
(if (<= t 1.7e-176)
(+ (/ x (+ a 1.0)) (* (/ y t) (/ z (+ a 1.0))))
(if (<= t 3.8e-93) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (y / (t / z))) / (a + (1.0 + (b * (y / t))));
double t_2 = (z + ((x * t) / y)) / b;
double tmp;
if (t <= -3.2e-97) {
tmp = t_1;
} else if (t <= 9.5e-188) {
tmp = t_2;
} else if (t <= 1.7e-176) {
tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0)));
} else if (t <= 3.8e-93) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = (x + (y / (t / z))) / (a + (1.0d0 + (b * (y / t))))
t_2 = (z + ((x * t) / y)) / b
if (t <= (-3.2d-97)) then
tmp = t_1
else if (t <= 9.5d-188) then
tmp = t_2
else if (t <= 1.7d-176) then
tmp = (x / (a + 1.0d0)) + ((y / t) * (z / (a + 1.0d0)))
else if (t <= 3.8d-93) then
tmp = t_2
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 + (1.0 + (b * (y / t))));
double t_2 = (z + ((x * t) / y)) / b;
double tmp;
if (t <= -3.2e-97) {
tmp = t_1;
} else if (t <= 9.5e-188) {
tmp = t_2;
} else if (t <= 1.7e-176) {
tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0)));
} else if (t <= 3.8e-93) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + (y / (t / z))) / (a + (1.0 + (b * (y / t)))) t_2 = (z + ((x * t) / y)) / b tmp = 0 if t <= -3.2e-97: tmp = t_1 elif t <= 9.5e-188: tmp = t_2 elif t <= 1.7e-176: tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0))) elif t <= 3.8e-93: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(a + Float64(1.0 + Float64(b * Float64(y / t))))) t_2 = Float64(Float64(z + Float64(Float64(x * t) / y)) / b) tmp = 0.0 if (t <= -3.2e-97) tmp = t_1; elseif (t <= 9.5e-188) tmp = t_2; elseif (t <= 1.7e-176) tmp = Float64(Float64(x / Float64(a + 1.0)) + Float64(Float64(y / t) * Float64(z / Float64(a + 1.0)))); elseif (t <= 3.8e-93) tmp = t_2; 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 + (1.0 + (b * (y / t)))); t_2 = (z + ((x * t) / y)) / b; tmp = 0.0; if (t <= -3.2e-97) tmp = t_1; elseif (t <= 9.5e-188) tmp = t_2; elseif (t <= 1.7e-176) tmp = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0))); elseif (t <= 3.8e-93) tmp = t_2; 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] / N[(a + N[(1.0 + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, If[LessEqual[t, -3.2e-97], t$95$1, If[LessEqual[t, 9.5e-188], t$95$2, If[LessEqual[t, 1.7e-176], N[(N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] * N[(z / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.8e-93], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y}{\frac{t}{z}}}{a + \left(1 + b \cdot \frac{y}{t}\right)}\\
t_2 := \frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{if}\;t \leq -3.2 \cdot 10^{-97}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-188}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-176}:\\
\;\;\;\;\frac{x}{a + 1} + \frac{y}{t} \cdot \frac{z}{a + 1}\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{-93}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -3.1999999999999998e-97 or 3.7999999999999999e-93 < t Initial program 84.1%
associate-/l*86.1%
associate-+l+86.1%
associate-/l*91.2%
Simplified91.2%
associate-/r/89.6%
Applied egg-rr91.5%
if -3.1999999999999998e-97 < t < 9.50000000000000063e-188 or 1.6999999999999999e-176 < t < 3.7999999999999999e-93Initial program 57.2%
*-commutative57.2%
associate-*l/49.1%
*-commutative49.1%
associate-*l/44.0%
Simplified44.0%
Taylor expanded in b around inf 48.5%
times-frac36.0%
+-commutative36.0%
associate-*r/35.9%
fma-udef35.9%
Simplified35.9%
Taylor expanded in t around 0 75.9%
Taylor expanded in b around 0 77.1%
if 9.50000000000000063e-188 < t < 1.6999999999999999e-176Initial program 80.8%
*-commutative80.8%
associate-*l/42.9%
*-commutative42.9%
associate-*l/42.9%
Simplified42.9%
Taylor expanded in x around 0 99.7%
Taylor expanded in y around 0 99.7%
times-frac99.7%
Simplified99.7%
Taylor expanded in b around 0 99.7%
Final simplification86.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ z (/ (* x t) y)) b))
(t_2 (+ (/ x (+ a 1.0)) (* (/ y t) (/ z (+ a 1.0))))))
(if (<= t -1100000000.0)
t_2
(if (<= t 4.6e-190)
t_1
(if (<= t 2.25e-177)
t_2
(if (<= t 3.5e-93)
t_1
(if (<= t 8.2e+191)
(/ (+ x (/ (* y z) t)) (+ a 1.0))
(/ x (+ (+ a 1.0) (* y (/ b t)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + ((x * t) / y)) / b;
double t_2 = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0)));
double tmp;
if (t <= -1100000000.0) {
tmp = t_2;
} else if (t <= 4.6e-190) {
tmp = t_1;
} else if (t <= 2.25e-177) {
tmp = t_2;
} else if (t <= 3.5e-93) {
tmp = t_1;
} else if (t <= 8.2e+191) {
tmp = (x + ((y * z) / t)) / (a + 1.0);
} else {
tmp = x / ((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) :: t_2
real(8) :: tmp
t_1 = (z + ((x * t) / y)) / b
t_2 = (x / (a + 1.0d0)) + ((y / t) * (z / (a + 1.0d0)))
if (t <= (-1100000000.0d0)) then
tmp = t_2
else if (t <= 4.6d-190) then
tmp = t_1
else if (t <= 2.25d-177) then
tmp = t_2
else if (t <= 3.5d-93) then
tmp = t_1
else if (t <= 8.2d+191) then
tmp = (x + ((y * z) / t)) / (a + 1.0d0)
else
tmp = x / ((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 = (z + ((x * t) / y)) / b;
double t_2 = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0)));
double tmp;
if (t <= -1100000000.0) {
tmp = t_2;
} else if (t <= 4.6e-190) {
tmp = t_1;
} else if (t <= 2.25e-177) {
tmp = t_2;
} else if (t <= 3.5e-93) {
tmp = t_1;
} else if (t <= 8.2e+191) {
tmp = (x + ((y * z) / t)) / (a + 1.0);
} else {
tmp = x / ((a + 1.0) + (y * (b / t)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + ((x * t) / y)) / b t_2 = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0))) tmp = 0 if t <= -1100000000.0: tmp = t_2 elif t <= 4.6e-190: tmp = t_1 elif t <= 2.25e-177: tmp = t_2 elif t <= 3.5e-93: tmp = t_1 elif t <= 8.2e+191: tmp = (x + ((y * z) / t)) / (a + 1.0) else: tmp = x / ((a + 1.0) + (y * (b / t))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + Float64(Float64(x * t) / y)) / b) t_2 = Float64(Float64(x / Float64(a + 1.0)) + Float64(Float64(y / t) * Float64(z / Float64(a + 1.0)))) tmp = 0.0 if (t <= -1100000000.0) tmp = t_2; elseif (t <= 4.6e-190) tmp = t_1; elseif (t <= 2.25e-177) tmp = t_2; elseif (t <= 3.5e-93) tmp = t_1; elseif (t <= 8.2e+191) tmp = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(a + 1.0)); else tmp = Float64(x / 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 = (z + ((x * t) / y)) / b; t_2 = (x / (a + 1.0)) + ((y / t) * (z / (a + 1.0))); tmp = 0.0; if (t <= -1100000000.0) tmp = t_2; elseif (t <= 4.6e-190) tmp = t_1; elseif (t <= 2.25e-177) tmp = t_2; elseif (t <= 3.5e-93) tmp = t_1; elseif (t <= 8.2e+191) tmp = (x + ((y * z) / t)) / (a + 1.0); else tmp = x / ((a + 1.0) + (y * (b / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] * N[(z / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1100000000.0], t$95$2, If[LessEqual[t, 4.6e-190], t$95$1, If[LessEqual[t, 2.25e-177], t$95$2, If[LessEqual[t, 3.5e-93], t$95$1, If[LessEqual[t, 8.2e+191], N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z + \frac{x \cdot t}{y}}{b}\\
t_2 := \frac{x}{a + 1} + \frac{y}{t} \cdot \frac{z}{a + 1}\\
\mathbf{if}\;t \leq -1100000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{-190}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{-177}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-93}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{+191}:\\
\;\;\;\;\frac{x + \frac{y \cdot z}{t}}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\end{array}
\end{array}
if t < -1.1e9 or 4.59999999999999984e-190 < t < 2.2500000000000002e-177Initial program 91.2%
*-commutative91.2%
associate-*l/91.3%
*-commutative91.3%
associate-*l/93.0%
Simplified93.0%
Taylor expanded in x around 0 92.8%
Taylor expanded in y around 0 86.5%
times-frac89.6%
Simplified89.6%
Taylor expanded in b around 0 87.8%
if -1.1e9 < t < 4.59999999999999984e-190 or 2.2500000000000002e-177 < t < 3.5e-93Initial program 61.6%
*-commutative61.6%
associate-*l/54.8%
*-commutative54.8%
associate-*l/49.7%
Simplified49.7%
Taylor expanded in b around inf 47.4%
times-frac38.3%
+-commutative38.3%
associate-*r/38.3%
fma-udef38.3%
Simplified38.3%
Taylor expanded in t around 0 71.1%
Taylor expanded in b around 0 73.0%
if 3.5e-93 < t < 8.1999999999999998e191Initial program 83.0%
*-commutative83.0%
associate-*l/81.3%
*-commutative81.3%
associate-*l/84.7%
Simplified84.7%
Taylor expanded in b around 0 69.1%
if 8.1999999999999998e191 < t Initial program 73.2%
*-commutative73.2%
associate-*l/79.7%
*-commutative79.7%
associate-*l/97.0%
Simplified97.0%
Taylor expanded in x around inf 85.5%
Final simplification77.0%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= y -3.65e+161) (not (<= y 4.2e+162)))
(/ (+ z (/ (* x t) y)) b)
(+
(/ x (+ 1.0 (+ a (/ (* y b) t))))
(/ (* y z) (+ (* y b) (* t (+ a 1.0)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.65e+161) || !(y <= 4.2e+162)) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = (x / (1.0 + (a + ((y * b) / t)))) + ((y * z) / ((y * b) + (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 ((y <= (-3.65d+161)) .or. (.not. (y <= 4.2d+162))) then
tmp = (z + ((x * t) / y)) / b
else
tmp = (x / (1.0d0 + (a + ((y * b) / t)))) + ((y * z) / ((y * b) + (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 ((y <= -3.65e+161) || !(y <= 4.2e+162)) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = (x / (1.0 + (a + ((y * b) / t)))) + ((y * z) / ((y * b) + (t * (a + 1.0))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -3.65e+161) or not (y <= 4.2e+162): tmp = (z + ((x * t) / y)) / b else: tmp = (x / (1.0 + (a + ((y * b) / t)))) + ((y * z) / ((y * b) + (t * (a + 1.0)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -3.65e+161) || !(y <= 4.2e+162)) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); else tmp = Float64(Float64(x / Float64(1.0 + Float64(a + Float64(Float64(y * b) / t)))) + Float64(Float64(y * z) / Float64(Float64(y * b) + Float64(t * Float64(a + 1.0))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -3.65e+161) || ~((y <= 4.2e+162))) tmp = (z + ((x * t) / y)) / b; else tmp = (x / (1.0 + (a + ((y * b) / t)))) + ((y * z) / ((y * b) + (t * (a + 1.0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -3.65e+161], N[Not[LessEqual[y, 4.2e+162]], $MachinePrecision]], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], N[(N[(x / N[(1.0 + N[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y * z), $MachinePrecision] / N[(N[(y * b), $MachinePrecision] + N[(t * N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.65 \cdot 10^{+161} \lor \neg \left(y \leq 4.2 \cdot 10^{+162}\right):\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 + \left(a + \frac{y \cdot b}{t}\right)} + \frac{y \cdot z}{y \cdot b + t \cdot \left(a + 1\right)}\\
\end{array}
\end{array}
if y < -3.6499999999999998e161 or 4.2000000000000001e162 < y Initial program 33.9%
*-commutative33.9%
associate-*l/38.9%
*-commutative38.9%
associate-*l/48.1%
Simplified48.1%
Taylor expanded in b around inf 25.1%
times-frac40.8%
+-commutative40.8%
associate-*r/43.9%
fma-udef43.9%
Simplified43.9%
Taylor expanded in t around 0 64.1%
Taylor expanded in b around 0 73.3%
if -3.6499999999999998e161 < y < 4.2000000000000001e162Initial program 87.3%
*-commutative87.3%
associate-*l/82.4%
*-commutative82.4%
associate-*l/81.0%
Simplified81.0%
Taylor expanded in x around 0 88.3%
Taylor expanded in t around 0 93.2%
Final simplification88.4%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= t -2.1e-90)
(not
(or (<= t 1.25e-80) (and (not (<= t 1.05e-47)) (<= t 2.45e+68)))))
(/ 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 <= -2.1e-90) || !((t <= 1.25e-80) || (!(t <= 1.05e-47) && (t <= 2.45e+68)))) {
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 <= (-2.1d-90)) .or. (.not. (t <= 1.25d-80) .or. (.not. (t <= 1.05d-47)) .and. (t <= 2.45d+68))) 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 <= -2.1e-90) || !((t <= 1.25e-80) || (!(t <= 1.05e-47) && (t <= 2.45e+68)))) {
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 <= -2.1e-90) or not ((t <= 1.25e-80) or (not (t <= 1.05e-47) and (t <= 2.45e+68))): 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 <= -2.1e-90) || !((t <= 1.25e-80) || (!(t <= 1.05e-47) && (t <= 2.45e+68)))) tmp = Float64(x / Float64(1.0 + Float64(a + Float64(Float64(y * 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 <= -2.1e-90) || ~(((t <= 1.25e-80) || (~((t <= 1.05e-47)) && (t <= 2.45e+68))))) 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, -2.1e-90], N[Not[Or[LessEqual[t, 1.25e-80], And[N[Not[LessEqual[t, 1.05e-47]], $MachinePrecision], LessEqual[t, 2.45e+68]]]], $MachinePrecision]], N[(x / N[(1.0 + N[(a + N[(N[(y * b), $MachinePrecision] / 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 -2.1 \cdot 10^{-90} \lor \neg \left(t \leq 1.25 \cdot 10^{-80} \lor \neg \left(t \leq 1.05 \cdot 10^{-47}\right) \land t \leq 2.45 \cdot 10^{+68}\right):\\
\;\;\;\;\frac{x}{1 + \left(a + \frac{y \cdot b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\end{array}
\end{array}
if t < -2.0999999999999999e-90 or 1.25e-80 < t < 1.05e-47 or 2.44999999999999989e68 < t Initial program 85.6%
*-commutative85.6%
associate-*l/87.8%
*-commutative87.8%
associate-*l/93.2%
Simplified93.2%
Taylor expanded in x around inf 72.9%
if -2.0999999999999999e-90 < t < 1.25e-80 or 1.05e-47 < t < 2.44999999999999989e68Initial program 60.3%
*-commutative60.3%
associate-*l/52.1%
*-commutative52.1%
associate-*l/48.0%
Simplified48.0%
Taylor expanded in b around inf 43.9%
times-frac34.7%
+-commutative34.7%
associate-*r/34.7%
fma-udef34.7%
Simplified34.7%
Taylor expanded in t around 0 68.6%
Taylor expanded in b around 0 70.4%
Final simplification71.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ z (/ (* x t) y)) b))
(t_2 (/ x (+ (+ a 1.0) (* y (/ b t))))))
(if (<= t -2.6e-95)
t_2
(if (<= t 1.1e-80)
t_1
(if (<= t 6.6e-51)
(/ x (+ 1.0 (+ a (/ (* y b) t))))
(if (<= t 2e+68) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + ((x * t) / y)) / b;
double t_2 = x / ((a + 1.0) + (y * (b / t)));
double tmp;
if (t <= -2.6e-95) {
tmp = t_2;
} else if (t <= 1.1e-80) {
tmp = t_1;
} else if (t <= 6.6e-51) {
tmp = x / (1.0 + (a + ((y * b) / t)));
} else if (t <= 2e+68) {
tmp = t_1;
} else {
tmp = 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 = (z + ((x * t) / y)) / b
t_2 = x / ((a + 1.0d0) + (y * (b / t)))
if (t <= (-2.6d-95)) then
tmp = t_2
else if (t <= 1.1d-80) then
tmp = t_1
else if (t <= 6.6d-51) then
tmp = x / (1.0d0 + (a + ((y * b) / t)))
else if (t <= 2d+68) then
tmp = t_1
else
tmp = 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 = (z + ((x * t) / y)) / b;
double t_2 = x / ((a + 1.0) + (y * (b / t)));
double tmp;
if (t <= -2.6e-95) {
tmp = t_2;
} else if (t <= 1.1e-80) {
tmp = t_1;
} else if (t <= 6.6e-51) {
tmp = x / (1.0 + (a + ((y * b) / t)));
} else if (t <= 2e+68) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + ((x * t) / y)) / b t_2 = x / ((a + 1.0) + (y * (b / t))) tmp = 0 if t <= -2.6e-95: tmp = t_2 elif t <= 1.1e-80: tmp = t_1 elif t <= 6.6e-51: tmp = x / (1.0 + (a + ((y * b) / t))) elif t <= 2e+68: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + Float64(Float64(x * t) / y)) / b) t_2 = Float64(x / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))) tmp = 0.0 if (t <= -2.6e-95) tmp = t_2; elseif (t <= 1.1e-80) tmp = t_1; elseif (t <= 6.6e-51) tmp = Float64(x / Float64(1.0 + Float64(a + Float64(Float64(y * b) / t)))); elseif (t <= 2e+68) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + ((x * t) / y)) / b; t_2 = x / ((a + 1.0) + (y * (b / t))); tmp = 0.0; if (t <= -2.6e-95) tmp = t_2; elseif (t <= 1.1e-80) tmp = t_1; elseif (t <= 6.6e-51) tmp = x / (1.0 + (a + ((y * b) / t))); elseif (t <= 2e+68) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.6e-95], t$95$2, If[LessEqual[t, 1.1e-80], t$95$1, If[LessEqual[t, 6.6e-51], N[(x / N[(1.0 + N[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e+68], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z + \frac{x \cdot t}{y}}{b}\\
t_2 := \frac{x}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\mathbf{if}\;t \leq -2.6 \cdot 10^{-95}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{-80}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-51}:\\
\;\;\;\;\frac{x}{1 + \left(a + \frac{y \cdot b}{t}\right)}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+68}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -2.60000000000000001e-95 or 1.99999999999999991e68 < t Initial program 84.8%
*-commutative84.8%
associate-*l/87.8%
*-commutative87.8%
associate-*l/93.5%
Simplified93.5%
Taylor expanded in x around inf 77.2%
if -2.60000000000000001e-95 < t < 1.10000000000000005e-80 or 6.59999999999999946e-51 < t < 1.99999999999999991e68Initial program 60.3%
*-commutative60.3%
associate-*l/52.1%
*-commutative52.1%
associate-*l/48.0%
Simplified48.0%
Taylor expanded in b around inf 43.9%
times-frac34.7%
+-commutative34.7%
associate-*r/34.7%
fma-udef34.7%
Simplified34.7%
Taylor expanded in t around 0 68.6%
Taylor expanded in b around 0 70.4%
if 1.10000000000000005e-80 < t < 6.59999999999999946e-51Initial program 99.8%
*-commutative99.8%
associate-*l/87.4%
*-commutative87.4%
associate-*l/87.4%
Simplified87.4%
Taylor expanded in x around inf 85.9%
Final simplification74.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ z (/ (* x t) y)) b)) (t_2 (/ x (+ a 1.0))))
(if (<= t -170000000000.0)
t_2
(if (<= t 1.2e-80)
t_1
(if (<= t 4.9e-54)
(/ 1.0 (/ (+ a 1.0) x))
(if (<= t 2.15e+68) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + ((x * t) / y)) / b;
double t_2 = x / (a + 1.0);
double tmp;
if (t <= -170000000000.0) {
tmp = t_2;
} else if (t <= 1.2e-80) {
tmp = t_1;
} else if (t <= 4.9e-54) {
tmp = 1.0 / ((a + 1.0) / x);
} else if (t <= 2.15e+68) {
tmp = t_1;
} else {
tmp = 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 = (z + ((x * t) / y)) / b
t_2 = x / (a + 1.0d0)
if (t <= (-170000000000.0d0)) then
tmp = t_2
else if (t <= 1.2d-80) then
tmp = t_1
else if (t <= 4.9d-54) then
tmp = 1.0d0 / ((a + 1.0d0) / x)
else if (t <= 2.15d+68) then
tmp = t_1
else
tmp = 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 = (z + ((x * t) / y)) / b;
double t_2 = x / (a + 1.0);
double tmp;
if (t <= -170000000000.0) {
tmp = t_2;
} else if (t <= 1.2e-80) {
tmp = t_1;
} else if (t <= 4.9e-54) {
tmp = 1.0 / ((a + 1.0) / x);
} else if (t <= 2.15e+68) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + ((x * t) / y)) / b t_2 = x / (a + 1.0) tmp = 0 if t <= -170000000000.0: tmp = t_2 elif t <= 1.2e-80: tmp = t_1 elif t <= 4.9e-54: tmp = 1.0 / ((a + 1.0) / x) elif t <= 2.15e+68: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + Float64(Float64(x * t) / y)) / b) t_2 = Float64(x / Float64(a + 1.0)) tmp = 0.0 if (t <= -170000000000.0) tmp = t_2; elseif (t <= 1.2e-80) tmp = t_1; elseif (t <= 4.9e-54) tmp = Float64(1.0 / Float64(Float64(a + 1.0) / x)); elseif (t <= 2.15e+68) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + ((x * t) / y)) / b; t_2 = x / (a + 1.0); tmp = 0.0; if (t <= -170000000000.0) tmp = t_2; elseif (t <= 1.2e-80) tmp = t_1; elseif (t <= 4.9e-54) tmp = 1.0 / ((a + 1.0) / x); elseif (t <= 2.15e+68) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -170000000000.0], t$95$2, If[LessEqual[t, 1.2e-80], t$95$1, If[LessEqual[t, 4.9e-54], N[(1.0 / N[(N[(a + 1.0), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.15e+68], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z + \frac{x \cdot t}{y}}{b}\\
t_2 := \frac{x}{a + 1}\\
\mathbf{if}\;t \leq -170000000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-80}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.9 \cdot 10^{-54}:\\
\;\;\;\;\frac{1}{\frac{a + 1}{x}}\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{+68}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -1.7e11 or 2.1500000000000001e68 < t Initial program 84.7%
*-commutative84.7%
associate-*l/88.2%
*-commutative88.2%
associate-*l/95.7%
Simplified95.7%
Taylor expanded in t around inf 70.8%
if -1.7e11 < t < 1.2e-80 or 4.90000000000000021e-54 < t < 2.1500000000000001e68Initial program 64.2%
*-commutative64.2%
associate-*l/57.2%
*-commutative57.2%
associate-*l/53.0%
Simplified53.0%
Taylor expanded in b around inf 44.5%
times-frac37.8%
+-commutative37.8%
associate-*r/37.8%
fma-udef37.8%
Simplified37.8%
Taylor expanded in t around 0 66.2%
Taylor expanded in b around 0 68.4%
if 1.2e-80 < t < 4.90000000000000021e-54Initial program 99.8%
*-commutative99.8%
associate-*l/85.6%
*-commutative85.6%
associate-*l/85.6%
Simplified85.6%
Taylor expanded in t around inf 83.9%
clear-num83.9%
inv-pow83.9%
Applied egg-rr83.9%
unpow-183.9%
Simplified83.9%
Final simplification69.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.34e+157) (not (<= y 1.15e+152))) (/ (+ z (/ (* x t) y)) b) (/ (+ x (* z (/ y t))) (+ a (+ 1.0 (* b (/ y t)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.34e+157) || !(y <= 1.15e+152)) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = (x + (z * (y / t))) / (a + (1.0 + (b * (y / 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 ((y <= (-1.34d+157)) .or. (.not. (y <= 1.15d+152))) then
tmp = (z + ((x * t) / y)) / b
else
tmp = (x + (z * (y / t))) / (a + (1.0d0 + (b * (y / 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 ((y <= -1.34e+157) || !(y <= 1.15e+152)) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = (x + (z * (y / t))) / (a + (1.0 + (b * (y / t))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.34e+157) or not (y <= 1.15e+152): tmp = (z + ((x * t) / y)) / b else: tmp = (x + (z * (y / t))) / (a + (1.0 + (b * (y / t)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.34e+157) || !(y <= 1.15e+152)) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); else tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + Float64(1.0 + Float64(b * Float64(y / t))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.34e+157) || ~((y <= 1.15e+152))) tmp = (z + ((x * t) / y)) / b; else tmp = (x + (z * (y / t))) / (a + (1.0 + (b * (y / t)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.34e+157], N[Not[LessEqual[y, 1.15e+152]], $MachinePrecision]], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + N[(1.0 + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.34 \cdot 10^{+157} \lor \neg \left(y \leq 1.15 \cdot 10^{+152}\right):\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + \left(1 + b \cdot \frac{y}{t}\right)}\\
\end{array}
\end{array}
if y < -1.34e157 or 1.14999999999999993e152 < y Initial program 33.9%
*-commutative33.9%
associate-*l/38.9%
*-commutative38.9%
associate-*l/48.1%
Simplified48.1%
Taylor expanded in b around inf 25.1%
times-frac40.8%
+-commutative40.8%
associate-*r/43.9%
fma-udef43.9%
Simplified43.9%
Taylor expanded in t around 0 64.1%
Taylor expanded in b around 0 73.3%
if -1.34e157 < y < 1.14999999999999993e152Initial program 87.3%
associate-/l*82.5%
associate-+l+82.5%
associate-/l*81.4%
Simplified81.4%
associate-/r/82.7%
Applied egg-rr82.7%
associate-/r/85.3%
Applied egg-rr85.3%
Final simplification82.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (+ (+ a 1.0) (* y (/ b t))))))
(if (<= t -5.6e-90)
t_1
(if (<= t 3.2e-94)
(/ (+ z (/ (* x t) y)) b)
(if (<= t 3.7e+192) (/ (+ x (/ (* 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) + (y * (b / t)));
double tmp;
if (t <= -5.6e-90) {
tmp = t_1;
} else if (t <= 3.2e-94) {
tmp = (z + ((x * t) / y)) / b;
} else if (t <= 3.7e+192) {
tmp = (x + ((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) + (y * (b / t)))
if (t <= (-5.6d-90)) then
tmp = t_1
else if (t <= 3.2d-94) then
tmp = (z + ((x * t) / y)) / b
else if (t <= 3.7d+192) then
tmp = (x + ((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) + (y * (b / t)));
double tmp;
if (t <= -5.6e-90) {
tmp = t_1;
} else if (t <= 3.2e-94) {
tmp = (z + ((x * t) / y)) / b;
} else if (t <= 3.7e+192) {
tmp = (x + ((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) + (y * (b / t))) tmp = 0 if t <= -5.6e-90: tmp = t_1 elif t <= 3.2e-94: tmp = (z + ((x * t) / y)) / b elif t <= 3.7e+192: tmp = (x + ((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(Float64(a + 1.0) + Float64(y * Float64(b / t)))) tmp = 0.0 if (t <= -5.6e-90) tmp = t_1; elseif (t <= 3.2e-94) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); elseif (t <= 3.7e+192) tmp = Float64(Float64(x + Float64(Float64(y * 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) + (y * (b / t))); tmp = 0.0; if (t <= -5.6e-90) tmp = t_1; elseif (t <= 3.2e-94) tmp = (z + ((x * t) / y)) / b; elseif (t <= 3.7e+192) tmp = (x + ((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[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.6e-90], t$95$1, If[LessEqual[t, 3.2e-94], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[t, 3.7e+192], N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\mathbf{if}\;t \leq -5.6 \cdot 10^{-90}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{-94}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{elif}\;t \leq 3.7 \cdot 10^{+192}:\\
\;\;\;\;\frac{x + \frac{y \cdot z}{t}}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -5.5999999999999998e-90 or 3.7000000000000001e192 < t Initial program 84.8%
*-commutative84.8%
associate-*l/88.8%
*-commutative88.8%
associate-*l/94.3%
Simplified94.3%
Taylor expanded in x around inf 79.6%
if -5.5999999999999998e-90 < t < 3.19999999999999997e-94Initial program 58.0%
*-commutative58.0%
associate-*l/48.2%
*-commutative48.2%
associate-*l/43.3%
Simplified43.3%
Taylor expanded in b around inf 45.5%
times-frac33.5%
+-commutative33.5%
associate-*r/33.5%
fma-udef33.5%
Simplified33.5%
Taylor expanded in t around 0 71.7%
Taylor expanded in b around 0 72.9%
if 3.19999999999999997e-94 < t < 3.7000000000000001e192Initial program 83.0%
*-commutative83.0%
associate-*l/81.3%
*-commutative81.3%
associate-*l/84.7%
Simplified84.7%
Taylor expanded in b around 0 69.1%
Final simplification74.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -1.5e+154)
(/ z b)
(if (<= y -1.32e+67)
(/ (+ x (* y (/ z t))) a)
(if (or (<= y -2.4e-8) (not (<= y 3.6e-16))) (/ z b) (/ x (+ a 1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.5e+154) {
tmp = z / b;
} else if (y <= -1.32e+67) {
tmp = (x + (y * (z / t))) / a;
} else if ((y <= -2.4e-8) || !(y <= 3.6e-16)) {
tmp = z / b;
} else {
tmp = x / (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 (y <= (-1.5d+154)) then
tmp = z / b
else if (y <= (-1.32d+67)) then
tmp = (x + (y * (z / t))) / a
else if ((y <= (-2.4d-8)) .or. (.not. (y <= 3.6d-16))) then
tmp = z / b
else
tmp = x / (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 (y <= -1.5e+154) {
tmp = z / b;
} else if (y <= -1.32e+67) {
tmp = (x + (y * (z / t))) / a;
} else if ((y <= -2.4e-8) || !(y <= 3.6e-16)) {
tmp = z / b;
} else {
tmp = x / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.5e+154: tmp = z / b elif y <= -1.32e+67: tmp = (x + (y * (z / t))) / a elif (y <= -2.4e-8) or not (y <= 3.6e-16): tmp = z / b else: tmp = x / (a + 1.0) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.5e+154) tmp = Float64(z / b); elseif (y <= -1.32e+67) tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / a); elseif ((y <= -2.4e-8) || !(y <= 3.6e-16)) tmp = Float64(z / b); else tmp = Float64(x / Float64(a + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.5e+154) tmp = z / b; elseif (y <= -1.32e+67) tmp = (x + (y * (z / t))) / a; elseif ((y <= -2.4e-8) || ~((y <= 3.6e-16))) tmp = z / b; else tmp = x / (a + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.5e+154], N[(z / b), $MachinePrecision], If[LessEqual[y, -1.32e+67], N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[Or[LessEqual[y, -2.4e-8], N[Not[LessEqual[y, 3.6e-16]], $MachinePrecision]], N[(z / b), $MachinePrecision], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.5 \cdot 10^{+154}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;y \leq -1.32 \cdot 10^{+67}:\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{a}\\
\mathbf{elif}\;y \leq -2.4 \cdot 10^{-8} \lor \neg \left(y \leq 3.6 \cdot 10^{-16}\right):\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a + 1}\\
\end{array}
\end{array}
if y < -1.50000000000000013e154 or -1.3200000000000001e67 < y < -2.39999999999999998e-8 or 3.59999999999999983e-16 < y Initial program 48.2%
*-commutative48.2%
associate-*l/52.2%
*-commutative52.2%
associate-*l/58.8%
Simplified58.8%
Taylor expanded in t around 0 58.4%
if -1.50000000000000013e154 < y < -1.3200000000000001e67Initial program 80.4%
*-commutative80.4%
associate-*l/80.5%
*-commutative80.5%
associate-*l/90.2%
Simplified90.2%
Taylor expanded in a around inf 53.4%
expm1-log1p-u35.6%
expm1-udef26.1%
associate-/l*30.6%
Applied egg-rr30.6%
expm1-def40.0%
expm1-log1p58.2%
*-lft-identity58.2%
*-lft-identity58.2%
associate-/l*53.4%
associate-*r/58.2%
Simplified58.2%
if -2.39999999999999998e-8 < y < 3.59999999999999983e-16Initial program 92.7%
*-commutative92.7%
associate-*l/85.1%
*-commutative85.1%
associate-*l/81.0%
Simplified81.0%
Taylor expanded in t around inf 63.9%
Final simplification61.3%
(FPCore (x y z t a b) :precision binary64 (if (<= y -3.4e-8) (/ z b) (if (<= y 2.4e-200) x (if (<= y 3.7e-59) (/ x a) (/ z b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -3.4e-8) {
tmp = z / b;
} else if (y <= 2.4e-200) {
tmp = x;
} else if (y <= 3.7e-59) {
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 (y <= (-3.4d-8)) then
tmp = z / b
else if (y <= 2.4d-200) then
tmp = x
else if (y <= 3.7d-59) 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 (y <= -3.4e-8) {
tmp = z / b;
} else if (y <= 2.4e-200) {
tmp = x;
} else if (y <= 3.7e-59) {
tmp = x / a;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -3.4e-8: tmp = z / b elif y <= 2.4e-200: tmp = x elif y <= 3.7e-59: tmp = x / a else: tmp = z / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -3.4e-8) tmp = Float64(z / b); elseif (y <= 2.4e-200) tmp = x; elseif (y <= 3.7e-59) 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 (y <= -3.4e-8) tmp = z / b; elseif (y <= 2.4e-200) tmp = x; elseif (y <= 3.7e-59) tmp = x / a; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -3.4e-8], N[(z / b), $MachinePrecision], If[LessEqual[y, 2.4e-200], x, If[LessEqual[y, 3.7e-59], N[(x / a), $MachinePrecision], N[(z / b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.4 \cdot 10^{-8}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-200}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{-59}:\\
\;\;\;\;\frac{x}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if y < -3.4e-8 or 3.6999999999999999e-59 < y Initial program 55.3%
*-commutative55.3%
associate-*l/58.3%
*-commutative58.3%
associate-*l/64.9%
Simplified64.9%
Taylor expanded in t around 0 52.5%
if -3.4e-8 < y < 2.40000000000000002e-200Initial program 93.5%
*-commutative93.5%
associate-*l/84.4%
*-commutative84.4%
associate-*l/81.3%
Simplified81.3%
Taylor expanded in t around inf 68.7%
Taylor expanded in a around 0 40.3%
if 2.40000000000000002e-200 < y < 3.6999999999999999e-59Initial program 96.8%
*-commutative96.8%
associate-*l/91.0%
*-commutative91.0%
associate-*l/82.5%
Simplified82.5%
Taylor expanded in t around inf 55.8%
Taylor expanded in a around inf 43.8%
Final simplification47.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.45e-8) (not (<= y 4.6e-17))) (/ z b) (/ x (+ a 1.0))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.45e-8) || !(y <= 4.6e-17)) {
tmp = z / b;
} else {
tmp = x / (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 ((y <= (-1.45d-8)) .or. (.not. (y <= 4.6d-17))) then
tmp = z / b
else
tmp = x / (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 ((y <= -1.45e-8) || !(y <= 4.6e-17)) {
tmp = z / b;
} else {
tmp = x / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.45e-8) or not (y <= 4.6e-17): tmp = z / b else: tmp = x / (a + 1.0) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.45e-8) || !(y <= 4.6e-17)) tmp = Float64(z / b); else tmp = Float64(x / Float64(a + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.45e-8) || ~((y <= 4.6e-17))) tmp = z / b; else tmp = x / (a + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.45e-8], N[Not[LessEqual[y, 4.6e-17]], $MachinePrecision]], N[(z / b), $MachinePrecision], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.45 \cdot 10^{-8} \lor \neg \left(y \leq 4.6 \cdot 10^{-17}\right):\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a + 1}\\
\end{array}
\end{array}
if y < -1.4500000000000001e-8 or 4.60000000000000018e-17 < y Initial program 53.5%
*-commutative53.5%
associate-*l/56.9%
*-commutative56.9%
associate-*l/64.1%
Simplified64.1%
Taylor expanded in t around 0 53.7%
if -1.4500000000000001e-8 < y < 4.60000000000000018e-17Initial program 92.7%
*-commutative92.7%
associate-*l/85.1%
*-commutative85.1%
associate-*l/81.0%
Simplified81.0%
Taylor expanded in t around inf 63.9%
Final simplification59.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -39000000000000.0) (not (<= a 1.0))) (/ x a) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -39000000000000.0) || !(a <= 1.0)) {
tmp = x / a;
} else {
tmp = x;
}
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 <= (-39000000000000.0d0)) .or. (.not. (a <= 1.0d0))) then
tmp = x / a
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -39000000000000.0) || !(a <= 1.0)) {
tmp = x / a;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -39000000000000.0) or not (a <= 1.0): tmp = x / a else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -39000000000000.0) || !(a <= 1.0)) tmp = Float64(x / a); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -39000000000000.0) || ~((a <= 1.0))) tmp = x / a; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -39000000000000.0], N[Not[LessEqual[a, 1.0]], $MachinePrecision]], N[(x / a), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -39000000000000 \lor \neg \left(a \leq 1\right):\\
\;\;\;\;\frac{x}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.9e13 or 1 < a Initial program 75.3%
*-commutative75.3%
associate-*l/76.2%
*-commutative76.2%
associate-*l/77.1%
Simplified77.1%
Taylor expanded in t around inf 47.9%
Taylor expanded in a around inf 46.3%
if -3.9e13 < a < 1Initial program 73.4%
*-commutative73.4%
associate-*l/67.9%
*-commutative67.9%
associate-*l/69.3%
Simplified69.3%
Taylor expanded in t around inf 37.6%
Taylor expanded in a around 0 36.8%
Final simplification41.3%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 74.4%
*-commutative74.4%
associate-*l/71.9%
*-commutative71.9%
associate-*l/73.1%
Simplified73.1%
Taylor expanded in t around inf 42.6%
Taylor expanded in a around 0 21.2%
Final simplification21.2%
(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 2024021
(FPCore (x y z t a b)
:name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B"
:precision binary64
:herbie-target
(if (< t -1.3659085366310088e-271) (* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b))))) (if (< t 3.036967103737246e-130) (/ z b) (* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b)))))))
(/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))