\[\left|\left(ew \cdot \sin t\right) \cdot \cos \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right) + \left(eh \cdot \cos t\right) \cdot \sin \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right)\right|
\]
↓
\[\left|\mathsf{fma}\left(ew, \frac{\sin t}{\mathsf{hypot}\left(1, \frac{eh}{ew \cdot \tan t}\right)}, eh \cdot \left(\cos t \cdot \sin \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right)\right)\right)\right|
\]
(FPCore (eh ew t)
:precision binary64
(fabs
(+
(* (* ew (sin t)) (cos (atan (/ (/ eh ew) (tan t)))))
(* (* eh (cos t)) (sin (atan (/ (/ eh ew) (tan t))))))))
↓
(FPCore (eh ew t)
:precision binary64
(fabs
(fma
ew
(/ (sin t) (hypot 1.0 (/ eh (* ew (tan t)))))
(* eh (* (cos t) (sin (atan (/ (/ eh ew) (tan t)))))))))
double code(double eh, double ew, double t) {
return fabs((((ew * sin(t)) * cos(atan(((eh / ew) / tan(t))))) + ((eh * cos(t)) * sin(atan(((eh / ew) / tan(t)))))));
}
↓
double code(double eh, double ew, double t) {
return fabs(fma(ew, (sin(t) / hypot(1.0, (eh / (ew * tan(t))))), (eh * (cos(t) * sin(atan(((eh / ew) / tan(t))))))));
}
function code(eh, ew, t)
return abs(Float64(Float64(Float64(ew * sin(t)) * cos(atan(Float64(Float64(eh / ew) / tan(t))))) + Float64(Float64(eh * cos(t)) * sin(atan(Float64(Float64(eh / ew) / tan(t)))))))
end
↓
function code(eh, ew, t)
return abs(fma(ew, Float64(sin(t) / hypot(1.0, Float64(eh / Float64(ew * tan(t))))), Float64(eh * Float64(cos(t) * sin(atan(Float64(Float64(eh / ew) / tan(t))))))))
end
code[eh_, ew_, t_] := N[Abs[N[(N[(N[(ew * N[Sin[t], $MachinePrecision]), $MachinePrecision] * N[Cos[N[ArcTan[N[(N[(eh / ew), $MachinePrecision] / N[Tan[t], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(eh * N[Cos[t], $MachinePrecision]), $MachinePrecision] * N[Sin[N[ArcTan[N[(N[(eh / ew), $MachinePrecision] / N[Tan[t], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
↓
code[eh_, ew_, t_] := N[Abs[N[(ew * N[(N[Sin[t], $MachinePrecision] / N[Sqrt[1.0 ^ 2 + N[(eh / N[(ew * N[Tan[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision] + N[(eh * N[(N[Cos[t], $MachinePrecision] * N[Sin[N[ArcTan[N[(N[(eh / ew), $MachinePrecision] / N[Tan[t], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\left|\left(ew \cdot \sin t\right) \cdot \cos \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right) + \left(eh \cdot \cos t\right) \cdot \sin \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right)\right|
↓
\left|\mathsf{fma}\left(ew, \frac{\sin t}{\mathsf{hypot}\left(1, \frac{eh}{ew \cdot \tan t}\right)}, eh \cdot \left(\cos t \cdot \sin \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right)\right)\right)\right|
Alternatives
| Alternative 1 |
|---|
| Error | 0.2 |
|---|
| Cost | 52480 |
|---|
\[\left|\sin \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right) \cdot \left(eh \cdot \cos t\right) + \frac{\sin t}{\frac{\mathsf{hypot}\left(1, \frac{eh}{ew \cdot \tan t}\right)}{ew}}\right|
\]
| Alternative 2 |
|---|
| Error | 0.2 |
|---|
| Cost | 52480 |
|---|
\[\left|\sin \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right) \cdot \left(eh \cdot \cos t\right) + \frac{ew}{\frac{\mathsf{hypot}\left(1, \frac{eh}{ew \cdot \tan t}\right)}{\sin t}}\right|
\]
| Alternative 3 |
|---|
| Error | 0.1 |
|---|
| Cost | 52480 |
|---|
\[\left|\frac{ew \cdot \sin t}{\mathsf{hypot}\left(1, \frac{eh}{ew \cdot \tan t}\right)} + \sin \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right) \cdot \left(eh \cdot \cos t\right)\right|
\]
| Alternative 4 |
|---|
| Error | 0.6 |
|---|
| Cost | 52416 |
|---|
\[\left|\sin \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right) \cdot \left(eh \cdot \cos t\right) + \left(ew \cdot \sin t\right) \cdot \cos \tan^{-1} \left(\frac{\frac{eh}{t}}{ew}\right)\right|
\]
| Alternative 5 |
|---|
| Error | 1.0 |
|---|
| Cost | 45504 |
|---|
\[\left|\mathsf{fma}\left(ew, \sin t \cdot \cos \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right), eh \cdot \cos t\right)\right|
\]
| Alternative 6 |
|---|
| Error | 1.0 |
|---|
| Cost | 39232 |
|---|
\[\left|ew \cdot \sin t + \sin \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right) \cdot \left(eh \cdot \cos t\right)\right|
\]
| Alternative 7 |
|---|
| Error | 8.9 |
|---|
| Cost | 39108 |
|---|
\[\begin{array}{l}
t_1 := \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right)\\
t_2 := \sin t_1\\
\mathbf{if}\;ew \leq -1.4311446947207586 \cdot 10^{-133}:\\
\;\;\;\;\left|\mathsf{fma}\left(ew, \sin t \cdot \cos t_1, eh\right)\right|\\
\mathbf{elif}\;ew \leq 8.610948407627662 \cdot 10^{-104}:\\
\;\;\;\;\left|t_2 \cdot \left(eh \cdot \cos t\right) + \frac{t}{\frac{eh \cdot \frac{-1}{ew \cdot \left(-ew\right)}}{t}}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|ew \cdot \sin t + eh \cdot t_2\right|\\
\end{array}
\]
| Alternative 8 |
|---|
| Error | 8.8 |
|---|
| Cost | 33672 |
|---|
\[\begin{array}{l}
t_1 := \sin \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right)\\
t_2 := \left|ew \cdot \sin t + eh \cdot t_1\right|\\
\mathbf{if}\;ew \leq -1.4311446947207586 \cdot 10^{-133}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;ew \leq 8.610948407627662 \cdot 10^{-104}:\\
\;\;\;\;\left|t_1 \cdot \left(eh \cdot \cos t\right) + \frac{t}{\frac{eh \cdot \frac{-1}{ew \cdot \left(-ew\right)}}{t}}\right|\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
| Alternative 9 |
|---|
| Error | 8.8 |
|---|
| Cost | 33480 |
|---|
\[\begin{array}{l}
t_1 := \sin \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right)\\
t_2 := \left|ew \cdot \sin t + eh \cdot t_1\right|\\
\mathbf{if}\;ew \leq -1.4311446947207586 \cdot 10^{-133}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;ew \leq 8.610948407627662 \cdot 10^{-104}:\\
\;\;\;\;\left|t_1 \cdot \left(eh \cdot \cos t\right) + \frac{t}{\frac{\frac{eh}{ew \cdot ew}}{t}}\right|\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
| Alternative 10 |
|---|
| Error | 10.8 |
|---|
| Cost | 32968 |
|---|
\[\begin{array}{l}
t_1 := \left|\frac{t}{\frac{\frac{\frac{eh}{ew}}{t}}{ew}} + \left(eh \cdot \cos t\right) \cdot \sin \tan^{-1} \left(\frac{eh}{ew \cdot t}\right)\right|\\
\mathbf{if}\;eh \leq -3.8106408937563365 \cdot 10^{+180}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;eh \leq 2.0253992359873788 \cdot 10^{+177}:\\
\;\;\;\;\left|ew \cdot \sin t + eh \cdot \sin \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right)\right|\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 11 |
|---|
| Error | 30.4 |
|---|
| Cost | 27592 |
|---|
\[\begin{array}{l}
t_1 := eh \cdot \cos t\\
t_2 := \frac{eh}{ew \cdot t}\\
t_3 := \left|\frac{t}{\frac{\frac{\frac{eh}{ew}}{t}}{ew}} + t_1 \cdot \sin \tan^{-1} t_2\right|\\
\mathbf{if}\;eh \leq -8.749796094373173 \cdot 10^{+106}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;eh \leq 7.456375149909891 \cdot 10^{-70}:\\
\;\;\;\;\left|\frac{t}{\frac{\frac{eh}{ew \cdot ew}}{t}} + t_1 \cdot \sin \tan^{-1} \left(t_2 + -0.3333333333333333 \cdot \frac{t \cdot eh}{ew}\right)\right|\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\]
| Alternative 12 |
|---|
| Error | 34.8 |
|---|
| Cost | 26816 |
|---|
\[\left|\left(eh \cdot \cos t\right) \cdot \sin \tan^{-1} \left(\frac{eh}{ew \cdot t}\right) + \frac{t}{eh} \cdot \left(t \cdot \left(ew \cdot ew\right)\right)\right|
\]
| Alternative 13 |
|---|
| Error | 31.3 |
|---|
| Cost | 26816 |
|---|
\[\left|\frac{t}{\frac{\frac{\frac{eh}{ew}}{t}}{ew}} + \left(eh \cdot \cos t\right) \cdot \sin \tan^{-1} \left(\frac{eh}{ew \cdot t}\right)\right|
\]
| Alternative 14 |
|---|
| Error | 42.7 |
|---|
| Cost | 26688 |
|---|
\[\left|eh \cdot \sin \tan^{-1} \left(\frac{\frac{eh}{ew}}{\tan t}\right) + \frac{ew \cdot ew}{\frac{eh}{t \cdot t}}\right|
\]