> When disregarding the 'isnan()', the function is returning a '2' when > one or both the arguments is a NaN. Do you suppose this is correct? > > If you ask me, it should exit on the first compare and thus return a > not-a-number.
You cannot "exit" a comparison in C, one of the branches is always taken, which means that npx_dr11_inverse_tangent_series can never return -NAN. -- Eric Botcazou