摘要
文中利用C + +面向对象的编程技术 ,设计并实现了不受计算机位数和软件数据类型限制的 ,可以完成任意位数的浮点数存储、运算和输入输出的超长浮点类。并据此提出了基于级数的、对圆周率π和自然对数的底e精确到小数点后任意位的计算方法。
An over-long floating-point data type based on the C++ Object Oriented Programming(OOP)is designed and implemented in this paper The data type is beyond the limitation of software data type and computer digit length and can accomplish storage and arithmetic operation and input/output among the over-long floating/point numbers given at discration On the basis of the data type,we advance a series-based method by which we can calculate values of circumference ratio π and the natural logarithm's fundus e up to any digit after the radix point
出处
《空军工程大学学报(自然科学版)》
CSCD
2001年第5期39-41,共3页
Journal of Air Force Engineering University(Natural Science Edition)