Annotation of loncom/html/adm/help/tex/Formula_Answers.tex, revision 1.3

1.1       felicia     1: \label{Formula_Answers}
                      2: If the answer to your LON-CAPA problem is
                      3: \begin{quote}
1.2       www         4: \[2x^{2}+6x+\frac{4}{3}\]
1.1       felicia     5: \end{quote}
                      6: You can enter any of the following:
                      7: \begin{itemize}
                      8: \item \begin{verbatim}2x^2+6x+4/3\end{verbatim}
                      9: \item \begin{verbatim}2*x^2+6*x+4/3\end{verbatim}
                     10: \item \begin{verbatim}2(x^2+3x+2/3)\end{verbatim}
1.3     ! felicia    11: \item or any other expression that is equivalent to the answer
1.1       felicia    12: \end{itemize}
                     13: 
                     14: However, if the answer to your LON-CAPA problem has more than one
                     15: variable, such as the following:
                     16: \begin{quote}
                     17: $2xy+3x$
                     18: \end{quote}
                     19: You will need to enter the {*} for all implied multiplication, for
                     20: example:
                     21: \begin{itemize}
                     22: \item\begin{verbatim}2*x*y+3*x\end{verbatim}
                     23: \item\begin{verbatim}x*(2*y+3)\end{verbatim}
                     24: \end{itemize}
                     25: The computer can figure out that 2x is 2{*}x because it is a number
                     26: times a letter, but it can't tell if xy is a two letter variable or
1.2       www        27: if it is x{*}y. Also, it is unclear if {\tt exp} is meant to be
                     28: the exponential function or e{*}x{*}p.
1.1       felicia    29: 
                     30: If your answer is:
                     31: \begin{quote}
1.2       www        32: \[\sqrt{4x}\]
1.1       felicia    33: \end{quote}
                     34: enter the following as your answer:
                     35: \begin{itemize}
                     36: \item\begin{verbatim}sqrt(4x)\end{verbatim}
                     37: \item\begin{verbatim}2sqrt(x)\end{verbatim}
                     38: \item\begin{verbatim}2*sqrt(x)\end{verbatim}
                     39: \end{itemize}
1.2       www        40: Note that LON-CAPA expects expressions, not equations. So
                     41: \begin{verbatim}y=x^2\end{verbatim}
                     42: would not be recognized.

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