
(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 6 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 (+ y (* (/ (- x z) y) (+ x z)))))
double code(double x, double y, double z) {
return 0.5 * (y + (((x - z) / y) * (x + z)));
}
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) / y) * (x + z)))
end function
public static double code(double x, double y, double z) {
return 0.5 * (y + (((x - z) / y) * (x + z)));
}
def code(x, y, z): return 0.5 * (y + (((x - z) / y) * (x + z)))
function code(x, y, z) return Float64(0.5 * Float64(y + Float64(Float64(Float64(x - z) / y) * Float64(x + z)))) end
function tmp = code(x, y, z) tmp = 0.5 * (y + (((x - z) / y) * (x + z))); end
code[x_, y_, z_] := N[(0.5 * N[(y + N[(N[(N[(x - z), $MachinePrecision] / y), $MachinePrecision] * N[(x + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
0.5 \cdot \left(y + \frac{x - z}{y} \cdot \left(x + z\right)\right)
\end{array}
Initial program 65.8%
remove-double-neg65.8%
distribute-lft-neg-out65.8%
distribute-frac-neg265.8%
distribute-frac-neg65.8%
neg-mul-165.8%
distribute-lft-neg-out65.8%
*-commutative65.8%
distribute-lft-neg-in65.8%
times-frac65.8%
metadata-eval65.8%
metadata-eval65.8%
associate--l+65.8%
fma-define69.3%
Simplified69.3%
Taylor expanded in x around 0 75.9%
associate--l+75.9%
div-sub80.2%
Simplified80.2%
unpow280.2%
pow280.2%
difference-of-squares88.5%
Applied egg-rr88.5%
associate-/l*99.9%
*-commutative99.9%
Applied egg-rr99.9%
(FPCore (x y z) :precision binary64 (if (or (<= (* z z) 5e-15) (and (not (<= (* z z) 2e+37)) (<= (* z z) 2e+140))) (* 0.5 (+ y (* (+ x z) (/ x y)))) (* 0.5 (* (/ (- x z) y) (+ x z)))))
double code(double x, double y, double z) {
double tmp;
if (((z * z) <= 5e-15) || (!((z * z) <= 2e+37) && ((z * z) <= 2e+140))) {
tmp = 0.5 * (y + ((x + z) * (x / y)));
} else {
tmp = 0.5 * (((x - z) / y) * (x + z));
}
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 (((z * z) <= 5d-15) .or. (.not. ((z * z) <= 2d+37)) .and. ((z * z) <= 2d+140)) then
tmp = 0.5d0 * (y + ((x + z) * (x / y)))
else
tmp = 0.5d0 * (((x - z) / y) * (x + z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (((z * z) <= 5e-15) || (!((z * z) <= 2e+37) && ((z * z) <= 2e+140))) {
tmp = 0.5 * (y + ((x + z) * (x / y)));
} else {
tmp = 0.5 * (((x - z) / y) * (x + z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if ((z * z) <= 5e-15) or (not ((z * z) <= 2e+37) and ((z * z) <= 2e+140)): tmp = 0.5 * (y + ((x + z) * (x / y))) else: tmp = 0.5 * (((x - z) / y) * (x + z)) return tmp
function code(x, y, z) tmp = 0.0 if ((Float64(z * z) <= 5e-15) || (!(Float64(z * z) <= 2e+37) && (Float64(z * z) <= 2e+140))) tmp = Float64(0.5 * Float64(y + Float64(Float64(x + z) * Float64(x / y)))); else tmp = Float64(0.5 * Float64(Float64(Float64(x - z) / y) * Float64(x + z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (((z * z) <= 5e-15) || (~(((z * z) <= 2e+37)) && ((z * z) <= 2e+140))) tmp = 0.5 * (y + ((x + z) * (x / y))); else tmp = 0.5 * (((x - z) / y) * (x + z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[N[(z * z), $MachinePrecision], 5e-15], And[N[Not[LessEqual[N[(z * z), $MachinePrecision], 2e+37]], $MachinePrecision], LessEqual[N[(z * z), $MachinePrecision], 2e+140]]], N[(0.5 * N[(y + N[(N[(x + z), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.5 * N[(N[(N[(x - z), $MachinePrecision] / y), $MachinePrecision] * N[(x + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot z \leq 5 \cdot 10^{-15} \lor \neg \left(z \cdot z \leq 2 \cdot 10^{+37}\right) \land z \cdot z \leq 2 \cdot 10^{+140}:\\
\;\;\;\;0.5 \cdot \left(y + \left(x + z\right) \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \left(\frac{x - z}{y} \cdot \left(x + z\right)\right)\\
\end{array}
\end{array}
if (*.f64 z z) < 4.99999999999999999e-15 or 1.99999999999999991e37 < (*.f64 z z) < 2.00000000000000012e140Initial program 76.0%
remove-double-neg76.0%
distribute-lft-neg-out76.0%
distribute-frac-neg276.0%
distribute-frac-neg76.0%
neg-mul-176.0%
distribute-lft-neg-out76.0%
*-commutative76.0%
distribute-lft-neg-in76.0%
times-frac76.0%
metadata-eval76.0%
metadata-eval76.0%
associate--l+76.0%
fma-define76.0%
Simplified76.0%
Taylor expanded in x around 0 93.7%
associate--l+93.7%
div-sub94.4%
Simplified94.4%
unpow294.4%
pow294.4%
difference-of-squares94.4%
Applied egg-rr94.4%
associate-/l*99.9%
*-commutative99.9%
Applied egg-rr99.9%
Taylor expanded in x around inf 91.2%
if 4.99999999999999999e-15 < (*.f64 z z) < 1.99999999999999991e37 or 2.00000000000000012e140 < (*.f64 z z) Initial program 51.0%
remove-double-neg51.0%
distribute-lft-neg-out51.0%
distribute-frac-neg251.0%
distribute-frac-neg51.0%
neg-mul-151.0%
distribute-lft-neg-out51.0%
*-commutative51.0%
distribute-lft-neg-in51.0%
times-frac51.0%
metadata-eval51.0%
metadata-eval51.0%
associate--l+51.0%
fma-define59.6%
Simplified59.6%
Taylor expanded in x around 0 49.9%
associate--l+49.9%
div-sub59.5%
Simplified59.5%
unpow259.5%
pow259.5%
difference-of-squares79.9%
Applied egg-rr79.9%
Taylor expanded in y around 0 73.2%
associate-*r/81.8%
+-commutative81.8%
Simplified81.8%
Final simplification87.4%
(FPCore (x y z) :precision binary64 (if (<= (* z z) 5e-52) (* 0.5 (+ y (* (+ x z) (/ x y)))) (* 0.5 (+ y (* z (/ (- x z) y))))))
double code(double x, double y, double z) {
double tmp;
if ((z * z) <= 5e-52) {
tmp = 0.5 * (y + ((x + z) * (x / y)));
} else {
tmp = 0.5 * (y + (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 ((z * z) <= 5d-52) then
tmp = 0.5d0 * (y + ((x + z) * (x / y)))
else
tmp = 0.5d0 * (y + (z * ((x - z) / y)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z * z) <= 5e-52) {
tmp = 0.5 * (y + ((x + z) * (x / y)));
} else {
tmp = 0.5 * (y + (z * ((x - z) / y)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z * z) <= 5e-52: tmp = 0.5 * (y + ((x + z) * (x / y))) else: tmp = 0.5 * (y + (z * ((x - z) / y))) return tmp
function code(x, y, z) tmp = 0.0 if (Float64(z * z) <= 5e-52) tmp = Float64(0.5 * Float64(y + Float64(Float64(x + z) * Float64(x / y)))); else tmp = Float64(0.5 * Float64(y + Float64(z * Float64(Float64(x - z) / y)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z * z) <= 5e-52) tmp = 0.5 * (y + ((x + z) * (x / y))); else tmp = 0.5 * (y + (z * ((x - z) / y))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[N[(z * z), $MachinePrecision], 5e-52], N[(0.5 * N[(y + N[(N[(x + z), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.5 * N[(y + N[(z * N[(N[(x - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot z \leq 5 \cdot 10^{-52}:\\
\;\;\;\;0.5 \cdot \left(y + \left(x + z\right) \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \left(y + z \cdot \frac{x - z}{y}\right)\\
\end{array}
\end{array}
if (*.f64 z z) < 5e-52Initial program 80.8%
remove-double-neg80.8%
distribute-lft-neg-out80.8%
distribute-frac-neg280.8%
distribute-frac-neg80.8%
neg-mul-180.8%
distribute-lft-neg-out80.8%
*-commutative80.8%
distribute-lft-neg-in80.8%
times-frac80.8%
metadata-eval80.8%
metadata-eval80.8%
associate--l+80.8%
fma-define80.8%
Simplified80.8%
Taylor expanded in x around 0 94.5%
associate--l+94.5%
div-sub94.5%
Simplified94.5%
unpow294.5%
pow294.5%
difference-of-squares94.5%
Applied egg-rr94.5%
associate-/l*99.9%
*-commutative99.9%
Applied egg-rr99.9%
Taylor expanded in x around inf 93.4%
if 5e-52 < (*.f64 z z) Initial program 52.2%
remove-double-neg52.2%
distribute-lft-neg-out52.2%
distribute-frac-neg252.2%
distribute-frac-neg52.2%
neg-mul-152.2%
distribute-lft-neg-out52.2%
*-commutative52.2%
distribute-lft-neg-in52.2%
times-frac52.2%
metadata-eval52.2%
metadata-eval52.2%
associate--l+52.2%
fma-define58.9%
Simplified58.9%
Taylor expanded in x around 0 58.9%
associate--l+58.9%
div-sub67.1%
Simplified67.1%
unpow267.1%
pow267.1%
difference-of-squares83.0%
Applied egg-rr83.0%
associate-/l*99.9%
*-commutative99.9%
Applied egg-rr99.9%
Taylor expanded in x around 0 85.0%
Final simplification89.0%
(FPCore (x y z) :precision binary64 (if (<= y 3e+127) (* 0.5 (* (/ (- x z) y) (+ x z))) (* 0.5 y)))
double code(double x, double y, double z) {
double tmp;
if (y <= 3e+127) {
tmp = 0.5 * (((x - z) / y) * (x + z));
} else {
tmp = 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 (y <= 3d+127) then
tmp = 0.5d0 * (((x - z) / y) * (x + z))
else
tmp = 0.5d0 * y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= 3e+127) {
tmp = 0.5 * (((x - z) / y) * (x + z));
} else {
tmp = 0.5 * y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= 3e+127: tmp = 0.5 * (((x - z) / y) * (x + z)) else: tmp = 0.5 * y return tmp
function code(x, y, z) tmp = 0.0 if (y <= 3e+127) tmp = Float64(0.5 * Float64(Float64(Float64(x - z) / y) * Float64(x + z))); else tmp = Float64(0.5 * y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= 3e+127) tmp = 0.5 * (((x - z) / y) * (x + z)); else tmp = 0.5 * y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, 3e+127], N[(0.5 * N[(N[(N[(x - z), $MachinePrecision] / y), $MachinePrecision] * N[(x + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.5 * y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3 \cdot 10^{+127}:\\
\;\;\;\;0.5 \cdot \left(\frac{x - z}{y} \cdot \left(x + z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot y\\
\end{array}
\end{array}
if y < 3.0000000000000002e127Initial program 75.8%
remove-double-neg75.8%
distribute-lft-neg-out75.8%
distribute-frac-neg275.8%
distribute-frac-neg75.8%
neg-mul-175.8%
distribute-lft-neg-out75.8%
*-commutative75.8%
distribute-lft-neg-in75.8%
times-frac75.8%
metadata-eval75.8%
metadata-eval75.8%
associate--l+75.8%
fma-define79.5%
Simplified79.5%
Taylor expanded in x around 0 79.0%
associate--l+79.0%
div-sub84.1%
Simplified84.1%
unpow284.1%
pow284.1%
difference-of-squares92.9%
Applied egg-rr92.9%
Taylor expanded in y around 0 66.7%
associate-*r/71.4%
+-commutative71.4%
Simplified71.4%
if 3.0000000000000002e127 < y Initial program 13.5%
remove-double-neg13.5%
distribute-lft-neg-out13.5%
distribute-frac-neg213.5%
distribute-frac-neg13.5%
neg-mul-113.5%
distribute-lft-neg-out13.5%
*-commutative13.5%
distribute-lft-neg-in13.5%
times-frac13.5%
metadata-eval13.5%
metadata-eval13.5%
associate--l+13.5%
fma-define16.0%
Simplified16.0%
Taylor expanded in y around inf 72.6%
*-commutative72.6%
Simplified72.6%
Final simplification71.6%
(FPCore (x y z) :precision binary64 (if (<= (* x x) 1e-47) (* 0.5 y) (* 0.5 (* x (/ (- x z) y)))))
double code(double x, double y, double z) {
double tmp;
if ((x * x) <= 1e-47) {
tmp = 0.5 * y;
} else {
tmp = 0.5 * (x * ((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 * x) <= 1d-47) then
tmp = 0.5d0 * y
else
tmp = 0.5d0 * (x * ((x - z) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x * x) <= 1e-47) {
tmp = 0.5 * y;
} else {
tmp = 0.5 * (x * ((x - z) / y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x * x) <= 1e-47: tmp = 0.5 * y else: tmp = 0.5 * (x * ((x - z) / y)) return tmp
function code(x, y, z) tmp = 0.0 if (Float64(x * x) <= 1e-47) tmp = Float64(0.5 * y); else tmp = Float64(0.5 * Float64(x * Float64(Float64(x - z) / y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x * x) <= 1e-47) tmp = 0.5 * y; else tmp = 0.5 * (x * ((x - z) / y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[N[(x * x), $MachinePrecision], 1e-47], N[(0.5 * y), $MachinePrecision], N[(0.5 * N[(x * N[(N[(x - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot x \leq 10^{-47}:\\
\;\;\;\;0.5 \cdot y\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \left(x \cdot \frac{x - z}{y}\right)\\
\end{array}
\end{array}
if (*.f64 x x) < 9.9999999999999997e-48Initial program 67.6%
remove-double-neg67.6%
distribute-lft-neg-out67.6%
distribute-frac-neg267.6%
distribute-frac-neg67.6%
neg-mul-167.6%
distribute-lft-neg-out67.6%
*-commutative67.6%
distribute-lft-neg-in67.6%
times-frac67.6%
metadata-eval67.6%
metadata-eval67.6%
associate--l+67.6%
fma-define67.6%
Simplified67.6%
Taylor expanded in y around inf 56.8%
*-commutative56.8%
Simplified56.8%
if 9.9999999999999997e-48 < (*.f64 x x) Initial program 64.3%
remove-double-neg64.3%
distribute-lft-neg-out64.3%
distribute-frac-neg264.3%
distribute-frac-neg64.3%
neg-mul-164.3%
distribute-lft-neg-out64.3%
*-commutative64.3%
distribute-lft-neg-in64.3%
times-frac64.3%
metadata-eval64.3%
metadata-eval64.3%
associate--l+64.3%
fma-define70.9%
Simplified70.9%
Taylor expanded in x around 0 63.2%
associate--l+63.2%
div-sub71.3%
Simplified71.3%
unpow271.3%
pow271.3%
difference-of-squares86.9%
Applied egg-rr86.9%
Taylor expanded in y around 0 76.3%
associate-*r/82.3%
+-commutative82.3%
Simplified82.3%
Taylor expanded in z around 0 66.4%
Final simplification61.9%
(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 65.8%
remove-double-neg65.8%
distribute-lft-neg-out65.8%
distribute-frac-neg265.8%
distribute-frac-neg65.8%
neg-mul-165.8%
distribute-lft-neg-out65.8%
*-commutative65.8%
distribute-lft-neg-in65.8%
times-frac65.8%
metadata-eval65.8%
metadata-eval65.8%
associate--l+65.8%
fma-define69.3%
Simplified69.3%
Taylor expanded in y around inf 36.6%
*-commutative36.6%
Simplified36.6%
Final simplification36.6%
(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 2024110
(FPCore (x y z)
:name "Diagrams.TwoD.Apollonian:initialConfig from diagrams-contrib-1.3.0.5, A"
:precision binary64
:alt
(- (* y 0.5) (* (* (/ 0.5 y) (+ z x)) (- z x)))
(/ (- (+ (* x x) (* y y)) (* z z)) (* y 2.0)))