ROSECODE 460
Polygonal billiards
Given a regular -sided polygon ( ) billiard table and its vertices are labeled , , , in anticlockwise direction. A billiard ball is placed in the middle of the edge . When it is launched at a certain angle, it keeps moving and reflects off the sides of the table. Suppose the table and the ball are ideal, and reflection and incidence angles are the same when bouncing off the edge.
Let’s take an equilateral triangle table ( = 3) as an example.

When the ball is launched at angle 60 degrees, it hits the edge and , and just returns to start point. For the -sided polygon, there exists a continuous launch angle range such that the ball hits edge , , , in turn and return to edge at last. For the equilateral triangle table, the minimum launch angle is 40.893394649131 degrees, and the maximum one is 73.897886248014 degrees. See blue arrows in above figure.
Let be the length of launch angle range satisfying above rule for a regular -sided polygon, in degrees. You are given , and .
Find . Give your answer rounded to 10 digits after the decimal point.
Let’s take an equilateral triangle table (

When the ball is launched at angle 60 degrees, it hits the edge
Let
Find