[LON-CAPA-cvs] cvs: loncom /homework default_homework.lcpm

www lon-capa-cvs@mail.lon-capa.org
Fri, 15 Dec 2006 21:15:44 -0000


www		Fri Dec 15 16:15:44 2006 EDT

  Modified files:              
    /loncom/homework	default_homework.lcpm 
  Log:
  Doesn't make much sense to convert a3 to a*3
  
  
Index: loncom/homework/default_homework.lcpm
diff -u loncom/homework/default_homework.lcpm:1.121 loncom/homework/default_homework.lcpm:1.122
--- loncom/homework/default_homework.lcpm:1.121	Sun Dec 10 19:42:48 2006
+++ loncom/homework/default_homework.lcpm	Fri Dec 15 16:15:42 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # used by lonxml::xmlparse() as input variable $safeinit to Apache::run::run()
 #
-# $Id: default_homework.lcpm,v 1.121 2006/12/11 00:42:48 albertel Exp $
+# $Id: default_homework.lcpm,v 1.122 2006/12/15 21:15:42 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -282,8 +282,6 @@
     $expression=~s/(\d)\s*([a-zA-Z\(])/$1\*$2/gs;
 # a ( -> a*(
     $expression=~s/(\w)\s+\(/$1\*\(/gs;
-# a3 -> a*3;
-    $expression=~s/([a-zA-Z])(\d)/$1\*$2/gs;
 # )a -> )*a; )3 -> )*3; ) 3 -> )*3
     $expression=~s/\)\s*(\w)/\)\*$1/gs;
 # 3&8 -> 3e8; 3&-4 -> 3e-4