[LON-CAPA-cvs] cvs: loncom /homework response.pm /html/adm/help/tex Maxima_Argument_Array.tex Maxima_Libraries.tex doc/loncapafiles loncapafiles.lpml

www lon-capa-cvs-allow@mail.lon-capa.org
Sat, 14 Jun 2008 20:17:22 -0000


www		Sat Jun 14 16:17:22 2008 EDT

  Added files:                 
    /loncom/html/adm/help/tex	Maxima_Argument_Array.tex 
                             	Maxima_Libraries.tex 

  Modified files:              
    /doc/loncapafiles	loncapafiles.lpml 
    /loncom/homework	response.pm 
  Log:
  Some documentation
  
  
Index: doc/loncapafiles/loncapafiles.lpml
diff -u doc/loncapafiles/loncapafiles.lpml:1.590 doc/loncapafiles/loncapafiles.lpml:1.591
--- doc/loncapafiles/loncapafiles.lpml:1.590	Tue Jun 10 11:22:34 2008
+++ doc/loncapafiles/loncapafiles.lpml	Sat Jun 14 16:16:52 2008
@@ -2,7 +2,7 @@
  "http://lpml.sourceforge.net/DTD/lpml.dtd">
 <!-- loncapafiles.lpml -->
 
-<!-- $Id: loncapafiles.lpml,v 1.590 2008/06/10 15:22:34 www Exp $ -->
+<!-- $Id: loncapafiles.lpml,v 1.591 2008/06/14 20:16:52 www Exp $ -->
 
 <!--
 
@@ -2704,6 +2704,8 @@
 Leaving_Feedback.tex;
 Login_To_LON-CAPA.tex;
 Math_Response_Problems.tex;
+Maxima_Argument_Array.tex;
+Maxima_Libraries.tex;
 Metadata_Description.tex;
 Navigation_Screen.tex;
 Navmap_Host_Down.tex;
Index: loncom/homework/response.pm
diff -u loncom/homework/response.pm:1.192 loncom/homework/response.pm:1.193
--- loncom/homework/response.pm:1.192	Sat Jun 14 12:34:54 2008
+++ loncom/homework/response.pm	Sat Jun 14 16:16:57 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # various response type definitons response definition
 #
-# $Id: response.pm,v 1.192 2008/06/14 16:34:54 www Exp $
+# $Id: response.pm,v 1.193 2008/06/14 20:16:57 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -499,9 +499,11 @@
 					   ['maxima'],
 					   $token);
 	$result.=&Apache::edit::text_arg('Argument Array:',
-					 'args',$token);
+					 'args',$token).
+                 &Apache::loncommon::help_open_topic('Maxima_Argument_Array');
         $result.=&Apache::edit::text_arg('Libraries:',
-                                         'libraries',$token);
+                                         'libraries',$token).
+                 &Apache::loncommon::help_open_topic('Maxima_Libraries');
 	$result.=&Apache::edit::end_row().&Apache::edit::start_spanning_row();
     } elsif ($target eq 'modified') {
 	my $constructtag;

Index: loncom/html/adm/help/tex/Maxima_Argument_Array.tex
+++ loncom/html/adm/help/tex/Maxima_Argument_Array.tex
\label{Maxima_Argument_Array}
Mathresponse maintains two arrays:
\begin{itemize}
\item RESPONSE: the entries that the student provided
\item LONCAPALIST: the contents of a Perl variable or array passed in the ``Argument Array'' field
\end{itemize}
For example, to check if the student answer is the derivative of the argument list passed:
\begin{verbatim}
<script type="loncapa/perl">@vector=('x^2','x^3');</script>
<mathresponse answerdisplay="$example" cas="maxima" args="@vector" id="11">
    <answer>
diffx:trigsimp(trigreduce(RESPONSE[1]-diff(LONCAPALIST[1],x,1)));
diffy:trigsimp(trigreduce(RESPONSE[2]-diff(LONCAPALIST[2],x,1)));
is (diffx=0 and diffy=0);
    </answer>
    <textline readonly="no" size="50" />
</mathresponse>
\end{verbatim}

Index: loncom/html/adm/help/tex/Maxima_Libraries.tex
+++ loncom/html/adm/help/tex/Maxima_Libraries.tex
\label{Maxima_Libraries}
You can load some Maxima libraries for additional functionality:
\begin{verbatim}
absimp
affine
atensor
atrig1
augmented_lagrangian
contrib_ode
ctensor
descriptive
diag
eigen
facexp
fft
fourie
functs
ggf
grobner
impdiff
ineq
interpol
itensor
lapack
lbfgs
lindstedt
linearalgebra
lsquares
makeOrders
mnewton
mchrpl
ntrig
orthopoly
quadpack
rducon
romberg
scifac
simplex
solve_rec
sqdnst
stats
sterling
sym
units
vect
zeilberger
\end{verbatim}