I want to know how C
library implements the sqrt()
function. I got the header file math.h
in /usr/include
. But where is the actual implementation? I am doing a numerical computation project and would like to see the implementations of all the functions available in math.h
.
Where are the implementations of the C libraries?
255 views Asked by user2277550 At
1
You'll have a generic answer for your query in this SO thread.
However, to be specific to this question, to get the math related functions, you need to search
libm
source code insideglibc
. That is present in the directory namedmath
.An online browsable version is available here.