Skip to content

Commit e3e0895

Browse files
author
StephenElston
committed
Corrected code and text errors in lab 02-02
1 parent 6d8fccf commit e3e0895

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Module02/02-02-Limits.ipynb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -553,13 +553,13 @@
553553
"}\n",
554554
"\n",
555555
"## Construct the data frame.\n",
556-
"df19= data.frame(x = seq(-20,20))\n",
556+
"df19= data.frame(x = seq(-20,20,by=0.1))\n",
557557
"df19$y = k(df19$x) ## Call g(x) with the vector df2$x\n",
558558
"\n",
559559
"## data frames to marker points\n",
560-
"df20 = data.frame(x = c(-15, -10, -5, 0, 4, 6, 10, 15, 20))\n",
560+
"df20 = data.frame(x = c(-15, -10, -5, 0, 0.001, 6, 10, 15, 20))\n",
561561
"df20$y = k(df20$x)\n",
562-
"df21 = data.frame(x = 5, y = k(5))\n",
562+
"df21 = data.frame(x = c(0,0), y = k(c(0.0,0.01)))\n",
563563
"\n",
564564
"## Make the plot\n",
565565
"ggplot(df19, aes(x,y)) + geom_line(color = 'green', size = 1) +\n",
@@ -576,19 +576,19 @@
576576
"cell_type": "markdown",
577577
"metadata": {},
578578
"source": [
579-
"The plot of the function shows a line in which the *c(x)* value increases towards 25 as *x* approaches 5 from the negative side:\n",
579+
"The plot of the function shows a line in which the *c(x)* value increases towards 20 as *x* approaches 0 from the negative side:\n",
580580
"\n",
581-
"\\begin{equation}\\lim_{x \\to 5^{-}} c(x) = 25 \\end{equation}\n",
581+
"\\begin{equation}\\lim_{x \\to 0^{-}} c(x) = 20 \\end{equation}\n",
582582
"\n",
583-
"However, the *c(x)* value decreases towards -95 as *x* approaches 5 from the positive side:\n",
583+
"However, the *c(x)* value decreases towards -100 as *x* approaches 0 from the positive side:\n",
584584
"\n",
585-
"\\begin{equation}\\lim_{x \\to 5^{+}} c(x) = -95 \\end{equation}\n",
585+
"\\begin{equation}\\lim_{x \\to 0^{+}} c(x) = -100 \\end{equation}\n",
586586
"\n",
587587
"So what can we say about the two-sided limit of this function at x = 0?\n",
588588
"\n",
589-
"The limit as we approach x = 5 from the negative side is *not* equal to the limit as we approach x = 5 from the positive side, so no two-sided limit exists for this function at that point:\n",
589+
"The limit as we approach x = 0 from the negative side is *not* equal to the limit as we approach x = 0 from the positive side, so no two-sided limit exists for this function at that point:\n",
590590
"\n",
591-
"\\begin{equation}\\lim_{x \\to 5} \\text{does not exist} \\end{equation}"
591+
"\\begin{equation}\\lim_{x \\to 0} \\text{does not exist} \\end{equation}"
592592
]
593593
},
594594
{
@@ -1122,7 +1122,7 @@
11221122
"mimetype": "text/x-r-source",
11231123
"name": "R",
11241124
"pygments_lexer": "r",
1125-
"version": "3.6.0"
1125+
"version": "3.6.3"
11261126
}
11271127
},
11281128
"nbformat": 4,

0 commit comments

Comments
 (0)