\[\left|\left(ew \cdot \cos t\right) \cdot \cos \tan^{-1} \left(\frac{\left(-eh\right) \cdot \tan t}{ew}\right) - \left(eh \cdot \sin t\right) \cdot \sin \tan^{-1} \left(\frac{\left(-eh\right) \cdot \tan t}{ew}\right)\right|
\]
↓
\[\begin{array}{l}
t_1 := \tan^{-1} \left(\tan t \cdot \left(-\frac{eh}{ew}\right)\right)\\
\left|\mathsf{fma}\left(eh \cdot \sin t, \sin t_1, \left(-ew\right) \cdot \left(\cos t \cdot \cos t_1\right)\right)\right|
\end{array}
\]
(FPCore (eh ew t)
:precision binary64
(fabs
(-
(* (* ew (cos t)) (cos (atan (/ (* (- eh) (tan t)) ew))))
(* (* eh (sin t)) (sin (atan (/ (* (- eh) (tan t)) ew)))))))
↓
(FPCore (eh ew t)
:precision binary64
(let* ((t_1 (atan (* (tan t) (- (/ eh ew))))))
(fabs (fma (* eh (sin t)) (sin t_1) (* (- ew) (* (cos t) (cos t_1)))))))
double code(double eh, double ew, double t) {
return fabs((((ew * cos(t)) * cos(atan(((-eh * tan(t)) / ew)))) - ((eh * sin(t)) * sin(atan(((-eh * tan(t)) / ew))))));
}
↓
double code(double eh, double ew, double t) {
double t_1 = atan((tan(t) * -(eh / ew)));
return fabs(fma((eh * sin(t)), sin(t_1), (-ew * (cos(t) * cos(t_1)))));
}
function code(eh, ew, t)
return abs(Float64(Float64(Float64(ew * cos(t)) * cos(atan(Float64(Float64(Float64(-eh) * tan(t)) / ew)))) - Float64(Float64(eh * sin(t)) * sin(atan(Float64(Float64(Float64(-eh) * tan(t)) / ew))))))
end
↓
function code(eh, ew, t)
t_1 = atan(Float64(tan(t) * Float64(-Float64(eh / ew))))
return abs(fma(Float64(eh * sin(t)), sin(t_1), Float64(Float64(-ew) * Float64(cos(t) * cos(t_1)))))
end
code[eh_, ew_, t_] := N[Abs[N[(N[(N[(ew * N[Cos[t], $MachinePrecision]), $MachinePrecision] * N[Cos[N[ArcTan[N[(N[((-eh) * N[Tan[t], $MachinePrecision]), $MachinePrecision] / ew), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(N[(eh * N[Sin[t], $MachinePrecision]), $MachinePrecision] * N[Sin[N[ArcTan[N[(N[((-eh) * N[Tan[t], $MachinePrecision]), $MachinePrecision] / ew), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
↓
code[eh_, ew_, t_] := Block[{t$95$1 = N[ArcTan[N[(N[Tan[t], $MachinePrecision] * (-N[(eh / ew), $MachinePrecision])), $MachinePrecision]], $MachinePrecision]}, N[Abs[N[(N[(eh * N[Sin[t], $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$1], $MachinePrecision] + N[((-ew) * N[(N[Cos[t], $MachinePrecision] * N[Cos[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\left|\left(ew \cdot \cos t\right) \cdot \cos \tan^{-1} \left(\frac{\left(-eh\right) \cdot \tan t}{ew}\right) - \left(eh \cdot \sin t\right) \cdot \sin \tan^{-1} \left(\frac{\left(-eh\right) \cdot \tan t}{ew}\right)\right|
↓
\begin{array}{l}
t_1 := \tan^{-1} \left(\tan t \cdot \left(-\frac{eh}{ew}\right)\right)\\
\left|\mathsf{fma}\left(eh \cdot \sin t, \sin t_1, \left(-ew\right) \cdot \left(\cos t \cdot \cos t_1\right)\right)\right|
\end{array}