Description Usage Arguments Value Examples
A recursive sequence where element n is the sum of element n-1 and the difference between elements n-2 and n-3 divided by n.
1 | fun_rec_seq(x, n)
|
x |
Numeric vector containing the first three elements of the sequence. |
n |
Integer denoting the final nth element of the sequence. |
Returns element n.
1 2 3 | fun_rec_seq(x = c(2, 4, 3), n = 3)
fun_rec_seq(x = c(2, 4, 3), n = 4)
fun_rec_seq(x = c(2, 4, 3), n = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.