Author: Jen-Yu Huang
The goal of hw04pjenyuh is to create a function which return output of a recursive sequence and plot the output to a line plot
You can install the released version of hw04pjenyuh by asking me for a copy
install.packages("hw04pjenyuh")
To run the package
library(hw04pjenyuh)
Find the fifth element of the recursive sequence generated by (2, 4, 3):
myseq_n(x = c(2, 4, 3), n = 5)
#> [1] 2.7
Plot the output of the sequence generated by (2, 4, 3) for n = 3 to 9:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.