Cgamma                  package:UCS                  R Documentation

_T_h_e _G_a_m_m_a _F_u_n_c_t_i_o_n (_s_f_u_n_c)

_D_e_s_c_r_i_p_t_i_o_n:

     Computes the (complete) Gamma function and its base 10 logarithm.

_U_s_a_g_e:

     Cgamma(a, log=FALSE)

_A_r_g_u_m_e_n_t_s:

       a: a numeric vector

     log: if 'TRUE', returns the base 10 logarithm of the Gamma
          function (default: 'FALSE')

_D_e_t_a_i_l_s:

     This is just a front-end to the built-in 'gamma' and 'lgamma'
     functions, provided mainly for consistent naming. Note that the
     logarithmic version is scaled to base 10 logarithms, according to
     the UCS conventions.

_V_a_l_u_e:

     The Gamma function evaluated at 'a', or its base 10 logarithm (if
     'log=TRUE').

_S_e_e _A_l_s_o:

     'gamma', 'Igamma', 'Rgamma', 'Cbeta', 'Ibeta', 'Rbeta'

_E_x_a_m_p_l_e_s:

     Cgamma(5 + 1) # = factorial(5)

