Re: [Mingw-msys] [mingw - MSYS] bash empty for-loop
- Date: Fri, 7 Sep 2007 16:55:48 -0400
- From: Georg Nikodym <georgn@xxxxxxxxxx>
- Subject: Re: [Mingw-msys] pow(5,2)=24 ?????!!!!!
On Sep 7, 2007, at 16:37, Michael Chen wrote:
int s = (int) pow(l,d);
printf("%d\t%d\t%d\n",l,d,s);
And I tried several (l,d), results are:
2 2 4
3 2 9
4 2 16
5 2 24 <= this one is wrong
6 2 36
....
What shall I use then? my variable s, l, and d are integers!
http://www.cs.berkeley.edu/~wkahan/Stnfrd50.pdf Other great stuff: http://www.cs.berkeley.edu/~wkahan/ -g
Attachment:
PGP.sig
Description: This is a digitally signed message part
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Mingw-msys mailing list Mingw-msys@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/mingw-msys
- References:
- [Mingw-msys] [mingw - MSYS] bash empty for-loop
- From: SourceForge.net
- Re: [Mingw-msys] [mingw - MSYS] bash empty for-loop
- From: Michael S. Zick
- Re: [Mingw-msys] [mingw - MSYS] bash empty for-loop
- From: Max T. Woodbury
- Re: [Mingw-msys] [mingw - MSYS] bash empty for-loop
- From: Earnie Boyd
- Re: [Mingw-msys] [mingw - MSYS] bash empty for-loop
- From: Max T. Woodbury
- Re: [Mingw-msys] [mingw - MSYS] bash empty for-loop
- From: Earnie Boyd
- [Mingw-msys] [mingw - MSYS] bash empty for-loop
- Prev by Date: Re: [Mingw-msys] [mingw - MSYS] Bison for MSYS (was: bash empty for-loop)
- Next by Date: [Mingw-msys] [mingw - MSYS] RE: bash empty for-loop
- Previous by thread: Re: [Mingw-msys] [mingw - MSYS] bash empty for-loop
- Next by thread: [Mingw-msys] [mingw - MSYS] RE: bash empty for-loop
- Index(es):