Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / October 2005



Tip: Looking for answers? Try searching our database.

Where are my Math ?!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brieuc Desoutter - 11 Oct 2005 23:25 GMT
Hi there,

I'am more a Java guy than a C/C++ or Objective-C but I'm giving a try
at the latter...

I was wondering if there were a class like NSMath or an objective-C
equivalent to the
java.lang.Math class where all the math constants and functions reside.

I remember from school the <math.h> header from the standard C library
but I can't find constant
definition or macros for PI, e, ...

Are they declared/defined somewhere or do I have to do it myself somewhere ?

Thanks for your helps

Brieuc
Frédéric Testuz - 12 Oct 2005 06:39 GMT
<Brieuc> wrote:

> Hi there,
>
[quoted text clipped - 10 lines]
>
> Are they declared/defined somewhere or do I have to do it myself somewhere ?

Open /usr/include/math.h and follow the #include statement. In my case I
found all you want in /usr/include/architecture/ppc/math.h.

Signature

Frédéric Testuz
<mailto:ftestuz@SANSPUBmac.com.invalid>

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.