Annotation of doc/demo/selfteaching/formula2.problem, revision 1.1

1.1     ! albertel    1: <problem>
        !             2: <script type="loncapa/perl">$coeff1=&random(2,5,1);
        !             3: $coeff2=&random(2,5,1);
        !             4: $power1=&random(3,5,1);
        !             5: $power1a=$power1 - 1;
        !             6: $power2=&random(3,5,1);
        !             7: $power2a=$power2 - 1;
        !             8: $c1Xp1=$coeff1 * $power1;
        !             9: $c2Xp2=$coeff2 * $power2;
        !            10: $answer="$c1Xp1*x^$power1a + $c2Xp2*y^$power2a"
        !            11: </script>
        !            12: <startouttext />What is the derivative of $coeff1*x^$power1 + $coeff2*y^$power2?  <br />
        !            13: <i>Answer is <m eval="on">$ $answer $</m></i><br /><endouttext />
        !            14: <formularesponse answer="$answer" id="11" samples="x,y@1,-1:3,10#10;10,1.01:1000,-1000#4">
        !            15:     <responseparam name="tol" type="tolerance" description="Numerical Tolerance" default="1%" />
        !            16:     <textline size="50" />
        !            17:     <hintgroup>
        !            18:     </hintgroup>
        !            19: </formularesponse>
        !            20: 
        !            21: </problem>

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