#P282. 练46.1 求π的值

练46.1 求π的值

Description

According to the formula: $arctan(x)=x-\frac{x^3}{3}+\frac{x^5}{5}-\frac{x^7}{7}+...$ and π=6arctan(13)π=6arctan(\frac{1}{\sqrt{3}}).
Define the function arctan(x)arctan(x) and find the value of ππ when the last term is less than 10610^{-6}.

Input Format

None

Output Format

The value of ππ rounded to 10 decimal places.

Sample

None
None