File:
[LON-CAPA] /
loncom /
html /
adm /
help /
tex /
Formula_Response_Example.tex
Revision
1.8:
download - view:
text,
annotated -
select for diffs
Tue Aug 27 18:26:52 2013 UTC (10 years, 11 months ago) by
raeburn
Branches:
MAIN
CVS tags:
version_2_12_X,
version_2_11_X,
version_2_11_5_msu,
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,
HEAD
- replace lyxcode with verbatim to eliminate error messages seen in online
help pages rendered using lontexconvert::tth_converted().
\label{Formula_Response_Example}
A very simple formula response problem:
\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}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>