Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
Calculate Log(not base e) of a number (Read 992 times)
hyphyInfant
YaBB Newbies
*
Offline


Curious HyPhy user

Posts: 8
Calculate Log(not base e) of a number
Jun 3rd, 2014 at 12:48pm
 
Hello,

     I need to calculate the Log (base j) of a number where j is not e but have no idea how to do this. I will appreciate if anyone could please assist.

hyphyInfant
Back to top
 
 
IP Logged
 
Steven
Global Moderator
*****
Offline


Datamonkey Curious

Posts: 21
Gender: male
Re: Calculate Log(not base e) of a number
Reply #1 - Jun 3rd, 2014 at 1:29pm
 
Hello hyphyinfant,

Please take a look at wikipedia's list of logarithmic identities, specifically, "changing the base".

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login Login

In hyphy, you can test this by issuing the statement:
fprintf(stdout, Log(100)/Log(10));

Thanks,
Steven
Back to top
 
 
IP Logged