summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/probsoln/samples/sample.tex
blob: e80c8dff020beacf02d6e8ea74ffcb8404c20975 (plain)
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
\documentclass[a4paper]{article}

\usepackage{probsoln}
 %uncomment the following line to display the answers
\showanswers

 % The following will generate a different set of
 % problems in subsequent years
 %\PSNrandseed{\year}
\PSNrandseed{2007}

\begin{document}
\title{Sample Problem Sheet}
\author{Nicola Talbot}
\maketitle

\begin{enumerate}
 % Differentiation from first principles
\selectrandomly{1stprncp}{1}

\item Differentiate the following functions:
\newcount\oldseed
\PSNgetrandseed\oldseed
\begin{enumerate}
\selectrandomly{easy}{5}
\end{enumerate}
\PSNrandseed\oldseed

 % Implicit differentiation
\selectrandomly{implicit}{2}

 % Finite probability spaces
\selectrandomly{probspaces}{2}

 % Multiple choice question
\selectrandomly{mchoice}{1}

 % select one essay style question that doesn't come with a solution

\selectrandomly{nosoln}{1}
\end{enumerate}
\end{document}