Implementing the complex arcsine and arccosine functions using exception handling

被引:3
作者
Hull, TE
Fairgrieve, TF
Ping, TPT
机构
[1] Ryerson Polytech Inst, Dept Math Phys & Comp Sci, Toronto, ON M5B 2K3, Canada
[2] Lawrence Berkeley Lab, Natl Energy Res Sci Comp Sci, Berkeley, CA 94720 USA
[3] Univ Toronto, Dept Comp Sci, Toronto, ON, Canada
来源
ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE | 1997年 / 23卷 / 03期
关键词
complex elementary functions; implementation;
D O I
10.1145/275323.275324
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We develop efficient algorithms for reliable and accurate evaluations of the complex arcsine and arccosine functions. A tight error bound is derived for each algorithm; the results are valid for all machine-representable points in the complex plane. The algorithms are presented in a pseudocode that has a convenient exception-handling facility. Corresponding Fortran 77 programs for an IEEE environment have also been developed to illustrate the practicality of the algorithms, and these programs have been tested very carefully to help confirm the correctness of the algorithms and their error bounds. The results of these tests are included in the article, but the Fortran 77 programs are not (these programs are available from Fairgrieve). Tests of other widely available programs fail at many points in the complex plane, and otherwise are slower and produce much less accurate results.
引用
收藏
页码:299 / 335
页数:37
相关论文
共 11 条
[1]  
Abramowitz M., 1972, APPL MATH SERIES, V55
[2]  
*ANSI, 1978, AM NAT STAND PROGR L
[3]  
Churchill R. V., 1974, COMPLEX VARIABLES AP
[4]   ALGORITHM 665 MACHAR - A SUBROUTINE TO DYNAMICALLY DETERMINE MACHINE PARAMETERS [J].
CODY, WJ .
ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE, 1988, 14 (04) :303-311
[5]   IMPLEMENTING COMPLEX ELEMENTARY-FUNCTIONS USING EXCEPTION HANDLING [J].
HULL, TE ;
FAIRGRIEVE, TF ;
TANG, PTP .
ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE, 1994, 20 (02) :215-244
[6]  
HULL TE, 1994, ACM T MATH SOFTWARE, V20, P4
[7]  
*IEEE, 1985, 7541985
[8]  
*SUN MICR, 1991, NUM COMP GUID
[9]  
TYDEMAN FJ, 1992, 92061 AM NAT STAND I
[10]  
1994, ADA 9X REFERENCE MAN