[npl] / trunk / NationalProblemLibrary / Michigan / Chap16Sec4 / Q21.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# Diff of /trunk/NationalProblemLibrary/Michigan/Chap16Sec4/Q21.pg

Revision 2970 Revision 2971
36# "PGcourse.pl", 36# "PGcourse.pl",
37); 37);
38 38
39Context("Numeric"); 39Context("Numeric");
40Context()->variables->are( r=>'Real', t=>'Real' ); 40Context()->variables->are( r=>'Real', t=>'Real' );
41Context()->variables->set( t=>{limits=>[-pi()/4,pi()/4]} );
41$showPartialCorrectAnswers = 1; 42$showPartialCorrectAnswers = 1;
42 43
43$ao2 = random(1,5,1); 44$ao2 = random(1,5,1);
44$a = 2*$ao2; 45$a = 2*$ao2;
45$t0 = Compute("-pi/4"); 46$t0 = Compute("-pi/4");
76$ECENTER 77$ECENTER
77 78
78END_TEXT 79END_TEXT
79Context()->normalStrings; 80Context()->normalStrings;
80 81
81ANS($t0->cmp() ); 82ANS($t0->cmp() );
82ANS($t1->cmp() ); 83ANS($t1->cmp() );
83ANS($r0->cmp() ); 84ANS($r0->cmp() );
84ANS($r1->cmp() ); 85ANS($r1->cmp() );
85ANS($rvar->cmp() ); 86ANS($rvar->cmp() );
86ANS($integr->cmp() ); 87ANS($integr->cmp() );
87ANS($antide->cmp() ); 88ANS($antide->cmp() );
88ANS($result->cmp() ); 89ANS($result->cmp() );
89 90
90Context()->texStrings; 91Context()->texStrings;
91SOLUTION(EV3(<<'END_SOLUTION')); 92SOLUTION(EV3(<<'END_SOLUTION'));
92$PAR SOLUTION$PAR 93$PAR SOLUTION$PAR
93 94
116\cdot (2\sqrt{$a}) =$a\). 117\cdot (2\sqrt{$a}) =$a\).
117 118
118END_SOLUTION 119END_SOLUTION
119Context()->normalStrings; 120Context()->normalStrings;
120 121
122COMMENT('Uses MathObjects');
121 123
122COMMENT('MathObject version');
123ENDDOCUMENT(); 124ENDDOCUMENT();

Legend:
 Removed from v.2970 changed lines Added in v.2971