PDA

View Full Version : Trigonometric functions in c



_hawk_
December 5th, 2007, 08:12 PM
Hi!

Anybody know how to get a sine function in c? I've tried googling it, but all I've found is that it's supposed to be in math.h, in which, at least in my case, it is not. I've even tried going into the file looking for anything sine-related, but have been unsuccessful.

I'd really appreciate an answer as it is nearing the time limit for my paper :)

-Rick-
December 5th, 2007, 08:21 PM
The manual page says it's really in there, also in C you have to link to the 'm' library for math functions (-lm).

_hawk_
December 5th, 2007, 09:13 PM
Yeah, well that did the trick... Thanks!