Re: What's up with sinf()?
Re: What's up with sinf()?
- Subject: Re: What's up with sinf()?
- From: Nat! <email@hidden>
- Date: Tue, 20 Nov 2001 22:00:53 +0100
On Dienstag, November 20, 2001, at 11:10 Uhr, John C. Randolph wrote:
>
Sorry if you see this twice. I sent it before, but haven't seen it hit
>
the list yet.
>
>
Something a bit wierd: I'm getting link errors when I try to use
>
sinf()
>
instead of sin(). They're both defined in <math.h>, and presumably in
>
the same library, aren't they? I'd just as soon use sinf(), since what
>
I'm doing doesn't require double precision.
>
>
What I'm doing BTW, is drawing gradients based on sinusoidal and
>
conic-section curves scaled to a 256x256 square. If someone could
>
point
>
me to code for a fixed-point sin function, I'd just as soon use that.
>
I'd rather not embed a sine table in the code, though ;-)
>
>
-jcr
>
I was looking for truncf, floorf but couldn't find them either. But
they are only defined in the man pages, not in /usr/include math.h.
sinf is neither (at least on my system)
Nat!
------------------------------------------------------
Some people drink deep from the fountains of life, and
some just gargle. -- DLR