How to find the factorial of a fraction? From what I know, the factorial function is defined as follows:
$$n! = n(n-1)(n-2) \cdots(3)(2)(1)$$
And $0! = 1$. However, this page seems to be saying that you can take the factorial of a fraction, like, for instance, $\frac{1}{2}!$, which they claim is equal to $\frac{1}{2}\sqrt\pi$ due to something called the gamma function. Moreover, they start getting the factorial of negative numbers, like $-\frac{1}{2}! = \sqrt{\pi}$
How is this possible? What is the definition of the factorial of a fraction? What about negative numbers?
I tried researching it on Wikipedia and such, but there doesn't seem to be a clear-cut answer.
 A: The gamma function is defined by the following integral, which converges for real $s>0$:
$$\Gamma(s)=\int_0^\infty t^{s-1}e^{-t}dt.$$
The function can also be extended into the complex plane, if you're familiar with that subject. I'll assume not and just let $s$ be real.
This function is like the factorial in the when $s$ is a positive integer, say $s=n$, it satisfies $\Gamma(n)=(n-1)!$. It generalizes the factorial in the sense that it is the factorial for positive integer arguments, and is also well-defined for positive rational (and even real) numbers. This is what it means to take a "rational factorial," but I would hesitate to call it that. Many functions have those two properties, and $\Gamma$ is chosen out of all of them because it is the most useful in other applications. Rather than the notation used in that article you refer to, it would be more accurate for you to say that "the gamma function takes these values for these arguments." Gamma is not a function that intends to generalize factorials; rather, generalizing factorials came along as something of an accident following the definition. Its true purpose is deeper.
As for why $\Gamma(1/2)=\sqrt{\pi}$, this comes out of an interesting property of the $\Gamma$ function: some of them are here http://en.wikipedia.org/wiki/Gamma_function#Properties. The property you are interested in is the reflection formula: $$\Gamma(1-z)\Gamma(z)=\frac{\pi}{\sin(\pi z)}.$$ Set $z=1/2$ in the formula to get the desired identity.
If you want to learn more about the gamma function, the hard way is to learn a lot more math, in particular real and complex analysis. An easier way is to read this excellent set of notes: http://www.sosmath.com/calculus/improper/gamma/gamma.html.
A: A first idea that comes to mind to define the factorial of a fractional number is interpolation: knowing the values at two successive integers, the values between these should be intermediate (looking at the "curve", you see that it is growing - very fast - but smoothly).
For instance, you could estimate that $3.1! = 3! + 0.1\times(4!-3!)=7.8$.

This does not look very accurate. By considering at the values of $\ln n!$, you see a trend much closer to a straight line.

