# MAT 142 Days 27-28

## 1849 days ago by kcrisman

Let's see what it looks like to view sequences.  Be sure to use $n$ for your variables for now.

var('n') @interact def _(a=1/n^2,endpoint=20): a(n)=a show(points([[i,a(i)] for i in [1..endpoint]]),figsize=4)

## Click to the left again to hide and once more to show the dynamic interactive window

It's possible to see the squeeze theorem, too.

endpoint=10 points([[i,sin(i)/i^2] for i in [1..endpoint]])+plot(1/x^2,(x,1,endpoint),linestyle='--',color='red')+plot(-1/x^2,(x,1,endpoint),linestyle='--',color='red')

We can see the idea of $\epsilon-N$ proofs here.  Plug in your desired values for $eps=\epsilon$, going from $N$ to however far you want to go.  Click "Update" twice to see the new one.

var('n') @interact def _(a=1/n^2,L=0,eps=.1,N=10,endpoint=20,auto_update=False): a(n)=a show(points([[i,a(i)] for i in [N..endpoint]])+plot([L+eps,L-eps],(N,endpoint),color='red',linestyle='--'),figsize=4)

 a L eps N endpoint
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.22778263688087463, "perplexity": 4390.22016075399}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-18/segments/1555578636101.74/warc/CC-MAIN-20190424074540-20190424100540-00540.warc.gz"}