-
-
Notifications
You must be signed in to change notification settings - Fork 436
Expand file tree
/
Copy pathstef16_1p2.pg
More file actions
105 lines (85 loc) · 3.06 KB
/
Copy pathstef16_1p2.pg
File metadata and controls
105 lines (85 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
## DESCRIPTION
## Multivariable Calculus
## ENDDESCRIPTION
## Tagged by cmd6a 3/12/06
## DBsubject(Calculus - multivariable)
## DBchapter(Vector fields)
## DBsection(Graphs, flows lines, and level surfaces)
## Institution(ASU)
## Level(3)
## TitleText1('Calculus: Early Transcendentals')
## AuthorText1('Stewart')
## EditionText1('5')
## Section1('16.1')
## Problem1('14 15 16 17')
## TitleText2('Calculus: Early Transcendentals')
## AuthorText2('Stewart')
## EditionText2('6')
## Section2('16.1')
## Problem2('')
## TitleText3('Calculus: Early Transcendentals')
## AuthorText3('Rogawski')
## EditionText3('1')
## Section3('16.1')
## Problem3('14 15 16 17')
## KEYWORDS('calculus','vector field','gradient')
DOCUMENT();
loadMacros(
"PGstandard.pl",
"PGchoicemacros.pl",
"PGgraphmacros.pl",
"Dartmouthmacros.pl",
"PGcourse.pl"
);
## Do NOT show partial correct answers
$showPartialCorrectAnswers = 0;
@questions = (
"\( f(x,y) = x y \)",
"\( f(x,y) = x^2 - y^2 \)",
"\( f(x,y) = x^2 + y^2 \)",
"\( f(x,y) = \sqrt{x^2+y^2}\)"
);
@images = (
"1.gif",
"2.gif",
"3.gif",
"4.gif"
);
@subset = NchooseK(4,4);
@subset_of_questions = @questions[@subset];
@subset_of_images = @images[@subset];
@permutation = NchooseK(4,4);
@shuffled_subset_of_images = @subset_of_images[@permutation];
@captions = @ALPHABET[0..3];
## Ok, we are ready to begin the problem...
##
TEXT(beginproblem());
BEGIN_TEXT
$BR
Match the functions \( f \) with the plots of their gradient
vector fields labeled A-D.
$BR$BR
${BBOLD}A.$EBOLD$SPACE\{ image($shuffled_subset_of_images[0], width => 400, height => 400, extra_html_tags => 'align="middle"',
alt=>"Gradient vector field plot showing arrows indicating direction and magnitude of the gradient of a function across a two-dimensional region."
) \}
$BR
${BBOLD}B.$EBOLD$SPACE\{ image($shuffled_subset_of_images[1], width => 400, height => 400, extra_html_tags => 'align="middle"',
alt=>"Gradient vector field plot showing arrows indicating direction and magnitude of the gradient of a function across a two-dimensional region."
) \}
$BR
${BBOLD}C.$EBOLD$SPACE\{ image($shuffled_subset_of_images[2], width => 400, height => 400, extra_html_tags => 'align="middle"',
alt=>"Gradient vector field plot showing arrows indicating direction and magnitude of gradient vectors across a two-dimensional region."
) \}
$BR
${BBOLD}D.$EBOLD$SPACE\{ image($shuffled_subset_of_images[3], width => 400, height => 400, extra_html_tags => 'align="middle"',
alt=>"Gradient vector field plot showing arrows indicating direction and magnitude of the gradient of a function across a rectangular region."
) \}
$BR
$BR
\{ ans_rule(5)\} ${BBOLD}1.$EBOLD$SPACE $subset_of_questions[0] $BR
\{ ans_rule(5)\} ${BBOLD}2.$EBOLD$SPACE $subset_of_questions[1] $BR
\{ ans_rule(5)\} ${BBOLD}3.$EBOLD$SPACE $subset_of_questions[2] $BR
\{ ans_rule(5)\} ${BBOLD}4.$EBOLD$SPACE $subset_of_questions[3]
END_TEXT
ANS(str_cmp([@ALPHABET[invert(@permutation)]]));
ENDDOCUMENT();