SRL Archive - Help and Support

Logarithm


n3ss3s

2008-10-02 12:18:29

I saw some discussion about Logarithms, and now I want to know what'd they be most useful for, in programming.

Thanks in advance…

Markus

2008-10-02 12:40:45

Calculating Roots.

n3ss3s

2008-10-02 12:51:34

The obvious, tell me what for in programming do I want to calculate roots?

Markus

2008-10-02 12:52:59

Distances.

Wizzup?

2008-10-02 13:03:36

They are also very usefull in displaying certain results.
Results like, growths in biology or economics. There are more uses though.
Solving stuff in algebra, etc.

n3ss3s

2008-10-02 13:04:41

Hmm, let's see…


C^2 = A^2 + B^2

Now, tell me how do logs help me there :)

Markus

2008-10-02 13:05:57

(c^2 = A^2 + B^2) ^0.5 = C=a+b

nielsie95

2008-10-02 13:13:03

This is basicly it:


n3ss3s

2008-10-02 13:21:18

C=a+b



Does the human kind know how to calculate a and b from c alone? Sounds pretty much impossible… I know you can get one side if you have one angle and two sides :/

mastaraymond

2008-10-02 13:25:09

In programming they are pretty useless. People use the for huge numbers and small numbers. A logarithm is the inverse of 10^x.

n3ss3s

2008-10-02 13:29:28

Okay, do you know about the a or b = ?

Smartzkid

2008-10-02 15:22:38

From: Markus
(c^2 = A^2 + B^2) ^0.5 = C=a+b


Cant do that; it'd be C = Sqrt(a + b) (or c = (a + b) ^ .5 if you want to do it that way)

Ruroken

2008-10-02 22:38:53

[OFFTOPIC]

:(

You guys are so good at math.

[/OFFTOPIC]

Santa_Clause

2008-10-02 23:32:53

From: Markus
(c^2 = A^2 + B^2) ^0.5 = C=a+b


What in God's name is that…that's incorrect :p

P1nky

2008-10-03 10:34:45

wtf is this lol?

caculas :P?

im in algebra 2 and never seen or heard of this YET

n3ss3s

2008-10-03 13:30:39

Logarithm is one of those epic words that you will get when you google "BenLand100".

boberman

2008-10-03 15:15:59

From: ~~Joker~~
wtf is this lol?

caculas :P?

im in algebra 2 and never seen or heard of this YET


I believe they mention it towards the end of algebra 2 and a couple of times in pre-calculus.

Logarithms are useful for exponential growth problems. Interestingly you can also express sin, cos, and tan in terms of a natural log. So in programming, perhaps you only want to us a log call to reduce the size of your program (for whatever insane reason). In that instance, it could be somewhat useful.

The Claw

2008-10-04 09:20:18

Its just basic logarithms and exponentials. if log[base10](x) = y, then 10^y = x. Not really any use in programming that I know of though, but if done with e as the base, then they somewhat realistically model some events in nature, such as population growth among others

Narcle

2008-10-04 09:30:53

I remember doing Logarithms in Pre-calc in High school. I haven't taken a math course since. (gonna suck when i do) But I recall there is Log[Base e](x) and Log[Base 10](x) that are the most common. And you can have any Base with Log technically…. There's a way to even do it on the calculator, like 3Log(x)/4Log(x) or something like that .

Whats the rounded number for e? like 2.4 something lol [with infinite decimals]

Santa_Clause

2008-10-04 19:43:57

From: Narcle
I remember doing Logarithms in Pre-calc in High school. I haven't taken a math course since. (gonna suck when i do) But I recall there is Log[Base e](x) and Log[Base 10](x) that are the most common. And you can have any Base with Log technically…. There's a way to even do it on the calculator, like 3Log(x)/4Log(x) or something like that .

Whats the rounded number for e? like 2.4 something lol [with infinite decimals]


For your first point, you can change the base of any logarithm so that it suits your needs.

Log (Base 7) 9 = Log 9/Log 7.

And the rounded number for e is 2.72.

jhildy

2008-10-07 18:25:08

It can be used for the PH level but idk how that would connect to programming. Those suck btw they are stupid. For everyone who hasn't learned them yet, brace yourself because they are so boring.

The Claw

2008-10-08 00:34:11

Boring is subjective :)