
(FPCore (a b angle) :precision binary64 (let* ((t_0 (* PI (/ angle 180.0)))) (+ (pow (* a (cos t_0)) 2.0) (pow (* b (sin t_0)) 2.0))))
double code(double a, double b, double angle) {
double t_0 = ((double) M_PI) * (angle / 180.0);
return pow((a * cos(t_0)), 2.0) + pow((b * sin(t_0)), 2.0);
}
public static double code(double a, double b, double angle) {
double t_0 = Math.PI * (angle / 180.0);
return Math.pow((a * Math.cos(t_0)), 2.0) + Math.pow((b * Math.sin(t_0)), 2.0);
}
def code(a, b, angle): t_0 = math.pi * (angle / 180.0) return math.pow((a * math.cos(t_0)), 2.0) + math.pow((b * math.sin(t_0)), 2.0)
function code(a, b, angle) t_0 = Float64(pi * Float64(angle / 180.0)) return Float64((Float64(a * cos(t_0)) ^ 2.0) + (Float64(b * sin(t_0)) ^ 2.0)) end
function tmp = code(a, b, angle) t_0 = pi * (angle / 180.0); tmp = ((a * cos(t_0)) ^ 2.0) + ((b * sin(t_0)) ^ 2.0); end
code[a_, b_, angle_] := Block[{t$95$0 = N[(Pi * N[(angle / 180.0), $MachinePrecision]), $MachinePrecision]}, N[(N[Power[N[(a * N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(b * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \pi \cdot \frac{angle}{180}\\
{\left(a \cdot \cos t\_0\right)}^{2} + {\left(b \cdot \sin t\_0\right)}^{2}
\end{array}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (a b angle) :precision binary64 (let* ((t_0 (* PI (/ angle 180.0)))) (+ (pow (* a (cos t_0)) 2.0) (pow (* b (sin t_0)) 2.0))))
double code(double a, double b, double angle) {
double t_0 = ((double) M_PI) * (angle / 180.0);
return pow((a * cos(t_0)), 2.0) + pow((b * sin(t_0)), 2.0);
}
public static double code(double a, double b, double angle) {
double t_0 = Math.PI * (angle / 180.0);
return Math.pow((a * Math.cos(t_0)), 2.0) + Math.pow((b * Math.sin(t_0)), 2.0);
}
def code(a, b, angle): t_0 = math.pi * (angle / 180.0) return math.pow((a * math.cos(t_0)), 2.0) + math.pow((b * math.sin(t_0)), 2.0)
function code(a, b, angle) t_0 = Float64(pi * Float64(angle / 180.0)) return Float64((Float64(a * cos(t_0)) ^ 2.0) + (Float64(b * sin(t_0)) ^ 2.0)) end
function tmp = code(a, b, angle) t_0 = pi * (angle / 180.0); tmp = ((a * cos(t_0)) ^ 2.0) + ((b * sin(t_0)) ^ 2.0); end
code[a_, b_, angle_] := Block[{t$95$0 = N[(Pi * N[(angle / 180.0), $MachinePrecision]), $MachinePrecision]}, N[(N[Power[N[(a * N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(b * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \pi \cdot \frac{angle}{180}\\
{\left(a \cdot \cos t\_0\right)}^{2} + {\left(b \cdot \sin t\_0\right)}^{2}
\end{array}
\end{array}
(FPCore (a b angle)
:precision binary64
(let* ((t_0 (* PI (* angle 0.005555555555555556))))
(+
(pow (* a (+ (exp (log1p (cos t_0))) -1.0)) 2.0)
(pow (* b (sin t_0)) 2.0))))
double code(double a, double b, double angle) {
double t_0 = ((double) M_PI) * (angle * 0.005555555555555556);
return pow((a * (exp(log1p(cos(t_0))) + -1.0)), 2.0) + pow((b * sin(t_0)), 2.0);
}
public static double code(double a, double b, double angle) {
double t_0 = Math.PI * (angle * 0.005555555555555556);
return Math.pow((a * (Math.exp(Math.log1p(Math.cos(t_0))) + -1.0)), 2.0) + Math.pow((b * Math.sin(t_0)), 2.0);
}
def code(a, b, angle): t_0 = math.pi * (angle * 0.005555555555555556) return math.pow((a * (math.exp(math.log1p(math.cos(t_0))) + -1.0)), 2.0) + math.pow((b * math.sin(t_0)), 2.0)
function code(a, b, angle) t_0 = Float64(pi * Float64(angle * 0.005555555555555556)) return Float64((Float64(a * Float64(exp(log1p(cos(t_0))) + -1.0)) ^ 2.0) + (Float64(b * sin(t_0)) ^ 2.0)) end
code[a_, b_, angle_] := Block[{t$95$0 = N[(Pi * N[(angle * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]}, N[(N[Power[N[(a * N[(N[Exp[N[Log[1 + N[Cos[t$95$0], $MachinePrecision]], $MachinePrecision]], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(b * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \pi \cdot \left(angle \cdot 0.005555555555555556\right)\\
{\left(a \cdot \left(e^{\mathsf{log1p}\left(\cos t\_0\right)} + -1\right)\right)}^{2} + {\left(b \cdot \sin t\_0\right)}^{2}
\end{array}
\end{array}
Initial program 82.3%
Simplified82.5%
metadata-eval82.5%
div-inv82.4%
expm1-log1p-u82.4%
expm1-undefine82.4%
div-inv82.5%
metadata-eval82.5%
Applied egg-rr82.5%
Final simplification82.5%
(FPCore (a b angle) :precision binary64 (let* ((t_0 (* PI (* angle 0.005555555555555556)))) (+ (pow (* b (sin t_0)) 2.0) (pow (* a (log (exp (cos t_0)))) 2.0))))
double code(double a, double b, double angle) {
double t_0 = ((double) M_PI) * (angle * 0.005555555555555556);
return pow((b * sin(t_0)), 2.0) + pow((a * log(exp(cos(t_0)))), 2.0);
}
public static double code(double a, double b, double angle) {
double t_0 = Math.PI * (angle * 0.005555555555555556);
return Math.pow((b * Math.sin(t_0)), 2.0) + Math.pow((a * Math.log(Math.exp(Math.cos(t_0)))), 2.0);
}
def code(a, b, angle): t_0 = math.pi * (angle * 0.005555555555555556) return math.pow((b * math.sin(t_0)), 2.0) + math.pow((a * math.log(math.exp(math.cos(t_0)))), 2.0)
function code(a, b, angle) t_0 = Float64(pi * Float64(angle * 0.005555555555555556)) return Float64((Float64(b * sin(t_0)) ^ 2.0) + (Float64(a * log(exp(cos(t_0)))) ^ 2.0)) end
function tmp = code(a, b, angle) t_0 = pi * (angle * 0.005555555555555556); tmp = ((b * sin(t_0)) ^ 2.0) + ((a * log(exp(cos(t_0)))) ^ 2.0); end
code[a_, b_, angle_] := Block[{t$95$0 = N[(Pi * N[(angle * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]}, N[(N[Power[N[(b * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(a * N[Log[N[Exp[N[Cos[t$95$0], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \pi \cdot \left(angle \cdot 0.005555555555555556\right)\\
{\left(b \cdot \sin t\_0\right)}^{2} + {\left(a \cdot \log \left(e^{\cos t\_0}\right)\right)}^{2}
\end{array}
\end{array}
Initial program 82.3%
Simplified82.5%
add-log-exp82.5%
Applied egg-rr82.5%
Final simplification82.5%
(FPCore (a b angle) :precision binary64 (let* ((t_0 (* PI (* angle 0.005555555555555556)))) (+ (pow (* b (sin t_0)) 2.0) (pow (* a (cos t_0)) 2.0))))
double code(double a, double b, double angle) {
double t_0 = ((double) M_PI) * (angle * 0.005555555555555556);
return pow((b * sin(t_0)), 2.0) + pow((a * cos(t_0)), 2.0);
}
public static double code(double a, double b, double angle) {
double t_0 = Math.PI * (angle * 0.005555555555555556);
return Math.pow((b * Math.sin(t_0)), 2.0) + Math.pow((a * Math.cos(t_0)), 2.0);
}
def code(a, b, angle): t_0 = math.pi * (angle * 0.005555555555555556) return math.pow((b * math.sin(t_0)), 2.0) + math.pow((a * math.cos(t_0)), 2.0)
function code(a, b, angle) t_0 = Float64(pi * Float64(angle * 0.005555555555555556)) return Float64((Float64(b * sin(t_0)) ^ 2.0) + (Float64(a * cos(t_0)) ^ 2.0)) end
function tmp = code(a, b, angle) t_0 = pi * (angle * 0.005555555555555556); tmp = ((b * sin(t_0)) ^ 2.0) + ((a * cos(t_0)) ^ 2.0); end
code[a_, b_, angle_] := Block[{t$95$0 = N[(Pi * N[(angle * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]}, N[(N[Power[N[(b * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(a * N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \pi \cdot \left(angle \cdot 0.005555555555555556\right)\\
{\left(b \cdot \sin t\_0\right)}^{2} + {\left(a \cdot \cos t\_0\right)}^{2}
\end{array}
\end{array}
Initial program 82.3%
Simplified82.5%
Final simplification82.5%
(FPCore (a b angle) :precision binary64 (+ (pow (* b (sin (* PI (* angle 0.005555555555555556)))) 2.0) (pow (* a (cos (* 0.005555555555555556 (* PI angle)))) 2.0)))
double code(double a, double b, double angle) {
return pow((b * sin((((double) M_PI) * (angle * 0.005555555555555556)))), 2.0) + pow((a * cos((0.005555555555555556 * (((double) M_PI) * angle)))), 2.0);
}
public static double code(double a, double b, double angle) {
return Math.pow((b * Math.sin((Math.PI * (angle * 0.005555555555555556)))), 2.0) + Math.pow((a * Math.cos((0.005555555555555556 * (Math.PI * angle)))), 2.0);
}
def code(a, b, angle): return math.pow((b * math.sin((math.pi * (angle * 0.005555555555555556)))), 2.0) + math.pow((a * math.cos((0.005555555555555556 * (math.pi * angle)))), 2.0)
function code(a, b, angle) return Float64((Float64(b * sin(Float64(pi * Float64(angle * 0.005555555555555556)))) ^ 2.0) + (Float64(a * cos(Float64(0.005555555555555556 * Float64(pi * angle)))) ^ 2.0)) end
function tmp = code(a, b, angle) tmp = ((b * sin((pi * (angle * 0.005555555555555556)))) ^ 2.0) + ((a * cos((0.005555555555555556 * (pi * angle)))) ^ 2.0); end
code[a_, b_, angle_] := N[(N[Power[N[(b * N[Sin[N[(Pi * N[(angle * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(a * N[Cos[N[(0.005555555555555556 * N[(Pi * angle), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
{\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(a \cdot \cos \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right)}^{2}
\end{array}
Initial program 82.3%
Simplified82.5%
Taylor expanded in angle around inf 82.3%
Final simplification82.3%
(FPCore (a b angle) :precision binary64 (+ (pow (* b (sin (* PI (* angle 0.005555555555555556)))) 2.0) (pow a 2.0)))
double code(double a, double b, double angle) {
return pow((b * sin((((double) M_PI) * (angle * 0.005555555555555556)))), 2.0) + pow(a, 2.0);
}
public static double code(double a, double b, double angle) {
return Math.pow((b * Math.sin((Math.PI * (angle * 0.005555555555555556)))), 2.0) + Math.pow(a, 2.0);
}
def code(a, b, angle): return math.pow((b * math.sin((math.pi * (angle * 0.005555555555555556)))), 2.0) + math.pow(a, 2.0)
function code(a, b, angle) return Float64((Float64(b * sin(Float64(pi * Float64(angle * 0.005555555555555556)))) ^ 2.0) + (a ^ 2.0)) end
function tmp = code(a, b, angle) tmp = ((b * sin((pi * (angle * 0.005555555555555556)))) ^ 2.0) + (a ^ 2.0); end
code[a_, b_, angle_] := N[(N[Power[N[(b * N[Sin[N[(Pi * N[(angle * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
{\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {a}^{2}
\end{array}
Initial program 82.3%
Simplified82.5%
Taylor expanded in angle around 0 82.0%
Final simplification82.0%
(FPCore (a b angle) :precision binary64 (+ (pow a 2.0) (pow (* angle (* b (* PI 0.005555555555555556))) 2.0)))
double code(double a, double b, double angle) {
return pow(a, 2.0) + pow((angle * (b * (((double) M_PI) * 0.005555555555555556))), 2.0);
}
public static double code(double a, double b, double angle) {
return Math.pow(a, 2.0) + Math.pow((angle * (b * (Math.PI * 0.005555555555555556))), 2.0);
}
def code(a, b, angle): return math.pow(a, 2.0) + math.pow((angle * (b * (math.pi * 0.005555555555555556))), 2.0)
function code(a, b, angle) return Float64((a ^ 2.0) + (Float64(angle * Float64(b * Float64(pi * 0.005555555555555556))) ^ 2.0)) end
function tmp = code(a, b, angle) tmp = (a ^ 2.0) + ((angle * (b * (pi * 0.005555555555555556))) ^ 2.0); end
code[a_, b_, angle_] := N[(N[Power[a, 2.0], $MachinePrecision] + N[Power[N[(angle * N[(b * N[(Pi * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
{a}^{2} + {\left(angle \cdot \left(b \cdot \left(\pi \cdot 0.005555555555555556\right)\right)\right)}^{2}
\end{array}
Initial program 82.3%
Simplified82.5%
Taylor expanded in angle around 0 82.0%
Taylor expanded in angle around 0 76.7%
unpow276.7%
associate-*r*76.7%
associate-*l*75.8%
*-commutative75.8%
*-commutative75.8%
*-commutative75.8%
associate-*r*75.8%
*-commutative75.8%
associate-*l*75.8%
*-commutative75.8%
Applied egg-rr75.8%
Taylor expanded in b around 0 67.1%
*-commutative67.1%
associate-*r*67.1%
associate-*l*67.1%
unpow267.1%
metadata-eval67.1%
swap-sqr67.1%
*-commutative67.1%
*-commutative67.1%
*-commutative67.1%
unpow267.1%
unpow267.1%
swap-sqr76.7%
swap-sqr76.7%
associate-*r*76.7%
associate-*r*76.7%
unpow276.7%
Simplified76.7%
Final simplification76.7%
(FPCore (a b angle) :precision binary64 (let* ((t_0 (* (* PI 0.005555555555555556) (* angle b)))) (+ (pow a 2.0) (* t_0 t_0))))
double code(double a, double b, double angle) {
double t_0 = (((double) M_PI) * 0.005555555555555556) * (angle * b);
return pow(a, 2.0) + (t_0 * t_0);
}
public static double code(double a, double b, double angle) {
double t_0 = (Math.PI * 0.005555555555555556) * (angle * b);
return Math.pow(a, 2.0) + (t_0 * t_0);
}
def code(a, b, angle): t_0 = (math.pi * 0.005555555555555556) * (angle * b) return math.pow(a, 2.0) + (t_0 * t_0)
function code(a, b, angle) t_0 = Float64(Float64(pi * 0.005555555555555556) * Float64(angle * b)) return Float64((a ^ 2.0) + Float64(t_0 * t_0)) end
function tmp = code(a, b, angle) t_0 = (pi * 0.005555555555555556) * (angle * b); tmp = (a ^ 2.0) + (t_0 * t_0); end
code[a_, b_, angle_] := Block[{t$95$0 = N[(N[(Pi * 0.005555555555555556), $MachinePrecision] * N[(angle * b), $MachinePrecision]), $MachinePrecision]}, N[(N[Power[a, 2.0], $MachinePrecision] + N[(t$95$0 * t$95$0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\pi \cdot 0.005555555555555556\right) \cdot \left(angle \cdot b\right)\\
{a}^{2} + t\_0 \cdot t\_0
\end{array}
\end{array}
Initial program 82.3%
Simplified82.5%
Taylor expanded in angle around 0 82.0%
Taylor expanded in angle around 0 76.7%
unpow276.7%
*-commutative76.7%
*-commutative76.7%
associate-*r*76.7%
*-commutative76.7%
associate-*l*76.7%
*-commutative76.7%
*-commutative76.7%
*-commutative76.7%
associate-*r*76.7%
*-commutative76.7%
associate-*l*76.7%
*-commutative76.7%
Applied egg-rr76.7%
Final simplification76.7%
(FPCore (a b angle) :precision binary64 (+ (pow a 2.0) (* (* 0.005555555555555556 b) (* (* PI angle) (* (* PI 0.005555555555555556) (* angle b))))))
double code(double a, double b, double angle) {
return pow(a, 2.0) + ((0.005555555555555556 * b) * ((((double) M_PI) * angle) * ((((double) M_PI) * 0.005555555555555556) * (angle * b))));
}
public static double code(double a, double b, double angle) {
return Math.pow(a, 2.0) + ((0.005555555555555556 * b) * ((Math.PI * angle) * ((Math.PI * 0.005555555555555556) * (angle * b))));
}
def code(a, b, angle): return math.pow(a, 2.0) + ((0.005555555555555556 * b) * ((math.pi * angle) * ((math.pi * 0.005555555555555556) * (angle * b))))
function code(a, b, angle) return Float64((a ^ 2.0) + Float64(Float64(0.005555555555555556 * b) * Float64(Float64(pi * angle) * Float64(Float64(pi * 0.005555555555555556) * Float64(angle * b))))) end
function tmp = code(a, b, angle) tmp = (a ^ 2.0) + ((0.005555555555555556 * b) * ((pi * angle) * ((pi * 0.005555555555555556) * (angle * b)))); end
code[a_, b_, angle_] := N[(N[Power[a, 2.0], $MachinePrecision] + N[(N[(0.005555555555555556 * b), $MachinePrecision] * N[(N[(Pi * angle), $MachinePrecision] * N[(N[(Pi * 0.005555555555555556), $MachinePrecision] * N[(angle * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
{a}^{2} + \left(0.005555555555555556 \cdot b\right) \cdot \left(\left(\pi \cdot angle\right) \cdot \left(\left(\pi \cdot 0.005555555555555556\right) \cdot \left(angle \cdot b\right)\right)\right)
\end{array}
Initial program 82.3%
Simplified82.5%
Taylor expanded in angle around 0 82.0%
Taylor expanded in angle around 0 76.7%
unpow276.7%
associate-*r*76.7%
associate-*l*75.8%
*-commutative75.8%
*-commutative75.8%
*-commutative75.8%
associate-*r*75.8%
*-commutative75.8%
associate-*l*75.8%
*-commutative75.8%
Applied egg-rr75.8%
Final simplification75.8%
(FPCore (a b angle) :precision binary64 (+ (pow a 2.0) (* (* 0.005555555555555556 b) (* 0.005555555555555556 (* PI (* (* PI angle) (* angle b)))))))
double code(double a, double b, double angle) {
return pow(a, 2.0) + ((0.005555555555555556 * b) * (0.005555555555555556 * (((double) M_PI) * ((((double) M_PI) * angle) * (angle * b)))));
}
public static double code(double a, double b, double angle) {
return Math.pow(a, 2.0) + ((0.005555555555555556 * b) * (0.005555555555555556 * (Math.PI * ((Math.PI * angle) * (angle * b)))));
}
def code(a, b, angle): return math.pow(a, 2.0) + ((0.005555555555555556 * b) * (0.005555555555555556 * (math.pi * ((math.pi * angle) * (angle * b)))))
function code(a, b, angle) return Float64((a ^ 2.0) + Float64(Float64(0.005555555555555556 * b) * Float64(0.005555555555555556 * Float64(pi * Float64(Float64(pi * angle) * Float64(angle * b)))))) end
function tmp = code(a, b, angle) tmp = (a ^ 2.0) + ((0.005555555555555556 * b) * (0.005555555555555556 * (pi * ((pi * angle) * (angle * b))))); end
code[a_, b_, angle_] := N[(N[Power[a, 2.0], $MachinePrecision] + N[(N[(0.005555555555555556 * b), $MachinePrecision] * N[(0.005555555555555556 * N[(Pi * N[(N[(Pi * angle), $MachinePrecision] * N[(angle * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
{a}^{2} + \left(0.005555555555555556 \cdot b\right) \cdot \left(0.005555555555555556 \cdot \left(\pi \cdot \left(\left(\pi \cdot angle\right) \cdot \left(angle \cdot b\right)\right)\right)\right)
\end{array}
Initial program 82.3%
Simplified82.5%
Taylor expanded in angle around 0 82.0%
Taylor expanded in angle around 0 76.7%
unpow276.7%
associate-*r*76.7%
associate-*l*75.8%
*-commutative75.8%
*-commutative75.8%
*-commutative75.8%
associate-*r*75.8%
*-commutative75.8%
associate-*l*75.8%
*-commutative75.8%
Applied egg-rr75.8%
pow175.8%
*-commutative75.8%
associate-*l*75.8%
associate-*l*75.8%
*-commutative75.8%
Applied egg-rr75.8%
unpow175.8%
associate-*l*75.8%
*-commutative75.8%
Simplified75.8%
Final simplification75.8%
herbie shell --seed 2024084
(FPCore (a b angle)
:name "ab-angle->ABCF C"
:precision binary64
(+ (pow (* a (cos (* PI (/ angle 180.0)))) 2.0) (pow (* b (sin (* PI (/ angle 180.0)))) 2.0)))