Results 1 to 3 of 3
hi all, i'm new at programming in linux in C and i have 3 questions:
1-how is the math library available with the file system?
2-what are the names of ...
- 10-28-2007 #1Just Joined!
- Join Date
- Oct 2007
- Posts
- 1
Math library
hi all, i'm new at programming in linux in C and i have 3 questions:
1-how is the math library available with the file system?
2-what are the names of the files that correspond to the math library?
3-what are the possible way for linking against the math library?
plz help..thnx for ur concern
- 10-28-2007 #2Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
Hi,
In this thread you can find some explainations about the use of math library:
http://www.linuxforums.org/forum/lin...n-problem.html
RegardsLast edited by Franklin52; 10-28-2007 at 02:59 PM. Reason: Replace wrong url
- 10-28-2007 #3I don't know what you mean by "with the file system", but you use functions from the math library as follows:how is the math library available with the file system?
- Find the names of functions you can use here.
- For each one, get its man page by doing something line:
Code:man fabs
- In your source code, use #include <math.h> so you get the declarations for these functions.
- When you link, put this option on the gcc command line:
Code:-lm (that's ell, em)
Hope this helps.


Reply With Quote