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

\usepackage{probsoln}
% use the current year as a random seed so that
% it produces a different set of problems each
% year.
%\PSNrandseed{\year}
% or specify a fixed random seed.
\PSNrandseed{2004}

% Uncomment the following line to generate solution sheet.
\showanswers

\begin{document}
\ifthenelse{\boolean{showanswers}}{\textbf{Solution Sheet}}{}

\begin{enumerate}
\item Differentiate the following functions with respect to $x$:

\begin{enumerate}
\selectrandomly{samples/easy.tex}{6}
\end{enumerate}

\selectrandomly{samples/implicit.tex}{1}
\selectrandomly{samples/1stprncp.tex}{1}

% The problems defined in samples/arg.tex all take
% arguments.
\input{samples/args.tex}

\item Differentiate the following polynomials
\begin{enumerate}
\item \useproblem{diff:quad}{3}{0}{-2}
\item \useproblem{diff:quad}{1}{2}{3}
\item \useproblem{diff:quad}{5}{3}{0}
\end{enumerate}

\end{enumerate}

\end{document}