\[\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)
\]
↓
\[\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)
\]
(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
(*
(* (* -2.0 (+ b a)) (* (- a b) (sin (* 0.005555555555555556 (* angle PI)))))
(cos (* PI (/ angle 180.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) {
return ((-2.0 * (b + a)) * ((a - b) * sin((0.005555555555555556 * (angle * ((double) M_PI)))))) * cos((((double) M_PI) * (angle / 180.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) {
return ((-2.0 * (b + a)) * ((a - b) * Math.sin((0.005555555555555556 * (angle * Math.PI))))) * Math.cos((Math.PI * (angle / 180.0)));
}
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 ((-2.0 * (b + a)) * ((a - b) * math.sin((0.005555555555555556 * (angle * math.pi))))) * math.cos((math.pi * (angle / 180.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)
return Float64(Float64(Float64(-2.0 * Float64(b + a)) * Float64(Float64(a - b) * sin(Float64(0.005555555555555556 * Float64(angle * pi))))) * cos(Float64(pi * Float64(angle / 180.0))))
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 = ((-2.0 * (b + a)) * ((a - b) * sin((0.005555555555555556 * (angle * pi))))) * cos((pi * (angle / 180.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_] := 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[(Pi * N[(angle / 180.0), $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)
↓
\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)
Alternatives
| Alternative 1 |
|---|
| Accuracy | 66.5% |
|---|
| 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 2 |
|---|
| Accuracy | 65.9% |
|---|
| Cost | 26688 |
|---|
\[{\left(\sqrt[3]{\left(\left(b + a\right) \cdot \sin \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\right) \cdot \left(\left(b - a\right) + \left(a - a\right)\right)}\right)}^{3}
\]
| Alternative 3 |
|---|
| Accuracy | 65.9% |
|---|
| Cost | 14089 |
|---|
\[\begin{array}{l}
t_0 := \left(b + a\right) \cdot angle\\
\mathbf{if}\;\frac{angle}{180} \leq -5 \cdot 10^{-25} \lor \neg \left(\frac{angle}{180} \leq 2 \cdot 10^{-81}\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 4 |
|---|
| Accuracy | 64.0% |
|---|
| Cost | 13832 |
|---|
\[\begin{array}{l}
t_0 := \left(b + a\right) \cdot angle\\
\mathbf{if}\;\frac{angle}{180} \leq -1 \cdot 10^{-5}:\\
\;\;\;\;\sin \left(angle \cdot \left(0.005555555555555556 \cdot \pi\right)\right) \cdot \left(-2 \cdot \left(a \cdot a\right)\right)\\
\mathbf{elif}\;\frac{angle}{180} \leq 10^{-8}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot t_0 - a \cdot t_0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot b\right) \cdot \sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right)\\
\end{array}
\]
| Alternative 5 |
|---|
| Accuracy | 65.0% |
|---|
| 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 6 |
|---|
| Accuracy | 63.8% |
|---|
| Cost | 13577 |
|---|
\[\begin{array}{l}
t_0 := \left(b + a\right) \cdot angle\\
\mathbf{if}\;angle \leq -3.2 \cdot 10^{+76} \lor \neg \left(angle \leq 0.39\right):\\
\;\;\;\;\sin \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(b \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot t_0 - a \cdot t_0\right)\right)\\
\end{array}
\]
| Alternative 7 |
|---|
| Accuracy | 63.9% |
|---|
| Cost | 13576 |
|---|
\[\begin{array}{l}
t_0 := \left(b + a\right) \cdot angle\\
\mathbf{if}\;angle \leq -3.4 \cdot 10^{+76}:\\
\;\;\;\;\sin \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(b \cdot b\right)\\
\mathbf{elif}\;angle \leq 0.045:\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot t_0 - a \cdot t_0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot b\right) \cdot \sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right)\\
\end{array}
\]
| Alternative 8 |
|---|
| Accuracy | 64.4% |
|---|
| Cost | 13576 |
|---|
\[\begin{array}{l}
t_0 := \left(b + a\right) \cdot angle\\
t_1 := \sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right)\\
\mathbf{if}\;angle \leq -0.00175:\\
\;\;\;\;\left(a \cdot a\right) \cdot \left(-t_1\right)\\
\mathbf{elif}\;angle \leq 0.9:\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot t_0 - a \cdot t_0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot b\right) \cdot t_1\\
\end{array}
\]
| Alternative 9 |
|---|
| Accuracy | 60.2% |
|---|
| Cost | 7684 |
|---|
\[\begin{array}{l}
t_0 := \left(b + a\right) \cdot angle\\
\mathbf{if}\;angle \leq -1.05 \cdot 10^{+94}:\\
\;\;\;\;angle \cdot \left(\left(\pi \cdot \left(a \cdot a\right)\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 10 |
|---|
| Accuracy | 53.1% |
|---|
| Cost | 7560 |
|---|
\[\begin{array}{l}
t_0 := a \cdot \left(a \cdot angle\right)\\
\mathbf{if}\;a \leq -1250000:\\
\;\;\;\;-0.011111111111111112 \cdot \left(\pi \cdot t_0\right)\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{+111}:\\
\;\;\;\;2 \cdot \left(\left(\pi \cdot \left(b \cdot b - a \cdot a\right)\right) \cdot \left(0.005555555555555556 \cdot angle\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_0 \cdot \left(\pi \cdot -0.011111111111111112\right)\\
\end{array}
\]
| Alternative 11 |
|---|
| Accuracy | 53.3% |
|---|
| Cost | 7432 |
|---|
\[\begin{array}{l}
t_0 := a \cdot \left(a \cdot angle\right)\\
\mathbf{if}\;a \leq -1850000000:\\
\;\;\;\;-0.011111111111111112 \cdot \left(\pi \cdot t_0\right)\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{+108}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(angle \cdot \left(b \cdot b - a \cdot a\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_0 \cdot \left(\pi \cdot -0.011111111111111112\right)\\
\end{array}
\]
| Alternative 12 |
|---|
| Accuracy | 53.3% |
|---|
| Cost | 7432 |
|---|
\[\begin{array}{l}
t_0 := a \cdot \left(a \cdot angle\right)\\
\mathbf{if}\;a \leq -1850000000:\\
\;\;\;\;-0.011111111111111112 \cdot \left(\pi \cdot t_0\right)\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+108}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\left(angle \cdot \pi\right) \cdot \left(b \cdot b - a \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_0 \cdot \left(\pi \cdot -0.011111111111111112\right)\\
\end{array}
\]
| Alternative 13 |
|---|
| Accuracy | 48.4% |
|---|
| Cost | 7177 |
|---|
\[\begin{array}{l}
\mathbf{if}\;b \leq -7700 \lor \neg \left(b \leq 9.5 \cdot 10^{-24}\right):\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot \left(b \cdot angle\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;angle \cdot \left(\left(\pi \cdot \left(a \cdot a\right)\right) \cdot -0.011111111111111112\right)\\
\end{array}
\]
| Alternative 14 |
|---|
| Accuracy | 50.2% |
|---|
| Cost | 7177 |
|---|
\[\begin{array}{l}
\mathbf{if}\;a \leq -7.2 \cdot 10^{-93} \lor \neg \left(a \leq 9 \cdot 10^{-40}\right):\\
\;\;\;\;\left(a \cdot \left(a \cdot angle\right)\right) \cdot \left(\pi \cdot -0.011111111111111112\right)\\
\mathbf{else}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot \left(b \cdot angle\right)\right)\right)\\
\end{array}
\]
| Alternative 15 |
|---|
| Accuracy | 50.1% |
|---|
| Cost | 7176 |
|---|
\[\begin{array}{l}
t_0 := a \cdot \left(a \cdot angle\right)\\
\mathbf{if}\;a \leq -7.2 \cdot 10^{-93}:\\
\;\;\;\;-0.011111111111111112 \cdot \left(\pi \cdot t_0\right)\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-41}:\\
\;\;\;\;0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot \left(b \cdot angle\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_0 \cdot \left(\pi \cdot -0.011111111111111112\right)\\
\end{array}
\]
| Alternative 16 |
|---|
| Accuracy | 32.0% |
|---|
| Cost | 6912 |
|---|
\[0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(b \cdot b\right)\right)\right)
\]
| Alternative 17 |
|---|
| Accuracy | 36.9% |
|---|
| Cost | 6912 |
|---|
\[0.011111111111111112 \cdot \left(b \cdot \left(angle \cdot \left(b \cdot \pi\right)\right)\right)
\]
| Alternative 18 |
|---|
| Accuracy | 36.9% |
|---|
| Cost | 6912 |
|---|
\[0.011111111111111112 \cdot \left(\pi \cdot \left(b \cdot \left(b \cdot angle\right)\right)\right)
\]