Well, Ill be compiling it on a VC 6 machine. In truth, I dont think the function should be so complex that you require Linux specific OS calls.
As for rashikil's lame attempts to prove his intelligence, Id say he has succeeded, although not in the way he probably intended.
defines a line with slope 0.0 and zero inflection points. Since an input of infinity into your equation produces erronious results, it is hence disqualified.