[rochester] / trunk / rochester_problib / setDerivatives1_5Tangents / ur_dr_1_5_6.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

Annotation of /trunk/rochester_problib/setDerivatives1_5Tangents/ur_dr_1_5_6.pg

 1 : sam 2 ##DESCRIPTION 2 : ##KEYWORDS('derivatives', 'tangent line') 3 : ## Find the derivatives of a polynomial evaluated at a point, use that to 4 : ## find the equation of the tangent line of the curve at that point 5 : ##ENDDESCRIPTION 6 : 7 : DOCUMENT(); # This should be the first executable line in the problem. 8 : 9 : loadMacros( 10 : "PG.pl", 11 : "PGbasicmacros.pl", 12 : "PGchoicemacros.pl", 13 : "PGanswermacros.pl", 14 : "PGauxiliaryFunctions.pl" 15 : ); 16 : 17 : TEXT(&beginproblem); 18 : $showPartialCorrectAnswers = 1; 19 : 20 :$a1 = random(2,5,1); 21 : $b1 = random(2,3,1); 22 :$c1 = random(2,7,1); 23 : $d1 = random(2,6,1); 24 :$n1 = random(3,7,1); 25 : $x1 = random(4,5,1); 26 :$y1 = $a1*$x1+$b1*$x1**.5; 27 : $m1 =$a1+(.5)*$b1*$x1**(-.5); 28 : 29 : TEXT(EV2(<