The error function of real argument can be uniformly approximated to a given accuracy by a single closed-form expression for the whole variable range either in terms of addition, multiplication, division, and square root operations only, or also using the exponential function. The coefficients have been tabulated for up to 128-bit precision. Tests of a computer code implementation using the standard single- and double-precision floating-point arithmetic show good performance and vectorizability.
翻译:实变量误差函数可通过单一闭式表达式在整个变量范围内均匀逼近至给定精度,该表达式仅包含加法、乘法、除法与平方根运算,亦可引入指数函数。相关系数表已编制至128位精度。采用标准单精度与双精度浮点运算的代码实现测试表明,该方法具有良好的计算性能与向量化能力。