--- loncom/html/adm/help/tex/Formula_Response_Example.tex 2002/07/18 15:52:27 1.3
+++ loncom/html/adm/help/tex/Formula_Response_Example.tex 2013/08/27 18:26:52 1.8
@@ -2,19 +2,17 @@
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{Script}, place the following:
+\end{itemize}
+\begin{verbatim}
+$slope = &random(-5.0,5.0,.5);
+$yint = &random(-5.0,5.0,.5);
+$answer = "$slope*x + ($yint)";
+\end{verbatim}
\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}
+\item Set the \textbf{Sample Points} to x@0;1;2;3 .\end{itemize}