<commit_before>Gamma Function
===
[![NPM version][npm-image]][npm-url] [![Build Status][build-image]][build-url] [![Coverage Status][coverage-image]][coverage-url] [![Dependencies][dependencies-image]][dependencies-url]

> [Gamma][gamma-function] function.

The [gamma function][gamma-function] extends the [factorial function][factorial-function] to [real][real] and [complex][complex] numbers. If `n` is a positive `integer`,

<div class="equation" align="center" data-raw-text="\Gamma ( n ) = (n-1)!" data-equation="eq:gamma_function_positive_integers">
	<img src="https://cdn.rawgit.com/math-io/gamma/b34a280280f619103d048d80a42495219a49be58/docs/img/eqn1.svg" alt="Gamma function for positive intgers.">
	<br>
</div>

Generalized to all complex numbers `z`, except for non-positive integers, the [gamma function][gamma-function] can be expressed as an infinite product

<div class="equation" align="center" data-raw-text="\Gamma ( z ) = \frac{e^{-\gamma z}}{z} \prod^{\infty}_{n=1} \left ( 1+\frac{z}{n}\right )^{-1} e^{z/n}" data-equation="eq:gamma_function_infinite_product">
	<img src="https://cdn.rawgit.com/math-io/gamma/b34a280280f619103d048d80a42495219a49be58/docs/img/eqn2.svg" alt="Gamma function for all complex numbers.">
	<br>
</div>

where `γ ~= 0.577216` is the  [Euler–Mascheroni constant][euler-mascheroni-constant].


## Installation
<commit_msg>Use approx unicode char<commit_after>Gamma Function
===
[![NPM version][npm-image]][npm-url] [![Build Status][build-image]][build-url] [![Coverage Status][coverage-image]][coverage-url] [![Dependencies][dependencies-image]][dependencies-url]

> [Gamma][gamma-function] function.

The [gamma function][gamma-function] extends the [factorial function][factorial-function] to [real][real] and [complex][complex] numbers. If `n` is a positive `integer`,

<div class="equation" align="center" data-raw-text="\Gamma ( n ) = (n-1)!" data-equation="eq:gamma_function_positive_integers">
	<img src="https://cdn.rawgit.com/math-io/gamma/b34a280280f619103d048d80a42495219a49be58/docs/img/eqn1.svg" alt="Gamma function for positive intgers.">
	<br>
</div>

Generalized to all complex numbers `z`, except for non-positive integers, the [gamma function][gamma-function] can be expressed as an infinite product

<div class="equation" align="center" data-raw-text="\Gamma ( z ) = \frac{e^{-\gamma z}}{z} \prod^{\infty}_{n=1} \left ( 1+\frac{z}{n}\right )^{-1} e^{z/n}" data-equation="eq:gamma_function_infinite_product">
	<img src="https://cdn.rawgit.com/math-io/gamma/b34a280280f619103d048d80a42495219a49be58/docs/img/eqn2.svg" alt="Gamma function for all complex numbers.">
	<br>
</div>

where `γ ≈ 0.577216` is the  [Euler–Mascheroni constant][euler-mascheroni-constant].


## Installation

{'fraction_non_alphanumeric': 0.17741347905282331, 'fraction_numerical': 0.0546448087431694, 'mean_word_length': 6.303191489361702, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3241896', 'n_tokens_mistral': 1056, 'n_tokens_neox': 946, 'n_words': 196}