摘要
π在科学中有着十分重要的作用,古今中外,世界各国的科学家发现了各种各样的计算方法,有几何方法、有级数方法,π精确度也逐渐提高。由于π的值无法计算十分精确,太多的位数也无意义,论文根据概率计算方法并编写C程序估算π的值。
From ancient times to modem times, π plays a very important role in science, scientists of all over the world found a variety of computational methods, geometric methods, series method, and so on. The π accuracy gradually improves. Because the value of π can not be calculated very accurately, too many digits become meaningless. This paper uses probabiLity calculation method to write a C program and esti- mate the value of π.
出处
《机电产品开发与创新》
2012年第6期103-104,共2页
Development & Innovation of Machinery & Electrical Products
关键词
π的值
概率
C算法
数据
the value of pi
the probability
C algorithms
data