Is the log() function faulty?

16 次查看(过去 30 天)
CAS
CAS 2016-5-3
回答: CAS 2016-5-3
When I use the log function [log (x)] to log the value 616, I am getting the answer 6.4232. However, when I calculate it on windows excel or my calculator I get 2.789580712.
I'd like to know why I am getting a different answer on Matlab.

采纳的回答

Stephen23
Stephen23 2016-5-3
编辑:Stephen23 2016-5-3
The documentation tells us that in MATLAB log calculates the natural logarithm, and log10 the base ten logarithm.
>> log(616)
ans = 6.4232
>> log10(616)
ans = 2.7896
The MATLAB help is great: it tells us how MATLAB works. You should try using it.
  1 个评论
John D'Errico
John D'Errico 2016-5-3
Oh, wait. You mean the help is there for us to read? Just think - all this time I've wasted, wondering what stuff does.

请先登录,再进行评论。

更多回答(1 个)

CAS
CAS 2016-5-3
Thank you very much for your help!!!:)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by