• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
What's up with sinf()?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What's up with sinf()?


  • Subject: What's up with sinf()?
  • From: "John C. Randolph" <email@hidden>
  • Date: Tue, 20 Nov 2001 02:10:17 -0800

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


"Computers in the future may weigh no more than 1.5 tons." - Popular
Mechanics, 1949


  • Follow-Ups:
    • Re: What's up with sinf()?
      • From: Nat! <email@hidden>
References: 
 >Re: Loading fonts (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: NSConnection questions
  • Next by Date: Re: Load NIB in dynamically loaded bundle.
  • Previous by thread: Re: Loading fonts
  • Next by thread: Re: What's up with sinf()?
  • Index(es):
    • Date
    • Thread