Learn R Programming

phangorn (version 2.8.1)

ldfactorial: Arithmetic Operators

Description

double factorial function

Usage

ldfactorial(x)

dfactorial(x)

Arguments

x

a numeric scalar or vector

Value

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

See Also

factorial, howmanytrees

Examples

Run this code
# NOT RUN {
dfactorial(1:10)

# }

Run the code above in your browser using DataLab