Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 1263
Image: ubuntu2004
1
% generated by smc-sagews2pdf -- 2021-04-12 11:54:48.387167
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{Assignment Week 11}
147
\author{COMP 150}
148
\date{Spring, 2021}
149
\begin{document}
150
\maketitle
151
\begin{lstlisting}
152
# Your name here
153
\end{lstlisting}
154
\begin{lstlisting}
155
\end{lstlisting}
156
157
{{An exponential function $f(x) = b^x$, where $b > 1$, is ``eventually bigger than'' a power function $g(x) = x^p$, where $p>0$. }}
158
159
\begin{lstlisting}
160
\end{lstlisting}
161
162
{{(1) Define the exponential function $f(x) = 2^x$ and the power function $g(x) = x^9$ in Sage for use throughout this assignment.}}
163
164
165
\begin{lstlisting}
166
\end{lstlisting}
167
168
{{(2) What are the limits of $f(x)$ and $g(x)$ as $x$ approaches infinity? Use Sage to support your claim. Explain your work.}}
169
170
171
\begin{lstlisting}
172
\end{lstlisting}
173
174
{{(3) Which function is larger at $x=0$? Use Sage to support your claim. Explain your work.}}
175
176
177
\begin{lstlisting}
178
\end{lstlisting}
179
180
{{(4) At some $x$-value between 1 and 2, the exponential function is overtaken by the power function. Use Sage to support this claim. Use comments to explain your work and conclusions.}}
181
182
183
\begin{lstlisting}
184
\end{lstlisting}
185
186
{{(5) At some $x$-value between 51 and 52 the functions intersect each other again. Use Sage to support this claim. Use comments to explain your work and conclusions.}}
187
188
189
\end{document}
190
%configuration={"latex_command":"xelatex -synctex=1 -interact=nonstopmode 'tmp.tex'"}
191
192