递归求简单交错幂级数的部分和 递归思路:x - x 乘以 函数的上一次次幂。 double fn( double x, int n ) { if(n == 1) return x; else return x - x * fn(x, n - 1); }