| … | |
… | |
| 25 | "PGchoicemacros.pl", |
25 | "PGchoicemacros.pl", |
| 26 | "PGanswermacros.pl", |
26 | "PGanswermacros.pl", |
| 27 | "PGauxiliaryFunctions.pl" |
27 | "PGauxiliaryFunctions.pl" |
| 28 | ); |
28 | ); |
| 29 | |
29 | |
| 30 | TEXT(&beginproblem); |
30 | TEXT(beginproblem()); |
| 31 | $showPartialCorrectAnswers = 1; |
31 | $showPartialCorrectAnswers = 1; |
| 32 | |
32 | |
| 33 | $a = random(2,8,1); |
33 | $a = random(2,8,1); |
| 34 | $b = random(3,7,1); |
34 | $b = random(3,7,1); |
| 35 | |
35 | |
| … | |
… | |
| 46 | $BR |
46 | $BR |
| 47 | |
47 | |
| 48 | EOT |
48 | EOT |
| 49 | |
49 | |
| 50 | $ans = "$a*exp(x) + $b*x"; |
50 | $ans = "$a*exp(x) + $b*x"; |
| 51 | &ANS(function_cmp_up_to_constant($ans,"x")); |
51 | ANS(fun_cmp($ans, mode=>"antider", vars=>"x")); |
| 52 | |
52 | |
| 53 | ENDDOCUMENT(); |
53 | ENDDOCUMENT(); |