Scroll to navigation

gamma(3) Library Functions Manual gamma(3)

NOMBRE

gamma, gammaf, gammal - (logaritmo de la) función gamma

BIBLIOTECA

Biblioteca Matemática (libm, -lm)

SINOPSIS

#include <math.h>
[[a extinguir]] double gamma(double x);
[[a extinguir]] float gammaf(float x);
[[a extinguir]] long double gammal(long double x);

Requisitos de Macros de Prueba de Características para glibc (véase feature_test_macros(7)):

gamma():


_XOPEN_SOURCE
|| /* Desde glibc 2.19: */ _DEFAULT_SOURCE
|| /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE

gammaf(), gammal():


_XOPEN_SOURCE >= 600 || (_XOPEN_SOURCE && _ISOC99_SOURCE)
|| /* A partir de glibc 2.19: */ _DEFAULT_SOURCE
|| /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE

DESCRIPCIÓN

Estas funciones están obsoletas. En su lugar, emplee tgamma(3) o lgamma(3) según se adapte.

Para obtener una explicación de la función Gamma, consulte tgamma(3).

versión BSD

The libm in 4.4BSD and some versions of FreeBSD had a gamma() function that computes the Gamma function, as one would expect.

versión glibc

glibc has a gamma() function that is equivalent to lgamma(3) and computes the natural logarithm of the Gamma function.

VALOR DEVUELTO

Vea lgamma(3).

ERRORES

Vea lgamma(3).

ATRIBUTOS

Para obtener una explicación de los términos usados en esta sección, véase attributes(7).

Interfaz Atributo Valor
gamma(), gammaf(), gammal() Seguridad del hilo MT-Unsafe race:signgam

ESTÁNDARES

None.

HISTORIAL

SVID 2.

Because of historical variations in behavior across systems, this function is not specified in any recent standard.

4.2BSD had a gamma() that computed ln(|Gamma(|x|)|), leaving the sign of Gamma(|x|) in the external integer signgam. In 4.3BSD the name was changed to lgamma(3), and the man page promises


"At some time in the future the name gamma will be rehabilitated and used for the Gamma function"

This did indeed happen in 4.4BSD, where gamma() computes the Gamma function (with no effect on signgam). However, this came too late, and we now have tgamma(3), the "true gamma" function.

VÉASE TAMBIÉN

lgamma(3), signgam(3), tgamma(3)

TRADUCCIÓN

La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars <mpi79470@alu.um.es> y Marcos Fouces <marcos@debian.org>

Esta traducción es documentación libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD.

Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a debian-l10n-spanish@lists.debian.org.

20 ​​Julio 2023 Páginas de manual de Linux 6.05.01