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

/tset/ANSI.os/maths/pow/T.pow 4

>From lsb-distribution-test-1.1.3-1

/tset/ANSI.os/maths/pow/T.pow 4	Warning

	Test Information:
pow(0.0, -1.0) gave
RETURN VALUES: expected: -inf, observed: inf
    Bit Representation: expected value: \000\000\000\000\000\000\360\377
    Bit Representation: observed value: \000\000\000\000\000\000\360\177


Isn't pow(0.0, -1.0) undefined?  From the looks of C99, pow(long
double x, long double y) may cause a domain error if x is zero and y
is less than or equal to zero.



Reply to: