MATLAB: Does Matlab use ‘log’ instead of ‘ln’

matlab function

Okay, I understand that the function for natural logarithm is "log()" and the function for base 10 logarithm is "log10". However, has anyone ever explained why this is the case? I could understand if "ln()" already existed, but it isn't used for anything! I have heard of so many examples of people getting confused or messing up their code because they used "log" instead of "log10", and I just don't understand why Matlab would make it so confusing.

Best Answer

Probably because most other languages follow that same naming convention. Not sure why, just historical I guess.
Related Question