Self-contained exponentiation
暂无分享,去创建一个
The traditional implementation for floating-point exponentiation, x raised to the y power, is to compute exp (y ln(x)) using standard subroutines for the logarithm and the exponential function. While it is possible to provide extremely accurate subroutines for these latter functions, we shall shortly see that this is seldom done. Even in those rare cases where excellent subroutines are available, the exponentiation routine, for sound theoretical reasons, is poor. In this paper, we present brief statistics indicative of the quality of these three subroutines in the basic Fortran libraries provided by various manufacturers, a detailed error analysis for exponentiation, and a method for exponentiation via self-contained subroutines.
[1] William J. Cody,et al. Performance testing of function subroutines , 1899, AFIPS '69 (Spring).
[2] W. J. Cody,et al. Performance statistics of the Fortran IV (H) library for the IBM system/360 , 1967, SGNM.