santifunc1: Returns the nth term from the recursive sequence...

Description Usage Arguments Value Examples

View source: R/santifunc1.R

Description

Returns the nth term from the recursive sequence xn=xn−1+(xn−3−xn−2)/n.

Usage

1
santifunc1(x, n)

Arguments

x

a vector of length 3

n

the number of terms for the recursive sequence

Value

returns the nth term from the recursive sequence

Examples

1
2
santifunc1(x = c(2, 4, 3), n = 2)
santifunc1(x = c(2, 4, 3), n = 6)

Santinule/hw04pSantinule documentation built on Feb. 26, 2021, 12:23 a.m.