Why isn't sum of logs == log of product?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Why am I getting false for this when the answers are equal?
>> log(3) + log(4) == log(3*4)
ans =
logical
0
>> log(3) + log(4)
ans =
2.4849
>> log(3*4)
ans =
2.4849
0 comentarios
Respuestas (2)
the cyclist
el 3 de Mayo de 2022
Editada: the cyclist
el 3 de Mayo de 2022
They are equal to within double precision:
log(3) + log(4) - log(3*4)
0 comentarios
Ver también
Categorías
Más información sobre Time Series Collections en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!