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 (16 years, 10 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
1: <problem>
2:
3: <script type="loncapa/perl">
4: $amplitude=&random(0.5,3.5,0.5);
5: $omega=&random(1,2,0.5);
6: $function="$amplitude*sin($omega*x)";
7: </script>
8:
9: <gnuplot width="300" transparent="off" samples="100" grid="on" font="9" bgcolor="xffffff" height="300" align="left" fgcolor="x000000" border="on" plottype="Cartesian" >
10: <axis xmin="-5" ymin="-4" xmax="5" ymax="4" color="x000000" />
11: <xlabel>Label X</xlabel>
12: <ylabel>Label Y</ylabel>
13: <curve linestyle="linespoints" name="My Plot" pointtype="0" color="x000000">
14: <function>$function</function>
15: </curve>
16: </gnuplot>
17:
18: <startouttext />What is the amplitude of this function?<endouttext />
19:
20: <numericalresponse answer="$amplitude" format="2s">
21: <responseparam name="tol" type="tolerance" description="Numerical Tolerance" default="5%" />
22:
23: <textline readonly="no" />
24:
25: </numericalresponse>
26: </problem>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>