cmath and pow
Gabriel Dos_Reis
Gabriel.Dos_Reis@sophia.inria.fr
Thu Sep 30 15:24:00 GMT 1999
Chris Prince <prince@wcug.wwu.edu> writes:
| On 30 Sep 1999, Gabriel Dos_Reis wrote:
|
| > Chris Prince <prince@wcug.wwu.edu> writes:
| >
| > | I was just recently playing with a few functions and I noticed that the
| > | pow method crashes my machine. Runs me right to a bus error.
| >
| > A misalignment?
| >
| > Hum... What do you get with the 'pow' from <math.h> (not <cmath>)
| >
| > If the result is different then I'll be interested in the prototype of
| > pow() in <math.h>
|
| the result is different, one crashes my machine the other does not (the
| one that doesn't crash my machine is math.h).
|
| Here are the two code fragments:
| #include <math.h>
| int main() {
| double powertest = pow(2., 0);
| }
Then I'd like to see pow() prototype (in <math.h>)
-- Gaby
More information about the Libstdc++
mailing list