summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/probsoln/sample.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/probsoln/sample.tex')
-rw-r--r--Master/texmf-dist/doc/latex/probsoln/sample.tex40
1 files changed, 40 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/probsoln/sample.tex b/Master/texmf-dist/doc/latex/probsoln/sample.tex
new file mode 100644
index 00000000000..d797127c944
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/probsoln/sample.tex
@@ -0,0 +1,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}