Learn R Programming

phangorn (version 2.12.1)

ldfactorial: Arithmetic Operators

Description

double factorial function

Usage

ldfactorial(x)

dfactorial(x)

Value

dfactorial(x) returns the double factorial, that is \(x\!\! = 1 * 3 * 5 * \ldots * x \) and ldfactorial(x) is the natural logarithm of it.

Arguments

x

a numeric scalar or vector

Author

Klaus Schliep klaus.schliep@gmail.com

See Also

factorial, howmanytrees

Examples

Run this code

dfactorial(1:10)

Run the code above in your browser using DataLab