Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > A mathematical framework for cocoa

A mathematical framework for cocoa
Thread Tools
jasper_db
Fresh-Faced Recruit
Join Date: Mar 2001
Status: Offline
Reply With Quote
Feb 26, 2008, 06:55 AM
 
Hellow,

I am currently coding a cocoa/objective-c app. But it seems to be that the class NSNumber does not has methods to calculate the absolute value, sin, cos, tan etc.

Do you have to use another class in the foundation framework or is there somewhere a good 3rd party mathematical framework?

Now I am creating extra methods for NSNumber by creating a categorie for NSNumber. But is there a better solution?

thanks in advance,
Jasper
     
Catfish_Man
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Feb 26, 2008, 01:45 PM
 
#include <math.h>, then use the C functions
     
jasper_db  (op)
Fresh-Faced Recruit
Join Date: Mar 2001
Status: Offline
Reply With Quote
Feb 27, 2008, 05:24 AM
 
thx for helping me
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 02:39 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,