[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] logic error logarithms

From: yperez_riverol (sent by
Subject: [Help-gsl] logic error logarithms
Date: Wed, 18 Jan 2006 08:19:14 -0800 (PST)

I have a big quetions. 

I want calculate logarithms base 2 of x.
for this my code is:

result = (gsl_sf_log(x)/gsl_sf_log(2));

when x=100 the logic result=2, but the program show me 6.

Please aswer...


View this message in context:
Sent from the Gnu - Gsl - Help forum at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]