Diff for /loncom/homework/templates/functionplotback.problem between versions 1.1 and 1.2

version 1.1, 2010/11/13 22:30:32 version 1.2, 2010/11/24 02:53:18
Line 4  $y=&random(-3,3,2); Line 4  $y=&random(-3,3,2);
 $a=&random(0.5,0.9,0.1);  $a=&random(0.5,0.9,0.1);
 if (&random(0,1,1)) {  if (&random(0,1,1)) {
    $function="$a*(x-($x))^2+($y)";     $function="$a*(x-($x))^2+($y)";
      $answer="2*$a*(x-($x))";
    $relation='gt';     $relation='gt';
 } else {  } else {
    $function="-$a*(x-($x))^2+($y)";     $function="-$a*(x-($x))^2+($y)";
      $answer="-2*$a*(x-($x))";
    $relation='lt';     $relation='lt';
 }</script>  }</script>
 <startouttext />  <startouttext />
 Provide a sketch of the derivative of the indicated function<br /> <endouttext />  Provide a sketch of the derivative of the indicated function<br /> <endouttext />
 <functionplotresponse xaxisvisible="yes" xlabel="x" gridvisible="yes" ylabel="y(x)" id="11" xmax="10" yaxisvisible="yes" xmin="-10" ymin="-10" ymax="10">  <functionplotresponse xaxisvisible="yes" xlabel="x" gridvisible="yes" ylabel="y(x)" id="11" xmax="10" yaxisvisible="yes" xmin="-10" ymin="-10" ymax="10" answerdisplay="$answer">
 <functionplotelements>  <functionplotelements>
 <spline initx="-4" inity="0" index="A" order="3" scalex="8" />  <spline initx="-4" inity="0" index="A" order="3" scalex="8" />
 <backgroundplot function="$function" fixed="yes" />  <backgroundplot function="$function" fixed="yes" />

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


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