#T47. 求π的值

求π的值

Description

According to the formula:
$arctan(x) = x - \frac{x^3}{3} + \frac{x^5}{5} - \frac{x^7}{7} + ...$
and
$\pi = 6 \cdot arctan\left(\frac{1}{\sqrt{3}}\right)$,
define the function arctan(x)arctan(x) and compute the value of π\pi when the last term is less than 10610^{-6}.

Input Format

(None)

Output Format

The value of π\pi, rounded to 10 decimal places.

(无)

(无)