[npl] / trunk / NationalProblemLibrary / Rochester / setLimitsRates2Limits / s1_3_6.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# View of /trunk/NationalProblemLibrary/Rochester/setLimitsRates2Limits/s1_3_6.pg

Sun Mar 26 15:09:45 2006 UTC (7 years, 1 month ago) by jj
File size: 757 byte(s)
Initial import


    1 ##DESCRIPTION
2 ##  Evalute a limit of a fraction of two polynomials
3 ##ENDDESCRIPTION
4
5 ##KEYWORDS('limits')
6
7 DOCUMENT();        # This should be the first executable line in the problem.
8
10 "PG.pl",
11 "PGbasicmacros.pl",
12 "PGchoicemacros.pl",
14 "PGauxiliaryFunctions.pl"
15 );
16
17 TEXT(beginproblem());
18 $showPartialCorrectAnswers = 1; 19 20$a1 = random(3,8,1);
21 $b1 = random(3,8,1); 22$c1 = random(3,8,1);
23 $d1 = random(3,8,1); 24$e1 = random(-3,-1,1);
25
26 TEXT(EV2(<<EOT));
27 Evaluate the limit
28 $\lim_{ x \rightarrow e1 } \frac { b1 x^2 -c1 x +d1 } {x - a1 }$
29 $BR \{ans_rule(25) \} 30$BR
31 EOT
32
33 $ans = ($b1*$e1*$e1 -$c1*$e1 +$d1 )/($e1 - $a1 ); 34 ANS(num_cmp($ans));
35
36 ENDDOCUMENT();        # This should be the last executable line in the problem.
37


 aubreyja at gmail dot com ViewVC Help Powered by ViewVC 1.0.9