This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/4407] signgam value for lgamma on special values


------- Additional Comments From jakub at redhat dot com  2007-04-23 14:19 -------
For lgamma (-0.) according to
http://www.opengroup.org/onlinepubs/009695399/functions/lgamma.html
If x is a non-positive integer, a pole error should occur and +HUGE_VAL be
returned, the same as for lgamma (0.).
That's different from tgamma
http://www.opengroup.org/onlinepubs/009695399/functions/tgamma.html
which has:
If x is +-0, a pole error shall occur, and tgamma(), tgammaf(), and tgammal()
shall return +-HUGE_VAL, +-HUGE_VALF, and +-HUGE_VALL, respectively.

As for the second part, I believe the current behavior is ok, NaNs don't have
a sign and thus the content of signgam after lgamma(NAN) is IMNSHO undefined.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4407

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]