简便运算:0.125+0.25+0.5+1+2+4+8+…+128

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 00:24:33
简便运算:0.125+0.25+0.5+1+2+4+8+…+128简便运算:0.125+0.25+0.5+1+2+4+8+…+128简便运算:0.125+0.25+0.5+1+2+4+8+…+1280

简便运算:0.125+0.25+0.5+1+2+4+8+…+128
简便运算:0.125+0.25+0.5+1+2+4+8+…+128

简便运算:0.125+0.25+0.5+1+2+4+8+…+128
0.125+0.25+0.5+1+2+4+8+…+128
=0.875+(2的8次方-1)
=0.875+255
=255.875

1000

0.125+0.25+0.5+1+2+4+8+…+128
=0.875+(2^8-1)
=0.875+255
=255.875

=0.125+0.125*2+0.125*4+0.125*8+0.125*16+...+0.125*1024
=0.125*(1+2+4+8+16+...1024)
=0.125*(2^0+2^1+2^2+2^3+2^4+...2^10)
=0.125*(2^11-1)
=0.125*2047
=255.875