Question

MATLAB problem. Prove that the log of a product is equal to the sum of the...

MATLAB problem. Prove that the log of a product is equal to the sum of the individual logs. ln (xy) = ln (x) + ln(y) Use the natural logarithm [base e]. Test for the following values of x and y. (1, 2) , (2,1), (e,e), (10,1000), e is the natural number, use an exact value, do not use an approximation. In the results explain your answers.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer

We have to prove that

L.H.S. = R.H.S. (proved)

The below MATLAB program tests the given values of x and y.

#values of x
x = [1, 2 , e, 10];
#values of y
y = [2, 1, e, 1000];

#calculate the LHS of the given equation
lhs = log (x.*y);
#calculate the RHS of the given equation
rhs = log(x) + log(y);

#compare LHS with RHS
lhs == rhs

Add a comment
Know the answer?
Add Answer to:
MATLAB problem. Prove that the log of a product is equal to the sum of the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT