Jason Straight <[EMAIL PROTECTED]> writes:

> Got a question:
> 
> I programmed on my Amiga way back in the late 80's early 90's and I'm just 
> now getting back into C programming. One of the first things I run into 
> programming on Mandrake linux the other day was trying to use the sin() 
> function. Oddly enough the books I have on "The standard C Library" and doing 
> "man sin" say the the sin function should be in <math.h>, however I am 
> finding it in tgmath.h. What gives?

?

[gc@obiwan ~] echo -e '#include <math.h>\nint main() { printf("sin 0.5 gives %f\\n", 
sin(0.5)); }' > t.c
[gc@obiwan ~] gcc t.c -lm
[gc@obiwan ~] ./a.out 
sin 0.5 gives 0.479426
[gc@obiwan ~] 


You're probably just grepping out <math.h>. Don't forget that a header
file may include other header file(s).



-- 
Guillaume Cottenceau

Reply via email to