Skip to main content
GameDev.net gamedev.net
🔒 Locked

Logorithms?

Started by Nice Coder Apr 13, 2005 at 7:16 AM 7 replies 1.9k views
Original Post
Nice Coder
Nice Coder
Does anybody know how exactly are logorithms calculated and why? Its just goggle is no longer my friend. From, Nice coder
Click here to patch the mozilla IDN exploit, or click Here then type in Network.enableidn and set its value to false. Restart the browser for the patches to work.
Illco
Illco
Possibly because it is spelled 'logarithms'.

Greetz,

Illco
Nice Coder
Nice Coder
Either way, it can't find it. (and google has a spell checker)

From,
Nice coder
Click here to patch the mozilla IDN exploit, or click Here then type in Network.enableidn and set its value to false. Restart the browser for the patches to work.
darookie
darookie
I cannot imagine that...
Anyway a simple method for calculating the natural logarithm is this (any other can be calculated by using the rule logab * logba = 1, resulting in logcb = logab / logac):
ln x = 2 * ( (x - 1) / (x + 1) + (x - 1)<sup>3</sup> / 3*(x - 1)<sup>3</sup> + (x - 1)<sup>5</sup> 7 5*(x + 1)<sup>5</sup> ... ) =Σ (x - 1) <sup>2i+1</sup> / (2i+1)*(x + 1)<sup>2i+1</sup> for i <= 0 <= n

This method converges slowly for x near 0 and for large values of x.
There are many other methods that converge faster - try a Wiki-page.
janos
janos
maybe the main thing you have to know about logarithms is
that

ln(a)+ln(b) = ln(a*b)

also

exp(a)*exp(b)=exp(a+b)

and ln(exp(x)) = x

you can also note that the derivative of
x -> ln(x)
is
x -> 1/x



Act of War - EugenSystems/Atari
Sagar_Indurkhya
Sagar_Indurkhya
you could Euler's method, though you would be better off using taylor series for logs.

Note that most log functions on calculators are base 10.
Trap
Trap
Logarithms are computed by parsing http://www.google.com/search?q=log%28138%29
Nice Coder
Nice Coder
Ha, ha ha. (but what happened before the big G?)

Exelant. Eulars method.

Time for [google].

From,
Nice coder
Click here to patch the mozilla IDN exploit, or click Here then type in Network.enableidn and set its value to false. Restart the browser for the patches to work.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.