View source: R/classification.R
afac | R Documentation |
Calculate the ascending (or rising) factorial of a value x
of order r
.
afac(x, r, method = "product")
x |
A value for which the ascending factorial is to be calculated. |
r |
The power |
method |
The method by which the descending factorials are to be calculated. Default is |
The ascending factorial of value x
raised to the r
'th power.
# To calculate the 4th ascending factorial for a value (e.g., 3.14):
afac(x = 3.14, r = 4)
# To calculate the 5th ascending factorial for values 3.14, 2.72, and 0.58:
afac(x = c(3.14, 2.72, 0.58), r = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.