\[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)
\]
↓
\[\begin{array}{l}
t_0 := \sqrt[3]{\frac{180}{angle}}\\
\left(\left(-2 \cdot \left(b + a\right)\right) \cdot \left(\left(a - b\right) \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)\right) \cdot \cos \left(\frac{\pi}{t_0} \cdot \frac{1}{{t_0}^{2}}\right)
\end{array}
\]
(FPCore (a b angle)
:precision binary64
(*
(* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin (* PI (/ angle 180.0))))
(cos (* PI (/ angle 180.0)))))
↓
(FPCore (a b angle)
:precision binary64
(let* ((t_0 (cbrt (/ 180.0 angle))))
(*
(*
(* -2.0 (+ b a))
(* (- a b) (sin (* 0.005555555555555556 (* angle PI)))))
(cos (* (/ PI t_0) (/ 1.0 (pow t_0 2.0)))))))double code(double a, double b, double angle) {
return ((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * sin((((double) M_PI) * (angle / 180.0)))) * cos((((double) M_PI) * (angle / 180.0)));
}
↓
double code(double a, double b, double angle) {
double t_0 = cbrt((180.0 / angle));
return ((-2.0 * (b + a)) * ((a - b) * sin((0.005555555555555556 * (angle * ((double) M_PI)))))) * cos(((((double) M_PI) / t_0) * (1.0 / pow(t_0, 2.0))));
}
public static double code(double a, double b, double angle) {
return ((2.0 * (Math.pow(b, 2.0) - Math.pow(a, 2.0))) * Math.sin((Math.PI * (angle / 180.0)))) * Math.cos((Math.PI * (angle / 180.0)));
}
↓
public static double code(double a, double b, double angle) {
double t_0 = Math.cbrt((180.0 / angle));
return ((-2.0 * (b + a)) * ((a - b) * Math.sin((0.005555555555555556 * (angle * Math.PI))))) * Math.cos(((Math.PI / t_0) * (1.0 / Math.pow(t_0, 2.0))));
}
function code(a, b, angle)
return Float64(Float64(Float64(2.0 * Float64((b ^ 2.0) - (a ^ 2.0))) * sin(Float64(pi * Float64(angle / 180.0)))) * cos(Float64(pi * Float64(angle / 180.0))))
end
↓
function code(a, b, angle)
t_0 = cbrt(Float64(180.0 / angle))
return Float64(Float64(Float64(-2.0 * Float64(b + a)) * Float64(Float64(a - b) * sin(Float64(0.005555555555555556 * Float64(angle * pi))))) * cos(Float64(Float64(pi / t_0) * Float64(1.0 / (t_0 ^ 2.0)))))
end
code[a_, b_, angle_] := N[(N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(Pi * N[(angle / 180.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Cos[N[(Pi * N[(angle / 180.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
↓
code[a_, b_, angle_] := Block[{t$95$0 = N[Power[N[(180.0 / angle), $MachinePrecision], 1/3], $MachinePrecision]}, N[(N[(N[(-2.0 * N[(b + a), $MachinePrecision]), $MachinePrecision] * N[(N[(a - b), $MachinePrecision] * N[Sin[N[(0.005555555555555556 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Cos[N[(N[(Pi / t$95$0), $MachinePrecision] * N[(1.0 / N[Power[t$95$0, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)
↓
\begin{array}{l}
t_0 := \sqrt[3]{\frac{180}{angle}}\\
\left(\left(-2 \cdot \left(b + a\right)\right) \cdot \left(\left(a - b\right) \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)\right) \cdot \cos \left(\frac{\pi}{t_0} \cdot \frac{1}{{t_0}^{2}}\right)
\end{array}
Alternatives
| Alternative 1 |
|---|
| Accuracy | 66.5% |
|---|
| Cost | 39616 |
|---|
\[\left(\left(-2 \cdot \left(b + a\right)\right) \cdot \left(\left(a - b\right) \cdot \mathsf{expm1}\left(\mathsf{log1p}\left(\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)\right)\right)\right) \cdot \cos \left(\frac{\pi}{\frac{180}{angle}}\right)
\]
| Alternative 2 |
|---|
| Accuracy | 66.5% |
|---|
| Cost | 26816 |
|---|
\[\left(\left(-2 \cdot \left(b + a\right)\right) \cdot \left(\left(a - b\right) \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)
\]
| Alternative 3 |
|---|
| Accuracy | 66.5% |
|---|
| Cost | 26816 |
|---|
\[\left(\left(-2 \cdot \left(b + a\right)\right) \cdot \left(\left(a - b\right) \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)\right) \cdot \cos \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)
\]
| Alternative 4 |
|---|
| Accuracy | 66.5% |
|---|
| Cost | 26816 |
|---|
\[\left(\left(-2 \cdot \left(b + a\right)\right) \cdot \left(\left(a - b\right) \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)\right) \cdot \cos \left(\frac{\pi}{\frac{180}{angle}}\right)
\]
| Alternative 5 |
|---|
| Accuracy | 65.9% |
|---|
| Cost | 13833 |
|---|
\[\begin{array}{l}
\mathbf{if}\;angle \leq -2 \cdot 10^{-49} \lor \neg \left(angle \leq 2.6 \cdot 10^{-77}\right):\\
\;\;\;\;\left(b \cdot b - a \cdot a\right) \cdot \sin \left(\left(angle \cdot \pi\right) \cdot 0.011111111111111112\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(\left(b + a\right) \cdot \left(angle \cdot \left(b - a\right)\right)\right)\right)\\
\end{array}
\]
| Alternative 6 |
|---|
| Accuracy | 64.9% |
|---|
| Cost | 13696 |
|---|
\[\left(-2 \cdot \left(b + a\right)\right) \cdot \left(\left(a - b\right) \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)
\]
| Alternative 7 |
|---|
| Accuracy | 61.1% |
|---|
| Cost | 13572 |
|---|
\[\begin{array}{l}
\mathbf{if}\;angle \leq -1.75 \cdot 10^{-11}:\\
\;\;\;\;\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(2 \cdot \left(b \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b + a\right) \cdot \left(angle \cdot \left(b - a\right)\right)\right) \cdot \left(\pi \cdot 0.011111111111111112\right)\\
\end{array}
\]
| Alternative 8 |
|---|
| Accuracy | 54.1% |
|---|
| Cost | 7433 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -7.2 \cdot 10^{+153} \lor \neg \left(b \leq 2.2 \cdot 10^{+143}\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(b \cdot \left(b \cdot \left(angle \cdot \pi\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(b \cdot b - a \cdot a\right)\right)\right)\\
\end{array}
\]
| Alternative 9 |
|---|
| Accuracy | 59.3% |
|---|
| Cost | 7433 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -2.65 \cdot 10^{-251} \lor \neg \left(b \leq 2.9 \cdot 10^{-156}\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(\left(b + a\right) \cdot \left(angle \cdot \left(b - a\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(angle \cdot \left(a \cdot a\right)\right) \cdot \left(\pi \cdot -0.011111111111111112\right)\\
\end{array}
\]
| Alternative 10 |
|---|
| Accuracy | 59.3% |
|---|
| Cost | 7433 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -3.8 \cdot 10^{-251} \lor \neg \left(b \leq 3.75 \cdot 10^{-156}\right):\\
\;\;\;\;\left(\left(b + a\right) \cdot \left(angle \cdot \left(b - a\right)\right)\right) \cdot \left(\pi \cdot 0.011111111111111112\right)\\
\mathbf{else}:\\
\;\;\;\;\left(angle \cdot \left(a \cdot a\right)\right) \cdot \left(\pi \cdot -0.011111111111111112\right)\\
\end{array}
\]
| Alternative 11 |
|---|
| Accuracy | 48.8% |
|---|
| Cost | 7176 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -1.35 \cdot 10^{-66}:\\
\;\;\;\;0.011111111111111112 \cdot \left(b \cdot \left(angle \cdot \left(b \cdot \pi\right)\right)\right)\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-17}:\\
\;\;\;\;\left(angle \cdot \left(a \cdot a\right)\right) \cdot \left(\pi \cdot -0.011111111111111112\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(b \cdot \left(b \cdot \left(angle \cdot \pi\right)\right)\right)\\
\end{array}
\]
| Alternative 12 |
|---|
| Accuracy | 37.4% |
|---|
| Cost | 6912 |
|---|
\[0.011111111111111112 \cdot \left(b \cdot \left(angle \cdot \left(b \cdot \pi\right)\right)\right)
\]