DGS Studio

Factorial & Gamma

Factorial & Gamma

Use Gamma to obtain the exact result sqrt(pi)/2.

Factorial & Gamma. The equation to solve is factorial(1/2).

Equation

factorial(1/2)

How the equation is solved

Solve Equation keeps the algebra steps, not a curve. A linear equation isolates the variable. A polynomial can have several roots. A result is kept exact when it is an integer, a fraction, or a simple radical, and an approximation is added only when that helps.

Some inputs are identities or contradictions. 0·x = 0 is true for every x. 0·x = 5 is true for none. A system followed by 'find' solves the equations first and then evaluates the requested expression. The editor below sends the text you leave in the field.

Reading the input

Other versions of this example

These stay on this page so each version keeps the same explanation. Choose Try example to run a version in its Studio workflow, or copy it into the editable field below.

Factorial of one half

Use Gamma to obtain the exact result sqrt(pi)/2.

factorial(1/2)

Factorial of three halves

Apply the Gamma recurrence to obtain 3*sqrt(pi)/4.

factorial(3/2)

Factorial of negative one half

Extend factorial to a negative half-integer: sqrt(pi).

factorial(-1/2)

Factorial of negative three halves

Evaluate a negative half-integer factorial as -2*sqrt(pi).

factorial(-3/2)

Decimal factorial

Evaluate 0.5 factorial with a numerical approximation of 0.886226925452758.

factorial(0.5)

Integer factorial

Multiply the integers from 1 through 5 to obtain 120.

factorial(5)

Gamma of one half

Evaluate the fundamental Gamma value sqrt(pi).

gamma(1/2)

Gamma of three halves

Use the Gamma recurrence to obtain sqrt(pi)/2.

gamma(3/2)

Undefined negative integer factorial

See why factorial(-2) is undefined: Gamma has a pole at -1.

factorial(-2)

Try a change

Solve Equation opens the original input in the equation workspace and displays its symbolic results, conditions, and solution steps.

Edit and generate

Solve Equation opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples