60 likes | 218 Views
ECE 103 Engineering Programming Chapter 55 C Math Library. Herbert G. Mayer, PSU CS Status 6/4/2014 Initial content copied verbatim from ECE 103 material developed by Professor Phillip Wong @ PSU ECE. Syllabus. Beyond <math.h> GNU Scientific Library. Beyond <math.h>
E N D
ECE 103 Engineering ProgrammingChapter 55C Math Library Herbert G. Mayer, PSU CS Status 6/4/2014 Initial content copied verbatim from ECE 103 material developed by Professor Phillip Wong @ PSU ECE
Syllabus • Beyond <math.h> • GNU Scientific Library
Beyond <math.h> The C90 Standard Library contains only elementary math functions: 2
C99 expands the number of built-in math functions: More macros and constants are defined. Complex numbers, operators, functions are supported. 3
Even more comprehensive math abilities can be added to C by using commercial or free libraries. From Wikipedia article: List of numerical libraries GNU Scientific Library - popular, free numerical analysis library implemented in C. GNU Multi-Precision Library - for doing arbitrary precision arithmetic. IMSL Numerical Libraries - cross-platform libraries containing a comprehensive set of mathematical and statistical functions. LabWindows/CVI - libraries for analysis of measurement data, signal generation, windowing, filter functions, signal processing, linear algebra, array and complex operations, curve fitting and statistics. NAG - collection of numerical analysis routines which can be called from user applications running on a wide variety of hardware platforms. Alternative: Numerical Recipes (book with source code, also online version, not free) http://www.nr.com 4
GNU Scientific Library Free to use: License = GPL Homepage: http://www.gnu.org/software/gsl 5