PDA

View Full Version : Math Functions




TORCH
Feb 24, 2007, 11:12 PM
Hello,

I am a recent "convert" from Pagan PC to the true religion of MAC.

May you recommend sites / hints for mathematical functions in C++ / Xcode?
How do I view the standard C++ /C library? I know math.h exists.


Math. functions I wish to run would include the following:
(1) cross products, summations, vectors, matrices,
(2) derivatives, integrals

Suggestions? Comments? THANKS!!



Am3822
Feb 25, 2007, 01:24 AM
I'm no expert, but to the best of my knowledge OS X's C++ compiler does come with the standard linear algebra packge (LAPACK) and also vectorized version for some of the operations (part of the Accelerate framework).

To the best of my knowledge, numerical derivation and quardature are not part of the standard packages. What libraries have used on your PC? It is more than likely that a compiled version is available for OS X.

Check www.macresearch.org 's performance tutorials (http://www.macresearch.org/performance_tutorial_part_i_introducing_accelerate) on the way to use Accelerate.

irbdavid
Feb 25, 2007, 06:32 AM
GSL is also something you probably want to look at -

http://www.gnu.org/software/gsl/

Saved me a lot of time now and then, but only really used the FFTs and similar from it.