lgamma.3 (dc36d6f9bb1753f3808552f3afd30eda9a7b206a) lgamma.3 (e38f2308273c8a51ec45f013d22c963590917cca)
1.\" Copyright (c) 1985, 1991 Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 11 unchanged lines hidden (view full) ---

20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
1.\" Copyright (c) 1985, 1991 Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 11 unchanged lines hidden (view full) ---

20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.Dd December 8, 2017
28.Dd March 1, 2024
29.Dt LGAMMA 3
30.Os
31.Sh NAME
32.Nm lgamma ,
33.Nm lgamma_r ,
34.Nm lgammaf ,
35.Nm lgammaf_r ,
36.Nm lgammal ,

--- 125 unchanged lines hidden (view full) ---

162and
163.Fn lgammal_r
164return appropriate values unless an argument is out of range.
165Overflow will occur for sufficiently large positive values, and
166non-positive integers.
167For large non-integer negative values,
168.Fn tgamma
169will underflow.
29.Dt LGAMMA 3
30.Os
31.Sh NAME
32.Nm lgamma ,
33.Nm lgamma_r ,
34.Nm lgammaf ,
35.Nm lgammaf_r ,
36.Nm lgammal ,

--- 125 unchanged lines hidden (view full) ---

162and
163.Fn lgammal_r
164return appropriate values unless an argument is out of range.
165Overflow will occur for sufficiently large positive values, and
166non-positive integers.
167For large non-integer negative values,
168.Fn tgamma
169will underflow.
170.Sh BUGS
171To conform with newer C/C++ standards, a stub implementation for
172.Nm tgammal
173was committed to the math library, where
174.Nm tgammal
175is mapped to
176.Nm tgamma .
177Thus, the numerical accuracy is at most that of the 53-bit double
178precision implementation.
179.Sh SEE ALSO
180.Xr math 3
181.Sh STANDARDS
182The
183.Fn lgamma ,
184.Fn lgammaf ,
185.Fn lgammal ,
186.Fn tgamma ,

--- 20 unchanged lines hidden (view full) ---

207.Fn lgamma
208function,
209and that usage was restored by switching to Sun's fdlibm in
210.Fx 1.1.5 .
211The
212.Fn tgamma
213function appeared in
214.Fx 5.0 .
170.Sh SEE ALSO
171.Xr math 3
172.Sh STANDARDS
173The
174.Fn lgamma ,
175.Fn lgammaf ,
176.Fn lgammal ,
177.Fn tgamma ,

--- 20 unchanged lines hidden (view full) ---

198.Fn lgamma
199function,
200and that usage was restored by switching to Sun's fdlibm in
201.Fx 1.1.5 .
202The
203.Fn tgamma
204function appeared in
205.Fx 5.0 .
206The 128-bit
207.Ft long double
208version of
209.Fn tgammal
210replaced the 80-bit stub version in
211version in
212.Fx 16 ,
213thanks to an appropriate implementation from Arm.