\[\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(\frac{\left(-eh\right) \cdot \tan t}{ew}\right)\\
\left|\left(ew \cdot \cos t\right) \cdot \cos t_1 - \left(eh \cdot \sin t\right) \cdot \sin t_1\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 (/ (* (- eh) (tan t)) ew))))
(fabs (- (* (* ew (cos t)) (cos t_1)) (* (* eh (sin t)) (sin 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(((-eh * tan(t)) / ew));
return fabs((((ew * cos(t)) * cos(t_1)) - ((eh * sin(t)) * sin(t_1))));
}
real(8) function code(eh, ew, t)
real(8), intent (in) :: eh
real(8), intent (in) :: ew
real(8), intent (in) :: t
code = abs((((ew * cos(t)) * cos(atan(((-eh * tan(t)) / ew)))) - ((eh * sin(t)) * sin(atan(((-eh * tan(t)) / ew))))))
end function
↓
real(8) function code(eh, ew, t)
real(8), intent (in) :: eh
real(8), intent (in) :: ew
real(8), intent (in) :: t
real(8) :: t_1
t_1 = atan(((-eh * tan(t)) / ew))
code = abs((((ew * cos(t)) * cos(t_1)) - ((eh * sin(t)) * sin(t_1))))
end function
public static double code(double eh, double ew, double t) {
return Math.abs((((ew * Math.cos(t)) * Math.cos(Math.atan(((-eh * Math.tan(t)) / ew)))) - ((eh * Math.sin(t)) * Math.sin(Math.atan(((-eh * Math.tan(t)) / ew))))));
}
↓
public static double code(double eh, double ew, double t) {
double t_1 = Math.atan(((-eh * Math.tan(t)) / ew));
return Math.abs((((ew * Math.cos(t)) * Math.cos(t_1)) - ((eh * Math.sin(t)) * Math.sin(t_1))));
}
def code(eh, ew, t):
return math.fabs((((ew * math.cos(t)) * math.cos(math.atan(((-eh * math.tan(t)) / ew)))) - ((eh * math.sin(t)) * math.sin(math.atan(((-eh * math.tan(t)) / ew))))))
↓
def code(eh, ew, t):
t_1 = math.atan(((-eh * math.tan(t)) / ew))
return math.fabs((((ew * math.cos(t)) * math.cos(t_1)) - ((eh * math.sin(t)) * math.sin(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(Float64(Float64(-eh) * tan(t)) / ew))
return abs(Float64(Float64(Float64(ew * cos(t)) * cos(t_1)) - Float64(Float64(eh * sin(t)) * sin(t_1))))
end
function tmp = code(eh, ew, t)
tmp = abs((((ew * cos(t)) * cos(atan(((-eh * tan(t)) / ew)))) - ((eh * sin(t)) * sin(atan(((-eh * tan(t)) / ew))))));
end
↓
function tmp = code(eh, ew, t)
t_1 = atan(((-eh * tan(t)) / ew));
tmp = abs((((ew * cos(t)) * cos(t_1)) - ((eh * sin(t)) * sin(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[((-eh) * N[Tan[t], $MachinePrecision]), $MachinePrecision] / ew), $MachinePrecision]], $MachinePrecision]}, N[Abs[N[(N[(N[(ew * N[Cos[t], $MachinePrecision]), $MachinePrecision] * N[Cos[t$95$1], $MachinePrecision]), $MachinePrecision] - N[(N[(eh * N[Sin[t], $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$1], $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(\frac{\left(-eh\right) \cdot \tan t}{ew}\right)\\
\left|\left(ew \cdot \cos t\right) \cdot \cos t_1 - \left(eh \cdot \sin t\right) \cdot \sin t_1\right|
\end{array}
Alternatives
| Alternative 1 |
|---|
| Error | 0.6 |
|---|
| Cost | 52736 |
|---|
\[\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{-eh}{0 - \frac{ew}{-t}}\right)\right|
\]
| Alternative 2 |
|---|
| Error | 0.6 |
|---|
| Cost | 52544 |
|---|
\[\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(t \cdot \frac{eh}{-ew}\right)\right|
\]
| Alternative 3 |
|---|
| Error | 12.0 |
|---|
| Cost | 46280 |
|---|
\[\begin{array}{l}
t_1 := eh \cdot \sin t\\
t_2 := \tan^{-1} \left(t \cdot \frac{eh}{-ew}\right)\\
t_3 := \sin t_2\\
t_4 := ew \cdot \cos \tan^{-1} \left(\frac{t \cdot \left(-eh\right)}{ew}\right)\\
\mathbf{if}\;eh \leq -6.5 \cdot 10^{+60}:\\
\;\;\;\;\left|t_4 - t_1 \cdot t_3\right|\\
\mathbf{elif}\;eh \leq 1.05 \cdot 10^{-64}:\\
\;\;\;\;\left|\left(ew \cdot \cos t\right) \cdot \cos t_2 - \left(t \cdot eh\right) \cdot t_3\right|\\
\mathbf{else}:\\
\;\;\;\;\left|t_4 - t_1 \cdot \sin \tan^{-1} \left(\frac{\left(-eh\right) \cdot \tan t}{ew}\right)\right|\\
\end{array}
\]
| Alternative 4 |
|---|
| Error | 11.6 |
|---|
| Cost | 46280 |
|---|
\[\begin{array}{l}
t_1 := \tan^{-1} \left(t \cdot \frac{eh}{-ew}\right)\\
t_2 := \left|ew \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{t \cdot \left(-eh\right)}{ew}\right)\right|\\
\mathbf{if}\;eh \leq -5.2 \cdot 10^{+58}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;eh \leq 3.1 \cdot 10^{-65}:\\
\;\;\;\;\left|\left(ew \cdot \cos t\right) \cdot \cos t_1 - \left(t \cdot eh\right) \cdot \sin t_1\right|\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
| Alternative 5 |
|---|
| Error | 6.7 |
|---|
| Cost | 46144 |
|---|
\[\begin{array}{l}
t_1 := \tan^{-1} \left(t \cdot \frac{eh}{-ew}\right)\\
\left|\left(ew \cdot \cos t\right) \cdot \cos t_1 - \left(eh \cdot \sin t\right) \cdot \sin t_1\right|
\end{array}
\]
| Alternative 6 |
|---|
| Error | 11.9 |
|---|
| Cost | 40008 |
|---|
\[\begin{array}{l}
t_1 := \tan^{-1} \left(t \cdot \frac{eh}{-ew}\right)\\
t_2 := \sin t_1\\
t_3 := \left|ew \cdot \cos \tan^{-1} \left(\frac{t \cdot \left(-eh\right)}{ew}\right) - \left(eh \cdot \sin t\right) \cdot t_2\right|\\
\mathbf{if}\;eh \leq -4 \cdot 10^{+60}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;eh \leq 2.2 \cdot 10^{-71}:\\
\;\;\;\;\left|\left(ew \cdot \cos t\right) \cdot \cos t_1 - \left(t \cdot eh\right) \cdot t_2\right|\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\]
| Alternative 7 |
|---|
| Error | 29.4 |
|---|
| Cost | 39616 |
|---|
\[\left|ew \cdot \cos \tan^{-1} \left(\frac{t \cdot \left(-eh\right)}{ew}\right) - t \cdot \left(eh \cdot \sin \tan^{-1} \left(\tan t \cdot \frac{-eh}{ew}\right)\right)\right|
\]
| Alternative 8 |
|---|
| Error | 13.9 |
|---|
| Cost | 39616 |
|---|
\[\left|ew \cdot \cos \tan^{-1} \left(\frac{t \cdot \left(-eh\right)}{ew}\right) - \left(eh \cdot \sin t\right) \cdot \sin \tan^{-1} \left(t \cdot \frac{eh}{-ew}\right)\right|
\]
| Alternative 9 |
|---|
| Error | 29.6 |
|---|
| Cost | 33216 |
|---|
\[\left|ew \cdot \cos \tan^{-1} \left(\frac{t \cdot \left(-eh\right)}{ew}\right) - \left(t \cdot eh\right) \cdot \sin \tan^{-1} \left(t \cdot \frac{eh}{-ew}\right)\right|
\]