basic math question: transform a sum of exponents to a sum of logarithms

410 Views Asked by At

I am sure this is a really dumb question but I am having trouble understanding it since I do not have any math background.

I have the logarithms of 2 values:

log(a) = 1347
log(b) = 1351

I am trying to calculate this:

exp( log(a) ) - exp( log(0.1) + log(b) )

I guess by transforming this into a sum/difference of logarithms and working in log scale because when I exponentiate the values become infinite. Basically I am looking for a solution for this in log scale, so that I do not get an Infinite value when entered in a calculator.

Does this make sense?

 log(a)-(0.1*log(b))

Thank you!

-fra

1

There are 1 best solutions below

14
On

Hint: Recall that $$\exp(\log(a))=a\quad\text{and}\quad\exp(x+y)=\exp(x)\exp(y).$$ Here we're using the convention that the base of $\log$ is $e$.

Update: Using the first hint, we have $$\exp(\log a)=e^{1347}.$$ Combining the the second term of the equation, we have $$ \frac{1}{10}\exp(\log b)=\frac{1}{10}\exp({1351}).$$Now, combining the expressions, $$\exp(\log a)-\exp(\log(1/10)+\log(b))=e^{1347}-\frac{1}{10}e^{1351}.$$