[LON-CAPA-cvs] cvs: loncom /homework lonmaxima.pm

albertel lon-capa-cvs-allow@mail.lon-capa.org
Wed, 11 Jul 2007 18:50:33 -0000


albertel		Wed Jul 11 14:50:33 2007 EDT

  Modified files:              
    /loncom/homework	lonmaxima.pm 
  Log:
  - document where the seemingly random digits come from
  
  
Index: loncom/homework/lonmaxima.pm
diff -u loncom/homework/lonmaxima.pm:1.16 loncom/homework/lonmaxima.pm:1.17
--- loncom/homework/lonmaxima.pm:1.16	Fri Jun 15 17:49:50 2007
+++ loncom/homework/lonmaxima.pm	Wed Jul 11 14:50:33 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Interface routines to MAXIMA CAS
 #
-# $Id: lonmaxima.pm,v 1.16 2007/06/15 21:49:50 albertel Exp $
+# $Id: lonmaxima.pm,v 1.17 2007/07/11 18:50:33 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -134,7 +134,10 @@
     my $socket=&connect();
     my $reply=&compareterms($socket,$response,$answer);
     &disconnect($socket);
+    # integer to string mappings come from capaParser.h
+    # 1 maps to 'EXACT_ANS'
     if ($reply eq 'true') { return 1; }
+    # 7 maps to 'INCORRECT'
     return 7;
 }