Problem1
ERROR caught by Translator while processing problem file:unionLibrary/setMVlevelsets/levels-1/levels-1.pg
*
Can't locate macro file |PGunion.pl| via path: |.|, |/ww/webwork/courses/daemon2_course/templates/macros|, |/ww/webwork/pg/macros|, |/ww/webwork/union_problib/macros|, |/ww/webwork/nau_problib/macros|, |/ww/webwork/dartmouth_problib/Stewart| at line 310 of (eval 1262)
Died within main::loadMacros called at line 22 of [TMPL]/unionLibrary/setMVlevelsets/levels-1/levels-1.pg
*
------Input Read
1 ## DESCRIPTION
2 ## Identify Level Curves
3 ## ENDDESCRIPTION
4
5 ## KEYWORDS('Graph', 'Multivariable', 'Level Curve')
6 ## Tagged by nhamblet
7
8 ## DBsubject('Calculus')
9 ## DBchapter('Partial Derivatives')
10 ## DBsection('Graphs and Level Surfaces')
11 ## Date('')
12 ## Author('')
13 ## Institution('Union College')
14 ## TitleText1('')
15 ## EditionText1('')
16 ## AuthorText1('')
17 ## Section1('')
18 ## Problem1('')
19
20 DOCUMENT(); # This should be the first executable line in the problem.
21
22 loadMacros(
23 "PGstandard.pl",
24 "PGunion.pl",
25 "Parser.pl",
26 "contextABCD.pl",
27 "imageChoice.pl",
28 "PGcourse.pl"
29 );
30
31
32 TEXT(&beginproblem);
33 BEGIN_PROBLEM();
34
35 ##############################################
36 # Setup
37
38 Context("ABCD")->strings->add(E=>{}, F=>{});
39
40 #
41 # The functions and their associated files
42 #
43 @QA = (
44 "\(f(x,y) = x^2 + y^2\)", "graph1.gif",
45 "\(f(x,y) = 1 - x^2 - y^2\)", "graph2.gif",
46 "\(f(x,y) = \sqrt{x^2 + y^2}\)", "graph3.gif",
47 "\(f(x,y) = 1-\sqrt{x^2 + y^2}\)", "graph4.gif",
48 "\(f(x,y) = e^{-(x^2+y^2)/2}\)", "graph5.gif",
49 "\(f(x,y) = \ln(x^2+y^2 + .1)\)", "graph6.gif",
50 );
51
52 #
53 # The size of the images
54 #
55 $size = [150,150];
56 $tsize = 250;
57
58 ##############################################
59
60 #
61 # use an image match list
62 #
63 $ml = new_image_match_list(
64 link => 0, # don't link to separate image
65 size => $size, # image size in pixels
66 tex_size => $tsize, # tex size in percent times 10
67 border => 0, # image already includes border
68 columns => 3, # number of columns
69 );
70 $ml->{separation} = 3; # separation for questions in the list
71
72 $ml->qa(@QA); # set the questions and answers
73 $ml->choose(4); # select 4 of them
74 $ml->choose_extra(2); # and show the other 2
75
76
77 ##############################################
78 # Main text
79
80 BEGIN_TEXT
81
82 The graphs below show level sets for six different functions, where
83 the red areas represent the the lowest heights and the purple areas
84 are the highest heights.
85 $PAR
86
87 \{$ml->print_a\}
88 $PAR
89
90 Match the following functions with the proper graphs above.
91
92 $BCENTER
93 \{$ml->print_q\}
94 $ECENTER
95
96 END_TEXT
97
98 ##################################################
99 # Answers
100
101 ANS(string_cmp($ml->ra_correct_ans));
102
103 $showPartialCorrectAnswers = 0;
104 install_problem_grader(~~&std_problem_grader);
105
106 ##################################################
107
108 END_PROBLEM();
109 ENDDOCUMENT(); # This should be the last executable line in the problem.
-----