Oh, I see. You missed a "using namespace std;" in your testcase, or neglected to write std::exp(). There is a difference between plain exp() and std::exp(). -- Alan Modra Australia Development Lab, IBM