ubuntu2004
% generated by smc-sagews2pdf -- 2021-04-14 14:25:24.2124541% !TeX program = xelatex23\documentclass[4paper=A4,5pagesize,6fontsize=11pt,7%headings=small,8titlepage=false,9fleqn,10toc=flat,11bibliography=totoc, %totocnumbered,12index=totoc,13listof=flat]{scrartcl}14\usepackage{scrhack}15\setuptoc{toc}{leveldown}1617\usepackage[utf8x]{inputenc}18\usepackage[T1]{fontenc}19\usepackage{xltxtra} % xelatex2021\usepackage[22left=3cm,23right=2cm,24top=2cm,25bottom=2cm,26includeheadfoot]{geometry}27\usepackage[automark,headsepline,ilines,komastyle]{scrpage2}28\pagestyle{scrheadings}2930\usepackage{fixltx2e}3132\raggedbottom3334% font tweaks35\usepackage{ellipsis,ragged2e,marginnote}36\usepackage{inconsolata}37\renewcommand{\familydefault}{\sfdefault}38\setkomafont{sectioning}{\normalcolor\bfseries}39\setkomafont{disposition}{\normalcolor\bfseries}4041\usepackage{mathtools}42\mathtoolsset{showonlyrefs=true}43\usepackage{amssymb}44\usepackage{sfmath}4546\usepackage[USenglish]{babel}47\usepackage{etoolbox}48\usepackage{url}49\usepackage{hyperref}5051% use includegraphics directly, but beware, that this is actually ...52\usepackage{graphicx}53% ... adjust box! http://latex-alive.tumblr.com/post/8148140844954\usepackage[Export]{adjustbox}55\adjustboxset{max size={\textwidth}{0.7\textheight}}5657\usepackage{textcomp}58\def\leftqquote{``}\def\rightqqoute{''}59\catcode`\"=1360\def"{\bgroup\def"{\rightqqoute\egroup}\leftqquote}6162\makeatletter63\preto{\@verbatim}{\topsep=0pt \partopsep=0pt }64\makeatother6566\usepackage{color}67\definecolor{midgray}{rgb}{0.5,0.5,0.5}68\definecolor{lightyellow}{rgb}{1,1,.92}69\definecolor{dblackcolor}{rgb}{0.0,0.0,0.0}70\definecolor{dbluecolor}{rgb}{.01,.02,0.7}71\definecolor{dredcolor}{rgb}{1,0,0}72\definecolor{dbrowncolor}{rgb}{0.625,0.3125,0}73\definecolor{dgraycolor}{rgb}{0.30,0.3,0.30}74\definecolor{graycolor}{rgb}{0.35,0.35,0.35}7576\usepackage{listings}77\lstdefinelanguage{Sage}[]{Python}78{morekeywords={True,False,sage,singular},79sensitive=true}80\lstset{81showtabs=False,82showspaces=False,83showstringspaces=False,84commentstyle={\ttfamily\color{dbrowncolor}},85keywordstyle={\ttfamily\color{dbluecolor}\bfseries},86stringstyle ={\ttfamily\color{dgraycolor}\bfseries},87numberstyle ={\tiny\color{midgray}},88backgroundcolor=\color{lightyellow},89language = Sage,90basicstyle={\ttfamily},91extendedchars=true,92keepspaces=true,93aboveskip=1em,94belowskip=0.1em,95breaklines=true,96prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\backslash}},97%frame=single98}99100% sagemath macros101\newcommand{\Bold}[1]{\mathbb{#1}}102\newcommand{\ZZ}{\Bold{Z}}103\newcommand{\NN}{\Bold{N}}104\newcommand{\RR}{\Bold{R}}105\newcommand{\CC}{\Bold{C}}106\newcommand{\FF}{\Bold{F}}107\newcommand{\QQ}{\Bold{Q}}108\newcommand{\QQbar}{\overline{\QQ}}109\newcommand{\CDF}{\Bold{C}}110\newcommand{\CIF}{\Bold{C}}111\newcommand{\CLF}{\Bold{C}}112\newcommand{\RDF}{\Bold{R}}113\newcommand{\RIF}{\Bold{I} \Bold{R}}114\newcommand{\RLF}{\Bold{R}}115\newcommand{\CFF}{\Bold{CFF}}116\newcommand{\GF}[1]{\Bold{F}_{#1}}117\newcommand{\Zp}[1]{\ZZ_{#1}}118\newcommand{\Qp}[1]{\QQ_{#1}}119\newcommand{\Zmod}[1]{\ZZ/#1\ZZ}120121% mathjax has \lt and \gt122\newcommand{\lt}{<}123\newcommand{\gt}{>}124% also support HTML's ≤ and ≥125\newcommand{\lequal}{≤}126\newcommand{\gequal}{≥}127\newcommand{\notequal}{≠}128129% defining utf8 characters for listings130\lstset{literate=131{á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1132{Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1133{à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1134{À}{{\`A}}1 {È}{{\'E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1135{ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1136{Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1137{â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1138{Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1139{œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1140{ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1141{ã}{{\~a}}1 {Ã}{{\~A}}1 {õ}{{\~o}}1 {Õ}{{\~O}}1142{€}{{\EUR}}1 {£}{{\pounds}}1143}144145\title{Exercise Week 12}146\author{COMP 150}147\date{Spring 2021}148\begin{document}149\maketitle150\begin{lstlisting}151# Your name here152\end{lstlisting}153\begin{lstlisting}154\end{lstlisting}155156{{(1.) Define the functions ${\displaystyle f(x) = \tan\left(\frac{\pi x^2}{4}\right)}$ and $g(x) = \pi x + 1 - \pi$ in Sage for use throughout this exercise.}}157158159\begin{lstlisting}160\end{lstlisting}161162{{(2.) Plot both functions on the same set of axes. Choose a scaling that lets you see the key features of each graph.}163164165166\begin{lstlisting}167\end{lstlisting}168169{{(3.) Find an $x$-value where the two graphs intersect. You may identify this value visually. Make sure you also establish mathematically that you have found an $x$-value where the graphs intersect.}}170171172173\begin{lstlisting}174\end{lstlisting}175176{{(4.) Find the corresponding $y$-value where the intersect. You may identify this value visually. Make sure you also establish mathematically that you have found a point $(x, y)$ where the graphs intersect.}}177178179180\begin{lstlisting}181\end{lstlisting}182183{{(5.) One of the graphs is a line. What is its slope? In Sage, we can calculate the derivative of $f(x)$ using the following command: $\texttt{derivative(f(x), x)}$. Use Sage to find the derivative of $f(x)$. Use Sage to find the value of the derivative of $f(x)$ at $x = 1$. Explain how this value compares with the slope of the line you identified in this question. From a calculus point of view, what is the significance of how $f'(1)$ compares to the slope? Refer to your graph in your answer.}184185186\end{document}187%configuration={"latex_command":"xelatex -synctex=1 -interact=nonstopmode 'tmp.tex'"}188189190