[LON-CAPA-cvs] cvs: loncom /homework/templates HintMathResponse.problem

albertel lon-capa-cvs-allow@mail.lon-capa.org
Mon, 21 May 2007 22:11:08 -0000


albertel		Mon May 21 18:11:08 2007 EDT

  Modified files:              
    /loncom/homework/templates	HintMathResponse.problem 
  Log:
  - add in & 
  
  
Index: loncom/homework/templates/HintMathResponse.problem
diff -u loncom/homework/templates/HintMathResponse.problem:1.2 loncom/homework/templates/HintMathResponse.problem:1.3
--- loncom/homework/templates/HintMathResponse.problem:1.2	Tue Jan 23 16:16:50 2007
+++ loncom/homework/templates/HintMathResponse.problem	Mon May 21 18:11:07 2007
@@ -1,9 +1,9 @@
 <problem>
     <script type="loncapa/perl">
-$a1 = random(-6,6,4);
-$a2 = random(-6,6,4);
-$n1 = random(3,11,2);
-$n2 = random(2,10,2);
+$a1 = &random(-6,6,4);
+$a2 = &random(-6,6,4);
+$n1 = &random(3,11,2);
+$n2 = &random(2,10,2);
 $function = "$a1*cos($n1*x)+$a2*sin($n2*x)";
 $example=&xmlparse('An example would be <m eval="on">$(sin($n1\cdot x)+cos($n2\cdot x))/\sqrt{2}$</m>');
     </script>