#P1281. 练46.1 求π的值

练46.1 求π的值

Description

根据公式:$arctanx(x)=x-\frac{x^3}{3}+\frac{x^5}{5}-\frac{x^7}{7}+...$和$π=6arctanx(\frac{1}{\sqrt{3}})$。
定义函数 $arctanx(x)$,求当最后一项小于$10^{-6}$时$π$的值。

Input Format

Output Format

$π$ 的值。保留到小数点后$10$位。