So for better "accuracy", you can imagine that the curve is a exponential and do the interpolation on the logarithms: $\ln 3.1!=\ln 3!+0.1(\ln 4!-\ln 3!)\implies 3.1!=6.8921\cdots$
You can also increase the number of points use for interpolation, with the Lagrangian formula that computes a polynomial of a higher degree.
Anyway, this is quite empirical and does not lead to a satisfactory definition with interesting properties. Mathematicians have solved this differently: they found identities (such as the evaluation of integral $\int_0^\infty x^ne^{-x}dx=n!$) that can be shown to equal $n!$ when $n$ is an integer, and keep making sense when $n$ is not.
So they started using this as a definition of the factorial
$$n!=\int_0^\infty x^ne^{-x}dx.$$
With this formula, you get $3.1!=6.812622863\cdots$
Extension to negative values is yet a different story. If you consider the recursive definition of the factorial, $(n+1)!=(n+1)n!$, which allows to compute larger and larger values, you can reverse it as $(n-1)!=\dfrac{n!}n$. Going backwards, you get to the negatives. Then, you will have a surprise for negative integers...
A: The gamma function, shown with a Greek capital gamma $\Gamma$, is a function that extends the factorial function to all real numbers, except to the negative integers and zero, for which it is not defined. $\Gamma(x)$ is related to the factorial in that it is equal to $(x-1)!$. The function is defined as
$$\Gamma(z) = \frac{1}{z} \prod_{n=1}^\infty \frac{\left(1+\frac{1}{n}\right)^z}{1+\frac{z}{n}}$$
Simply use this to compute factorials for any number. A handy way of calculating for real fractions with even denominators is:
$$\Gamma(\tfrac12 + n) = {(2n)! \over 4^n n!} \sqrt{\pi}$$
Where n is an integer. But keep in mind that the gamma function is actually the factorial of 1 less than the number than it evaluates, so if you want $\frac{3}{2}!$ use n = 2 instead of 1.
Or, you could just put the fraction into Google Calculator, which uses the gamma function to evaluate factorials of any number.
For some more examples of the gamma function's values, see here.
(If you don't understand this, don't worry, because I don't either, and the Wikipedia article on the function seems to lack a clear-cut definition of it or how it relates to $\sqrt{\pi}$.)
A: I derived a form of the gamma function (see here) using some calculus and neat little tricks.

Anyways, define the factorial with two conditions:


*

*$n!=n(n-1)!$

*$1!=1$
From this, you can get the factorial for any integer value, but it does nothing to show you fractional values, at least not yet.
Define a function $f(x):=\ln(x!)$ and manipulate as follows:
$$f(x)=\ln(x!)=\ln(x(x-1)!)=\ln((x-1)!)+\ln(x)=f(x-1)+\ln(x)$$
$$f(x)=f(x-1)+\ln(x)\tag1$$
Differentiate both sides (since the equation holds true for all $x$)
$$f'(x)=f'(x-1)+\frac1x\tag2$$
If you put $x-1$ into $(2)$, we get $f'(x-1)=f'(x-2)+\frac1{x-1}$, and repeat this process over and over...
$$f'(x)=f'(x-2)+\frac1{x-1}+\frac1x$$
$$f'(x)=f'(x-3)+\frac1{x-2}+\frac1{x-1}+\frac1x\\\vdots\\f'(x)=f'(0)+\frac11+\frac12+\dots+\frac1{x-1}+\frac1x\tag3$$
Note that $(3)$ only holds true for integer $x$, just like the factorial, but it is much easier to generalize.
Recall the geometric sum:
$$\frac{1-r^n}{1-r}=1+r+r^2+\dots+r^{n-1}$$
Integrate both sides with respect to $r$ from $0$ to $1$,
$$\begin{align}
\int_0^1\frac{1-r^n}{1-r}dr & =\int_0^11+r+r^2+\dots+r^{n-1}dr\\
& =\left.\frac11r+\frac12r^2+\frac13r^3+\dots+\frac1nr^n\right|_0^1\\
& =\frac11+\frac12+\dots+\frac1{x-1}+\frac1x\tag4\\
\end{align}$$
This is exactly what we need to extend $(3)$ to arbitrary $x$:
$$f'(x)=f'(0)+\int_0^1\frac{1-r^x}{1-r}dr\tag{3.1}$$
We then integrate this and apply the FTOC:
$$f(x)-\require{cancel}\cancelto0{f(0)}=\int_0^x\left(f'(0)+\int_0^1\frac{1-r^\phi}{1-r}dr\right)d\phi$$
$$f(x)=f'(0)x+\int_0^x\int_0^1\frac{1-r^\phi}{1-r}dr\ d\phi$$
Recall what $f(x)$ was:
$$\ln(x!)=f'(0)x+\int_0^x\int_0^1\frac{1-r^\phi}{1-r}dr\ d\phi$$
Use the second condition of the factorial and $x=1$
$$\ln(1!)=f'(0)+\int_0^1\int_0^1\frac{1-r^\phi}{1-r}dr\ d\phi$$
$$f'(0)=-\int_0^1\int_0^1\frac{1-r^\phi}{1-r}dr\ d\phi\tag5$$
So then,
$$x!=\exp\left[-x\int_0^1\int_0^1\frac{1-r^\phi}{1-r}dr\ d\phi+\int_0^x\int_0^1\frac{1-r^\phi}{1-r}dr\ d\phi\right]$$
which is equivalent to the gamma function.
A: try
$$(n+t)! = n!+(n+1! \times t)$$
where t is any real number between 0 and 1
A: Others have mentioned that the answers on the page you linked come from the Gamma function, which has the property that Γ(n)=(n-1)! for all nonnegative integers n. It stands to reason, then, that to find the value of x! for any x, you can use Γ(x+1).
But you also asked specifically about negative numbers, and there's an important caveat there. This definition produces well-defined values for all real and even complex numbers except negative integers.
This is easily seen by simply extending the definition of factorial backward, no gamma function required. The problem is, you wind up dividing by 0:
Given 3! = 6.

Then:
   2! = 3!/3 = 2
   1! = 2!/2 = 1
   0! = 1!/1 = 1
  (-1)! = 0!/0 = oops

You can see that this sequence also invalidates any other negative integer factorials, since (-2)! would be equal to (-1)!/-1 and (-1)! is undefined. Since (-2)! is undefined, so is (-3)!, and so on.
The Gamma function happily produces values for negative reals, but if you plot it, you'll see that it zooms out to infinity at the negative integers. But even if we were willing to extend the range of our function to allow infinity as a value, as silly as that is, Γ(-n) would still be undefined, because they aren't even well-behaved infinities! For every integer n, the limit of Γ(x) as x → -n can be either +∞ or -∞, depending on which direction you approach n from. Specifically, the limit is positive above even integers and below odd ones, negative above odd and below even.
For instance, Γ(-1.9) is about 5; Γ(-1.99) is about 50; Γ(-1.999) is about 500; and so on. The closer you get to x=-2 coming from the positive direction, the greater Γ(x) gets, increasing without bound, implying that Γ(-2) = (-3)! is +∞. But on the other side of x=-2, Γ(-2.1) is about -5, Γ(-2.01) is about -50, and Γ(-2.001) is about -500; the closer you get to x=-2 coming from the negative side, the lower Γ(x) gets, decreasing without bound, implying that Γ(-2) = (-3)! = -∞.
