Calculation of the length of an arc of the circle of radius 1. Choose x of P.
The program calculates the length L of the union of segments which
approximates the arc AP with the number n of sides gradually doubled
(the figure shows the case in which x=0.8 and n=4)
When you want, you can change P.