Diff for /loncom/homework/templates/SimpleMathResponse.problem between versions 1.1 and 1.3

version 1.1, 2008/05/19 21:19:19 version 1.3, 2009/07/06 17:12:47
Line 1 Line 1
 <problem>  <problem>
   
 <script type="loncapa/perl">  <script type="loncapa/perl">
 $x = &random(-1,1,2) * &random(1,5,1);  $x = &random(-1,1,2) * &random(1,5,1);
 $y = &random(-1,1,2) * &random(1,3,1);  $y = &random(-1,1,2) * &random(1,3,1);
Line 9  if ($yaa > 0) { Line 10  if ($yaa > 0) {
 } elsif ($yaa == 0) {  } elsif ($yaa == 0) {
   $yaa = "";    $yaa = "";
 }  }
 $example = "3x$yaa is an example for a function having constant slope which passes through the point ($x | $y). The slope is not given explicitely, so there are different possibilities for this function.";  $example = "3x$yaa is an example for a function having constant slope which passes through the point ($x | $y). The slope is not given explicitly, so there are different possibilities for this function.";
 </script>  </script>
   
 <startouttext />  <startouttext />
Line 19  y(x) = Line 20  y(x) =
 <endouttext />  <endouttext />
   
 <mathresponse answerdisplay="$example" cas="maxima" args="@args">  <mathresponse answerdisplay="$example" cas="maxima" args="@args">
       <answer>
 <answer>  
 y(x):=RESPONSE[1];  y(x):=RESPONSE[1];
 hitspoint:is(abs(y(LONCAPALIST[1]) - LONCAPALIST[2]) <= 0.000000001);  hitspoint:is(abs(y(LONCAPALIST[1]) - LONCAPALIST[2]) <= 0.000000001);
 islinear:is(diff(y(x),x,2) = 0);  islinear:is(diff(y(x),x,2) = 0);
 hitspoint and islinear;  hitspoint and islinear;
 </answer>      </answer>
       <textline readonly="no" size="50" />
 <textline readonly="no" size="50" />  
 </mathresponse>  </mathresponse>
   
 </problem>  </problem>
   

Removed from v.1.1  
changed lines
  Added in v.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>