Annotation of doc/demo/selfteaching/formula.problem, revision 1.1
1.1 ! albertel 1: <problem><displaytitle />
! 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="$coeff1*$power1*x^$power1a + $coeff2*$power2*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 id="11" samples="x,y@1,-1:3,10#10;10,1.01:1000,-1000#4" answer="$answer">
! 15: <responseparam description="Numerical Tolerance" default="0.0001" type="tolerance" name="tol" />
! 16: <textline size="50" />
! 17: <hintgroup>
! 18: </hintgroup>
! 19: </formularesponse>
! 20:
! 21: </problem>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>