[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm /html/adm/help/tex Formula_Answers.tex doc/loncapafiles loncapafiles.lpml

www lon-capa-cvs-allow@mail.lon-capa.org
Mon, 03 Mar 2008 19:37:34 -0000


www		Mon Mar  3 14:37:34 2008 EDT

  Modified files:              
    /doc/loncapafiles	loncapafiles.lpml 
    /loncom/homework	inputtags.pm 
    /loncom/html/adm/help/tex	Formula_Answers.tex 
  Log:
  Help for formula response
  
  
Index: doc/loncapafiles/loncapafiles.lpml
diff -u doc/loncapafiles/loncapafiles.lpml:1.571 doc/loncapafiles/loncapafiles.lpml:1.572
--- doc/loncapafiles/loncapafiles.lpml:1.571	Tue Feb 26 06:06:32 2008
+++ doc/loncapafiles/loncapafiles.lpml	Mon Mar  3 14:37:11 2008
@@ -2,7 +2,7 @@
  "http://lpml.sourceforge.net/DTD/lpml.dtd">
 <!-- loncapafiles.lpml -->
 
-<!-- $Id: loncapafiles.lpml,v 1.571 2008/02/26 11:06:32 bisitz Exp $ -->
+<!-- $Id: loncapafiles.lpml,v 1.572 2008/03/03 19:37:11 www Exp $ -->
 
 <!--
 
@@ -2568,6 +2568,7 @@
 Feedback_Policy.tex;
 Finding_Resources.tex;
 Foils.tex;
+Formula_Answers.tex;
 Formula_Response_Adv_Intro.tex;
 Formula_Response_Example.tex;
 Formula_Response_Limitations.tex;
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.239 loncom/homework/inputtags.pm:1.240
--- loncom/homework/inputtags.pm:1.239	Mon Mar  3 06:22:54 2008
+++ loncom/homework/inputtags.pm	Mon Mar  3 14:37:27 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.239 2008/03/03 11:22:54 bisitz Exp $
+# $Id: inputtags.pm,v 1.240 2008/03/03 19:37:27 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -788,7 +788,8 @@
 	$css_class=$possible_class{'not_charged_try'};
 	$button=1;
     } elsif ($award eq 'BAD_FORMULA') {
-	$message = &mt("Unable to understand formula");
+	$message = &mt("Unable to understand formula").'.';
+        if ($target ne 'tex') {$message.=&Apache::loncommon::help_open_topic('Formula_Answers')};
 	$css_class=$possible_class{'not_charged_try'};
 	$button=1;
     } elsif ($award eq 'INCORRECT') {
Index: loncom/html/adm/help/tex/Formula_Answers.tex
diff -u loncom/html/adm/help/tex/Formula_Answers.tex:1.1 loncom/html/adm/help/tex/Formula_Answers.tex:1.2
--- loncom/html/adm/help/tex/Formula_Answers.tex:1.1	Mon Feb 25 16:29:07 2008
+++ loncom/html/adm/help/tex/Formula_Answers.tex	Mon Mar  3 14:37:33 2008
@@ -1,7 +1,7 @@
 \label{Formula_Answers}
 If the answer to your LON-CAPA problem is
 \begin{quote}
-$2x^{2}+6x+\frac{4}{3}$
+\[2x^{2}+6x+\frac{4}{3}\]
 \end{quote}
 You can enter any of the following:
 \begin{itemize}
@@ -24,11 +24,12 @@
 \end{itemize}
 The computer can figure out that 2x is 2{*}x because it is a number
 times a letter, but it can't tell if xy is a two letter variable or
-if it is x{*}y.
+if it is x{*}y. Also, it is unclear if {\tt exp} is meant to be
+the exponential function or e{*}x{*}p.
 
 If your answer is:
 \begin{quote}
-$\sqrt{4x}$
+\[\sqrt{4x}\]
 \end{quote}
 enter the following as your answer:
 \begin{itemize}
@@ -36,3 +37,6 @@
 \item\begin{verbatim}2sqrt(x)\end{verbatim}
 \item\begin{verbatim}2*sqrt(x)\end{verbatim}
 \end{itemize}
+Note that LON-CAPA expects expressions, not equations. So
+\begin{verbatim}y=x^2\end{verbatim}
+would not be recognized.