
(FPCore (kx ky th) :precision binary64 (* (/ (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((pow(sin(kx), 2.0) + pow(sin(ky), 2.0)))) * sin(th);
}
real(8) function code(kx, ky, th)
real(8), intent (in) :: kx
real(8), intent (in) :: ky
real(8), intent (in) :: th
code = (sin(ky) / sqrt(((sin(kx) ** 2.0d0) + (sin(ky) ** 2.0d0)))) * sin(th)
end function
public static double code(double kx, double ky, double th) {
return (Math.sin(ky) / Math.sqrt((Math.pow(Math.sin(kx), 2.0) + Math.pow(Math.sin(ky), 2.0)))) * Math.sin(th);
}
def code(kx, ky, th): return (math.sin(ky) / math.sqrt((math.pow(math.sin(kx), 2.0) + math.pow(math.sin(ky), 2.0)))) * math.sin(th)
function code(kx, ky, th) return Float64(Float64(sin(ky) / sqrt(Float64((sin(kx) ^ 2.0) + (sin(ky) ^ 2.0)))) * sin(th)) end
function tmp = code(kx, ky, th) tmp = (sin(ky) / sqrt(((sin(kx) ^ 2.0) + (sin(ky) ^ 2.0)))) * sin(th); end
code[kx_, ky_, th_] := N[(N[(N[Sin[ky], $MachinePrecision] / N[Sqrt[N[(N[Power[N[Sin[kx], $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[Sin[ky], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Sin[th], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sin ky}{\sqrt{{\sin kx}^{2} + {\sin ky}^{2}}} \cdot \sin th
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (kx ky th) :precision binary64 (* (/ (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((pow(sin(kx), 2.0) + pow(sin(ky), 2.0)))) * sin(th);
}
real(8) function code(kx, ky, th)
real(8), intent (in) :: kx
real(8), intent (in) :: ky
real(8), intent (in) :: th
code = (sin(ky) / sqrt(((sin(kx) ** 2.0d0) + (sin(ky) ** 2.0d0)))) * sin(th)
end function
public static double code(double kx, double ky, double th) {
return (Math.sin(ky) / Math.sqrt((Math.pow(Math.sin(kx), 2.0) + Math.pow(Math.sin(ky), 2.0)))) * Math.sin(th);
}
def code(kx, ky, th): return (math.sin(ky) / math.sqrt((math.pow(math.sin(kx), 2.0) + math.pow(math.sin(ky), 2.0)))) * math.sin(th)
function code(kx, ky, th) return Float64(Float64(sin(ky) / sqrt(Float64((sin(kx) ^ 2.0) + (sin(ky) ^ 2.0)))) * sin(th)) end
function tmp = code(kx, ky, th) tmp = (sin(ky) / sqrt(((sin(kx) ^ 2.0) + (sin(ky) ^ 2.0)))) * sin(th); end
code[kx_, ky_, th_] := N[(N[(N[Sin[ky], $MachinePrecision] / N[Sqrt[N[(N[Power[N[Sin[kx], $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[Sin[ky], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Sin[th], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sin ky}{\sqrt{{\sin kx}^{2} + {\sin ky}^{2}}} \cdot \sin th
\end{array}
(FPCore (kx ky th) :precision binary64 (* (/ (sin ky) (hypot (sin ky) (sin kx))) (sin th)))
double code(double kx, double ky, double th) {
return (sin(ky) / hypot(sin(ky), sin(kx))) * sin(th);
}
public static double code(double kx, double ky, double th) {
return (Math.sin(ky) / Math.hypot(Math.sin(ky), Math.sin(kx))) * Math.sin(th);
}
def code(kx, ky, th): return (math.sin(ky) / math.hypot(math.sin(ky), math.sin(kx))) * math.sin(th)
function code(kx, ky, th) return Float64(Float64(sin(ky) / hypot(sin(ky), sin(kx))) * sin(th)) end
function tmp = code(kx, ky, th) tmp = (sin(ky) / hypot(sin(ky), sin(kx))) * sin(th); end
code[kx_, ky_, th_] := N[(N[(N[Sin[ky], $MachinePrecision] / N[Sqrt[N[Sin[ky], $MachinePrecision] ^ 2 + N[Sin[kx], $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision] * N[Sin[th], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sin ky}{\mathsf{hypot}\left(\sin ky, \sin kx\right)} \cdot \sin th
\end{array}
Initial program 92.6%
remove-double-neg92.6%
sin-neg92.6%
neg-mul-192.6%
*-commutative92.6%
associate-*l*92.6%
associate-*l/89.4%
associate-/r/89.4%
associate-*l/92.6%
associate-/r/92.5%
sin-neg92.5%
neg-mul-192.5%
associate-/r*92.5%
associate-/r/92.6%
Simplified99.7%
Final simplification99.7%
(FPCore (kx ky th)
:precision binary64
(let* ((t_1 (hypot (sin kx) (sin ky))))
(if (<= (sin ky) -0.02)
(/ (sin ky) (/ t_1 th))
(if (<= (sin ky) 6e-6) (/ ky (/ t_1 (sin th))) (sin th)))))
double code(double kx, double ky, double th) {
double t_1 = hypot(sin(kx), sin(ky));
double tmp;
if (sin(ky) <= -0.02) {
tmp = sin(ky) / (t_1 / th);
} else if (sin(ky) <= 6e-6) {
tmp = ky / (t_1 / sin(th));
} else {
tmp = sin(th);
}
return tmp;
}
public static double code(double kx, double ky, double th) {
double t_1 = Math.hypot(Math.sin(kx), Math.sin(ky));
double tmp;
if (Math.sin(ky) <= -0.02) {
tmp = Math.sin(ky) / (t_1 / th);
} else if (Math.sin(ky) <= 6e-6) {
tmp = ky / (t_1 / Math.sin(th));
} else {
tmp = Math.sin(th);
}
return tmp;
}
def code(kx, ky, th): t_1 = math.hypot(math.sin(kx), math.sin(ky)) tmp = 0 if math.sin(ky) <= -0.02: tmp = math.sin(ky) / (t_1 / th) elif math.sin(ky) <= 6e-6: tmp = ky / (t_1 / math.sin(th)) else: tmp = math.sin(th) return tmp
function code(kx, ky, th) t_1 = hypot(sin(kx), sin(ky)) tmp = 0.0 if (sin(ky) <= -0.02) tmp = Float64(sin(ky) / Float64(t_1 / th)); elseif (sin(ky) <= 6e-6) tmp = Float64(ky / Float64(t_1 / sin(th))); else tmp = sin(th); end return tmp end
function tmp_2 = code(kx, ky, th) t_1 = hypot(sin(kx), sin(ky)); tmp = 0.0; if (sin(ky) <= -0.02) tmp = sin(ky) / (t_1 / th); elseif (sin(ky) <= 6e-6) tmp = ky / (t_1 / sin(th)); else tmp = sin(th); end tmp_2 = tmp; end
code[kx_, ky_, th_] := Block[{t$95$1 = N[Sqrt[N[Sin[kx], $MachinePrecision] ^ 2 + N[Sin[ky], $MachinePrecision] ^ 2], $MachinePrecision]}, If[LessEqual[N[Sin[ky], $MachinePrecision], -0.02], N[(N[Sin[ky], $MachinePrecision] / N[(t$95$1 / th), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Sin[ky], $MachinePrecision], 6e-6], N[(ky / N[(t$95$1 / N[Sin[th], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Sin[th], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{hypot}\left(\sin kx, \sin ky\right)\\
\mathbf{if}\;\sin ky \leq -0.02:\\
\;\;\;\;\frac{\sin ky}{\frac{t_1}{th}}\\
\mathbf{elif}\;\sin ky \leq 6 \cdot 10^{-6}:\\
\;\;\;\;\frac{ky}{\frac{t_1}{\sin th}}\\
\mathbf{else}:\\
\;\;\;\;\sin th\\
\end{array}
\end{array}
if (sin.f64 ky) < -0.0200000000000000004Initial program 99.7%
associate-*l/99.6%
associate-/l*99.5%
unpow299.5%
unpow299.5%
hypot-def99.5%
Applied egg-rr99.5%
Taylor expanded in th around 0 40.7%
associate-*l/40.8%
+-commutative40.8%
unpow240.8%
unpow240.8%
hypot-def40.8%
*-lft-identity40.8%
hypot-def40.8%
unpow240.8%
unpow240.8%
+-commutative40.8%
unpow240.8%
unpow240.8%
hypot-def40.8%
Simplified40.8%
if -0.0200000000000000004 < (sin.f64 ky) < 6.0000000000000002e-6Initial program 84.6%
expm1-log1p-u84.4%
expm1-udef26.8%
Applied egg-rr33.3%
expm1-def99.6%
expm1-log1p99.6%
associate-*l/90.9%
Simplified90.9%
Taylor expanded in ky around 0 90.5%
associate-/l*99.2%
add-cube-cbrt97.8%
div-inv97.7%
times-frac96.4%
pow296.4%
hypot-udef81.9%
+-commutative81.9%
hypot-udef96.4%
Applied egg-rr96.4%
times-frac97.7%
associate-*r/97.8%
*-rgt-identity97.8%
unpow297.8%
rem-3cbrt-lft99.2%
hypot-def84.3%
unpow284.3%
unpow284.3%
+-commutative84.3%
unpow284.3%
unpow284.3%
hypot-def99.2%
Simplified99.2%
if 6.0000000000000002e-6 < (sin.f64 ky) Initial program 99.8%
Taylor expanded in kx around 0 66.4%
Final simplification75.1%
(FPCore (kx ky th)
:precision binary64
(let* ((t_1 (hypot (sin kx) (sin ky))))
(if (<= (sin ky) -0.02)
(/ (* (sin ky) th) t_1)
(if (<= (sin ky) 6e-6) (/ ky (/ t_1 (sin th))) (sin th)))))
double code(double kx, double ky, double th) {
double t_1 = hypot(sin(kx), sin(ky));
double tmp;
if (sin(ky) <= -0.02) {
tmp = (sin(ky) * th) / t_1;
} else if (sin(ky) <= 6e-6) {
tmp = ky / (t_1 / sin(th));
} else {
tmp = sin(th);
}
return tmp;
}
public static double code(double kx, double ky, double th) {
double t_1 = Math.hypot(Math.sin(kx), Math.sin(ky));
double tmp;
if (Math.sin(ky) <= -0.02) {
tmp = (Math.sin(ky) * th) / t_1;
} else if (Math.sin(ky) <= 6e-6) {
tmp = ky / (t_1 / Math.sin(th));
} else {
tmp = Math.sin(th);
}
return tmp;
}
def code(kx, ky, th): t_1 = math.hypot(math.sin(kx), math.sin(ky)) tmp = 0 if math.sin(ky) <= -0.02: tmp = (math.sin(ky) * th) / t_1 elif math.sin(ky) <= 6e-6: tmp = ky / (t_1 / math.sin(th)) else: tmp = math.sin(th) return tmp
function code(kx, ky, th) t_1 = hypot(sin(kx), sin(ky)) tmp = 0.0 if (sin(ky) <= -0.02) tmp = Float64(Float64(sin(ky) * th) / t_1); elseif (sin(ky) <= 6e-6) tmp = Float64(ky / Float64(t_1 / sin(th))); else tmp = sin(th); end return tmp end
function tmp_2 = code(kx, ky, th) t_1 = hypot(sin(kx), sin(ky)); tmp = 0.0; if (sin(ky) <= -0.02) tmp = (sin(ky) * th) / t_1; elseif (sin(ky) <= 6e-6) tmp = ky / (t_1 / sin(th)); else tmp = sin(th); end tmp_2 = tmp; end
code[kx_, ky_, th_] := Block[{t$95$1 = N[Sqrt[N[Sin[kx], $MachinePrecision] ^ 2 + N[Sin[ky], $MachinePrecision] ^ 2], $MachinePrecision]}, If[LessEqual[N[Sin[ky], $MachinePrecision], -0.02], N[(N[(N[Sin[ky], $MachinePrecision] * th), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[N[Sin[ky], $MachinePrecision], 6e-6], N[(ky / N[(t$95$1 / N[Sin[th], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Sin[th], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{hypot}\left(\sin kx, \sin ky\right)\\
\mathbf{if}\;\sin ky \leq -0.02:\\
\;\;\;\;\frac{\sin ky \cdot th}{t_1}\\
\mathbf{elif}\;\sin ky \leq 6 \cdot 10^{-6}:\\
\;\;\;\;\frac{ky}{\frac{t_1}{\sin th}}\\
\mathbf{else}:\\
\;\;\;\;\sin th\\
\end{array}
\end{array}
if (sin.f64 ky) < -0.0200000000000000004Initial program 99.7%
expm1-log1p-u99.6%
expm1-udef64.6%
Applied egg-rr64.6%
expm1-def99.6%
expm1-log1p99.7%
associate-*l/99.6%
Simplified99.6%
Taylor expanded in th around 0 40.9%
if -0.0200000000000000004 < (sin.f64 ky) < 6.0000000000000002e-6Initial program 84.6%
expm1-log1p-u84.4%
expm1-udef26.8%
Applied egg-rr33.3%
expm1-def99.6%
expm1-log1p99.6%
associate-*l/90.9%
Simplified90.9%
Taylor expanded in ky around 0 90.5%
associate-/l*99.2%
add-cube-cbrt97.8%
div-inv97.7%
times-frac96.4%
pow296.4%
hypot-udef81.9%
+-commutative81.9%
hypot-udef96.4%
Applied egg-rr96.4%
times-frac97.7%
associate-*r/97.8%
*-rgt-identity97.8%
unpow297.8%
rem-3cbrt-lft99.2%
hypot-def84.3%
unpow284.3%
unpow284.3%
+-commutative84.3%
unpow284.3%
unpow284.3%
hypot-def99.2%
Simplified99.2%
if 6.0000000000000002e-6 < (sin.f64 ky) Initial program 99.8%
Taylor expanded in kx around 0 66.4%
Final simplification75.1%
(FPCore (kx ky th)
:precision binary64
(let* ((t_1 (hypot (sin kx) (sin ky))))
(if (<= (sin ky) -0.02)
(/ (sin ky) (* t_1 (+ (/ 1.0 th) (* th 0.16666666666666666))))
(if (<= (sin ky) 6e-6) (/ ky (/ t_1 (sin th))) (sin th)))))
double code(double kx, double ky, double th) {
double t_1 = hypot(sin(kx), sin(ky));
double tmp;
if (sin(ky) <= -0.02) {
tmp = sin(ky) / (t_1 * ((1.0 / th) + (th * 0.16666666666666666)));
} else if (sin(ky) <= 6e-6) {
tmp = ky / (t_1 / sin(th));
} else {
tmp = sin(th);
}
return tmp;
}
public static double code(double kx, double ky, double th) {
double t_1 = Math.hypot(Math.sin(kx), Math.sin(ky));
double tmp;
if (Math.sin(ky) <= -0.02) {
tmp = Math.sin(ky) / (t_1 * ((1.0 / th) + (th * 0.16666666666666666)));
} else if (Math.sin(ky) <= 6e-6) {
tmp = ky / (t_1 / Math.sin(th));
} else {
tmp = Math.sin(th);
}
return tmp;
}
def code(kx, ky, th): t_1 = math.hypot(math.sin(kx), math.sin(ky)) tmp = 0 if math.sin(ky) <= -0.02: tmp = math.sin(ky) / (t_1 * ((1.0 / th) + (th * 0.16666666666666666))) elif math.sin(ky) <= 6e-6: tmp = ky / (t_1 / math.sin(th)) else: tmp = math.sin(th) return tmp
function code(kx, ky, th) t_1 = hypot(sin(kx), sin(ky)) tmp = 0.0 if (sin(ky) <= -0.02) tmp = Float64(sin(ky) / Float64(t_1 * Float64(Float64(1.0 / th) + Float64(th * 0.16666666666666666)))); elseif (sin(ky) <= 6e-6) tmp = Float64(ky / Float64(t_1 / sin(th))); else tmp = sin(th); end return tmp end
function tmp_2 = code(kx, ky, th) t_1 = hypot(sin(kx), sin(ky)); tmp = 0.0; if (sin(ky) <= -0.02) tmp = sin(ky) / (t_1 * ((1.0 / th) + (th * 0.16666666666666666))); elseif (sin(ky) <= 6e-6) tmp = ky / (t_1 / sin(th)); else tmp = sin(th); end tmp_2 = tmp; end
code[kx_, ky_, th_] := Block[{t$95$1 = N[Sqrt[N[Sin[kx], $MachinePrecision] ^ 2 + N[Sin[ky], $MachinePrecision] ^ 2], $MachinePrecision]}, If[LessEqual[N[Sin[ky], $MachinePrecision], -0.02], N[(N[Sin[ky], $MachinePrecision] / N[(t$95$1 * N[(N[(1.0 / th), $MachinePrecision] + N[(th * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[Sin[ky], $MachinePrecision], 6e-6], N[(ky / N[(t$95$1 / N[Sin[th], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Sin[th], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{hypot}\left(\sin kx, \sin ky\right)\\
\mathbf{if}\;\sin ky \leq -0.02:\\
\;\;\;\;\frac{\sin ky}{t_1 \cdot \left(\frac{1}{th} + th \cdot 0.16666666666666666\right)}\\
\mathbf{elif}\;\sin ky \leq 6 \cdot 10^{-6}:\\
\;\;\;\;\frac{ky}{\frac{t_1}{\sin th}}\\
\mathbf{else}:\\
\;\;\;\;\sin th\\
\end{array}
\end{array}
if (sin.f64 ky) < -0.0200000000000000004Initial program 99.7%
associate-*l/99.6%
associate-/l*99.5%
unpow299.5%
unpow299.5%
hypot-def99.5%
Applied egg-rr99.5%
Taylor expanded in th around 0 42.0%
+-commutative42.0%
+-commutative42.0%
unpow242.0%
unpow242.0%
hypot-def42.0%
associate-*r*42.0%
+-commutative42.0%
unpow242.0%
unpow242.0%
hypot-def42.0%
distribute-rgt-out42.0%
Simplified42.0%
if -0.0200000000000000004 < (sin.f64 ky) < 6.0000000000000002e-6Initial program 84.6%
expm1-log1p-u84.4%
expm1-udef26.8%
Applied egg-rr33.3%
expm1-def99.6%
expm1-log1p99.6%
associate-*l/90.9%
Simplified90.9%
Taylor expanded in ky around 0 90.5%
associate-/l*99.2%
add-cube-cbrt97.8%
div-inv97.7%
times-frac96.4%
pow296.4%
hypot-udef81.9%
+-commutative81.9%
hypot-udef96.4%
Applied egg-rr96.4%
times-frac97.7%
associate-*r/97.8%
*-rgt-identity97.8%
unpow297.8%
rem-3cbrt-lft99.2%
hypot-def84.3%
unpow284.3%
unpow284.3%
+-commutative84.3%
unpow284.3%
unpow284.3%
hypot-def99.2%
Simplified99.2%
if 6.0000000000000002e-6 < (sin.f64 ky) Initial program 99.8%
Taylor expanded in kx around 0 66.4%
Final simplification75.4%
(FPCore (kx ky th) :precision binary64 (* (sin ky) (/ (sin th) (hypot (sin ky) (sin kx)))))
double code(double kx, double ky, double th) {
return sin(ky) * (sin(th) / hypot(sin(ky), sin(kx)));
}
public static double code(double kx, double ky, double th) {
return Math.sin(ky) * (Math.sin(th) / Math.hypot(Math.sin(ky), Math.sin(kx)));
}
def code(kx, ky, th): return math.sin(ky) * (math.sin(th) / math.hypot(math.sin(ky), math.sin(kx)))
function code(kx, ky, th) return Float64(sin(ky) * Float64(sin(th) / hypot(sin(ky), sin(kx)))) end
function tmp = code(kx, ky, th) tmp = sin(ky) * (sin(th) / hypot(sin(ky), sin(kx))); end
code[kx_, ky_, th_] := N[(N[Sin[ky], $MachinePrecision] * N[(N[Sin[th], $MachinePrecision] / N[Sqrt[N[Sin[ky], $MachinePrecision] ^ 2 + N[Sin[kx], $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sin ky \cdot \frac{\sin th}{\mathsf{hypot}\left(\sin ky, \sin kx\right)}
\end{array}
Initial program 92.6%
expm1-log1p-u92.4%
expm1-udef43.5%
Applied egg-rr46.6%
expm1-def99.5%
expm1-log1p99.7%
*-commutative99.7%
associate-*r/95.5%
associate-*l/99.6%
*-commutative99.6%
hypot-def92.6%
unpow292.6%
unpow292.6%
+-commutative92.6%
unpow292.6%
unpow292.6%
hypot-def99.6%
Simplified99.6%
Final simplification99.6%
(FPCore (kx ky th) :precision binary64 (if (<= ky 7.5e-6) (/ ky (/ (hypot (sin kx) (sin ky)) (sin th))) (sin th)))
double code(double kx, double ky, double th) {
double tmp;
if (ky <= 7.5e-6) {
tmp = ky / (hypot(sin(kx), sin(ky)) / sin(th));
} else {
tmp = sin(th);
}
return tmp;
}
public static double code(double kx, double ky, double th) {
double tmp;
if (ky <= 7.5e-6) {
tmp = ky / (Math.hypot(Math.sin(kx), Math.sin(ky)) / Math.sin(th));
} else {
tmp = Math.sin(th);
}
return tmp;
}
def code(kx, ky, th): tmp = 0 if ky <= 7.5e-6: tmp = ky / (math.hypot(math.sin(kx), math.sin(ky)) / math.sin(th)) else: tmp = math.sin(th) return tmp
function code(kx, ky, th) tmp = 0.0 if (ky <= 7.5e-6) tmp = Float64(ky / Float64(hypot(sin(kx), sin(ky)) / sin(th))); else tmp = sin(th); end return tmp end
function tmp_2 = code(kx, ky, th) tmp = 0.0; if (ky <= 7.5e-6) tmp = ky / (hypot(sin(kx), sin(ky)) / sin(th)); else tmp = sin(th); end tmp_2 = tmp; end
code[kx_, ky_, th_] := If[LessEqual[ky, 7.5e-6], N[(ky / N[(N[Sqrt[N[Sin[kx], $MachinePrecision] ^ 2 + N[Sin[ky], $MachinePrecision] ^ 2], $MachinePrecision] / N[Sin[th], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Sin[th], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;ky \leq 7.5 \cdot 10^{-6}:\\
\;\;\;\;\frac{ky}{\frac{\mathsf{hypot}\left(\sin kx, \sin ky\right)}{\sin th}}\\
\mathbf{else}:\\
\;\;\;\;\sin th\\
\end{array}
\end{array}
if ky < 7.50000000000000019e-6Initial program 89.9%
expm1-log1p-u89.7%
expm1-udef36.9%
Applied egg-rr41.1%
expm1-def99.5%
expm1-log1p99.6%
associate-*l/94.0%
Simplified94.0%
Taylor expanded in ky around 0 60.2%
associate-/l*65.8%
add-cube-cbrt64.9%
div-inv64.8%
times-frac64.0%
pow264.0%
hypot-udef54.5%
+-commutative54.5%
hypot-udef64.0%
Applied egg-rr64.0%
times-frac64.8%
associate-*r/64.9%
*-rgt-identity64.9%
unpow264.9%
rem-3cbrt-lft65.8%
hypot-def56.1%
unpow256.1%
unpow256.1%
+-commutative56.1%
unpow256.1%
unpow256.1%
hypot-def65.8%
Simplified65.8%
if 7.50000000000000019e-6 < ky Initial program 99.8%
Taylor expanded in kx around 0 36.6%
Final simplification57.7%
(FPCore (kx ky th) :precision binary64 (if (<= kx 5.6e-30) (sin th) (* (sin th) (fabs (/ (sin ky) (sin kx))))))
double code(double kx, double ky, double th) {
double tmp;
if (kx <= 5.6e-30) {
tmp = sin(th);
} else {
tmp = sin(th) * fabs((sin(ky) / sin(kx)));
}
return tmp;
}
real(8) function code(kx, ky, th)
real(8), intent (in) :: kx
real(8), intent (in) :: ky
real(8), intent (in) :: th
real(8) :: tmp
if (kx <= 5.6d-30) then
tmp = sin(th)
else
tmp = sin(th) * abs((sin(ky) / sin(kx)))
end if
code = tmp
end function
public static double code(double kx, double ky, double th) {
double tmp;
if (kx <= 5.6e-30) {
tmp = Math.sin(th);
} else {
tmp = Math.sin(th) * Math.abs((Math.sin(ky) / Math.sin(kx)));
}
return tmp;
}
def code(kx, ky, th): tmp = 0 if kx <= 5.6e-30: tmp = math.sin(th) else: tmp = math.sin(th) * math.fabs((math.sin(ky) / math.sin(kx))) return tmp
function code(kx, ky, th) tmp = 0.0 if (kx <= 5.6e-30) tmp = sin(th); else tmp = Float64(sin(th) * abs(Float64(sin(ky) / sin(kx)))); end return tmp end
function tmp_2 = code(kx, ky, th) tmp = 0.0; if (kx <= 5.6e-30) tmp = sin(th); else tmp = sin(th) * abs((sin(ky) / sin(kx))); end tmp_2 = tmp; end
code[kx_, ky_, th_] := If[LessEqual[kx, 5.6e-30], N[Sin[th], $MachinePrecision], N[(N[Sin[th], $MachinePrecision] * N[Abs[N[(N[Sin[ky], $MachinePrecision] / N[Sin[kx], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;kx \leq 5.6 \cdot 10^{-30}:\\
\;\;\;\;\sin th\\
\mathbf{else}:\\
\;\;\;\;\sin th \cdot \left|\frac{\sin ky}{\sin kx}\right|\\
\end{array}
\end{array}
if kx < 5.59999999999999977e-30Initial program 90.3%
Taylor expanded in kx around 0 31.5%
if 5.59999999999999977e-30 < kx Initial program 99.6%
Taylor expanded in ky around 0 42.6%
add-sqr-sqrt17.2%
sqrt-unprod28.4%
pow228.4%
Applied egg-rr28.4%
unpow228.4%
rem-sqrt-square31.1%
Simplified31.1%
Final simplification31.4%
(FPCore (kx ky th) :precision binary64 (if (<= ky 8.8e-69) (* (sin th) (fabs (/ ky (sin kx)))) (sin th)))
double code(double kx, double ky, double th) {
double tmp;
if (ky <= 8.8e-69) {
tmp = sin(th) * fabs((ky / sin(kx)));
} else {
tmp = sin(th);
}
return tmp;
}
real(8) function code(kx, ky, th)
real(8), intent (in) :: kx
real(8), intent (in) :: ky
real(8), intent (in) :: th
real(8) :: tmp
if (ky <= 8.8d-69) then
tmp = sin(th) * abs((ky / sin(kx)))
else
tmp = sin(th)
end if
code = tmp
end function
public static double code(double kx, double ky, double th) {
double tmp;
if (ky <= 8.8e-69) {
tmp = Math.sin(th) * Math.abs((ky / Math.sin(kx)));
} else {
tmp = Math.sin(th);
}
return tmp;
}
def code(kx, ky, th): tmp = 0 if ky <= 8.8e-69: tmp = math.sin(th) * math.fabs((ky / math.sin(kx))) else: tmp = math.sin(th) return tmp
function code(kx, ky, th) tmp = 0.0 if (ky <= 8.8e-69) tmp = Float64(sin(th) * abs(Float64(ky / sin(kx)))); else tmp = sin(th); end return tmp end
function tmp_2 = code(kx, ky, th) tmp = 0.0; if (ky <= 8.8e-69) tmp = sin(th) * abs((ky / sin(kx))); else tmp = sin(th); end tmp_2 = tmp; end
code[kx_, ky_, th_] := If[LessEqual[ky, 8.8e-69], N[(N[Sin[th], $MachinePrecision] * N[Abs[N[(ky / N[Sin[kx], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[Sin[th], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;ky \leq 8.8 \cdot 10^{-69}:\\
\;\;\;\;\sin th \cdot \left|\frac{ky}{\sin kx}\right|\\
\mathbf{else}:\\
\;\;\;\;\sin th\\
\end{array}
\end{array}
if ky < 8.8000000000000001e-69Initial program 89.3%
Taylor expanded in ky around 0 35.3%
add-sqr-sqrt13.6%
sqrt-unprod23.4%
pow223.4%
Applied egg-rr23.4%
unpow223.4%
rem-sqrt-square27.2%
Simplified27.2%
Taylor expanded in ky around 0 25.6%
if 8.8000000000000001e-69 < ky Initial program 99.8%
Taylor expanded in kx around 0 40.7%
Final simplification30.4%
(FPCore (kx ky th) :precision binary64 (if (<= ky 3.6e-69) (* (sin th) (/ ky (sin kx))) (sin th)))
double code(double kx, double ky, double th) {
double tmp;
if (ky <= 3.6e-69) {
tmp = sin(th) * (ky / sin(kx));
} else {
tmp = sin(th);
}
return tmp;
}
real(8) function code(kx, ky, th)
real(8), intent (in) :: kx
real(8), intent (in) :: ky
real(8), intent (in) :: th
real(8) :: tmp
if (ky <= 3.6d-69) then
tmp = sin(th) * (ky / sin(kx))
else
tmp = sin(th)
end if
code = tmp
end function
public static double code(double kx, double ky, double th) {
double tmp;
if (ky <= 3.6e-69) {
tmp = Math.sin(th) * (ky / Math.sin(kx));
} else {
tmp = Math.sin(th);
}
return tmp;
}
def code(kx, ky, th): tmp = 0 if ky <= 3.6e-69: tmp = math.sin(th) * (ky / math.sin(kx)) else: tmp = math.sin(th) return tmp
function code(kx, ky, th) tmp = 0.0 if (ky <= 3.6e-69) tmp = Float64(sin(th) * Float64(ky / sin(kx))); else tmp = sin(th); end return tmp end
function tmp_2 = code(kx, ky, th) tmp = 0.0; if (ky <= 3.6e-69) tmp = sin(th) * (ky / sin(kx)); else tmp = sin(th); end tmp_2 = tmp; end
code[kx_, ky_, th_] := If[LessEqual[ky, 3.6e-69], N[(N[Sin[th], $MachinePrecision] * N[(ky / N[Sin[kx], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Sin[th], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;ky \leq 3.6 \cdot 10^{-69}:\\
\;\;\;\;\sin th \cdot \frac{ky}{\sin kx}\\
\mathbf{else}:\\
\;\;\;\;\sin th\\
\end{array}
\end{array}
if ky < 3.60000000000000018e-69Initial program 89.3%
Taylor expanded in ky around 0 32.0%
associate-/l*33.8%
associate-/r/33.7%
Simplified33.7%
if 3.60000000000000018e-69 < ky Initial program 99.8%
Taylor expanded in kx around 0 40.7%
Final simplification36.0%
(FPCore (kx ky th) :precision binary64 (if (<= ky 8.2e-69) (/ ky (/ (sin kx) (sin th))) (sin th)))
double code(double kx, double ky, double th) {
double tmp;
if (ky <= 8.2e-69) {
tmp = ky / (sin(kx) / sin(th));
} else {
tmp = sin(th);
}
return tmp;
}
real(8) function code(kx, ky, th)
real(8), intent (in) :: kx
real(8), intent (in) :: ky
real(8), intent (in) :: th
real(8) :: tmp
if (ky <= 8.2d-69) then
tmp = ky / (sin(kx) / sin(th))
else
tmp = sin(th)
end if
code = tmp
end function
public static double code(double kx, double ky, double th) {
double tmp;
if (ky <= 8.2e-69) {
tmp = ky / (Math.sin(kx) / Math.sin(th));
} else {
tmp = Math.sin(th);
}
return tmp;
}
def code(kx, ky, th): tmp = 0 if ky <= 8.2e-69: tmp = ky / (math.sin(kx) / math.sin(th)) else: tmp = math.sin(th) return tmp
function code(kx, ky, th) tmp = 0.0 if (ky <= 8.2e-69) tmp = Float64(ky / Float64(sin(kx) / sin(th))); else tmp = sin(th); end return tmp end
function tmp_2 = code(kx, ky, th) tmp = 0.0; if (ky <= 8.2e-69) tmp = ky / (sin(kx) / sin(th)); else tmp = sin(th); end tmp_2 = tmp; end
code[kx_, ky_, th_] := If[LessEqual[ky, 8.2e-69], N[(ky / N[(N[Sin[kx], $MachinePrecision] / N[Sin[th], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Sin[th], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;ky \leq 8.2 \cdot 10^{-69}:\\
\;\;\;\;\frac{ky}{\frac{\sin kx}{\sin th}}\\
\mathbf{else}:\\
\;\;\;\;\sin th\\
\end{array}
\end{array}
if ky < 8.1999999999999998e-69Initial program 89.3%
Taylor expanded in ky around 0 32.0%
associate-/l*33.8%
Simplified33.8%
if 8.1999999999999998e-69 < ky Initial program 99.8%
Taylor expanded in kx around 0 40.7%
Final simplification36.0%
(FPCore (kx ky th) :precision binary64 (if (<= ky 2.1e-69) (/ (sin th) (/ (sin kx) ky)) (sin th)))
double code(double kx, double ky, double th) {
double tmp;
if (ky <= 2.1e-69) {
tmp = sin(th) / (sin(kx) / ky);
} else {
tmp = sin(th);
}
return tmp;
}
real(8) function code(kx, ky, th)
real(8), intent (in) :: kx
real(8), intent (in) :: ky
real(8), intent (in) :: th
real(8) :: tmp
if (ky <= 2.1d-69) then
tmp = sin(th) / (sin(kx) / ky)
else
tmp = sin(th)
end if
code = tmp
end function
public static double code(double kx, double ky, double th) {
double tmp;
if (ky <= 2.1e-69) {
tmp = Math.sin(th) / (Math.sin(kx) / ky);
} else {
tmp = Math.sin(th);
}
return tmp;
}
def code(kx, ky, th): tmp = 0 if ky <= 2.1e-69: tmp = math.sin(th) / (math.sin(kx) / ky) else: tmp = math.sin(th) return tmp
function code(kx, ky, th) tmp = 0.0 if (ky <= 2.1e-69) tmp = Float64(sin(th) / Float64(sin(kx) / ky)); else tmp = sin(th); end return tmp end
function tmp_2 = code(kx, ky, th) tmp = 0.0; if (ky <= 2.1e-69) tmp = sin(th) / (sin(kx) / ky); else tmp = sin(th); end tmp_2 = tmp; end
code[kx_, ky_, th_] := If[LessEqual[ky, 2.1e-69], N[(N[Sin[th], $MachinePrecision] / N[(N[Sin[kx], $MachinePrecision] / ky), $MachinePrecision]), $MachinePrecision], N[Sin[th], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;ky \leq 2.1 \cdot 10^{-69}:\\
\;\;\;\;\frac{\sin th}{\frac{\sin kx}{ky}}\\
\mathbf{else}:\\
\;\;\;\;\sin th\\
\end{array}
\end{array}
if ky < 2.1e-69Initial program 89.3%
*-commutative89.3%
clear-num89.3%
un-div-inv89.4%
unpow289.4%
unpow289.4%
hypot-def99.7%
Applied egg-rr99.7%
Taylor expanded in ky around 0 33.8%
if 2.1e-69 < ky Initial program 99.8%
Taylor expanded in kx around 0 40.7%
Final simplification36.0%
(FPCore (kx ky th) :precision binary64 (if (<= ky 2.2e-129) (* (sin th) (/ ky kx)) (sin th)))
double code(double kx, double ky, double th) {
double tmp;
if (ky <= 2.2e-129) {
tmp = sin(th) * (ky / kx);
} else {
tmp = sin(th);
}
return tmp;
}
real(8) function code(kx, ky, th)
real(8), intent (in) :: kx
real(8), intent (in) :: ky
real(8), intent (in) :: th
real(8) :: tmp
if (ky <= 2.2d-129) then
tmp = sin(th) * (ky / kx)
else
tmp = sin(th)
end if
code = tmp
end function
public static double code(double kx, double ky, double th) {
double tmp;
if (ky <= 2.2e-129) {
tmp = Math.sin(th) * (ky / kx);
} else {
tmp = Math.sin(th);
}
return tmp;
}
def code(kx, ky, th): tmp = 0 if ky <= 2.2e-129: tmp = math.sin(th) * (ky / kx) else: tmp = math.sin(th) return tmp
function code(kx, ky, th) tmp = 0.0 if (ky <= 2.2e-129) tmp = Float64(sin(th) * Float64(ky / kx)); else tmp = sin(th); end return tmp end
function tmp_2 = code(kx, ky, th) tmp = 0.0; if (ky <= 2.2e-129) tmp = sin(th) * (ky / kx); else tmp = sin(th); end tmp_2 = tmp; end
code[kx_, ky_, th_] := If[LessEqual[ky, 2.2e-129], N[(N[Sin[th], $MachinePrecision] * N[(ky / kx), $MachinePrecision]), $MachinePrecision], N[Sin[th], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;ky \leq 2.2 \cdot 10^{-129}:\\
\;\;\;\;\sin th \cdot \frac{ky}{kx}\\
\mathbf{else}:\\
\;\;\;\;\sin th\\
\end{array}
\end{array}
if ky < 2.20000000000000003e-129Initial program 88.9%
Taylor expanded in ky around 0 35.9%
Taylor expanded in kx around 0 24.4%
Taylor expanded in ky around 0 24.0%
if 2.20000000000000003e-129 < ky Initial program 99.8%
Taylor expanded in kx around 0 42.6%
Final simplification30.4%
(FPCore (kx ky th) :precision binary64 (if (<= ky 7e-129) (/ ky (/ kx (sin th))) (sin th)))
double code(double kx, double ky, double th) {
double tmp;
if (ky <= 7e-129) {
tmp = ky / (kx / sin(th));
} else {
tmp = sin(th);
}
return tmp;
}
real(8) function code(kx, ky, th)
real(8), intent (in) :: kx
real(8), intent (in) :: ky
real(8), intent (in) :: th
real(8) :: tmp
if (ky <= 7d-129) then
tmp = ky / (kx / sin(th))
else
tmp = sin(th)
end if
code = tmp
end function
public static double code(double kx, double ky, double th) {
double tmp;
if (ky <= 7e-129) {
tmp = ky / (kx / Math.sin(th));
} else {
tmp = Math.sin(th);
}
return tmp;
}
def code(kx, ky, th): tmp = 0 if ky <= 7e-129: tmp = ky / (kx / math.sin(th)) else: tmp = math.sin(th) return tmp
function code(kx, ky, th) tmp = 0.0 if (ky <= 7e-129) tmp = Float64(ky / Float64(kx / sin(th))); else tmp = sin(th); end return tmp end
function tmp_2 = code(kx, ky, th) tmp = 0.0; if (ky <= 7e-129) tmp = ky / (kx / sin(th)); else tmp = sin(th); end tmp_2 = tmp; end
code[kx_, ky_, th_] := If[LessEqual[ky, 7e-129], N[(ky / N[(kx / N[Sin[th], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Sin[th], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;ky \leq 7 \cdot 10^{-129}:\\
\;\;\;\;\frac{ky}{\frac{kx}{\sin th}}\\
\mathbf{else}:\\
\;\;\;\;\sin th\\
\end{array}
\end{array}
if ky < 6.9999999999999995e-129Initial program 88.9%
Taylor expanded in ky around 0 35.9%
Taylor expanded in kx around 0 24.4%
Taylor expanded in ky around 0 22.2%
associate-/l*24.1%
Simplified24.1%
if 6.9999999999999995e-129 < ky Initial program 99.8%
Taylor expanded in kx around 0 42.6%
Final simplification30.4%
(FPCore (kx ky th) :precision binary64 (if (<= ky 1e-192) (/ (* ky th) kx) (sin th)))
double code(double kx, double ky, double th) {
double tmp;
if (ky <= 1e-192) {
tmp = (ky * th) / kx;
} else {
tmp = sin(th);
}
return tmp;
}
real(8) function code(kx, ky, th)
real(8), intent (in) :: kx
real(8), intent (in) :: ky
real(8), intent (in) :: th
real(8) :: tmp
if (ky <= 1d-192) then
tmp = (ky * th) / kx
else
tmp = sin(th)
end if
code = tmp
end function
public static double code(double kx, double ky, double th) {
double tmp;
if (ky <= 1e-192) {
tmp = (ky * th) / kx;
} else {
tmp = Math.sin(th);
}
return tmp;
}
def code(kx, ky, th): tmp = 0 if ky <= 1e-192: tmp = (ky * th) / kx else: tmp = math.sin(th) return tmp
function code(kx, ky, th) tmp = 0.0 if (ky <= 1e-192) tmp = Float64(Float64(ky * th) / kx); else tmp = sin(th); end return tmp end
function tmp_2 = code(kx, ky, th) tmp = 0.0; if (ky <= 1e-192) tmp = (ky * th) / kx; else tmp = sin(th); end tmp_2 = tmp; end
code[kx_, ky_, th_] := If[LessEqual[ky, 1e-192], N[(N[(ky * th), $MachinePrecision] / kx), $MachinePrecision], N[Sin[th], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;ky \leq 10^{-192}:\\
\;\;\;\;\frac{ky \cdot th}{kx}\\
\mathbf{else}:\\
\;\;\;\;\sin th\\
\end{array}
\end{array}
if ky < 1.0000000000000001e-192Initial program 89.4%
Taylor expanded in ky around 0 35.5%
Taylor expanded in kx around 0 25.1%
Taylor expanded in ky around 0 24.6%
Taylor expanded in th around 0 17.4%
if 1.0000000000000001e-192 < ky Initial program 98.0%
Taylor expanded in kx around 0 40.7%
Final simplification26.3%
(FPCore (kx ky th) :precision binary64 (if (<= ky 1.9e-165) (/ (* ky th) kx) (/ 1.0 (+ (/ 1.0 th) (* th 0.16666666666666666)))))
double code(double kx, double ky, double th) {
double tmp;
if (ky <= 1.9e-165) {
tmp = (ky * th) / kx;
} else {
tmp = 1.0 / ((1.0 / th) + (th * 0.16666666666666666));
}
return tmp;
}
real(8) function code(kx, ky, th)
real(8), intent (in) :: kx
real(8), intent (in) :: ky
real(8), intent (in) :: th
real(8) :: tmp
if (ky <= 1.9d-165) then
tmp = (ky * th) / kx
else
tmp = 1.0d0 / ((1.0d0 / th) + (th * 0.16666666666666666d0))
end if
code = tmp
end function
public static double code(double kx, double ky, double th) {
double tmp;
if (ky <= 1.9e-165) {
tmp = (ky * th) / kx;
} else {
tmp = 1.0 / ((1.0 / th) + (th * 0.16666666666666666));
}
return tmp;
}
def code(kx, ky, th): tmp = 0 if ky <= 1.9e-165: tmp = (ky * th) / kx else: tmp = 1.0 / ((1.0 / th) + (th * 0.16666666666666666)) return tmp
function code(kx, ky, th) tmp = 0.0 if (ky <= 1.9e-165) tmp = Float64(Float64(ky * th) / kx); else tmp = Float64(1.0 / Float64(Float64(1.0 / th) + Float64(th * 0.16666666666666666))); end return tmp end
function tmp_2 = code(kx, ky, th) tmp = 0.0; if (ky <= 1.9e-165) tmp = (ky * th) / kx; else tmp = 1.0 / ((1.0 / th) + (th * 0.16666666666666666)); end tmp_2 = tmp; end
code[kx_, ky_, th_] := If[LessEqual[ky, 1.9e-165], N[(N[(ky * th), $MachinePrecision] / kx), $MachinePrecision], N[(1.0 / N[(N[(1.0 / th), $MachinePrecision] + N[(th * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;ky \leq 1.9 \cdot 10^{-165}:\\
\;\;\;\;\frac{ky \cdot th}{kx}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1}{th} + th \cdot 0.16666666666666666}\\
\end{array}
\end{array}
if ky < 1.90000000000000009e-165Initial program 89.5%
Taylor expanded in ky around 0 36.3%
Taylor expanded in kx around 0 24.8%
Taylor expanded in ky around 0 24.3%
Taylor expanded in th around 0 17.2%
if 1.90000000000000009e-165 < ky Initial program 97.9%
associate-*l/95.5%
associate-/l*97.7%
unpow297.7%
unpow297.7%
hypot-def99.5%
Applied egg-rr99.5%
Taylor expanded in th around 0 46.7%
+-commutative46.7%
+-commutative46.7%
unpow246.7%
unpow246.7%
hypot-def48.5%
associate-*r*48.5%
+-commutative48.5%
unpow248.5%
unpow248.5%
hypot-def48.5%
distribute-rgt-out48.5%
Simplified48.5%
Taylor expanded in kx around 0 23.2%
Final simplification19.4%
(FPCore (kx ky th) :precision binary64 (/ (* ky th) kx))
double code(double kx, double ky, double th) {
return (ky * th) / kx;
}
real(8) function code(kx, ky, th)
real(8), intent (in) :: kx
real(8), intent (in) :: ky
real(8), intent (in) :: th
code = (ky * th) / kx
end function
public static double code(double kx, double ky, double th) {
return (ky * th) / kx;
}
def code(kx, ky, th): return (ky * th) / kx
function code(kx, ky, th) return Float64(Float64(ky * th) / kx) end
function tmp = code(kx, ky, th) tmp = (ky * th) / kx; end
code[kx_, ky_, th_] := N[(N[(ky * th), $MachinePrecision] / kx), $MachinePrecision]
\begin{array}{l}
\\
\frac{ky \cdot th}{kx}
\end{array}
Initial program 92.6%
Taylor expanded in ky around 0 27.2%
Taylor expanded in kx around 0 17.5%
Taylor expanded in ky around 0 17.0%
Taylor expanded in th around 0 12.6%
Final simplification12.6%
herbie shell --seed 2023325
(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)))