[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [LCP]Linux sin() code



> > Can some one help me in getting the sin() (math sine function)
function
> > complete code. I mean the complete function with all expansions.

Mohd,
    I'm not sure what you are looking for here, how the standard Linux
library functions do things like the trig functions OR the more general
question, "How is something like that done?" (ie: what are the various
ways that might be done, explanation of why the algorithm is correct,
what are the tradeoffs in the algorithms, etc.).

    In the latter case what you want is not to look up how Linux does it
(not likely to get the explanations you seek however good an approach
might have been chosen) but one of the algorithm books. In a case like
this, you might as well start with the "classics" (eg: have you tried
Donald Knuth "Numerical Algorithms").

Mike