Skip to main content

Logarithm

What is Log?

The logarithm, or log, is the inverse of the mathematical operation of exponentiation. This means that the log of a number is the number that a fixed base has to be raised to in order to yield the number. Conventionally, log implies that base 10 is being used, though the base can technically be anything. When the base is e, ln is usually written, rather than loge. log2, the binary logarithm, is another base that is typically used with logarithms. If for example:

x = by; then y = logbx; where b is the base

Each of the mentioned bases are typically used in different applications. Base 10 is commonly used in science and engineering, base e in math and physics, and base 2 in computer science.

Basic Log Rules

When the argument of a logarithm is the product of two numerals, the logarithm can be re-written as the addition of the logarithm of each of the numerals.

logb(x × y) = logbx + logby
EX: log(1 × 10) = log(1) + log(10) = 0 + 1 = 1

When the argument of a logarithm is a fraction, the logarithm can be re-written as the subtraction of the logarithm of the numerator minus the logarithm of the denominator.

logb(x / y) = logbx - logby
EX: log(10 / 2) = log(10) - log(2) = 1 - 0.301 = 0.699

If there is an exponent in the argument of a logarithm, the exponent can be pulled out of the logarithm and multiplied.

logbxy = y × logbx
EX: log(26) = 6 × log(2) = 1.806

It is also possible to change the base of the logarithm using the following rule.

logb(x) = 
logk(x)

logk(b)
EX: log10(x) = 
log2(x)

log2(10)

To switch the base and argument, use the following rule.

logb(c) = 
1

logc(b)
EX:   log5(2) = 
1

log2(5)

Other common logarithms to take note of include:

logb(1) = 0
logb(b) = 1
logb(0) = undefined
limx→0+logb(x) = - ∞
ln(ex) = x

Comments

Popular posts from this blog

CKA Simulator Kubernetes 1.22

  https://killer.sh Pre Setup Once you've gained access to your terminal it might be wise to spend ~1 minute to setup your environment. You could set these: alias k = kubectl                         # will already be pre-configured export do = "--dry-run=client -o yaml"     # k get pod x $do export now = "--force --grace-period 0"   # k delete pod x $now Vim To make vim use 2 spaces for a tab edit ~/.vimrc to contain: set tabstop=2 set expandtab set shiftwidth=2 More setup suggestions are in the tips section .     Question 1 | Contexts Task weight: 1%   You have access to multiple clusters from your main terminal through kubectl contexts. Write all those context names into /opt/course/1/contexts . Next write a command to display the current context into /opt/course/1/context_default_kubectl.sh , the command should use kubectl . Finally write a second command doing the same thing into ...

OWASP Top 10 Threats and Mitigations Exam - Single Select

Last updated 4 Aug 11 Course Title: OWASP Top 10 Threats and Mitigation Exam Questions - Single Select 1) Which of the following consequences is most likely to occur due to an injection attack? Spoofing Cross-site request forgery Denial of service   Correct Insecure direct object references 2) Your application is created using a language that does not support a clear distinction between code and data. Which vulnerability is most likely to occur in your application? Injection   Correct Insecure direct object references Failure to restrict URL access Insufficient transport layer protection 3) Which of the following scenarios is most likely to cause an injection attack? Unvalidated input is embedded in an instruction stream.   Correct Unvalidated input can be distinguished from valid instructions. A Web application does not validate a client’s access to a resource. A Web action performs an operation on behalf of the user without checkin...