HyPhy message board
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
Methodology Questions >> How to >> Calculate Log(not base e) of a number
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1401824880

Message started by hyphyInfant on Jun 3rd, 2014 at 12:48pm

Title: Calculate Log(not base e) of a number
Post by hyphyInfant on 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

Title: Re: Calculate Log(not base e) of a number
Post by Steven on 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

HyPhy message board » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2024. All Rights Reserved.