This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

pow math function pb.


Hello,

I've tried this program under cygwin:

#include <math.h>

int main()
{
  printf("%lf\n", pow(2,8));
  return 0;
}

This program returns 8 instead of 256.
I've tried pow(2.0,8), pow(2.0, 8.0), etc ... Seems to me that I've found
a bug ?

instead of pow, I'm using pow(A,B)=exp(B*log(A)) (it works)

Your sincerely,

Yann COLLETTE

PS: What about a bugzilla page ?



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]