\[\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)
\]
↓
\[\cos \left(\frac{\pi}{\frac{180}{angle}}\right) \cdot \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\right)\right)
\]
(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
(*
(cos (/ PI (/ 180.0 angle)))
(* (+ b a) (* (- b a) (* 2.0 (sin (* PI (* angle 0.005555555555555556))))))))
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) {
return cos((((double) M_PI) / (180.0 / angle))) * ((b + a) * ((b - a) * (2.0 * sin((((double) M_PI) * (angle * 0.005555555555555556))))));
}
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) {
return Math.cos((Math.PI / (180.0 / angle))) * ((b + a) * ((b - a) * (2.0 * Math.sin((Math.PI * (angle * 0.005555555555555556))))));
}
def code(a, b, 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)))
↓
def code(a, b, angle):
return math.cos((math.pi / (180.0 / angle))) * ((b + a) * ((b - a) * (2.0 * math.sin((math.pi * (angle * 0.005555555555555556))))))
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)
return Float64(cos(Float64(pi / Float64(180.0 / angle))) * Float64(Float64(b + a) * Float64(Float64(b - a) * Float64(2.0 * sin(Float64(pi * Float64(angle * 0.005555555555555556)))))))
end
function tmp = code(a, b, angle)
tmp = ((2.0 * ((b ^ 2.0) - (a ^ 2.0))) * sin((pi * (angle / 180.0)))) * cos((pi * (angle / 180.0)));
end
↓
function tmp = code(a, b, angle)
tmp = cos((pi / (180.0 / angle))) * ((b + a) * ((b - a) * (2.0 * sin((pi * (angle * 0.005555555555555556))))));
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_] := N[(N[Cos[N[(Pi / N[(180.0 / angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(N[(b + a), $MachinePrecision] * N[(N[(b - a), $MachinePrecision] * N[(2.0 * N[Sin[N[(Pi * N[(angle * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $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)
↓
\cos \left(\frac{\pi}{\frac{180}{angle}}\right) \cdot \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\right)\right)
Alternatives
| Alternative 1 |
|---|
| Accuracy | 67.4% |
|---|
| Cost | 53193 |
|---|
\[\begin{array}{l}
t_0 := angle \cdot \left(\pi \cdot 0.005555555555555556\right)\\
t_1 := {b}^{2} - {a}^{2}\\
\mathbf{if}\;t_1 \leq -8 \cdot 10^{+297} \lor \neg \left(t_1 \leq 2 \cdot 10^{+303}\right):\\
\;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(b \cdot b - a \cdot a\right) \cdot \left(\sin t_0 \cdot \cos t_0\right)\right)\\
\end{array}
\]
| Alternative 2 |
|---|
| Accuracy | 67.1% |
|---|
| Cost | 53193 |
|---|
\[\begin{array}{l}
t_0 := {b}^{2} - {a}^{2}\\
\mathbf{if}\;t_0 \leq -8 \cdot 10^{+297} \lor \neg \left(t_0 \leq 5 \cdot 10^{+267}\right):\\
\;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(2 \cdot \left(b \cdot b - a \cdot a\right)\right) \cdot \left(\cos \left(\pi \cdot \frac{angle}{180}\right) \cdot \sin \left(angle \cdot \left(\pi \cdot 0.005555555555555556\right)\right)\right)\\
\end{array}
\]
| Alternative 3 |
|---|
| Accuracy | 67.0% |
|---|
| Cost | 46665 |
|---|
\[\begin{array}{l}
t_0 := {b}^{2} - {a}^{2}\\
t_1 := \pi \cdot \left(angle \cdot 0.005555555555555556\right)\\
\mathbf{if}\;t_0 \leq -5 \cdot 10^{+62} \lor \neg \left(t_0 \leq 2 \cdot 10^{+303}\right):\\
\;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin t_1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin \left(2 \cdot t_1\right) \cdot \left(2 \cdot \mathsf{fma}\left(b, b, a \cdot \left(-a\right)\right)\right)}{2}\\
\end{array}
\]
| Alternative 4 |
|---|
| Accuracy | 67.1% |
|---|
| Cost | 46664 |
|---|
\[\begin{array}{l}
t_0 := angle \cdot \left(\pi \cdot 0.005555555555555556\right)\\
t_1 := {b}^{2} - {a}^{2}\\
t_2 := \pi \cdot \left(angle \cdot 0.005555555555555556\right)\\
\mathbf{if}\;t_1 \leq 2 \cdot 10^{-263}:\\
\;\;\;\;-2 \cdot \left(a \cdot \left(a \cdot \left(\sin t_0 \cdot \cos t_0\right)\right)\right)\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+303}:\\
\;\;\;\;\frac{\sin \left(2 \cdot t_2\right) \cdot \left(2 \cdot \mathsf{fma}\left(b, b, a \cdot \left(-a\right)\right)\right)}{2}\\
\mathbf{else}:\\
\;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin t_2\right)\right)\\
\end{array}
\]
| Alternative 5 |
|---|
| Accuracy | 67.3% |
|---|
| Cost | 26816 |
|---|
\[\cos \left(\pi \cdot \frac{angle}{180}\right) \cdot \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\right)\right)
\]
| Alternative 6 |
|---|
| Accuracy | 61.8% |
|---|
| Cost | 14224 |
|---|
\[\begin{array}{l}
t_0 := b \cdot b - a \cdot a\\
t_1 := \sin \left(0.011111111111111112 \cdot \left(\pi \cdot angle\right)\right)\\
t_2 := \frac{-2 \cdot \left(a \cdot \left(a \cdot t_1\right)\right)}{2}\\
\mathbf{if}\;a \leq -9.5 \cdot 10^{+129}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -2.35 \cdot 10^{-94}:\\
\;\;\;\;\left(2 \cdot t_0\right) \cdot \sin \left(angle \cdot \left(\pi \cdot 0.005555555555555556\right)\right)\\
\mathbf{elif}\;a \leq 5.6 \cdot 10^{-131}:\\
\;\;\;\;\frac{b \cdot \left(2 \cdot \left(b \cdot t_1\right)\right)}{2}\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{+143}:\\
\;\;\;\;t_0 \cdot \sin \left(2 \cdot \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
| Alternative 7 |
|---|
| Accuracy | 61.8% |
|---|
| Cost | 14224 |
|---|
\[\begin{array}{l}
t_0 := b \cdot b - a \cdot a\\
t_1 := \sin \left(0.011111111111111112 \cdot \left(\pi \cdot angle\right)\right)\\
t_2 := \frac{-2 \cdot \left(a \cdot \left(a \cdot t_1\right)\right)}{2}\\
\mathbf{if}\;a \leq -9 \cdot 10^{+152}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -6.5 \cdot 10^{-123}:\\
\;\;\;\;\left(2 \cdot t_0\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\\
\mathbf{elif}\;a \leq 6 \cdot 10^{-131}:\\
\;\;\;\;\frac{b \cdot \left(2 \cdot \left(b \cdot t_1\right)\right)}{2}\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{+143}:\\
\;\;\;\;t_0 \cdot \sin \left(2 \cdot \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
| Alternative 8 |
|---|
| Accuracy | 61.4% |
|---|
| Cost | 14096 |
|---|
\[\begin{array}{l}
t_0 := \sin \left(0.011111111111111112 \cdot \left(\pi \cdot angle\right)\right)\\
t_1 := \left(b \cdot b - a \cdot a\right) \cdot t_0\\
\mathbf{if}\;b \leq -6.5 \cdot 10^{+149}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot \left(b \cdot angle\right)\right)\right)\\
\mathbf{elif}\;b \leq -9.6 \cdot 10^{-115}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{-59}:\\
\;\;\;\;\frac{-2 \cdot \left(a \cdot \left(a \cdot t_0\right)\right)}{2}\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{+152}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(0.011111111111111112 \cdot \left(angle \cdot \left(b \cdot \pi\right)\right)\right)\\
\end{array}
\]
| Alternative 9 |
|---|
| Accuracy | 59.1% |
|---|
| Cost | 14092 |
|---|
\[\begin{array}{l}
t_0 := \sin \left(0.011111111111111112 \cdot \left(\pi \cdot angle\right)\right)\\
t_1 := \frac{-2 \cdot \left(a \cdot \left(a \cdot t_0\right)\right)}{2}\\
\mathbf{if}\;a \leq -9.2 \cdot 10^{-80}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 5.6 \cdot 10^{-131}:\\
\;\;\;\;\frac{b \cdot \left(2 \cdot \left(b \cdot t_0\right)\right)}{2}\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{+143}:\\
\;\;\;\;\left(b \cdot b - a \cdot a\right) \cdot \sin \left(2 \cdot \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 10 |
|---|
| Accuracy | 59.1% |
|---|
| Cost | 13964 |
|---|
\[\begin{array}{l}
t_0 := \sin \left(0.011111111111111112 \cdot \left(\pi \cdot angle\right)\right)\\
t_1 := \frac{-2 \cdot \left(a \cdot \left(a \cdot t_0\right)\right)}{2}\\
\mathbf{if}\;a \leq -9.2 \cdot 10^{-80}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 6 \cdot 10^{-131}:\\
\;\;\;\;\frac{b \cdot \left(2 \cdot \left(b \cdot t_0\right)\right)}{2}\\
\mathbf{elif}\;a \leq 4.2 \cdot 10^{+113}:\\
\;\;\;\;\left(b \cdot b - a \cdot a\right) \cdot t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 11 |
|---|
| Accuracy | 60.1% |
|---|
| Cost | 13833 |
|---|
\[\begin{array}{l}
\mathbf{if}\;a \leq -1.4 \cdot 10^{+154} \lor \neg \left(a \leq 1.35 \cdot 10^{+154}\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \left(\pi \cdot \left(-angle\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot b - a \cdot a\right) \cdot \sin \left(0.011111111111111112 \cdot \left(\pi \cdot angle\right)\right)\\
\end{array}
\]
| Alternative 12 |
|---|
| Accuracy | 52.5% |
|---|
| Cost | 13704 |
|---|
\[\begin{array}{l}
t_0 := 0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \left(\pi \cdot \left(-angle\right)\right)\right)\right)\\
\mathbf{if}\;a \leq -1.6 \cdot 10^{-75}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-137}:\\
\;\;\;\;2 \cdot \left(\left(b \cdot b\right) \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\\
\mathbf{elif}\;a \leq 1.15:\\
\;\;\;\;0.011111111111111112 \cdot \left(b \cdot \left(angle \cdot \left(b \cdot \pi\right)\right)\right)\\
\mathbf{elif}\;a \leq 8.6 \cdot 10^{+148}:\\
\;\;\;\;\left(angle \cdot 0.011111111111111112\right) \cdot \left(\pi \cdot \left(b \cdot b - a \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 13 |
|---|
| Accuracy | 65.8% |
|---|
| Cost | 13696 |
|---|
\[\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\right)
\]
| Alternative 14 |
|---|
| Accuracy | 55.6% |
|---|
| Cost | 7689 |
|---|
\[\begin{array}{l}
\mathbf{if}\;a \leq -4.9 \cdot 10^{+153} \lor \neg \left(a \leq 2.3 \cdot 10^{+141}\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \left(\pi \cdot \left(-angle\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\pi \cdot \left(-0.011111111111111112 \cdot \left(angle \cdot \left(a \cdot a\right)\right) + 0.011111111111111112 \cdot \left(angle \cdot \left(b \cdot b\right)\right)\right)\\
\end{array}
\]
| Alternative 15 |
|---|
| Accuracy | 55.5% |
|---|
| Cost | 7433 |
|---|
\[\begin{array}{l}
\mathbf{if}\;a \leq -7.5 \cdot 10^{+153} \lor \neg \left(a \leq 3.1 \cdot 10^{+113}\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \left(\pi \cdot \left(-angle\right)\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 16 |
|---|
| Accuracy | 55.6% |
|---|
| Cost | 7433 |
|---|
\[\begin{array}{l}
\mathbf{if}\;a \leq -1.28 \cdot 10^{+154} \lor \neg \left(a \leq 9.2 \cdot 10^{+148}\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \left(\pi \cdot \left(-angle\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\left(b \cdot b - a \cdot a\right) \cdot \left(\pi \cdot angle\right)\right)\\
\end{array}
\]
| Alternative 17 |
|---|
| Accuracy | 55.7% |
|---|
| Cost | 7433 |
|---|
\[\begin{array}{l}
\mathbf{if}\;a \leq -2.5 \cdot 10^{+153} \lor \neg \left(a \leq 9 \cdot 10^{+148}\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \left(\pi \cdot \left(-angle\right)\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 18 |
|---|
| Accuracy | 50.8% |
|---|
| Cost | 7241 |
|---|
\[\begin{array}{l}
\mathbf{if}\;a \leq -1.06 \cdot 10^{-75} \lor \neg \left(a \leq 11500000000000\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \left(\pi \cdot \left(-angle\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(b \cdot \left(angle \cdot \left(b \cdot \pi\right)\right)\right)\\
\end{array}
\]
| Alternative 19 |
|---|
| Accuracy | 48.7% |
|---|
| Cost | 7177 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -44000 \lor \neg \left(b \leq 10^{-50}\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(b \cdot \left(angle \cdot \left(b \cdot \pi\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;angle \cdot \left(-0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \pi\right)\right)\right)\\
\end{array}
\]
| Alternative 20 |
|---|
| Accuracy | 40.2% |
|---|
| Cost | 7176 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -2.5 \cdot 10^{+144}:\\
\;\;\;\;0.011111111111111112 \cdot \left(b \cdot \left(angle \cdot \left(b \cdot \pi\right)\right)\right)\\
\mathbf{elif}\;b \leq 2 \cdot 10^{+14}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(angle \cdot \left(b \cdot b\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(b \cdot \left(\pi \cdot \left(b \cdot angle\right)\right)\right)\\
\end{array}
\]
| Alternative 21 |
|---|
| Accuracy | 48.7% |
|---|
| Cost | 7176 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -14600:\\
\;\;\;\;\left(b \cdot \left(b \cdot angle\right)\right) \cdot \left(\pi \cdot 0.011111111111111112\right)\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{-49}:\\
\;\;\;\;angle \cdot \left(-0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \pi\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(b \cdot \left(angle \cdot \left(b \cdot \pi\right)\right)\right)\\
\end{array}
\]
| Alternative 22 |
|---|
| Accuracy | 48.7% |
|---|
| Cost | 7176 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -5500:\\
\;\;\;\;\left(b \cdot \left(b \cdot angle\right)\right) \cdot \left(\pi \cdot 0.011111111111111112\right)\\
\mathbf{elif}\;b \leq 3 \cdot 10^{-53}:\\
\;\;\;\;angle \cdot \left(-0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \pi\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\left(b \cdot angle\right) \cdot \left(b \cdot \pi\right)\right)\\
\end{array}
\]
| Alternative 23 |
|---|
| Accuracy | 38.0% |
|---|
| Cost | 6912 |
|---|
\[0.011111111111111112 \cdot \left(b \cdot \left(angle \cdot \left(b \cdot \pi\right)\right)\right)
\]