[npl] / trunk / NationalProblemLibrary / Rochester / setAlgebra18FunInverse / srw2_10_20.pg Repository:
ViewVC logotype

Annotation of /trunk/NationalProblemLibrary/Rochester/setAlgebra18FunInverse/srw2_10_20.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 156 - (view) (download)

1 : jjholt 156 ## DESCRIPTION
2 :     ## Algebra
3 :     ## ENDDESCRIPTION
4 : jj 145
5 : jjholt 156 ## KEYWORDS('function' 'inverse')
6 :     ## Tagged by tda2d
7 :    
8 :     ## DBsubject('Algebra')
9 :     ## DBchapter('Functions')
10 :     ## DBsection('One-to-one Functions and Their Inverses')
11 :     ## Date('')
12 :     ## Author('')
13 :     ## Institution('Rochester')
14 :     ## TitleText1('')
15 :     ## EditionText1('')
16 :     ## AuthorText1('')
17 :     ## Section1('')
18 :     ## Problem1('')
19 :    
20 : jj 145 DOCUMENT(); # This should be the first executable line in the problem.
21 :    
22 :     loadMacros(
23 :     "PG.pl",
24 :     "PGbasicmacros.pl",
25 :     "PGchoicemacros.pl",
26 :     "PGanswermacros.pl",
27 :     "PGauxiliaryFunctions.pl"
28 :     );
29 :    
30 :     TEXT(beginproblem());
31 :     $showPartialCorrectAnswers = 1;
32 :    
33 :     $a1 = random(2,15,1);
34 :    
35 :     TEXT(EV2(<<EOT));
36 :     If \( f(x) = x^2, \quad x \ge 0 \),
37 :     $PAR
38 :     then
39 :     \( f^{-1}( $a1 ) = \) \{ans_rule(10) \}
40 :     EOT
41 :     $ans = sqrt($a1);
42 :     ANS(num_cmp($ans));
43 :    
44 :     ENDDOCUMENT(); # This should be the last executable line in the problem.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9