Clicky

Fortran Wiki
gamma (changes)

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

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

Description

gamma(x) computes Gamma ((削除) \\Gamma (削除ここまで)(追記) Γ\Gamma (追記ここまで)) of x. For positive, integer values of x the Gamma function simplifies to the factorial function (削除) \\Gamma(x)=(x-1)! (削除ここまで)(追記) Γ(x)=(x1)!\Gamma(x)=(x-1)! (追記ここまで).

(削除) \\Gamma(x) = \\int_0^\\infty t^{x-1}{\\mathrm{e}}^{-t}\,円{\\mathrm{d}}t (削除ここまで)(追記) Γ(x)= 0 t x1e tdt \Gamma(x) = \int_0^\infty t^{x-1}{\mathrm{e}}^{-t},円{\mathrm{d}}t (追記ここまで)

Standard

Fortran 2008 and later

Class

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

Revised on March 1, 2023 12:59:43 by vmagnin (86.67.213.90) (808 characters / 0.0 pages)
Edit | Back in time (3 revisions) | Hide changes | History | Views: Print | TeX | Source | Linked from: Intrinsic procedures, Fortran 2008, HowTo, log_gamma, 2011

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