File:  [LON-CAPA] / loncom / homework / templates / functionplottwo.problem
Revision 1.1: download - view: text, annotated - select for diffs
Fri Nov 12 02:16:24 2010 UTC (13 years, 5 months ago) by www
Branches: MAIN
CVS tags: HEAD
* Debug window
* Minimum and maximum length of ranges
* derivative -> derivativeorder
* Another template

<problem>
<script type="loncapa/perl">$x=&random(5,10,1);</script>
<startouttext />
Make a sketch of the electrostatic potential (zero at infinity) of a negative point charge located at x=$x m.
<endouttext />
<functionplotresponse xaxisvisible="yes" xlabel="x [m]" gridvisible="yes" ylabel="V(x) [V]" id="11" xmax="30" yaxisvisible="yes" xmin="-4" ymin="-10" ymax="10">
<spline initx="-2" inity="0" index="A" order="2" scalex="4" />
<spline index="B" order="2" initx="12" inity="0" scalex="4" />
<functionplotrule relationship="eq" value="undef" derivative="0" xinitial="$x" />
<functionplotrule relationship="lt" value="0" derivativeorder="0" xinitiallabel="start" xfinallabel="chargeleft" />
<functionplotrule relationship="lt" value="0" derivativeorder="1" xinitiallabel="start" xfinallabel="chargeleft" />
<functionplotrule relationship="le" value="0" derivativeorder="2" xinitiallabel="start" xfinallabel="chargeleft" />
<functionplotrule relationship="eq" xinitiallabel="chargeleft" xfinallabel="chargeright" value="undef" derivativeorder="0" />
<functionplotrule relationship="lt" value="0" derivativeorder="0" xinitiallabel="chargeright" xfinallabel="end" />
<functionplotrule relationship="gt" value="0" derivativeorder="1" xinitiallabel="chargeright" xfinallabel="end" />
<functionplotrule relationship="le" value="0" derivativeorder="2" xinitiallabel="chargeright" xfinallabel="end" />
</functionplotresponse>
</problem>

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