\frac{\sin ky}{\sqrt{{\sin kx}^{2} + {\sin ky}^{2}}} \cdot \sin th\frac{\sin ky}{\sqrt{\sqrt[3]{{\sin kx}^{2}} \cdot \left(\sqrt[3]{{\sin kx}^{2}} \cdot \sqrt[3]{{\sin kx}^{2}}\right) + {\sin ky}^{2}}} \cdot \sin th(FPCore (kx ky th) :precision binary64 (* (/ (sin ky) (sqrt (+ (pow (sin kx) 2.0) (pow (sin ky) 2.0)))) (sin th)))
(FPCore (kx ky th)
:precision binary64
(*
(/
(sin ky)
(sqrt
(+
(*
(cbrt (pow (sin kx) 2.0))
(* (cbrt (pow (sin kx) 2.0)) (cbrt (pow (sin kx) 2.0))))
(pow (sin ky) 2.0))))
(sin th)))double code(double kx, double ky, double th) {
return (sin(ky) / sqrt(pow(sin(kx), 2.0) + pow(sin(ky), 2.0))) * sin(th);
}
double code(double kx, double ky, double th) {
return (sin(ky) / sqrt((cbrt(pow(sin(kx), 2.0)) * (cbrt(pow(sin(kx), 2.0)) * cbrt(pow(sin(kx), 2.0)))) + pow(sin(ky), 2.0))) * sin(th);
}



Bits error versus kx



Bits error versus ky



Bits error versus th
Results
Initial program 3.9
rmApplied add-cube-cbrt_binary644.1
Final simplification4.1
herbie shell --seed 2020220
(FPCore (kx ky th)
:name "Toniolo and Linder, Equation (3b), real"
:precision binary64
(* (/ (sin ky) (sqrt (+ (pow (sin kx) 2.0) (pow (sin ky) 2.0)))) (sin th)))