Parent Directory
|
Revision Log
Adding NAU problems to the NPL
1 ##DESCRIPTION 2 ## DBsubject('Algebra') 3 ## DBchapter('Exponential and Logarithmic Functions') 4 ## DBsection('Exponential and Logarithmic Equations') 5 ## KEYWORDS() 6 ## Author('Katie Louchart') 7 ## Institution('NAU') 8 ##ENDDESCRIPTION 9 10 # File Created: 8/9/05 11 # Location: Northern Arizona University 12 # Course: Prcalculus 13 14 DOCUMENT(); # This should be the first executable line in the problem. 15 loadMacros("PG.pl", 16 "PGbasicmacros.pl", 17 "PGchoicemacros.pl", 18 "PGanswermacros.pl", 19 "PGauxiliaryFunctions.pl", 20 "PGasu.pl", 21 "extraAnswerEvaluators.pl" 22 ); 23 24 TEXT(&beginproblem); 25 26 $showPartialCorrectAnswers = 1; 27 28 $n=random(2,5,1); 29 30 do { 31 $d=random(2,5,1); 32 $divisor=gcd($n, $d); 33 } until ($divisor==1); 34 35 $e=random(2,4,1); 36 37 $N=($n)**($e); 38 $D=($d)**($e); 39 40 $ans1=$e; 41 $ans2=-$e; 42 43 BEGIN_TEXT 44 Solve the given equations for \( x \). 45 46 $PAR 47 \( (\frac{$n}{$d})^x = \frac{$N}{$D} \) 48 $BR 49 \( x = \) \{ans_rule(20) \} 50 $PAR 51 $PAR 52 \( (\frac{$n}{$d})^x = \frac{$D}{$N} \) 53 $BR 54 \( x = \) \{ans_rule(20) \} 55 56 END_TEXT 57 58 &ANS(std_num_cmp($ans1)); 59 &ANS(std_num_cmp($ans2)); 60 61 ENDDOCUMENT();
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |