Clicky

Fortran Wiki
gamma (Rev #2, changes)

Skip the Navigation Links | Home Page | All Pages | Recently Revised | Authors | Feeds | Export |

Showing changes from revision #1 to #2: (追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)

Description

gamma(x) computes Gamma (\\Gamma) of x. For positive, integer values of x the Gamma function simplifies to the factorial function \\Gamma(x)=(x-1)!.

\\Gamma(x) = \\int_0^\\infty t^{x-1}{\\mathrm{e}}^{-t}\,円{\\mathrm{d}}t

Standard

(削除) Fortran 2008 and later (削除ここまで)(追記) Fortran 2008 (追記ここまで)(追記) and later (追記ここまで)

Class

(削除) Elemental function (削除ここまで)(追記) Elemental function (追記ここまで)

Syntax

x = gamma(x)

Arguments

  • x - Shall be of type real and neither zero nor a negative integer.

Return value

The return value is of type real of the same kind as x.

Example

program test_gamma
 real :: x = 1.0
 x = gamma(x) ! returns 1.0
end program test_gamma

See also

Logarithm of the Gamma function: log_gamma

category: (削除) Intrinsics (削除ここまで)(追記) intrinsics (追記ここまで)

Revision from April 30, 2009 22:46:54 by Jason Blevins
Forward in time (2 more) | Back in time (1 more) | See current | Hide changes | History | Rollback | View: Source | Linked from: Intrinsic procedures, Fortran 2008, HowTo, log_gamma, 2011

AltStyle によって変換されたページ (->オリジナル) /