Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+9 votes

Is there a difference between lg and log because when looking up lg vs ln sometimes it's referenced as lg and other times as log and google has been no help with it.

asked in CSC371 by (1 point)

1 Answer

+3 votes
 
Best answer

Log refers to base 10: if x = log(y) then 10^x = y
Ln refers to base e: if x = ln(y) then e^x = y
Lg refers to base 2: if x = lg(y) then 2^x = y

Hope this helps!

answered by (1 point)
selected by
...