Message Boards Message Boards


Natural logarithm of quotient of two equal numbers

Posted 10 years ago
1 Reply
3 Total Likes
Hello! I'm using Mathematica and I've come across following puzzling results:
 In[12]:= Log[8.62096/8.62096]
 Out[12]= 0.
 Out[13]= -1.11022*10^-16
 Out[14]= 0.
When I calculate logarithm of quotient of two equal numbers I do not always get zero. What might be the reason for that?
POSTED BY: MIkhail Kamrotov
The second logarithm's argument is not quite 1., because of floating point arithmetic:
In[12]:= 8.62097/8.62097 // InputForm

Out[12]//InputForm= 0.9999999999999999
POSTED BY: Ilian Gachevski
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract