> According to ISO/IEC 9899:TC2 (ISO C99)
> A domain error may occur if x is zero and y is zero. (in function pow).

This standard also says (see subsection F.9.4.4, page 460):

   pow(x, 0) returns 1 for any x, even a NaN.

However, this does not mean that the GNU MathProg must follow the same
convention :)

> Obviously this is implementation dependent.

> Hence the code in fp_power has to check to be compatible with different
> C compilers.

It does check.



_______________________________________________
Bug-glpk mailing list
Bug-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-glpk

Reply via email to