Re: Math question
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