关于Fortran 2008复数内在函数在分支割线上的实现质量的评估
On quality of implementation of Fortran 2008 complex intrinsic functions on branch cuts
AI总结:
本文评估了Fortran 2008复数函数在分支割线上的实现质量,发现多个编译器存在结果符号错误或数值异常问题,建议需特殊代码处理。
摘要:
复数函数中的分支割线与符号零和符号无穷大在断裂力学、喷流和机翼分析中有重要应用。本文通过IEEE三种浮点二进制格式(binary32、binary64和binary128)对Fortran 2008中的LOG、SQRT、ASIN、ACOS、ATAN、ASINH、ACOSH和ATANH函数在分支割线上的实现进行基准测试,使用8种编译器(GCC、Flang、Cray、Oracle、PGI、Intel、NAG和IBM)报告结果。测试发现多个失败案例,如结果符号错误或意外溢出、下溢或NaN。结论指出,这些Fortran 2008内在函数在许多编译器中的实现质量尚不足以消除对分支割线特殊代码的依赖。测试结果补充了分支割线的共形映射和函数值的详细推导,作为参考。基准测试结果可在cmplx.sf.net免费获取。本文对使用复数函数的工程师以及编译器和数学库开发者具有参考价值。
英文摘要:
Branch cuts in complex functions in combination with signed zero and signed infinity have important uses in fracture mechanics, jet flow and aerofoil analysis. We present benchmarks for validating Fortran 2008 complex functions - LOG, SQRT, ASIN, ACOS, ATAN, ASINH, ACOSH and ATANH - on branch cuts with arguments of all 3 IEEE floating point binary formats: binary32, binary64 and binary128. Results are reported with 8 Fortran 2008 compilers: GCC, Flang, Cray, Oracle, PGI, Intel, NAG and IBM. Multiple test failures were revealed, e.g. wrong signs of results or unexpected overflow, underflow, or NaN. We conclude that the quality of implementation of these Fortran 2008 intrinsics in many compilers is not yet sufficient to remove the need for special code for branch cuts. The test results are complemented by conformal maps of the branch cuts and detailed derivations of the values of these functions on branch cuts, to be used as a reference. The benchmarks are freely available from cmplx.sf.net. This work will be of interest to engineers who use complex functions, as well as to compiler and maths library developers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。