论文部分内容阅读
四、开平方程序四位机常用于低速数据处理,如计算器或测试系统中物理量的换算等.这时,往往会遇到各种函数的计算问题.对此,首先要根据计算机的指令系统功能,内存容量及运算速度的要求,选择合适的算法.对于初等函数(如三角函数、对数函数等),较流行的是采用座标旋转法,也可用级数展开法或其他一些巧妙的办法.限于篇幅,这里仅介绍一个最简单的函数一求平方根的算法及其程序流程.
Fourth, open the square program Four-bit machine is often used for low-speed data processing, such as calculator or test system, the conversion of physical quantities, etc. At this time, often encountered in the calculation of various functions.In this regard, first of all based on computer instruction system Function, memory capacity and computing speed, select the appropriate algorithm.For elementary functions (such as trigonometric functions, logarithmic functions, etc.), the more popular is the use of coordinate rotation method, also available series expansion method or some other clever Due to space limitations, here is only one of the most simple function to introduce a square root algorithm and its program flow.