[npl] / trunk / NationalProblemLibrary / Dartmouth / setStewartCh15S1 / problem_4.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# View of /trunk/NationalProblemLibrary/Dartmouth/setStewartCh15S1/problem_4.pg

Tue Apr 11 16:55:13 2006 UTC (7 years, 1 month ago) by jjholt
File size: 2056 byte(s)
Added tags.  --JH


    1 ## DESCRIPTION
2 ## Calculus
3 ## ENDDESCRIPTION
4
5 ## KEYWORDS('function' 'graph')
6 ## Tagged by tda2d
7
8 ## DBsubject('Calculus')
9 ## DBchapter('Partial Derivatives')
10 ## DBsection('Functions of Several Variables')
11 ## Date('')
12 ## Author('')
13 ## Institution('Dartmouth')
14 ## TitleText1('Calculus')
15 ## EditionText1('5')
16 ## AuthorText1('Stewart')
17 ## Section1('15.1')
18 ## Problem1('')
19
20
21 DOCUMENT();
23            "PGbasicmacros.pl",
24            "PGchoicemacros.pl",
26            "PGauxiliaryFunctions.pl",
27            "PGgraphmacros.pl",
28            "Dartmouthmacros.pl");
29
30
31 ## Do NOT show partial correct answers
32 $showPartialCorrectAnswers = 1; 33 34 @questions = ( 35 "$$f(x,y) = 1/(1 + x^2 + y^2)$$", 36 "$$f(x,y) = (x^2 - y^2)^2$$", 37 "$$f(x,y) = (x - y)^2$$", 38 "$$f(x,y) = \cos(x^2 + y^2)/(1 + x^2 + y^2)$$", 39 "$$f(x,y) = \sin(y)$$", 40 "$$f(x,y) = 3 - x^2 - y^2$$", 41 "$$f(x,y) = \sin(x)\sin(y)e^{-x^2 - y^2}$$", 42 ); 43 44 @images = ( 45 "1c.gif", 46 "2c.gif", 47 "3c.gif", 48 "4c.gif", 49 "5c.gif", 50 "6c.gif", 51 "7c.gif" 52 ); 53 54 @subset = NchooseK(7,7); 55 56 @subset_of_questions = @questions[@subset]; 57 @subset_of_images = @images[@subset]; 58 59 @permutation = NchooseK(7,7); 60 @shuffled_subset_of_images = @subset_of_images[@permutation]; 61 62 63 @captions = @ALPHABET[0..6]; 64 65 ## Ok, we are ready to begin the problem... 66 ## 67 TEXT(beginproblem()); 68 69 70 BEGIN_TEXT 71$BR
72
73 Match the funstions with their contour plots labeled A - G.  These are
74 the same functions as in the previous problem, so you may want to look
75 at the graphs to help you out.  As always, you may click on the
76 thumbnail image to produce a larger image in a new window (sometimes
77 exactly on top of the old one).
78
79 \$PAR
80 END_TEXT
81
82 TEXT(
83      match_questions_list(@subset_of_questions),
84      imageRow(~~@shuffled_subset_of_images,~~@captions)
85      );
86
87 ANS(str_cmp([@ALPHABET[invert(@permutation)]]));
88 ENDDOCUMENT();
89
90
91
92