GAMMA function

Basic Description

Return the gamma function value.

Syntax: GAMMA(number)

The GAMMA function syntax has the following arguments.

  • Number    Required. Returns a number.
Remarks

  • GAMMA uses the following equation:
    GAMMA equation
  • Г(N+1) = N * Г(N)
  • If Number is a negative integer or 0, GAMMA returns the #NUM! error value.
  • If Number contains characters that are not valid, GAMMA returns the #VALUE! error value.

Example

The workbook below shows examples of this function. Inspect them, change existing formulas, or enter your own formulas to learn how the function works. Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Formula Description Result
=GAMMA(2.5) Returns the gamma function value of 2.5 (1.329). 1.329
=GAMMA(-3.75) Returns the gamma function value of -3.75 (0.268). 0.268
=GAMMA(0) Returns the #NUM! error value, because 0 is not a valid argument. #NUM!
=GAMMA(-2) Returns the #NUM! error value, because a negative integer is not a valid argument. #NUM!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

code

clearPost Comment