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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Fri, 15 Jun 2007 21:49:50 -0000


albertel		Fri Jun 15 17:49:50 2007 EDT

  Modified files:              
    /loncom/homework	lonmaxima.pm 
  Log:
  - need parentheses
  
  
Index: loncom/homework/lonmaxima.pm
diff -u loncom/homework/lonmaxima.pm:1.15 loncom/homework/lonmaxima.pm:1.16
--- loncom/homework/lonmaxima.pm:1.15	Tue May 29 16:56:39 2007
+++ loncom/homework/lonmaxima.pm	Fri Jun 15 17:49:50 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Interface routines to MAXIMA CAS
 #
-# $Id: lonmaxima.pm,v 1.15 2007/05/29 20:56:39 albertel Exp $
+# $Id: lonmaxima.pm,v 1.16 2007/06/15 21:49:50 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -121,7 +121,7 @@
 
 sub compareterms {
     my ($socket,$terma,$termb)=@_;
-    my $difference=$terma.'-'.$termb;
+    my $difference=$terma.'-('.$termb.')';
     if (&blacklisted($difference)) { return 'Error: blacklisted'; }
     my $reply=&maximareply($socket,'trigsimp(trigreduce('.$difference.'));');
     if ($reply=~/^\s*0\s*$/) { return 'true'; }