forked from kisonecat/git-pull-test
-
Notifications
You must be signed in to change notification settings - Fork 1
/
unit1.tex
76 lines (59 loc) · 1.63 KB
/
unit1.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
\documentclass{ximera}
%% handout
%% nohints
\title{This is Unit 1}
\begin{document}
\begin{abstract}
Today, first things come first.
\end{abstract}
%\youtube{http://www.youtube.com/watch?v=GVlMFJ5TTmg}
This is a version which has been updated automatically!
\begin{exercise}
Given that $s(k)=-k^2-4 k+2$, evaluate $s(4.5)$. Express your answer in decimal notation, please.
\begin{solution}
\begin{hint}
$s(4.5)=-(4.5)^2-4 (4.5)+2$.
\end{hint}
\begin{hint}
$s(4.5)=-36.25$.
\end{hint}
The value of the function $s(k)=-k^2-4 k+2$, evaluated at $k=4.5$, is \answer{-36.25}.
\end{solution}
Here is some text after the first problem.
\end{exercise}
\begin{exercise}
Let's find a function $f(x)$ so that $f(2) = 4$.
\begin{solution}
\begin{hint}
Try a linear function.
\end{hint}
An example is $f(x) = $ \begin{expression-answer}
function validator(f) {
if (f.variables().indexOf('x') == -1) {
feedback( 'You should include an $x$ in your answer.' );
}
if (f.variables().length > 1) {
feedback( 'The only variable you should use is $x$.' );
}
if (abs(f.evaluate( {x:2} ) - 4.0) < 0.0001)
return 1;
feedback( 'Check what happens when you plug in $x=2$.' );
return 0;
}
\end{expression-answer}.
\end{solution}
That is a great example.
\end{exercise}
\begin{exercise}
Here is a multiple choice problem.
\begin{solution}
\begin{multiple-choice}
\choice{Wrong answer A}
\choice{Wrong answer B}
\choice{Wrong answer C}
\choice[correct]{Correct answer D}
\end{multiple-choice}
\end{solution}
Here is some text after the multiple choice.
\end{exercise}
\end{document}