2004.98+2002.96-2000.94-1998.92+1996.90+1994.88-1992.86-1990.84+...+1916.10+1914.08-1912.06-1910.04最后加上1908.02

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 18:15:45
2004.98+2002.96-2000.94-1998.92+1996.90+1994.88-1992.86-1990.84+...+1916.10+1914.08-1912.06-1910.04最

2004.98+2002.96-2000.94-1998.92+1996.90+1994.88-1992.86-1990.84+...+1916.10+1914.08-1912.06-1910.04最后加上1908.02
2004.98+2002.96-2000.94-1998.92+1996.90+1994.88-1992.86-1990.84+...+1916.10+1914.08-1912.06-1910.04
最后加上1908.02

2004.98+2002.96-2000.94-1998.92+1996.90+1994.88-1992.86-1990.84+...+1916.10+1914.08-1912.06-1910.04最后加上1908.02
应该把数分组,再分成整数部分和小数部分来算.
2004.98、-2000.94一组,2002.96、-1998.92一组,1996.90、-1992.86一组...1994.88、-1990.84一组,1916.10、-1912.06一组,1914.08、-1910.04一组,算出来是4.04*24+1908.02=96.96+1908.02=2004.98
其实可以构造一个函数来算比较容易