LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   specifying the base of log in bc (https://www.linuxquestions.org/questions/linux-newbie-8/specifying-the-base-of-log-in-bc-846554/)

ghantauke 11-25-2010 12:59 PM

specifying the base of log in bc
 
all the manuals and tutorials on bc only says i can use l(x) to find natural log of x. but i want log of base 2. how would i specify that? thanks in advance.

Nylex 11-25-2010 01:02 PM

You could use the change of base formula.

ghantauke 11-25-2010 03:33 PM

Quote:

Originally Posted by Nylex (Post 4171044)
You could use the change of base formula.

ah! the good ol' conversion formula. how could i forget :D Thanks a lot m8.

Nylex 11-26-2010 02:39 AM

No problem!


All times are GMT -5. The time now is 03:34 PM.