函数pi的功能是根据近似公式: 求π值。请在下面的函数中填空,完成求π的功能。
#include <math.h>double pi( long n ){double s = 0.0; long i;for ( i = 1; i <= n; i++ )s = s + ___;return(sqrt( 6 * s ) );}