Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download
Views: 1263
Image: ubuntu2004
1
% generated by smc-sagews2pdf -- 2021-04-26 17:47:22.756502
2
% !TeX program = xelatex
3
4
\documentclass[
5
paper=A4,
6
pagesize,
7
fontsize=11pt,
8
%headings=small,
9
titlepage=false,
10
fleqn,
11
toc=flat,
12
bibliography=totoc, %totocnumbered,
13
index=totoc,
14
listof=flat]{scrartcl}
15
\usepackage{scrhack}
16
\setuptoc{toc}{leveldown}
17
18
\usepackage[utf8x]{inputenc}
19
\usepackage[T1]{fontenc}
20
\usepackage{xltxtra} % xelatex
21
22
\usepackage[
23
left=3cm,
24
right=2cm,
25
top=2cm,
26
bottom=2cm,
27
includeheadfoot]{geometry}
28
\usepackage[automark,headsepline,ilines,komastyle]{scrpage2}
29
\pagestyle{scrheadings}
30
31
\usepackage{fixltx2e}
32
33
\raggedbottom
34
35
% font tweaks
36
\usepackage{ellipsis,ragged2e,marginnote}
37
\usepackage{inconsolata}
38
\renewcommand{\familydefault}{\sfdefault}
39
\setkomafont{sectioning}{\normalcolor\bfseries}
40
\setkomafont{disposition}{\normalcolor\bfseries}
41
42
\usepackage{mathtools}
43
\mathtoolsset{showonlyrefs=true}
44
\usepackage{amssymb}
45
\usepackage{sfmath}
46
47
\usepackage[USenglish]{babel}
48
\usepackage{etoolbox}
49
\usepackage{url}
50
\usepackage{hyperref}
51
52
% use includegraphics directly, but beware, that this is actually ...
53
\usepackage{graphicx}
54
% ... adjust box! http://latex-alive.tumblr.com/post/81481408449
55
\usepackage[Export]{adjustbox}
56
\adjustboxset{max size={\textwidth}{0.7\textheight}}
57
58
\usepackage{textcomp}
59
\def\leftqquote{``}\def\rightqqoute{''}
60
\catcode`\"=13
61
\def"{\bgroup\def"{\rightqqoute\egroup}\leftqquote}
62
63
\makeatletter
64
\preto{\@verbatim}{\topsep=0pt \partopsep=0pt }
65
\makeatother
66
67
\usepackage{color}
68
\definecolor{midgray}{rgb}{0.5,0.5,0.5}
69
\definecolor{lightyellow}{rgb}{1,1,.92}
70
\definecolor{dblackcolor}{rgb}{0.0,0.0,0.0}
71
\definecolor{dbluecolor}{rgb}{.01,.02,0.7}
72
\definecolor{dredcolor}{rgb}{1,0,0}
73
\definecolor{dbrowncolor}{rgb}{0.625,0.3125,0}
74
\definecolor{dgraycolor}{rgb}{0.30,0.3,0.30}
75
\definecolor{graycolor}{rgb}{0.35,0.35,0.35}
76
77
\usepackage{listings}
78
\lstdefinelanguage{Sage}[]{Python}
79
{morekeywords={True,False,sage,singular},
80
sensitive=true}
81
\lstset{
82
showtabs=False,
83
showspaces=False,
84
showstringspaces=False,
85
commentstyle={\ttfamily\color{dbrowncolor}},
86
keywordstyle={\ttfamily\color{dbluecolor}\bfseries},
87
stringstyle ={\ttfamily\color{dgraycolor}\bfseries},
88
numberstyle ={\tiny\color{midgray}},
89
backgroundcolor=\color{lightyellow},
90
language = Sage,
91
basicstyle={\ttfamily},
92
extendedchars=true,
93
keepspaces=true,
94
aboveskip=1em,
95
belowskip=0.1em,
96
breaklines=true,
97
prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\backslash}},
98
%frame=single
99
}
100
101
% sagemath macros
102
\newcommand{\Bold}[1]{\mathbb{#1}}
103
\newcommand{\ZZ}{\Bold{Z}}
104
\newcommand{\NN}{\Bold{N}}
105
\newcommand{\RR}{\Bold{R}}
106
\newcommand{\CC}{\Bold{C}}
107
\newcommand{\FF}{\Bold{F}}
108
\newcommand{\QQ}{\Bold{Q}}
109
\newcommand{\QQbar}{\overline{\QQ}}
110
\newcommand{\CDF}{\Bold{C}}
111
\newcommand{\CIF}{\Bold{C}}
112
\newcommand{\CLF}{\Bold{C}}
113
\newcommand{\RDF}{\Bold{R}}
114
\newcommand{\RIF}{\Bold{I} \Bold{R}}
115
\newcommand{\RLF}{\Bold{R}}
116
\newcommand{\CFF}{\Bold{CFF}}
117
\newcommand{\GF}[1]{\Bold{F}_{#1}}
118
\newcommand{\Zp}[1]{\ZZ_{#1}}
119
\newcommand{\Qp}[1]{\QQ_{#1}}
120
\newcommand{\Zmod}[1]{\ZZ/#1\ZZ}
121
122
% mathjax has \lt and \gt
123
\newcommand{\lt}{<}
124
\newcommand{\gt}{>}
125
% also support HTML's &le; and &ge;
126
\newcommand{\lequal}{}
127
\newcommand{\gequal}{}
128
\newcommand{\notequal}{}
129
130
% defining utf8 characters for listings
131
\lstset{literate=
132
{á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
133
{Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
134
{à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1
135
{À}{{\`A}}1 {È}{{\'E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1
136
{ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
137
{Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1
138
{â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1
139
{Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1
140
{œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1
141
{ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1
142
{ã}{{\~a}}1 {Ã}{{\~A}}1 {õ}{{\~o}}1 {Õ}{{\~O}}1
143
{}{{\EUR}}1 {£}{{\pounds}}1
144
}
145
146
\title{quiz 3}
147
\author{Laura Gross}
148
\date{4/26/2021}
149
\begin{document}
150
\maketitle
151
\begin{lstlisting}
152
# Name
153
\end{lstlisting}
154
\begin{lstlisting}
155
\end{lstlisting}
156
157
{{(0a) Please type your name at the top of your worksheet as a comment.}}
158
159
\begin{lstlisting}
160
\end{lstlisting}
161
162
{{(0b) The policy for the quiz is as follows: Do your quiz independently. Do not engage in consultation with others. (Exception: You are encouraged to ask me questions in the public chat, the private chat, or in a breakout.) During the quiz, you may use your class notes, code you wrote previously, Sage and CoCalc, and resources posted on our Blackboard site. You are not permitted to engage with any other resources of any kind anywhere. Please confirm your compliance with the academic honesty policy for this quiz and your understanding of the consequences. You can do this by typing $\texttt{I confirm. I understand.}$.}
163
164
165
166
{\end{itemize}}
167
168
169
\begin{lstlisting}
170
\end{lstlisting}
171
172
{{(1) Define $f1(x) = e^x$, $f2(x) = e^{-x}$, and $f(x) = (e^x + e^{-x})/2$.}
173
174
\begin{lstlisting}
175
\end{lstlisting}
176
177
{{(1a) Graph the three functions on the same set of axes, choosing scaling that shows the key features of the graphs.}}
178
179
180
\begin{lstlisting}
181
\end{lstlisting}
182
183
{{(1b) Explain which graph is the graph of $f1(x)$, which is the graph of $f2(x)$, and which is the graph of $f(x)$ in a complete sentence.}}
184
185
186
\begin{lstlisting}
187
\end{lstlisting}
188
189
{{(2) The function $f(x) = (e^x + e^{-x})/2$ is called the hyperbolic cosine function and can be written in the equivalent form $g(x) = \cosh(x)$.}
190
191
\begin{lstlisting}
192
\end{lstlisting}
193
194
{{(2a) Use Sage to provide evidence that these two functions $f(x)$ and $g(x)$ are the same, perhaps by graphing them both on the same set of axes.}
195
196
197
\begin{lstlisting}
198
\end{lstlisting}
199
200
{{(2b) What is an approximate value for $\cosh(3)$, accurate to three decimal digits? Does this answer look right based on your graph? Explain, rescaling your graph as needed.}
201
202
203
\begin{lstlisting}
204
\end{lstlisting}
205
206
{{(3a) Is it true that $\cosh(-x) = \cosh(x)$ for all $x$? }
207
208
209
\begin{lstlisting}
210
\end{lstlisting}
211
212
{{(3b) Explain your answer to (3a) in a complete sentence.}
213
214
215
\begin{lstlisting}
216
\end{lstlisting}
217
218
{{(4a) What is the limit of $\cosh(x)$ as $x$ approaches infinity? }
219
220
221
\begin{lstlisting}
222
\end{lstlisting}
223
224
{{(4b) Is your answer in (4a) the same as if you use the definition of $\cosh(x)$ in terms of exponentials, as given in (2)? Briefly explain.}
225
226
227
\begin{lstlisting}
228
\end{lstlisting}
229
230
{{(5a) Use Sage to find the derivative of $\cosh(x)$. }
231
232
233
\begin{lstlisting}
234
\end{lstlisting}
235
236
{{(5b) Is your answer to (5a) consistent with the definition $\sinh(x) = (e^x - e^{-x})/2$? Briefly explain.}}
237
238
\end{document}
239
%configuration={"latex_command":"xelatex -synctex=1 -interact=nonstopmode 'tmp.tex'"}
240
241