Comparison of Two Algorithms for calculating natural logarithm, calculation logarithm AlgorithmIntroduction
Some time ago, I wrote two essays about algorithms used to calculate the natural logarithm, using the elliptic θ function-arithmetic
Introduction
In 1982, tateaki. Sasaki and yasumasa Kanada published a paper: practically Fast Multiple-Precision Evaluation of log (X ). In this four-page paper, they introduced a quick way to calculate the natural logarithm.Algorithm. C #
Program
Introduction
Some time ago, I wrote two articles to calculate the natural logarithmAlgorithmUsing the elliptic θ function-arithmetic geometric mean and Taylor series expansion respectively. What is the performance of these two algorithms? The
IntroductionSome time ago, I wrote two essays on algorithms for calculating natural logarithms, using the elliptical θ function-arithmetic geometric averaging and Taylor series expansions-to calculate. What about the performance of the two
IntroductionSome time ago. I wrote two essays on algorithms for calculating natural logarithms, using the elliptical θ function-arithmetic geometric averaging and Taylor series expansions.So what about the performance of the two algorithms? In the
' e=1+1/1! +1/2! +1/3! +1/4! +......+1/n!
' Φkρ=αe
' Wherein, alpha and k are constants, φ is polar, and rho is the polar diameter, and E is the base of the natural logarithm. For the sake of discussion, we define e or the form of "natural law"
WPS Table The method of finding the value of natural logarithm e:
Open the WPS table and create a new workbook.
A1 Enter the n value, B1 to find the E value. Because e is an irrational number, you need to pull B a little wider. In B1
The main reason is that the teacher used different methods to calculate the natural logarithm and understand the characteristics of different parallel languages. So I used multithreading. After OpenMP, I want to use opencl to implement the following.
Like this common "ordinary" calculator, in fact everything can be counted (with the limit, what can become subtraction). Among them, the natural logarithm is especially good, this article will provide a method, mainly using the calculator's Open
The log () method used to calculate the logarithm in Python
This article mainly introduces the log () method used to calculate the logarithm in Python. It is a required method for getting started with Python. For more information, see
The log ()
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.