[LON-CAPA-cvs] cvs: loncom /homework/templates functionplottwo.problem

www www@source.lon-capa.org
Sat, 13 Nov 2010 13:58:55 -0000


www		Sat Nov 13 13:58:55 2010 EDT

  Modified files:              
    /loncom/homework/templates	functionplottwo.problem 
  Log:
  Better example for how multiple hints work
  
  
Index: loncom/homework/templates/functionplottwo.problem
diff -u loncom/homework/templates/functionplottwo.problem:1.2 loncom/homework/templates/functionplottwo.problem:1.3
--- loncom/homework/templates/functionplottwo.problem:1.2	Sat Nov 13 03:23:03 2010
+++ loncom/homework/templates/functionplottwo.problem	Sat Nov 13 13:58:55 2010
@@ -10,19 +10,25 @@
 </functionplotelements>
 <functionplotruleset>
 <functionplotrule relationship="eq" value="undef" derivative="0" xinitial="$x" index="chargeposition" derivativeorder="0" />
-<functionplotrule relationship="lt" value="0" derivativeorder="0" xinitiallabel="start" xfinallabel="chargeleft" />
+<functionplotrule relationship="lt" value="0" derivativeorder="0" xinitiallabel="start" xfinallabel="chargeleft" index="negleft" />
 <functionplotrule relationship="lt" value="0" derivativeorder="1" xinitiallabel="start" xfinallabel="chargeleft" />
-<functionplotrule relationship="le" value="0" derivativeorder="2" xinitiallabel="start" xfinallabel="chargeleft" />
+<functionplotrule relationship="le" value="0" derivativeorder="2" xinitiallabel="start" xfinallabel="chargeleft" percentageerror="20" />
 <functionplotrule relationship="eq" xinitiallabel="chargeleft" xfinallabel="chargeright" value="undef" derivativeorder="0" />
-<functionplotrule relationship="lt" value="0" derivativeorder="0" xinitiallabel="chargeright" xfinallabel="end" />
+<functionplotrule relationship="lt" value="0" derivativeorder="0" xinitiallabel="chargeright" xfinallabel="end" index="negright" />
 <functionplotrule relationship="gt" value="0" derivativeorder="1" xinitiallabel="chargeright" xfinallabel="end" />
-<functionplotrule relationship="le" value="0" derivativeorder="2" xinitiallabel="chargeright" xfinallabel="end" />
+<functionplotrule relationship="le" value="0" derivativeorder="2" xinitiallabel="chargeright" xfinallabel="end" percentageerror="20" />
 </functionplotruleset>
 
 <hintgroup showoncorrect="no">
 <hintpart on="chargeposition">
 <startouttext />The charge is not in the correct position.<endouttext />
 </hintpart>
+<hintpart on="negleft">
+<startouttext />The potential is zero at negative infinity, and the charge is negative.<endouttext />
+</hintpart>
+<hintpart on="negright">
+<startouttext />The potential is zero at positive infinity, and the charge is negative.<endouttext />
+</hintpart>
 </hintgroup>
 </functionplotresponse>
 </problem>