10.11.2011, 16:51
How to calculate natural logarithm
Hi! I need some help. I'd like to ask some help in mathematics. I'd like to write a function in a programming language to calculate the natural logarithm of x (the logarithm of x to base e, where the e is the Euler's number: 2 = 2.718281828...).
I tried Mercator series, but it failed, because it only work around 0.
Is there other equation to calculate logarithm what can I use? I found other function for complex logarithm, but I need real numbers.
Thanks,
Zuckerman
Hi! I need some help. I'd like to ask some help in mathematics. I'd like to write a function in a programming language to calculate the natural logarithm of x (the logarithm of x to base e, where the e is the Euler's number: 2 = 2.718281828...).
I tried Mercator series, but it failed, because it only work around 0.
Is there other equation to calculate logarithm what can I use? I found other function for complex logarithm, but I need real numbers.
Thanks,
Zuckerman