
(FPCore (a1 a2 b1 b2) :precision binary64 (/ (* a1 a2) (* b1 b2)))
double code(double a1, double a2, double b1, double b2) {
return (a1 * a2) / (b1 * b2);
}
real(8) function code(a1, a2, b1, b2)
real(8), intent (in) :: a1
real(8), intent (in) :: a2
real(8), intent (in) :: b1
real(8), intent (in) :: b2
code = (a1 * a2) / (b1 * b2)
end function
public static double code(double a1, double a2, double b1, double b2) {
return (a1 * a2) / (b1 * b2);
}
def code(a1, a2, b1, b2): return (a1 * a2) / (b1 * b2)
function code(a1, a2, b1, b2) return Float64(Float64(a1 * a2) / Float64(b1 * b2)) end
function tmp = code(a1, a2, b1, b2) tmp = (a1 * a2) / (b1 * b2); end
code[a1_, a2_, b1_, b2_] := N[(N[(a1 * a2), $MachinePrecision] / N[(b1 * b2), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{a1 \cdot a2}{b1 \cdot b2}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 5 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (a1 a2 b1 b2) :precision binary64 (/ (* a1 a2) (* b1 b2)))
double code(double a1, double a2, double b1, double b2) {
return (a1 * a2) / (b1 * b2);
}
real(8) function code(a1, a2, b1, b2)
real(8), intent (in) :: a1
real(8), intent (in) :: a2
real(8), intent (in) :: b1
real(8), intent (in) :: b2
code = (a1 * a2) / (b1 * b2)
end function
public static double code(double a1, double a2, double b1, double b2) {
return (a1 * a2) / (b1 * b2);
}
def code(a1, a2, b1, b2): return (a1 * a2) / (b1 * b2)
function code(a1, a2, b1, b2) return Float64(Float64(a1 * a2) / Float64(b1 * b2)) end
function tmp = code(a1, a2, b1, b2) tmp = (a1 * a2) / (b1 * b2); end
code[a1_, a2_, b1_, b2_] := N[(N[(a1 * a2), $MachinePrecision] / N[(b1 * b2), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{a1 \cdot a2}{b1 \cdot b2}
\end{array}
NOTE: b1 and b2 should be sorted in increasing order before calling this function.
(FPCore (a1 a2 b1 b2)
:precision binary64
(let* ((t_0 (/ (* a1 a2) (* b1 b2))) (t_1 (* (/ a1 b1) (/ a2 b2))))
(if (<= t_0 (- INFINITY))
t_1
(if (<= t_0 -2e-322)
t_0
(if (<= t_0 0.0)
t_1
(if (<= t_0 5e+297)
(* (* a1 a2) (/ (/ 1.0 b1) b2))
(* (/ a2 b1) (/ a1 b2))))))))assert(b1 < b2);
double code(double a1, double a2, double b1, double b2) {
double t_0 = (a1 * a2) / (b1 * b2);
double t_1 = (a1 / b1) * (a2 / b2);
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_0 <= -2e-322) {
tmp = t_0;
} else if (t_0 <= 0.0) {
tmp = t_1;
} else if (t_0 <= 5e+297) {
tmp = (a1 * a2) * ((1.0 / b1) / b2);
} else {
tmp = (a2 / b1) * (a1 / b2);
}
return tmp;
}
assert b1 < b2;
public static double code(double a1, double a2, double b1, double b2) {
double t_0 = (a1 * a2) / (b1 * b2);
double t_1 = (a1 / b1) * (a2 / b2);
double tmp;
if (t_0 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_0 <= -2e-322) {
tmp = t_0;
} else if (t_0 <= 0.0) {
tmp = t_1;
} else if (t_0 <= 5e+297) {
tmp = (a1 * a2) * ((1.0 / b1) / b2);
} else {
tmp = (a2 / b1) * (a1 / b2);
}
return tmp;
}
[b1, b2] = sort([b1, b2]) def code(a1, a2, b1, b2): t_0 = (a1 * a2) / (b1 * b2) t_1 = (a1 / b1) * (a2 / b2) tmp = 0 if t_0 <= -math.inf: tmp = t_1 elif t_0 <= -2e-322: tmp = t_0 elif t_0 <= 0.0: tmp = t_1 elif t_0 <= 5e+297: tmp = (a1 * a2) * ((1.0 / b1) / b2) else: tmp = (a2 / b1) * (a1 / b2) return tmp
b1, b2 = sort([b1, b2]) function code(a1, a2, b1, b2) t_0 = Float64(Float64(a1 * a2) / Float64(b1 * b2)) t_1 = Float64(Float64(a1 / b1) * Float64(a2 / b2)) tmp = 0.0 if (t_0 <= Float64(-Inf)) tmp = t_1; elseif (t_0 <= -2e-322) tmp = t_0; elseif (t_0 <= 0.0) tmp = t_1; elseif (t_0 <= 5e+297) tmp = Float64(Float64(a1 * a2) * Float64(Float64(1.0 / b1) / b2)); else tmp = Float64(Float64(a2 / b1) * Float64(a1 / b2)); end return tmp end
b1, b2 = num2cell(sort([b1, b2])){:}
function tmp_2 = code(a1, a2, b1, b2)
t_0 = (a1 * a2) / (b1 * b2);
t_1 = (a1 / b1) * (a2 / b2);
tmp = 0.0;
if (t_0 <= -Inf)
tmp = t_1;
elseif (t_0 <= -2e-322)
tmp = t_0;
elseif (t_0 <= 0.0)
tmp = t_1;
elseif (t_0 <= 5e+297)
tmp = (a1 * a2) * ((1.0 / b1) / b2);
else
tmp = (a2 / b1) * (a1 / b2);
end
tmp_2 = tmp;
end
NOTE: b1 and b2 should be sorted in increasing order before calling this function.
code[a1_, a2_, b1_, b2_] := Block[{t$95$0 = N[(N[(a1 * a2), $MachinePrecision] / N[(b1 * b2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(a1 / b1), $MachinePrecision] * N[(a2 / b2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], t$95$1, If[LessEqual[t$95$0, -2e-322], t$95$0, If[LessEqual[t$95$0, 0.0], t$95$1, If[LessEqual[t$95$0, 5e+297], N[(N[(a1 * a2), $MachinePrecision] * N[(N[(1.0 / b1), $MachinePrecision] / b2), $MachinePrecision]), $MachinePrecision], N[(N[(a2 / b1), $MachinePrecision] * N[(a1 / b2), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
[b1, b2] = \mathsf{sort}([b1, b2])\\
\\
\begin{array}{l}
t_0 := \frac{a1 \cdot a2}{b1 \cdot b2}\\
t_1 := \frac{a1}{b1} \cdot \frac{a2}{b2}\\
\mathbf{if}\;t_0 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_0 \leq -2 \cdot 10^{-322}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;t_0 \leq 0:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_0 \leq 5 \cdot 10^{+297}:\\
\;\;\;\;\left(a1 \cdot a2\right) \cdot \frac{\frac{1}{b1}}{b2}\\
\mathbf{else}:\\
\;\;\;\;\frac{a2}{b1} \cdot \frac{a1}{b2}\\
\end{array}
\end{array}
if (/.f64 (*.f64 a1 a2) (*.f64 b1 b2)) < -inf.0 or -1.97626e-322 < (/.f64 (*.f64 a1 a2) (*.f64 b1 b2)) < -0.0Initial program 71.3%
times-frac92.9%
Simplified92.9%
if -inf.0 < (/.f64 (*.f64 a1 a2) (*.f64 b1 b2)) < -1.97626e-322Initial program 99.5%
if -0.0 < (/.f64 (*.f64 a1 a2) (*.f64 b1 b2)) < 4.9999999999999998e297Initial program 99.2%
clear-num99.3%
associate-/r/99.3%
associate-/r*99.4%
Applied egg-rr99.4%
if 4.9999999999999998e297 < (/.f64 (*.f64 a1 a2) (*.f64 b1 b2)) Initial program 64.1%
times-frac95.3%
associate-*l/83.5%
associate-*r/90.5%
Simplified90.5%
Taylor expanded in a1 around 0 64.1%
*-commutative64.1%
times-frac99.6%
Simplified99.6%
Final simplification96.8%
NOTE: b1 and b2 should be sorted in increasing order before calling this function.
(FPCore (a1 a2 b1 b2)
:precision binary64
(let* ((t_0 (/ (* a1 a2) (* b1 b2))) (t_1 (* (/ a1 b1) (/ a2 b2))))
(if (<= t_0 (- INFINITY))
t_1
(if (<= t_0 -2e-322)
t_0
(if (<= t_0 0.0)
t_1
(if (<= t_0 5e+297) t_0 (* (/ a2 b1) (/ a1 b2))))))))assert(b1 < b2);
double code(double a1, double a2, double b1, double b2) {
double t_0 = (a1 * a2) / (b1 * b2);
double t_1 = (a1 / b1) * (a2 / b2);
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_0 <= -2e-322) {
tmp = t_0;
} else if (t_0 <= 0.0) {
tmp = t_1;
} else if (t_0 <= 5e+297) {
tmp = t_0;
} else {
tmp = (a2 / b1) * (a1 / b2);
}
return tmp;
}
assert b1 < b2;
public static double code(double a1, double a2, double b1, double b2) {
double t_0 = (a1 * a2) / (b1 * b2);
double t_1 = (a1 / b1) * (a2 / b2);
double tmp;
if (t_0 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_0 <= -2e-322) {
tmp = t_0;
} else if (t_0 <= 0.0) {
tmp = t_1;
} else if (t_0 <= 5e+297) {
tmp = t_0;
} else {
tmp = (a2 / b1) * (a1 / b2);
}
return tmp;
}
[b1, b2] = sort([b1, b2]) def code(a1, a2, b1, b2): t_0 = (a1 * a2) / (b1 * b2) t_1 = (a1 / b1) * (a2 / b2) tmp = 0 if t_0 <= -math.inf: tmp = t_1 elif t_0 <= -2e-322: tmp = t_0 elif t_0 <= 0.0: tmp = t_1 elif t_0 <= 5e+297: tmp = t_0 else: tmp = (a2 / b1) * (a1 / b2) return tmp
b1, b2 = sort([b1, b2]) function code(a1, a2, b1, b2) t_0 = Float64(Float64(a1 * a2) / Float64(b1 * b2)) t_1 = Float64(Float64(a1 / b1) * Float64(a2 / b2)) tmp = 0.0 if (t_0 <= Float64(-Inf)) tmp = t_1; elseif (t_0 <= -2e-322) tmp = t_0; elseif (t_0 <= 0.0) tmp = t_1; elseif (t_0 <= 5e+297) tmp = t_0; else tmp = Float64(Float64(a2 / b1) * Float64(a1 / b2)); end return tmp end
b1, b2 = num2cell(sort([b1, b2])){:}
function tmp_2 = code(a1, a2, b1, b2)
t_0 = (a1 * a2) / (b1 * b2);
t_1 = (a1 / b1) * (a2 / b2);
tmp = 0.0;
if (t_0 <= -Inf)
tmp = t_1;
elseif (t_0 <= -2e-322)
tmp = t_0;
elseif (t_0 <= 0.0)
tmp = t_1;
elseif (t_0 <= 5e+297)
tmp = t_0;
else
tmp = (a2 / b1) * (a1 / b2);
end
tmp_2 = tmp;
end
NOTE: b1 and b2 should be sorted in increasing order before calling this function.
code[a1_, a2_, b1_, b2_] := Block[{t$95$0 = N[(N[(a1 * a2), $MachinePrecision] / N[(b1 * b2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(a1 / b1), $MachinePrecision] * N[(a2 / b2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], t$95$1, If[LessEqual[t$95$0, -2e-322], t$95$0, If[LessEqual[t$95$0, 0.0], t$95$1, If[LessEqual[t$95$0, 5e+297], t$95$0, N[(N[(a2 / b1), $MachinePrecision] * N[(a1 / b2), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
[b1, b2] = \mathsf{sort}([b1, b2])\\
\\
\begin{array}{l}
t_0 := \frac{a1 \cdot a2}{b1 \cdot b2}\\
t_1 := \frac{a1}{b1} \cdot \frac{a2}{b2}\\
\mathbf{if}\;t_0 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_0 \leq -2 \cdot 10^{-322}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;t_0 \leq 0:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_0 \leq 5 \cdot 10^{+297}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{a2}{b1} \cdot \frac{a1}{b2}\\
\end{array}
\end{array}
if (/.f64 (*.f64 a1 a2) (*.f64 b1 b2)) < -inf.0 or -1.97626e-322 < (/.f64 (*.f64 a1 a2) (*.f64 b1 b2)) < -0.0Initial program 71.3%
times-frac92.9%
Simplified92.9%
if -inf.0 < (/.f64 (*.f64 a1 a2) (*.f64 b1 b2)) < -1.97626e-322 or -0.0 < (/.f64 (*.f64 a1 a2) (*.f64 b1 b2)) < 4.9999999999999998e297Initial program 99.4%
if 4.9999999999999998e297 < (/.f64 (*.f64 a1 a2) (*.f64 b1 b2)) Initial program 64.1%
times-frac95.3%
associate-*l/83.5%
associate-*r/90.5%
Simplified90.5%
Taylor expanded in a1 around 0 64.1%
*-commutative64.1%
times-frac99.6%
Simplified99.6%
Final simplification96.8%
NOTE: b1 and b2 should be sorted in increasing order before calling this function. (FPCore (a1 a2 b1 b2) :precision binary64 (if (or (<= a2 5e-218) (not (<= a2 3.1e+174))) (* (/ a1 b1) (/ a2 b2)) (* a1 (/ a2 (* b1 b2)))))
assert(b1 < b2);
double code(double a1, double a2, double b1, double b2) {
double tmp;
if ((a2 <= 5e-218) || !(a2 <= 3.1e+174)) {
tmp = (a1 / b1) * (a2 / b2);
} else {
tmp = a1 * (a2 / (b1 * b2));
}
return tmp;
}
NOTE: b1 and b2 should be sorted in increasing order before calling this function.
real(8) function code(a1, a2, b1, b2)
real(8), intent (in) :: a1
real(8), intent (in) :: a2
real(8), intent (in) :: b1
real(8), intent (in) :: b2
real(8) :: tmp
if ((a2 <= 5d-218) .or. (.not. (a2 <= 3.1d+174))) then
tmp = (a1 / b1) * (a2 / b2)
else
tmp = a1 * (a2 / (b1 * b2))
end if
code = tmp
end function
assert b1 < b2;
public static double code(double a1, double a2, double b1, double b2) {
double tmp;
if ((a2 <= 5e-218) || !(a2 <= 3.1e+174)) {
tmp = (a1 / b1) * (a2 / b2);
} else {
tmp = a1 * (a2 / (b1 * b2));
}
return tmp;
}
[b1, b2] = sort([b1, b2]) def code(a1, a2, b1, b2): tmp = 0 if (a2 <= 5e-218) or not (a2 <= 3.1e+174): tmp = (a1 / b1) * (a2 / b2) else: tmp = a1 * (a2 / (b1 * b2)) return tmp
b1, b2 = sort([b1, b2]) function code(a1, a2, b1, b2) tmp = 0.0 if ((a2 <= 5e-218) || !(a2 <= 3.1e+174)) tmp = Float64(Float64(a1 / b1) * Float64(a2 / b2)); else tmp = Float64(a1 * Float64(a2 / Float64(b1 * b2))); end return tmp end
b1, b2 = num2cell(sort([b1, b2])){:}
function tmp_2 = code(a1, a2, b1, b2)
tmp = 0.0;
if ((a2 <= 5e-218) || ~((a2 <= 3.1e+174)))
tmp = (a1 / b1) * (a2 / b2);
else
tmp = a1 * (a2 / (b1 * b2));
end
tmp_2 = tmp;
end
NOTE: b1 and b2 should be sorted in increasing order before calling this function. code[a1_, a2_, b1_, b2_] := If[Or[LessEqual[a2, 5e-218], N[Not[LessEqual[a2, 3.1e+174]], $MachinePrecision]], N[(N[(a1 / b1), $MachinePrecision] * N[(a2 / b2), $MachinePrecision]), $MachinePrecision], N[(a1 * N[(a2 / N[(b1 * b2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[b1, b2] = \mathsf{sort}([b1, b2])\\
\\
\begin{array}{l}
\mathbf{if}\;a2 \leq 5 \cdot 10^{-218} \lor \neg \left(a2 \leq 3.1 \cdot 10^{+174}\right):\\
\;\;\;\;\frac{a1}{b1} \cdot \frac{a2}{b2}\\
\mathbf{else}:\\
\;\;\;\;a1 \cdot \frac{a2}{b1 \cdot b2}\\
\end{array}
\end{array}
if a2 < 5.00000000000000041e-218 or 3.1e174 < a2 Initial program 79.9%
times-frac87.6%
Simplified87.6%
if 5.00000000000000041e-218 < a2 < 3.1e174Initial program 87.5%
*-commutative87.5%
associate-*l/93.1%
*-commutative93.1%
Applied egg-rr93.1%
Final simplification89.4%
NOTE: b1 and b2 should be sorted in increasing order before calling this function. (FPCore (a1 a2 b1 b2) :precision binary64 (if (<= b1 -4.1e-198) (* (/ a1 b1) (/ a2 b2)) (* a1 (/ (/ a2 b2) b1))))
assert(b1 < b2);
double code(double a1, double a2, double b1, double b2) {
double tmp;
if (b1 <= -4.1e-198) {
tmp = (a1 / b1) * (a2 / b2);
} else {
tmp = a1 * ((a2 / b2) / b1);
}
return tmp;
}
NOTE: b1 and b2 should be sorted in increasing order before calling this function.
real(8) function code(a1, a2, b1, b2)
real(8), intent (in) :: a1
real(8), intent (in) :: a2
real(8), intent (in) :: b1
real(8), intent (in) :: b2
real(8) :: tmp
if (b1 <= (-4.1d-198)) then
tmp = (a1 / b1) * (a2 / b2)
else
tmp = a1 * ((a2 / b2) / b1)
end if
code = tmp
end function
assert b1 < b2;
public static double code(double a1, double a2, double b1, double b2) {
double tmp;
if (b1 <= -4.1e-198) {
tmp = (a1 / b1) * (a2 / b2);
} else {
tmp = a1 * ((a2 / b2) / b1);
}
return tmp;
}
[b1, b2] = sort([b1, b2]) def code(a1, a2, b1, b2): tmp = 0 if b1 <= -4.1e-198: tmp = (a1 / b1) * (a2 / b2) else: tmp = a1 * ((a2 / b2) / b1) return tmp
b1, b2 = sort([b1, b2]) function code(a1, a2, b1, b2) tmp = 0.0 if (b1 <= -4.1e-198) tmp = Float64(Float64(a1 / b1) * Float64(a2 / b2)); else tmp = Float64(a1 * Float64(Float64(a2 / b2) / b1)); end return tmp end
b1, b2 = num2cell(sort([b1, b2])){:}
function tmp_2 = code(a1, a2, b1, b2)
tmp = 0.0;
if (b1 <= -4.1e-198)
tmp = (a1 / b1) * (a2 / b2);
else
tmp = a1 * ((a2 / b2) / b1);
end
tmp_2 = tmp;
end
NOTE: b1 and b2 should be sorted in increasing order before calling this function. code[a1_, a2_, b1_, b2_] := If[LessEqual[b1, -4.1e-198], N[(N[(a1 / b1), $MachinePrecision] * N[(a2 / b2), $MachinePrecision]), $MachinePrecision], N[(a1 * N[(N[(a2 / b2), $MachinePrecision] / b1), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[b1, b2] = \mathsf{sort}([b1, b2])\\
\\
\begin{array}{l}
\mathbf{if}\;b1 \leq -4.1 \cdot 10^{-198}:\\
\;\;\;\;\frac{a1}{b1} \cdot \frac{a2}{b2}\\
\mathbf{else}:\\
\;\;\;\;a1 \cdot \frac{\frac{a2}{b2}}{b1}\\
\end{array}
\end{array}
if b1 < -4.10000000000000012e-198Initial program 84.7%
times-frac89.0%
Simplified89.0%
if -4.10000000000000012e-198 < b1 Initial program 80.7%
times-frac82.8%
associate-*l/86.0%
associate-*r/87.9%
Simplified87.9%
Final simplification88.4%
NOTE: b1 and b2 should be sorted in increasing order before calling this function. (FPCore (a1 a2 b1 b2) :precision binary64 (* a1 (/ (/ a2 b2) b1)))
assert(b1 < b2);
double code(double a1, double a2, double b1, double b2) {
return a1 * ((a2 / b2) / b1);
}
NOTE: b1 and b2 should be sorted in increasing order before calling this function.
real(8) function code(a1, a2, b1, b2)
real(8), intent (in) :: a1
real(8), intent (in) :: a2
real(8), intent (in) :: b1
real(8), intent (in) :: b2
code = a1 * ((a2 / b2) / b1)
end function
assert b1 < b2;
public static double code(double a1, double a2, double b1, double b2) {
return a1 * ((a2 / b2) / b1);
}
[b1, b2] = sort([b1, b2]) def code(a1, a2, b1, b2): return a1 * ((a2 / b2) / b1)
b1, b2 = sort([b1, b2]) function code(a1, a2, b1, b2) return Float64(a1 * Float64(Float64(a2 / b2) / b1)) end
b1, b2 = num2cell(sort([b1, b2])){:}
function tmp = code(a1, a2, b1, b2)
tmp = a1 * ((a2 / b2) / b1);
end
NOTE: b1 and b2 should be sorted in increasing order before calling this function. code[a1_, a2_, b1_, b2_] := N[(a1 * N[(N[(a2 / b2), $MachinePrecision] / b1), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
[b1, b2] = \mathsf{sort}([b1, b2])\\
\\
a1 \cdot \frac{\frac{a2}{b2}}{b1}
\end{array}
Initial program 82.4%
times-frac85.4%
associate-*l/85.1%
associate-*r/86.2%
Simplified86.2%
Final simplification86.2%
(FPCore (a1 a2 b1 b2) :precision binary64 (* (/ a1 b1) (/ a2 b2)))
double code(double a1, double a2, double b1, double b2) {
return (a1 / b1) * (a2 / b2);
}
real(8) function code(a1, a2, b1, b2)
real(8), intent (in) :: a1
real(8), intent (in) :: a2
real(8), intent (in) :: b1
real(8), intent (in) :: b2
code = (a1 / b1) * (a2 / b2)
end function
public static double code(double a1, double a2, double b1, double b2) {
return (a1 / b1) * (a2 / b2);
}
def code(a1, a2, b1, b2): return (a1 / b1) * (a2 / b2)
function code(a1, a2, b1, b2) return Float64(Float64(a1 / b1) * Float64(a2 / b2)) end
function tmp = code(a1, a2, b1, b2) tmp = (a1 / b1) * (a2 / b2); end
code[a1_, a2_, b1_, b2_] := N[(N[(a1 / b1), $MachinePrecision] * N[(a2 / b2), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{a1}{b1} \cdot \frac{a2}{b2}
\end{array}
herbie shell --seed 2023301
(FPCore (a1 a2 b1 b2)
:name "Quotient of products"
:precision binary64
:herbie-target
(* (/ a1 b1) (/ a2 b2))
(/ (* a1 a2) (* b1 b2)))