myseq_n: Get the nth element of a certain recursive sequence

Description Usage Arguments Value Examples

View source: R/myseq_n.R

Description

Element n is the sum of element n-1 and the difference between elements n-2 and n-3 divided by n

Usage

1
myseq_n(x, n)

Arguments

x

a vector containing the first three numeric elements of this sequence

n

a positive integer

Value

element n

Examples

1
myseq_n(x = c(2, 4, 3), n = 7)

STAT-413-613-21S/hw04pjenyuh documentation built on March 2, 2021, 12:04 a.m.