File:  [LON-CAPA] / loncom / html / adm / help / tex / Formula_Response_Example.tex
Revision 1.3: download - view: text, annotated - select for diffs
Thu Jul 18 15:52:27 2002 UTC (22 years ago) by bowersj2
Branches: MAIN
CVS tags: version_0_5_1, version_0_5, HEAD
Convenince labels added to the top of each file to assist in creating
index-type help files for things like the XML editor screen (where
there's nothing to hook help to).

\label{Formula_Response_Example}

A very simple formula response problem: 

In the \textbf{Script}, place the following:

\begin{lyxcode}
\$slope~=~\&random(-5.0,5.0,.5);

\$yint~~=~\&random(-5.0,5.0,.5);

\$answer~=~{}``\$slope{*}x~+~(\$yint)'';
\end{lyxcode}
\begin{itemize}
\item In the \textbf{Text Block}, place the following: {}``For a line with slope
\$slope and y-intercept \$yint, what is y equal to?''
\item In the \textbf{Answer}, place the following: \$answer
\item Set the Tolerance to .000001.
\item Set the \textbf{Sample Points} to x@0,1,2,3 .\end{itemize}


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