T
Travis Parks
Hello:
I am sure this gets asked all the time, but how do I see the
implementations for math.h functions?
I am currently using GCC on Cygwin 1.7.7-1. All the headers have are a
bunch of #defines. I don't really care if these functions are written
in assembler or whatever, just so long as I can see how they work.
I have been Googling and it seems like some people believe the FPU is
implementing these functions in hardware. If that is the case, is
there a good resource for how these functions would be written in a
high-level language, like C?
Also, outside of the standard functions, is there a good open-source
library where I can find implementations for things like arbitrary
precision integers, rationals, complex numbers, statistics, calculus,
etc.
If you haven't guessed, I am trying to create a small repository of
algorithms for mathematics. It would be nice to learn how they worked
under-the-hood. I am trying to create a project where people like
myself can quickly find code. Nothing is more discouraging than
endless directory paths and hundreds of lines of macros.
Any help would be appreciated.
Thanks,
Travis Parks
I am sure this gets asked all the time, but how do I see the
implementations for math.h functions?
I am currently using GCC on Cygwin 1.7.7-1. All the headers have are a
bunch of #defines. I don't really care if these functions are written
in assembler or whatever, just so long as I can see how they work.
I have been Googling and it seems like some people believe the FPU is
implementing these functions in hardware. If that is the case, is
there a good resource for how these functions would be written in a
high-level language, like C?
Also, outside of the standard functions, is there a good open-source
library where I can find implementations for things like arbitrary
precision integers, rationals, complex numbers, statistics, calculus,
etc.
If you haven't guessed, I am trying to create a small repository of
algorithms for mathematics. It would be nice to learn how they worked
under-the-hood. I am trying to create a project where people like
myself can quickly find code. Nothing is more discouraging than
endless directory paths and hundreds of lines of macros.
Any help would be appreciated.
Thanks,
Travis Parks