skip to main content
article
Free Access

Implementing the complex arcsine and arccosine functions using exception handling

Published:01 September 1997Publication History
Skip Abstract Section

Abstract

We develop efficient algorithms for reliable and accurate evaluatins 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.

References

  1. ABRAMOWITZ, M. AND STEGUN, I. 1972. Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. Applied Mathematics Series, vol. 55. 10th printing. National Bureau of Standards, Washington, D.C.]] Google ScholarGoogle Scholar
  2. ANSI. 1978. American National Standard programming language FORTRAN: ANSI X3.9- 1978. American National Standards Institute, New York, NY.]]Google ScholarGoogle Scholar
  3. CHURCHILL, R. V., BROWN, J. W., AND VERHEY, R. F. 1974. Complex Variables and Applications. 3rd ed. McGraw-Hill, Inc., New York, NY.]]Google ScholarGoogle Scholar
  4. CODY, W. J. 1988. Algorithm 665: MACHAR: A subroutine to dynamically determine machine parameters. ACM Trans. Math. Softw. 14, 4 (Dec.), 303-311.]] Google ScholarGoogle Scholar
  5. HULL, T. E., FAIRGRIEVE, T. F., AND TANG, P. T.P. 1994a. Implementing complex elementary functions using exception handling. ACM Trans. Math. Softw. 20, 2 (June), 215-244.]] Google ScholarGoogle Scholar
  6. HULL, T. E., FAIRGRIEVE, T. F., AND TANG, P. T. P. 1994b. Corrigenda: Implementing complex elementary functions using exception handling. ACM Trans. Math. Softw. 20, 4 (Dec.).]] Google ScholarGoogle Scholar
  7. IEEE. 1985. ANSI/IEEE standard for binary floating point arithmetic: Standard 754- 1985. IEEE Press, Piscataway, NJ.]]Google ScholarGoogle Scholar
  8. IFIP WORKING GROUP 2.5. 1993. The enable construct for exception handling in Fortran 90. SIGNUM Newsl. 28, 4 (Oct.), 7-16.]] Google ScholarGoogle Scholar
  9. INTERMETRICS. 1994. Ada 9X reference manual. Intermetrics, Inc., Burlington, MA.]]Google ScholarGoogle Scholar
  10. SUN MICROSYSTEMS. 1991. Numerical computations guide: Part number 800-5277-10, Revision A. Sun Microsystems, Incorporated, Mountain View, CA.]]Google ScholarGoogle Scholar
  11. TYDEMAN, F. J. 1992. Merging complex and IEEE-754. Rep. 92-061 of ANSI X3J11.1 (NCEG). American National Standards Institute, New York, NY.]]Google ScholarGoogle Scholar

Index Terms

  1. Implementing the complex arcsine and arccosine functions using exception handling

            Recommendations

            Comments

            Login options

            Check if you have access through your login credentials or your institution to get full access on this article.

            Sign in

            Full Access

            • Published in

              cover image ACM Transactions on Mathematical Software
              ACM Transactions on Mathematical Software  Volume 23, Issue 3
              Sept. 1997
              152 pages
              ISSN:0098-3500
              EISSN:1557-7295
              DOI:10.1145/275323
              Issue’s Table of Contents

              Copyright © 1997 ACM

              Publisher

              Association for Computing Machinery

              New York, NY, United States

              Publication History

              • Published: 1 September 1997
              Published in toms Volume 23, Issue 3

              Permissions

              Request permissions about this article.

              Request Permissions

              Check for updates

              Qualifiers

              • article

            PDF Format

            View or Download as a PDF file.

            PDF

            eReader

            View online with eReader.

            eReader