How do I calculate the log of a number using bc?

前端 未结 8 707
说谎
说谎 2020-12-28 11:35

This is the first time I am using bc. I want to calculate the log (base 10) of a number. How do I this?

8条回答
  •  执笔经年
    2020-12-28 12:20

    bc -l
    
    l(____) 
    

    (fill in the blank there with your number)

    I found tutorials at:

    http://unix-simple.blogspot.com/2006/10/unix-basic-calculator.html

    and

    http://unix-simple.blogspot.com/2006/10/taking-roots-with-unix-basic.html

提交回复
热议问题