[LON-CAPA-cvs] cvs: loncom / lonmaxima

riegler lon-capa-cvs-allow@mail.lon-capa.org
Tue, 19 Aug 2008 09:46:36 -0000


riegler		Tue Aug 19 05:46:36 2008 EDT

  Modified files:              
    /loncom	lonmaxima 
  Log:
  We are quite often using the simp flag in maxima. It is quite handy for problems of type "simplify the following expression". However, simp is not reset to its default value (true) by the kill(all) incantation. reset() does the job.
  
  If reset is not wanted here for other reasons, I recommend replacing it by
  simp:true;
  in order to do the job intended here.
  
Index: loncom/lonmaxima
diff -u loncom/lonmaxima:1.37 loncom/lonmaxima:1.38
--- loncom/lonmaxima:1.37	Thu Feb 14 09:09:43 2008
+++ loncom/lonmaxima	Tue Aug 19 05:46:36 2008
@@ -3,7 +3,7 @@
 # The LearningOnline Network with CAPA
 # Connect to MAXIMA CAS
 #
-# $Id: lonmaxima,v 1.37 2008/02/14 14:09:43 bisitz Exp $
+# $Id: lonmaxima,v 1.38 2008/08/19 09:46:36 riegler Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -275,7 +275,7 @@
             &status('Accepting connections');
             my $client = $server->accept()     or last;
             &sync($command);
-            print $command ("display2d:false;kill(all);\n");
+            print $command ("display2d:false;kill(all);reset();\n");
 	    &getmaximaoutput($command,2);
             &sync($command);
             my $syntaxerr = 0;