Diff for /loncom/homework/templates/Plot_curve.problem between versions 1.1 and 1.5

version 1.1, 2003/12/17 16:56:59 version 1.5, 2007/10/29 16:13:10
Line 1 Line 1
 <problem>  <problem>
   
 <script type="loncapa/perl">  <script type="loncapa/perl">
 # Enter computations here  $amplitude=&random(0.5,3.5,0.5);
   $omega=&random(1,2,0.5);
   $function="$amplitude*sin($omega*x)";
 </script>  </script>
   
 <gnuplot width="300" transparent="off" samples="100" grid="on" font="large" bgcolor="xffffff" height="300" align="left" fgcolor="x000000" border="on" plottype="Cartesian" >  <gnuplot width="300" transparent="off" samples="100" grid="on" font="9" bgcolor="xffffff" height="300" align="left" fgcolor="x000000" border="on" plottype="Cartesian" >
     <axis xmin="-5" ymin="-4" xmax="5" ymax="4" color="x000000" />      <axis xmin="-5" ymin="-4" xmax="5" ymax="4" color="x000000" />
     <xlabel>Label X</xlabel>      <xlabel>Label X</xlabel>
     <ylabel>Label Y</ylabel>      <ylabel>Label Y</ylabel>
     <curve linestyle="linespoints" name="My Plot" pointtype="0" color="x000000">      <curve linestyle="linespoints" name="My Plot" pointtype="0" color="x000000">
         <curve>sin(x)</curve>          <function>$function</function>
     </curve>      </curve>
 </gnuplot>  </gnuplot>
   
 <startouttext />Enter Question Text Here.<endouttext />  <startouttext />What is the amplitude of this function?<endouttext />
   
 <numericalresponse answer="">  <numericalresponse answer="$amplitude" format="2s">
     <responseparam name="tol" type="tolerance" description="Numerical Tolerance" default="5%" />      <responseparam name="tol" type="tolerance" description="Numerical Tolerance" default="5%" />
     <responseparam name="sig" type="int_range,0-16" description="Significant Figures" default="0,15" />      
     <textline />      <textline readonly="no" />
 <hintgroup>  
 <startouttext />Enter the hint text here. <endouttext />  
 </hintgroup>  
 </numericalresponse>  </numericalresponse>
 </problem>  </problem>
   

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


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