R/lpochhammer.R

Defines functions lpochhammer

Documented in lpochhammer

lpochhammer <- function( z, n )
{
###
###	This function returns the logarithm of Pochhammer's symbol
###
###	Parameters
###	z = the argument of the symbol
###	n = integer number of terms in the symbol
###
	if ( n < 0 )
		stop( "n is negative" )
	else if ( n == 0 )
		return ( 1 )
	else
		return ( lgamma( z + n ) - lgamma( z ) )
	return ( NULL )
}

Try the orthopolynom package in your browser

Any scripts or data that you put into this service are public.

orthopolynom documentation built on Oct. 3, 2022, 5:08 p.m.