File:
[LON-CAPA] /
loncom /
homework /
templates /
Plot_curve.problem
Revision
1.5:
download - view:
text,
annotated -
select for diffs
Mon Oct 29 16:13:10 2007 UTC (17 years, 5 months ago) by
www
Branches:
MAIN
CVS tags:
version_2_9_X,
version_2_9_1,
version_2_9_0,
version_2_8_X,
version_2_8_99_1,
version_2_8_99_0,
version_2_8_2,
version_2_8_1,
version_2_8_0,
version_2_7_X,
version_2_7_99_1,
version_2_7_99_0,
version_2_7_1,
version_2_7_0,
version_2_6_X,
version_2_6_99_1,
version_2_6_99_0,
version_2_6_3,
version_2_6_2,
version_2_6_1,
version_2_6_0,
version_2_5_99_1,
version_2_5_99_0,
bz5969,
HEAD,
GCI_2,
GCI_1,
BZ5971-printing-apage,
BZ5434-fox
People did not understand the other template
<problem>
<script type="loncapa/perl">
$amplitude=&random(0.5,3.5,0.5);
$omega=&random(1,2,0.5);
$function="$amplitude*sin($omega*x)";
</script>
<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" />
<xlabel>Label X</xlabel>
<ylabel>Label Y</ylabel>
<curve linestyle="linespoints" name="My Plot" pointtype="0" color="x000000">
<function>$function</function>
</curve>
</gnuplot>
<startouttext />What is the amplitude of this function?<endouttext />
<numericalresponse answer="$amplitude" format="2s">
<responseparam name="tol" type="tolerance" description="Numerical Tolerance" default="5%" />
<textline readonly="no" />
</numericalresponse>
</problem>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>