\[\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]{angle \cdot \pi}\\
t_1 := \sqrt[3]{{t_0}^{2}}\\
\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{t_1 \cdot t_1}{\frac{\frac{180}{t_0}}{t_1}}\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 (* angle PI))) (t_1 (cbrt (pow t_0 2.0))))
(*
(*
(* -2.0 (+ b a))
(* (- a b) (sin (* 0.005555555555555556 (* angle PI)))))
(cos (/ (* t_1 t_1) (/ (/ 180.0 t_0) t_1))))))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((angle * ((double) M_PI)));
double t_1 = cbrt(pow(t_0, 2.0));
return ((-2.0 * (b + a)) * ((a - b) * sin((0.005555555555555556 * (angle * ((double) M_PI)))))) * cos(((t_1 * t_1) / ((180.0 / t_0) / t_1)));
}
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((angle * Math.PI));
double t_1 = Math.cbrt(Math.pow(t_0, 2.0));
return ((-2.0 * (b + a)) * ((a - b) * Math.sin((0.005555555555555556 * (angle * Math.PI))))) * Math.cos(((t_1 * t_1) / ((180.0 / t_0) / t_1)));
}
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(angle * pi))
t_1 = cbrt((t_0 ^ 2.0))
return Float64(Float64(Float64(-2.0 * Float64(b + a)) * Float64(Float64(a - b) * sin(Float64(0.005555555555555556 * Float64(angle * pi))))) * cos(Float64(Float64(t_1 * t_1) / Float64(Float64(180.0 / t_0) / t_1))))
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[(angle * Pi), $MachinePrecision], 1/3], $MachinePrecision]}, Block[{t$95$1 = N[Power[N[Power[t$95$0, 2.0], $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[(t$95$1 * t$95$1), $MachinePrecision] / N[(N[(180.0 / t$95$0), $MachinePrecision] / t$95$1), $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]{angle \cdot \pi}\\
t_1 := \sqrt[3]{{t_0}^{2}}\\
\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{t_1 \cdot t_1}{\frac{\frac{180}{t_0}}{t_1}}\right)
\end{array}
Alternatives
| Alternative 1 |
|---|
| Error | 21.4 |
|---|
| Cost | 26944 |
|---|
\[\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{\frac{\pi}{180}}{\frac{1}{angle}}\right)
\]
| Alternative 2 |
|---|
| Error | 21.3 |
|---|
| Cost | 26816 |
|---|
\[\begin{array}{l}
t_0 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\
\left(\left(-2 \cdot \left(b + a\right)\right) \cdot \left(\left(a - b\right) \cdot \sin t_0\right)\right) \cdot \cos t_0
\end{array}
\]
| Alternative 3 |
|---|
| Error | 21.3 |
|---|
| 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(angle \cdot \left(0.005555555555555556 \cdot \pi\right)\right)
\]
| Alternative 4 |
|---|
| Error | 21.3 |
|---|
| 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{angle \cdot \pi}{180}\right)
\]
| Alternative 5 |
|---|
| Error | 21.4 |
|---|
| Cost | 14089 |
|---|
\[\begin{array}{l}
t_0 := \left(b + a\right) \cdot angle\\
\mathbf{if}\;\frac{angle}{180} \leq -1 \cdot 10^{-7} \lor \neg \left(\frac{angle}{180} \leq 5 \cdot 10^{-27}\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(b \cdot t_0 - a \cdot t_0\right)\right)\\
\end{array}
\]
| Alternative 6 |
|---|
| Error | 24.8 |
|---|
| Cost | 13828 |
|---|
\[\begin{array}{l}
t_0 := \left(b + a\right) \cdot angle\\
\mathbf{if}\;\frac{angle}{180} \leq -1 \cdot 10^{+19}:\\
\;\;\;\;\left(\left(-2 \cdot \left(a \cdot a\right)\right) \cdot 0\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot t_0 - a \cdot t_0\right)\right)\\
\end{array}
\]
| Alternative 7 |
|---|
| Error | 24.6 |
|---|
| Cost | 13700 |
|---|
\[\begin{array}{l}
t_0 := \left(b + a\right) \cdot angle\\
\mathbf{if}\;\frac{angle}{180} \leq -1 \cdot 10^{+19}:\\
\;\;\;\;\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(-2 \cdot \left(a \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot t_0 - a \cdot t_0\right)\right)\\
\end{array}
\]
| Alternative 8 |
|---|
| Error | 22.3 |
|---|
| 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 9 |
|---|
| Error | 25.1 |
|---|
| Cost | 7684 |
|---|
\[\begin{array}{l}
t_0 := \left(b + a\right) \cdot angle\\
\mathbf{if}\;angle \leq -2.4 \cdot 10^{+15}:\\
\;\;\;\;angle \cdot \left(\pi \cdot \left(\left(b \cdot b\right) \cdot 0.011111111111111112\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot t_0 - a \cdot t_0\right)\right)\\
\end{array}
\]
| Alternative 10 |
|---|
| Error | 30.4 |
|---|
| Cost | 7433 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -1040000000 \lor \neg \left(b \leq 260\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot \left(b \cdot angle\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(angle \cdot \left(b \cdot b - a \cdot a\right)\right)\right)\\
\end{array}
\]
| Alternative 11 |
|---|
| Error | 30.5 |
|---|
| Cost | 7433 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -175000000 \lor \neg \left(b \leq 9.2 \cdot 10^{-5}\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot \left(b \cdot angle\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;angle \cdot \left(0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot b - a \cdot a\right)\right)\right)\\
\end{array}
\]
| Alternative 12 |
|---|
| Error | 30.4 |
|---|
| Cost | 7433 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -440000000 \lor \neg \left(b \leq 990\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot \left(b \cdot angle\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;angle \cdot \left(\left(b \cdot b - a \cdot a\right) \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\\
\end{array}
\]
| Alternative 13 |
|---|
| Error | 38.2 |
|---|
| Cost | 7177 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -1 \cdot 10^{-78} \lor \neg \left(b \leq 0.02\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot \left(b \cdot angle\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(angle \cdot \left(b \cdot \left(b \cdot \pi\right)\right)\right)\\
\end{array}
\]
| Alternative 14 |
|---|
| Error | 38.2 |
|---|
| Cost | 7177 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -2 \cdot 10^{-19} \lor \neg \left(b \leq 2 \cdot 10^{-35}\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot \left(b \cdot angle\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;angle \cdot \left(0.011111111111111112 \cdot \left(b \cdot \left(b \cdot \pi\right)\right)\right)\\
\end{array}
\]
| Alternative 15 |
|---|
| Error | 38.2 |
|---|
| Cost | 7177 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -4 \cdot 10^{-17} \lor \neg \left(b \leq 0.02\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot \left(b \cdot angle\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;angle \cdot \left(\pi \cdot \left(\left(b \cdot b\right) \cdot 0.011111111111111112\right)\right)\\
\end{array}
\]
| Alternative 16 |
|---|
| Error | 32.5 |
|---|
| Cost | 7177 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -1.95 \cdot 10^{-34} \lor \neg \left(b \leq 4.3 \cdot 10^{-69}\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot \left(b \cdot angle\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;angle \cdot \left(\left(a \cdot \left(a \cdot \pi\right)\right) \cdot -0.011111111111111112\right)\\
\end{array}
\]
| Alternative 17 |
|---|
| Error | 32.5 |
|---|
| Cost | 7177 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -2 \cdot 10^{-36} \lor \neg \left(b \leq 1.35 \cdot 10^{-67}\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot \left(b \cdot angle\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;-0.011111111111111112 \cdot \left(\pi \cdot \left(angle \cdot \left(a \cdot a\right)\right)\right)\\
\end{array}
\]
| Alternative 18 |
|---|
| Error | 43.3 |
|---|
| Cost | 6912 |
|---|
\[0.011111111111111112 \cdot \left(angle \cdot \left(b \cdot \left(b \cdot \pi\right)\right)\right)
\]