File:  [LON-CAPA] / loncom / html / adm / help / tex / Formula_Response_Sampling.tex
Revision 1.5: download - view: text, annotated - select for diffs
Mon Jan 22 21:49:26 2007 UTC (17 years, 5 months ago) by www
Branches: MAIN
CVS tags: version_2_9_X, version_2_9_99_0, version_2_9_1, version_2_9_0, version_2_8_X, version_2_8_99_1, version_2_8_99_0, version_2_8_2, version_2_8_1, version_2_8_0, version_2_7_X, version_2_7_99_1, version_2_7_99_0, version_2_7_1, version_2_7_0, version_2_6_X, version_2_6_99_1, version_2_6_99_0, version_2_6_3, version_2_6_2, version_2_6_1, version_2_6_0, version_2_5_X, version_2_5_99_1, version_2_5_99_0, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_X, version_2_4_99_0, version_2_4_2, version_2_4_1, version_2_4_0, version_2_3_99_0, version_2_12_X, version_2_11_X, version_2_11_5, version_2_11_4_uiuc, version_2_11_4_msu, version_2_11_4, version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3, version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2, version_2_11_1, version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0_RC1, version_2_11_0, version_2_10_X, version_2_10_1, version_2_10_0_RC2, version_2_10_0_RC1, version_2_10_0, loncapaMITrelate_1, language_hyphenation_merge, language_hyphenation, bz6209-base, bz6209, bz5969, bz2851, PRINT_INCOMPLETE_base, PRINT_INCOMPLETE, HEAD, GCI_3, GCI_2, GCI_1, BZ5971-printing-apage, BZ5434-fox, BZ4492-merge, BZ4492-feature_horizontal_radioresponse
* Templates for formula and mathresponse
* Adding documentation to the manual
* stringresponse, etc, are not a subsubsection of "Foils" in author manual

\label{Formula_Response_Sampling}

As you may know, it is extremely difficult to determine whether a given expression
is exactly equal to another expression in general. For example, is $\sin 2x=2\sin x\cos x$?
LON-CAPA has two ways of finding out if it is:
\begin{itemize}
\item algebraically, using a symbolic algebra system
\item numerically, using sampling points
\end{itemize}

You need to determine which way is the safest in a given situation.

If you don't specify sampling points, the symbolic algebra system is used.

If you do specify sampling points, LON-CAPA uses them.
If your answer and the student's answer
agree at the sampling points within your given tolerance factor, the student's
answer will be accepted. If the student's answer does not agree at the sampling points within your given tolerance factor, it will be rejected.

To specify where to sample the formulas for determining whether the student's
answer is correct, you need to put a sampling specification in the \textbf{Sample
Points}\index{Sample Points} field. The sampling specifications take the
following format:

\begin{enumerate}
\item A comma-separated list of the variables you wish to interpret,
\item followed by {}``@'' (not in quotes),
\item followed by any number of the following two things, separated by semi-colons:

\begin{enumerate}
\item a comma-separated list of as many numbers as there are variables, which specifies
one sampling point, OR
\item a comma-separated list of as many numbers as there are variables, followed
by a colon, followed by another list of as many numbers as there are variables,
followed by a \#, followed by an integer.
\end{enumerate}
\end{enumerate}
The first form specifies one point to sample. The second form specifies a
range for each variable, and the system will take as many random samples
from that range as the number after the \#.

For $2x^{2}+4$, with one variable {}``x'', one could specify:

\begin{itemize}
\item {}``x@2'', which will sample the answers only at 2. (This is generally
a bad idea, as the student could get lucky and match at that point)
\item {}``x@1:5\#4'' will takes 4 samples from somewhere between 1 and 5.
\item {}``x@1:5\#4;10'' will takes 4 samples from somewhere between 1 and 5,
and also sample at 10.
\end{itemize}
For $2x^{2}+3y^{3}+z$, which has three variables, one could specify:

\begin{itemize}
\item {}``x,y,z@4,5,3:10,12,8\#4;0,0,0'', which take four samples from the box determined
by the points (4, 5, 3) and (10, 12, 8), and also sample the point (0, 0, 0).
\end{itemize}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>