|
541 | 541 | "\n", |
542 | 542 | "\\begin{equation}y = 2(x - 4)^{2} - 30\\end{equation}\n", |
543 | 543 | "\n", |
544 | | - "Let's just quickly check our math with Python:" |
| 544 | + "Let's just quickly check our math with R:" |
545 | 545 | ] |
546 | 546 | }, |
547 | 547 | { |
|
596 | 596 | "\n", |
597 | 597 | "So, we know that the line of symmetry is at ***x = h*** (which is 4), and we now know that the ***y*** value when ***x*** is 0 (***h*** - ***h***) is 2. The ***y*** value at the same distance from the line of symmetry in the negative direction will be the same as the value in the positive direction, so when ***x*** is ***h*** + ***h***, the ***y*** value will also be 2.\n", |
598 | 598 | "\n", |
599 | | - "The following Python code encapulates all of this in a function that draws and annotates a parabola using only the ***a***, ***h***, and ***k*** values from a quadratic equation in vertex form:" |
| 599 | + "The following R code encapsulates all of this in a function that draws and annotates a parabola using only the ***a***, ***h***, and ***k*** values from a quadratic equation in vertex form:" |
600 | 600 | ] |
601 | 601 | }, |
602 | 602 | { |
|
688 | 688 | "metadata": {}, |
689 | 689 | "source": [ |
690 | 690 | "## Shortcuts for Solving Quadratic Equations\n", |
691 | | - "We've spent some time in this notebook discussing how to solve quadratic equations to determine the vertex of a parabola and the ***x*** values in relation to ***y***. It's important to understand the techniques we've used, which incude:\n", |
| 691 | + "We've spent some time in this notebook discussing how to solve quadratic equations to determine the vertex of a parabola and the ***x*** values in relation to ***y***. It's important to understand the techniques we've used, which include:\n", |
692 | 692 | "- Factoring\n", |
693 | 693 | "- Calculating the Square Root\n", |
694 | 694 | "- Completing the Square\n", |
|
745 | 745 | "\n", |
746 | 746 | "\\begin{equation}x = \\frac{--16 \\pm \\sqrt{-16^{2} - 4\\cdot2\\cdot2}}{2\\cdot2}\\end{equation}\n", |
747 | 747 | "\n", |
748 | | - "This simplifes to:\n", |
| 748 | + "This simplifies to:\n", |
749 | 749 | "\n", |
750 | 750 | "\\begin{equation}x = \\frac{16 \\pm \\sqrt{256 - 16}}{4}\\end{equation}\n", |
751 | 751 | "\n", |
|
763 | 763 | "\n", |
764 | 764 | "\n", |
765 | 765 | "\n", |
766 | | - "The following Python code uses the vertex formula and the quadtratic formula to calculate the vertex and the -x and +x for y = 0, and then plots the resulting parabola:" |
| 766 | + "The following R code uses the vertex formula and the quadratic formula to calculate the vertex and the -x and +x for y = 0, and then plots the resulting parabola:" |
767 | 767 | ] |
768 | 768 | }, |
769 | 769 | { |
|
909 | 909 | "mimetype": "text/x-r-source", |
910 | 910 | "name": "R", |
911 | 911 | "pygments_lexer": "r", |
912 | | - "version": "3.4.1" |
| 912 | + "version": "3.5.0" |
913 | 913 | } |
914 | 914 | }, |
915 | 915 | "nbformat": 4, |
|
0 commit comments