\frac{\sin ky}{\sqrt{{\left(\sin kx\right)}^{2} + {\left(\sin ky\right)}^{2}}} \cdot \sin th\frac{\sin th}{\frac{\mathsf{hypot}\left({\left(\sin kx\right)}^{\left(\frac{2}{2}\right)}, {\left(\sin ky\right)}^{\left(\frac{2}{2}\right)}\right)}{\sin ky}}double f(double kx, double ky, double th) {
double r46872 = ky;
double r46873 = sin(r46872);
double r46874 = kx;
double r46875 = sin(r46874);
double r46876 = 2.0;
double r46877 = pow(r46875, r46876);
double r46878 = pow(r46873, r46876);
double r46879 = r46877 + r46878;
double r46880 = sqrt(r46879);
double r46881 = r46873 / r46880;
double r46882 = th;
double r46883 = sin(r46882);
double r46884 = r46881 * r46883;
return r46884;
}
double f(double kx, double ky, double th) {
double r46885 = th;
double r46886 = sin(r46885);
double r46887 = kx;
double r46888 = sin(r46887);
double r46889 = 2.0;
double r46890 = 2.0;
double r46891 = r46889 / r46890;
double r46892 = pow(r46888, r46891);
double r46893 = ky;
double r46894 = sin(r46893);
double r46895 = pow(r46894, r46891);
double r46896 = hypot(r46892, r46895);
double r46897 = r46896 / r46894;
double r46898 = r46886 / r46897;
return r46898;
}



Bits error versus kx



Bits error versus ky



Bits error versus th
Results
Initial program 4.1
rmApplied sqr-pow4.1
Applied sqr-pow4.1
Applied hypot-def0.2
rmApplied *-commutative0.2
rmApplied clear-num0.3
rmApplied un-div-inv0.2
Final simplification0.2
herbie shell --seed 2020062 +o rules:numerics
(FPCore (kx ky th)
:name "Toniolo and Linder, Equation (3b), real"
:precision binary64
(* (/ (sin ky) (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2)))) (sin th)))