Carson Witt
%%%%%%1%2% PROJECT 53%4% filename: p5_irrational_numbers.tex5% last modified: 2017-3-156%7%%%%%%%8%9%10%%%%%%%1112\documentclass13[justified,nohyper]14{tufte-handout}1516\usepackage{amsmath}1718\usepackage{booktabs}19\usepackage{graphicx}20\usepackage{kmath,kerkis} % The order of the packages matters; kmath changes the default text font21\usepackage[T1]{fontenc}2223\usepackage{enumitem}24\usepackage{url}2526\usepackage{listings}27\usepackage{color}282930% USEFUL SHORTCUTS FOR MATH31\newcommand{\ds}{\displaystyle}3233\newcommand{\dt}[1]{\dfrac{d#1}{dt}}3435\newcommand{\lp}{\left(}36\newcommand{\rp}{\right)}37\newcommand{\lb}{\left[}38\newcommand{\rb}{\right]}3940\newcommand{\evalat}{\biggr\rvert}4142\begin{document}43\begin{fullwidth}44\mbox{\LARGE PreCalculus BC: Project Five - \today }\hfill45\end{fullwidth}46\section*{Introduction}47Irrational numbers are numbers that cannot be expressed as a ratio of two48integers. Examples that you are probably familiar with are $e$ and $\pi$. Both49of these numbers play important roles in mathematics. $e$ is an important constant50that is related to growth and $\pi$ is useful when dealing with circles.5152What you probably don't know about irrational numbers is that they can be53expressed as \textit{continued fractions}. In this project you will investigate54three irrational numbers: $e$, $\pi$, and $\sqrt{2}$. Our first task will be55to establish that these numbers are irrational (which actually turns out to be56a tricky thing to do). After we establish that $\sqrt{2}$ is irrational, we57will research the idea of a continued fraction and use the idea to develop58representations for our three irrational numbers. Our third task will be to59produce an algorithm that can approximate the three numbers to any number60of decimals. For this part of the project, we will be using Python and SAGE61to write some code that will be incorporated in your report.6263\section*{Proving that a number is irrational}64For this part of the project, you will provide an explanation of why $\sqrt{2}$65is irrational. I'm only asking that you do a bit of research into the proof66and then provide your own explanation. I'm not asking that you come up with a67unique proof -- that would be difficult to do.6869The easiest proof available is proof by contradiction where we assume that70$\sqrt{2}$ is rational and then derive a contradiction. This is exactly what71I'm asking that you research and explain in your paper. Sources do not need72to be cited.7374\section*{Researching a repeated fraction}75I suggest that you start with this excellent YouTube video produced by Mathologer.76The video provides a nice introduction to the idea of continued fractions and77many examples are provided. As a further hint for this project, this particular78YouTube channel actually has many other videos that you may find helpful.7980\url{https://youtu.be/CaasbfdJdJg}8182It might help to watch the video several times and try and work through the83examples yourself.8485\section*{An Algorithm for Approximating Irrational Numbers}86This should be where the majority of your work takes place. What we are looking87for is an algorithm implemented as a function in SAGE/Python that takes as88input the number of decimals requested and outputs the irrational number.8990For example, if I passed in the number 4, the function would return $3.1416$ for91$\pi$. Please note: you can write functions for all three irrational numbers,92but the report only requires that you choose one.9394You can choose between $e$, $\pi$, or $\sqrt{2}$ for your irrational number.95Your code should be included in your project report using the listings package.96For this, you will need to add two lines to the preamble of you tex source97file.9899\begin{lstlisting}100\usepackage{listings}101\usepackage{color}102\end{lstlisting}103104Once you import those two packages, you can use the \verb|lstlisting| environment105to paste in your code. It will also help if you pass in two optional parameters106that specify you are using the Python programming language. This will let107\LaTeX\, highlight and color-code your source. I have included a simple108example of that below.109110\begin{lstlisting}[language=Python, caption=Python example]111def myFunction(number):112# computations go here....113return theAnswer114\end{lstlisting}115116All that I need to see is the function you have written that returns back the117decimal answer.118119You are welcome to copy any code you find on the Internet, as long as it does120what you need it to do and that you have either commented the code to explain it,121or included your own comments in paragraph form somewhere in your report. Please122do not copy code that you don't understand.123124\section*{What I will be looking for in your report}125126\begin{itemize}127\item You have provided an appropriate introduction for the report.128\item You have included a proof for the irrationality of $\sqrt{2}$.129\item An explanation of continued fractions is included and you have used130continued fractions to express $e$, $\pi$, and $\sqrt{2}$. For this part,131I'm expecting that you display these continued fractions in an elegant way.132Searching for \verb|latex continued fraction| should help you to find the133required code.134\item You have working Python code that computes $n$ digits of one of the135three irrational numbers: $e$, $\pi$, or $\sqrt{2}$.136\item You have used the \verb|lstlisting| environment correctly in your137tex source file.138\end{itemize}139140\end{document}141142143144