[npl] / trunk / NationalProblemLibrary / Union / setAlgebraInequalities / srw1_7_53.pg Repository:
ViewVC logotype

Annotation of /trunk/NationalProblemLibrary/Union/setAlgebraInequalities/srw1_7_53.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 882 - (view) (download)

1 : dpvc 882 ## DESCRIPTION
2 :     ## Algebra
3 :     ## ENDDESCRIPTION
4 : jj 248
5 : dpvc 882 ## KEYWORDS('algebra','inequalities')
6 :     ## Tagged by cmd6a 8/6/06
7 : jjholt 319
8 : dpvc 882 ## DBsubject('Algebra')
9 :     ## DBchapter('Equations and Inequalities')
10 :     ## DBsection('Nonlinear Inequalities')
11 :     ## Date('8/23/07')
12 :     ## Author('K. Lesh')
13 :     ## Institution('Union College')
14 :     ## TitleText1('')
15 :     ## EditionText1('')
16 :     ## AuthorText1('')
17 :     ## Section1('')
18 :     ## Problem1('')
19 : jjholt 319
20 : dpvc 882 DOCUMENT(); # This should be the first executable line in the problem.
21 :    
22 :     loadMacros(
23 :     "PGstandard.pl",
24 :     "PGunion.pl", # Union College utilities
25 :     "MathObjects.pl",
26 :     "PGcourse.pl", # Customization file for the course
27 :     );
28 :    
29 :     TEXT(beginproblem);
30 :    
31 :     Context("Interval");
32 :    
33 :     ###################################
34 :     # Setup
35 :    
36 :     $a = random(2,10,1);
37 :     $a2 = $a*$a;
38 :    
39 :     ###################################
40 :     # Main text
41 :    
42 :     BEGIN_TEXT
43 :     Solve the following inequality. Express the answer in interval notation.
44 :     \[ x^4 > $a2 x^2 \]
45 :     Answer: \{ans_rule(35)\}
46 :     $PAR
47 :     $INFINITY_UNION_MESSAGE
48 :     END_TEXT
49 :    
50 :     ###################################
51 :     # Answers
52 :    
53 :     $showPartialCorrectAnswers = 0;
54 :    
55 :     $ans1 = -$a;
56 :     $ans2 = $a;
57 :    
58 :     ANS(Union("(-infinity,$ans1)U($ans2,infinity)")->cmp);
59 :    
60 :     ###################################
61 :    
62 :     ENDDOCUMENT(); # This should be the last executable line in the problem.;

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9