[npl] / trunk / NationalProblemLibrary / ASU-topics / setSolveEquations / zhu2.pg Repository:
ViewVC logotype

Annotation of /trunk/NationalProblemLibrary/ASU-topics/setSolveEquations/zhu2.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 237 - (view) (download)

1 : jjholt 101 ##Solve for equations
2 :     ##Algebra
3 : jj 61 ##ENDDESCRIPTION
4 :    
5 :    
6 : jjholt 101 ## KEYWORDS('Equations and Inequalities')
7 :     ## Tagged by ynw2d
8 :    
9 :     ## DBsubject('Algebra')
10 :     ## DBchapter('Equations and Inequalities')
11 : jj 237 ## DBsection('Algebraic and Graphical Solutions of Equations')
12 : jjholt 101 ## Date('')
13 :     ## Author('')
14 :     ## Institution('ASU')
15 :     ## TitleText1('')
16 :     ## EditionText1('')
17 :     ## AuthorText1('')
18 :     ## Section1('')
19 :     ## Problem1('')
20 :    
21 :    
22 : jj 61 DOCUMENT(); # This should be the first executable line in the problem.
23 :    
24 :     loadMacros(
25 :     "PG.pl",
26 :     "PGbasicmacros.pl",
27 :     "PGchoicemacros.pl",
28 :     "PGanswermacros.pl",
29 :     "PGauxiliaryFunctions.pl",
30 :     "PGasu.pl",
31 :     "extraAnswerEvaluators.pl"
32 :     );
33 :    
34 :     TEXT(&beginproblem);
35 :     $showPartialCorrectAnswers = 0;
36 :    
37 :     $a = random(1,10,1);
38 :     $b = list_random(2, 3, 5, 6, 7, 8, 10, 11, 12);
39 :    
40 :     TEXT(EV2(<<EOT));
41 :     Find all real numbers \(x\) which satisfy the following equation.
42 :     $BR
43 :     \[ (x-$a)^5 - $b (x-$a)^3 = 0 \]
44 :     $BR
45 :     Answer: \{ans_rule(35) \}
46 :     $BR
47 :     $BBOLD Note: $EBOLD
48 :     If there is more than one answer, write them separated by commas (e.g., 1, 2).
49 :     Do not list individual values of \(x\) more than once.
50 :     EOT
51 :     $ans1 = "$a+$b^0.5";
52 :     $ans2 = "$a-$b^0.5";
53 :     &ANS(number_list_cmp("$a,$ans1,$ans2"));
54 :    
55 :    
56 :     ENDDOCUMENT(); # This should be the last executable line in the problem.;
57 :    
58 :    

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9