| 1 |
% This file is public domain |
| 2 |
\documentclass[a4paper]{article} |
| 3 |
|
| 4 |
\usepackage{probsoln} |
| 5 |
%uncomment the following line to display the answers |
| 6 |
%\showanswers |
| 7 |
|
| 8 |
% Set the academic year to be 2011/12 (if omitted assume current |
| 9 |
% academic year): |
| 10 |
\SetStartYear{2011} |
| 11 |
|
| 12 |
% Set the seed for the random number generator: |
| 13 |
\PSNrandseed{\GetStartYear} |
| 14 |
|
| 15 |
% Exclude problems that have been used this year or the previous |
| 16 |
% two academic years. (Creates a file called 'excluded.tex' to |
| 17 |
% store labels of used problems. Also creates a file called |
| 18 |
% \jobname.prb that stores labels of problems used in this |
| 19 |
% document, so they don't get excluded on subsequent runs.) |
| 20 |
\ExcludePreviousFile[3]{excluded} |
| 21 |
|
| 22 |
% To clear the used problems file (\jobname.prb) of the labels |
| 23 |
% generated in the previous run, comment the above and uncomment |
| 24 |
% below: |
| 25 |
% \ClearUsedFile{excluded} |
| 26 |
|
| 27 |
% Load 1 problem randomly selected from the given file |
| 28 |
% and store in database 'firstprinciples': |
| 29 |
\loadrandomproblems[firstprinciples]{1}{prob-1stprncp} |
| 30 |
|
| 31 |
% Load 5 problems randomly selected from the given file |
| 32 |
% and store in database 'easy': |
| 33 |
\loadrandomproblems[easy]{5}{prob-easy} |
| 34 |
|
| 35 |
% Load 2 problems randomly selected from the given file |
| 36 |
% and store in database 'implicit': |
| 37 |
\loadrandomproblems[implicit]{2}{prob-implicit} |
| 38 |
|
| 39 |
% Load 2 problems randomly selected from the given file |
| 40 |
% and store in database 'probspaces': |
| 41 |
\loadrandomproblems[probspaces]{2}{prob-probspaces} |
| 42 |
|
| 43 |
% Load 1 problem randomly selected from the given file |
| 44 |
% and store in database 'mchoice': |
| 45 |
\loadrandomproblems[mchoice]{1}{prob-mchoice} |
| 46 |
|
| 47 |
% Load 1 problem randomly selected from the given file |
| 48 |
% and store in database 'nosoln': |
| 49 |
\loadrandomproblems[nosoln]{1}{prob-nosoln} |
| 50 |
|
| 51 |
|
| 52 |
\begin{document} |
| 53 |
\title{Sample Problem Sheet} |
| 54 |
\author{Nicola Talbot} |
| 55 |
\maketitle |
| 56 |
|
| 57 |
\begin{enumerate} |
| 58 |
% Differentiation from first principles |
| 59 |
\foreachproblem[firstprinciples]{\item \thisproblem} |
| 60 |
|
| 61 |
\item Differentiate the following functions: |
| 62 |
\begin{enumerate} |
| 63 |
\foreachproblem[easy]{\item \thisproblem} |
| 64 |
\end{enumerate} |
| 65 |
|
| 66 |
% Implicit differentiation |
| 67 |
\foreachproblem[implicit]{\item \thisproblem} |
| 68 |
|
| 69 |
% Finite probability spaces |
| 70 |
\foreachproblem[probspaces]{\item \thisproblem} |
| 71 |
|
| 72 |
% Multiple choice question |
| 73 |
\foreachproblem[mchoice]{\item \thisproblem} |
| 74 |
|
| 75 |
% select one essay style question that doesn't come with a solution |
| 76 |
|
| 77 |
\foreachproblem[nosoln]{\item \thisproblem} |
| 78 |
\end{enumerate} |
| 79 |
\end{document} |