• 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
Re: Math question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Math question


  • Subject: Re: Math question
  • From: Enrique Zamudio <email@hidden>
  • Date: Tue, 04 Sep 2001 22:14:09 -0500
  • Organization: Nasoft

Unless it's got a double meaning, I think that

fooSquared = foo^2;

means "foo XOR 2" (a single ^ is a bit-wise XOR and a ^^ is the boolean
XOR).

That comes from C, not ObjC. I don't know if ObjC overrides it or
something, though...

You can use some C math library, like libm that comes with OS X. It has
functions for sines, cosines, exponentials, logarithms, square roots,
rounding, etc.

It's in /usr/lib/libm.dylib (so it's a dynamic library, not a static
one).

eZL


  • Follow-Ups:
    • Re: Math question
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: Annoying compiler warnings (repost)
  • Next by Date: posting replies
  • Previous by thread: Re: Math question
  • Next by thread: Re: Math question
  • Index(es):
    • Date
    • Thread