[Python] Calculate logarithm in Python

Discussão em 'Python' iniciado por Stack, Abril 28, 2025.

  1. Stack

    Stack Membro Participativo

    I am wondering why the result of log base 10 (1.5) in Python is 0.405465108108, while the real answer is 0.176091259.

    This is the code that I wrote:

    import math

    print math.log(1.5)


    How can I solve this issue?

    Continue reading...

Compartilhe esta Página