
(FPCore (x y z) :precision binary64 (/ (- (+ (* x x) (* y y)) (* z z)) (* y 2.0)))
double code(double x, double y, double z) {
return (((x * x) + (y * y)) - (z * z)) / (y * 2.0);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (((x * x) + (y * y)) - (z * z)) / (y * 2.0d0)
end function
public static double code(double x, double y, double z) {
return (((x * x) + (y * y)) - (z * z)) / (y * 2.0);
}
def code(x, y, z): return (((x * x) + (y * y)) - (z * z)) / (y * 2.0)
function code(x, y, z) return Float64(Float64(Float64(Float64(x * x) + Float64(y * y)) - Float64(z * z)) / Float64(y * 2.0)) end
function tmp = code(x, y, z) tmp = (((x * x) + (y * y)) - (z * z)) / (y * 2.0); end
code[x_, y_, z_] := N[(N[(N[(N[(x * x), $MachinePrecision] + N[(y * y), $MachinePrecision]), $MachinePrecision] - N[(z * z), $MachinePrecision]), $MachinePrecision] / N[(y * 2.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x \cdot x + y \cdot y\right) - z \cdot z}{y \cdot 2}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (/ (- (+ (* x x) (* y y)) (* z z)) (* y 2.0)))
double code(double x, double y, double z) {
return (((x * x) + (y * y)) - (z * z)) / (y * 2.0);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (((x * x) + (y * y)) - (z * z)) / (y * 2.0d0)
end function
public static double code(double x, double y, double z) {
return (((x * x) + (y * y)) - (z * z)) / (y * 2.0);
}
def code(x, y, z): return (((x * x) + (y * y)) - (z * z)) / (y * 2.0)
function code(x, y, z) return Float64(Float64(Float64(Float64(x * x) + Float64(y * y)) - Float64(z * z)) / Float64(y * 2.0)) end
function tmp = code(x, y, z) tmp = (((x * x) + (y * y)) - (z * z)) / (y * 2.0); end
code[x_, y_, z_] := N[(N[(N[(N[(x * x), $MachinePrecision] + N[(y * y), $MachinePrecision]), $MachinePrecision] - N[(z * z), $MachinePrecision]), $MachinePrecision] / N[(y * 2.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x \cdot x + y \cdot y\right) - z \cdot z}{y \cdot 2}
\end{array}
(FPCore (x y z) :precision binary64 (* 0.5 (fma (+ x z) (/ (- x z) y) y)))
double code(double x, double y, double z) {
return 0.5 * fma((x + z), ((x - z) / y), y);
}
function code(x, y, z) return Float64(0.5 * fma(Float64(x + z), Float64(Float64(x - z) / y), y)) end
code[x_, y_, z_] := N[(0.5 * N[(N[(x + z), $MachinePrecision] * N[(N[(x - z), $MachinePrecision] / y), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
0.5 \cdot \mathsf{fma}\left(x + z, \frac{x - z}{y}, y\right)
\end{array}
Initial program 70.5%
remove-double-neg70.5%
distribute-lft-neg-out70.5%
distribute-frac-neg270.5%
distribute-frac-neg70.5%
neg-mul-170.5%
distribute-lft-neg-out70.5%
*-commutative70.5%
distribute-lft-neg-in70.5%
times-frac70.5%
metadata-eval70.5%
metadata-eval70.5%
associate--l+70.5%
fma-define72.1%
Simplified72.1%
Taylor expanded in x around 0 79.1%
associate--l+79.1%
div-sub84.2%
Simplified84.2%
pow284.2%
pow284.2%
difference-of-squares88.9%
Applied egg-rr88.9%
+-commutative88.9%
associate-/l*99.9%
fma-define99.9%
Applied egg-rr99.9%
(FPCore (x y z) :precision binary64 (let* ((t_0 (/ (- x z) y))) (if (<= (* x x) 2e+73) (* 0.5 (+ y (* z t_0))) (* 0.5 (* (+ x z) t_0)))))
double code(double x, double y, double z) {
double t_0 = (x - z) / y;
double tmp;
if ((x * x) <= 2e+73) {
tmp = 0.5 * (y + (z * t_0));
} else {
tmp = 0.5 * ((x + z) * t_0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x - z) / y
if ((x * x) <= 2d+73) then
tmp = 0.5d0 * (y + (z * t_0))
else
tmp = 0.5d0 * ((x + z) * t_0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x - z) / y;
double tmp;
if ((x * x) <= 2e+73) {
tmp = 0.5 * (y + (z * t_0));
} else {
tmp = 0.5 * ((x + z) * t_0);
}
return tmp;
}
def code(x, y, z): t_0 = (x - z) / y tmp = 0 if (x * x) <= 2e+73: tmp = 0.5 * (y + (z * t_0)) else: tmp = 0.5 * ((x + z) * t_0) return tmp
function code(x, y, z) t_0 = Float64(Float64(x - z) / y) tmp = 0.0 if (Float64(x * x) <= 2e+73) tmp = Float64(0.5 * Float64(y + Float64(z * t_0))); else tmp = Float64(0.5 * Float64(Float64(x + z) * t_0)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x - z) / y; tmp = 0.0; if ((x * x) <= 2e+73) tmp = 0.5 * (y + (z * t_0)); else tmp = 0.5 * ((x + z) * t_0); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x - z), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[N[(x * x), $MachinePrecision], 2e+73], N[(0.5 * N[(y + N[(z * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.5 * N[(N[(x + z), $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x - z}{y}\\
\mathbf{if}\;x \cdot x \leq 2 \cdot 10^{+73}:\\
\;\;\;\;0.5 \cdot \left(y + z \cdot t\_0\right)\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \left(\left(x + z\right) \cdot t\_0\right)\\
\end{array}
\end{array}
if (*.f64 x x) < 1.99999999999999997e73Initial program 66.8%
remove-double-neg66.8%
distribute-lft-neg-out66.8%
distribute-frac-neg266.8%
distribute-frac-neg66.8%
neg-mul-166.8%
distribute-lft-neg-out66.8%
*-commutative66.8%
distribute-lft-neg-in66.8%
times-frac66.8%
metadata-eval66.8%
metadata-eval66.8%
associate--l+66.8%
fma-define66.8%
Simplified66.8%
Taylor expanded in x around 0 86.8%
associate--l+86.8%
div-sub88.2%
Simplified88.2%
pow288.2%
pow288.2%
difference-of-squares88.2%
Applied egg-rr88.2%
Taylor expanded in x around 0 79.8%
Taylor expanded in z around 0 89.8%
+-commutative89.8%
neg-mul-189.8%
sub-neg89.8%
div-sub90.5%
Simplified90.5%
if 1.99999999999999997e73 < (*.f64 x x) Initial program 75.5%
remove-double-neg75.5%
distribute-lft-neg-out75.5%
distribute-frac-neg275.5%
distribute-frac-neg75.5%
neg-mul-175.5%
distribute-lft-neg-out75.5%
*-commutative75.5%
distribute-lft-neg-in75.5%
times-frac75.5%
metadata-eval75.5%
metadata-eval75.5%
associate--l+75.5%
fma-define79.1%
Simplified79.1%
Taylor expanded in x around 0 68.8%
associate--l+68.8%
div-sub78.8%
Simplified78.8%
pow278.8%
pow278.8%
difference-of-squares89.9%
Applied egg-rr89.9%
Taylor expanded in y around 0 85.3%
associate-*r/94.0%
+-commutative94.0%
Simplified94.0%
Final simplification92.0%
(FPCore (x y z) :precision binary64 (if (<= x 9.8e+29) (* 0.5 (- y (/ (* z z) y))) (* 0.5 (* (+ x z) (/ (- x z) y)))))
double code(double x, double y, double z) {
double tmp;
if (x <= 9.8e+29) {
tmp = 0.5 * (y - ((z * z) / y));
} else {
tmp = 0.5 * ((x + z) * ((x - z) / y));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= 9.8d+29) then
tmp = 0.5d0 * (y - ((z * z) / y))
else
tmp = 0.5d0 * ((x + z) * ((x - z) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 9.8e+29) {
tmp = 0.5 * (y - ((z * z) / y));
} else {
tmp = 0.5 * ((x + z) * ((x - z) / y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 9.8e+29: tmp = 0.5 * (y - ((z * z) / y)) else: tmp = 0.5 * ((x + z) * ((x - z) / y)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 9.8e+29) tmp = Float64(0.5 * Float64(y - Float64(Float64(z * z) / y))); else tmp = Float64(0.5 * Float64(Float64(x + z) * Float64(Float64(x - z) / y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 9.8e+29) tmp = 0.5 * (y - ((z * z) / y)); else tmp = 0.5 * ((x + z) * ((x - z) / y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 9.8e+29], N[(0.5 * N[(y - N[(N[(z * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.5 * N[(N[(x + z), $MachinePrecision] * N[(N[(x - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 9.8 \cdot 10^{+29}:\\
\;\;\;\;0.5 \cdot \left(y - \frac{z \cdot z}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \left(\left(x + z\right) \cdot \frac{x - z}{y}\right)\\
\end{array}
\end{array}
if x < 9.8000000000000003e29Initial program 68.7%
remove-double-neg68.7%
distribute-lft-neg-out68.7%
distribute-frac-neg268.7%
distribute-frac-neg68.7%
neg-mul-168.7%
distribute-lft-neg-out68.7%
*-commutative68.7%
distribute-lft-neg-in68.7%
times-frac68.7%
metadata-eval68.7%
metadata-eval68.7%
associate--l+68.7%
fma-define69.7%
Simplified69.7%
Taylor expanded in x around 0 82.1%
associate--l+82.1%
div-sub85.1%
Simplified85.1%
pow285.1%
pow285.1%
difference-of-squares88.2%
Applied egg-rr88.2%
Taylor expanded in x around 0 66.9%
Taylor expanded in x around 0 62.1%
neg-mul-162.1%
Simplified62.1%
if 9.8000000000000003e29 < x Initial program 77.1%
remove-double-neg77.1%
distribute-lft-neg-out77.1%
distribute-frac-neg277.1%
distribute-frac-neg77.1%
neg-mul-177.1%
distribute-lft-neg-out77.1%
*-commutative77.1%
distribute-lft-neg-in77.1%
times-frac77.1%
metadata-eval77.1%
metadata-eval77.1%
associate--l+77.1%
fma-define80.7%
Simplified80.7%
Taylor expanded in x around 0 68.0%
associate--l+68.0%
div-sub80.7%
Simplified80.7%
pow280.7%
pow280.7%
difference-of-squares91.6%
Applied egg-rr91.6%
Taylor expanded in y around 0 86.0%
associate-*r/92.1%
+-commutative92.1%
Simplified92.1%
Final simplification68.5%
(FPCore (x y z) :precision binary64 (if (<= x 3.5e+78) (* 0.5 (- y (/ (* z z) y))) (* (* x x) (/ 0.5 y))))
double code(double x, double y, double z) {
double tmp;
if (x <= 3.5e+78) {
tmp = 0.5 * (y - ((z * z) / y));
} else {
tmp = (x * x) * (0.5 / y);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= 3.5d+78) then
tmp = 0.5d0 * (y - ((z * z) / y))
else
tmp = (x * x) * (0.5d0 / y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 3.5e+78) {
tmp = 0.5 * (y - ((z * z) / y));
} else {
tmp = (x * x) * (0.5 / y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 3.5e+78: tmp = 0.5 * (y - ((z * z) / y)) else: tmp = (x * x) * (0.5 / y) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 3.5e+78) tmp = Float64(0.5 * Float64(y - Float64(Float64(z * z) / y))); else tmp = Float64(Float64(x * x) * Float64(0.5 / y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 3.5e+78) tmp = 0.5 * (y - ((z * z) / y)); else tmp = (x * x) * (0.5 / y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 3.5e+78], N[(0.5 * N[(y - N[(N[(z * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * x), $MachinePrecision] * N[(0.5 / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 3.5 \cdot 10^{+78}:\\
\;\;\;\;0.5 \cdot \left(y - \frac{z \cdot z}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot x\right) \cdot \frac{0.5}{y}\\
\end{array}
\end{array}
if x < 3.5000000000000001e78Initial program 70.0%
remove-double-neg70.0%
distribute-lft-neg-out70.0%
distribute-frac-neg270.0%
distribute-frac-neg70.0%
neg-mul-170.0%
distribute-lft-neg-out70.0%
*-commutative70.0%
distribute-lft-neg-in70.0%
times-frac70.0%
metadata-eval70.0%
metadata-eval70.0%
associate--l+70.0%
fma-define70.9%
Simplified70.9%
Taylor expanded in x around 0 82.0%
associate--l+82.0%
div-sub85.7%
Simplified85.7%
pow285.7%
pow285.7%
difference-of-squares88.6%
Applied egg-rr88.6%
Taylor expanded in x around 0 66.2%
Taylor expanded in x around 0 61.7%
neg-mul-161.7%
Simplified61.7%
if 3.5000000000000001e78 < x Initial program 73.4%
remove-double-neg73.4%
distribute-lft-neg-out73.4%
distribute-frac-neg273.4%
distribute-frac-neg73.4%
neg-mul-173.4%
distribute-lft-neg-out73.4%
*-commutative73.4%
distribute-lft-neg-in73.4%
times-frac73.4%
metadata-eval73.4%
metadata-eval73.4%
associate--l+73.4%
fma-define78.4%
Simplified78.4%
Taylor expanded in x around inf 70.8%
*-commutative70.8%
associate-*l/70.8%
associate-*r/70.8%
Simplified70.8%
pow270.8%
Applied egg-rr70.8%
Final simplification63.1%
(FPCore (x y z) :precision binary64 (* 0.5 (+ y (* (+ x z) (/ (- x z) y)))))
double code(double x, double y, double z) {
return 0.5 * (y + ((x + z) * ((x - z) / y)));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = 0.5d0 * (y + ((x + z) * ((x - z) / y)))
end function
public static double code(double x, double y, double z) {
return 0.5 * (y + ((x + z) * ((x - z) / y)));
}
def code(x, y, z): return 0.5 * (y + ((x + z) * ((x - z) / y)))
function code(x, y, z) return Float64(0.5 * Float64(y + Float64(Float64(x + z) * Float64(Float64(x - z) / y)))) end
function tmp = code(x, y, z) tmp = 0.5 * (y + ((x + z) * ((x - z) / y))); end
code[x_, y_, z_] := N[(0.5 * N[(y + N[(N[(x + z), $MachinePrecision] * N[(N[(x - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
0.5 \cdot \left(y + \left(x + z\right) \cdot \frac{x - z}{y}\right)
\end{array}
Initial program 70.5%
remove-double-neg70.5%
distribute-lft-neg-out70.5%
distribute-frac-neg270.5%
distribute-frac-neg70.5%
neg-mul-170.5%
distribute-lft-neg-out70.5%
*-commutative70.5%
distribute-lft-neg-in70.5%
times-frac70.5%
metadata-eval70.5%
metadata-eval70.5%
associate--l+70.5%
fma-define72.1%
Simplified72.1%
Taylor expanded in x around 0 79.1%
associate--l+79.1%
div-sub84.2%
Simplified84.2%
pow284.2%
pow284.2%
difference-of-squares88.9%
Applied egg-rr88.9%
associate-/l*99.9%
*-commutative99.9%
Applied egg-rr99.9%
Final simplification99.9%
(FPCore (x y z) :precision binary64 (if (<= x 2.35e+39) (* 0.5 y) (* (* x x) (/ 0.5 y))))
double code(double x, double y, double z) {
double tmp;
if (x <= 2.35e+39) {
tmp = 0.5 * y;
} else {
tmp = (x * x) * (0.5 / y);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= 2.35d+39) then
tmp = 0.5d0 * y
else
tmp = (x * x) * (0.5d0 / y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 2.35e+39) {
tmp = 0.5 * y;
} else {
tmp = (x * x) * (0.5 / y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 2.35e+39: tmp = 0.5 * y else: tmp = (x * x) * (0.5 / y) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 2.35e+39) tmp = Float64(0.5 * y); else tmp = Float64(Float64(x * x) * Float64(0.5 / y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 2.35e+39) tmp = 0.5 * y; else tmp = (x * x) * (0.5 / y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 2.35e+39], N[(0.5 * y), $MachinePrecision], N[(N[(x * x), $MachinePrecision] * N[(0.5 / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.35 \cdot 10^{+39}:\\
\;\;\;\;0.5 \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot x\right) \cdot \frac{0.5}{y}\\
\end{array}
\end{array}
if x < 2.35e39Initial program 68.4%
remove-double-neg68.4%
distribute-lft-neg-out68.4%
distribute-frac-neg268.4%
distribute-frac-neg68.4%
neg-mul-168.4%
distribute-lft-neg-out68.4%
*-commutative68.4%
distribute-lft-neg-in68.4%
times-frac68.4%
metadata-eval68.4%
metadata-eval68.4%
associate--l+68.4%
fma-define69.4%
Simplified69.4%
Taylor expanded in y around inf 38.8%
if 2.35e39 < x Initial program 79.1%
remove-double-neg79.1%
distribute-lft-neg-out79.1%
distribute-frac-neg279.1%
distribute-frac-neg79.1%
neg-mul-179.1%
distribute-lft-neg-out79.1%
*-commutative79.1%
distribute-lft-neg-in79.1%
times-frac79.1%
metadata-eval79.1%
metadata-eval79.1%
associate--l+79.1%
fma-define83.0%
Simplified83.0%
Taylor expanded in x around inf 65.0%
*-commutative65.0%
associate-*l/65.0%
associate-*r/65.0%
Simplified65.0%
pow265.0%
Applied egg-rr65.0%
(FPCore (x y z) :precision binary64 (* 0.5 y))
double code(double x, double y, double z) {
return 0.5 * y;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = 0.5d0 * y
end function
public static double code(double x, double y, double z) {
return 0.5 * y;
}
def code(x, y, z): return 0.5 * y
function code(x, y, z) return Float64(0.5 * y) end
function tmp = code(x, y, z) tmp = 0.5 * y; end
code[x_, y_, z_] := N[(0.5 * y), $MachinePrecision]
\begin{array}{l}
\\
0.5 \cdot y
\end{array}
Initial program 70.5%
remove-double-neg70.5%
distribute-lft-neg-out70.5%
distribute-frac-neg270.5%
distribute-frac-neg70.5%
neg-mul-170.5%
distribute-lft-neg-out70.5%
*-commutative70.5%
distribute-lft-neg-in70.5%
times-frac70.5%
metadata-eval70.5%
metadata-eval70.5%
associate--l+70.5%
fma-define72.1%
Simplified72.1%
Taylor expanded in y around inf 32.4%
(FPCore (x y z) :precision binary64 (- (* y 0.5) (* (* (/ 0.5 y) (+ z x)) (- z x))))
double code(double x, double y, double z) {
return (y * 0.5) - (((0.5 / y) * (z + x)) * (z - x));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (y * 0.5d0) - (((0.5d0 / y) * (z + x)) * (z - x))
end function
public static double code(double x, double y, double z) {
return (y * 0.5) - (((0.5 / y) * (z + x)) * (z - x));
}
def code(x, y, z): return (y * 0.5) - (((0.5 / y) * (z + x)) * (z - x))
function code(x, y, z) return Float64(Float64(y * 0.5) - Float64(Float64(Float64(0.5 / y) * Float64(z + x)) * Float64(z - x))) end
function tmp = code(x, y, z) tmp = (y * 0.5) - (((0.5 / y) * (z + x)) * (z - x)); end
code[x_, y_, z_] := N[(N[(y * 0.5), $MachinePrecision] - N[(N[(N[(0.5 / y), $MachinePrecision] * N[(z + x), $MachinePrecision]), $MachinePrecision] * N[(z - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot 0.5 - \left(\frac{0.5}{y} \cdot \left(z + x\right)\right) \cdot \left(z - x\right)
\end{array}
herbie shell --seed 2024138
(FPCore (x y z)
:name "Diagrams.TwoD.Apollonian:initialConfig from diagrams-contrib-1.3.0.5, A"
:precision binary64
:alt
(! :herbie-platform default (- (* y 1/2) (* (* (/ 1/2 y) (+ z x)) (- z x))))
(/ (- (+ (* x x) (* y y)) (* z z)) (* y 2.0)))