µ¦å{h­

WeBWorKdocs

sq_webwork:


Home
Current UR courses
Visitor page
Intro to WeBWorK
WeBWorK 2 Twiki
WW Community
Grant Support & awards
Discussion group
Problem library
Write/modify problems
Create & manage course
Tutorial on running a course
HowTos
FAQ
WeBWorK2 FAQ
Software Download
How to Install WW server
Feedback
Site Map
Change preferences
Change password







        Problem1
ERROR caught by Translator while processing problem file:unionLibrary/setMVlevelsets/levels-10a/levels-10a.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-10a/levels-10a.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 "LiveGraphics3D.pl",

29 "PGcourse.pl"

30 );

31

32

33 TEXT(&beginproblem);

34 BEGIN_PROBLEM();

35

36 ##############################################

37 # Setup

38

39 $lsize = [200,200]; # the size of the Live3D images

40 $ltsize = 400; # tex size of the Live3D images

41

42 #

43 # The Live3D files and their associated GIFs

44 #

45 @QA = (

46 "\(\frac{1}{2}x^2 - 3y^2 - z^2 = -1\)", "levels-10a-1",

47 "\(\frac{1}{2}y^2 - 3z^2 - x^2 = -1\)", "levels-10a-2",

48 "\(\frac{1}{2}z^2 - 3x^2 - y^2 = -1\)", "levels-10a-3",

49 "\(\frac{1}{2}x^2 - y^2 - 3z^2 = -1\)", "levels-10a-4",

50

51 "\(2x^2 - 3y^2 - z^2 = 1\)", "levels-10a-5",

52 "\(2y^2 - 3z^2 - x^2 = 1\)", "levels-10a-6",

53 "\(2z^2 - 3x^2 - y^2 = 1\)", "levels-10a-7",

54 "\(2x^2 - y^2 - 3z^2 = 1\)", "levels-10a-8",

55 );

56

57 ##############################################

58

59 #

60 # use an image match list

61 #

62 $ml = new_image_match_list();

63 $ml->{separation} = 5; # spacing between questions

64 $ml->qa(@QA); # set the questions and answers

65 $ml->choose(4); # select 4 of them

66

67 ##############################################

68

69 #

70 # Make a table of the Live3D images

71 #

72

73 sub my_print_a {

74 my $self = shift; my (@name) = @_;

75

76 BeginTable().

77 AlignedRow([Live3D($name[0]),Live3D($name[1])]).

78 TableSpace(5,0).

79 AlignedRow([Bold("A"),Bold("B")]).

80 TableSpace(25,6).

81 AlignedRow([Live3D($name[2]),Live3D($name[3])]).

82 TableSpace(5,0).

83 AlignedRow([Bold("C"),Bold("D")]).

84 EndTable();

85 }

86

87 sub Bold {$BBOLD.$_[0].$EBOLD}

88

89 sub Live3D {

90 my $name = shift;

91 my $mfile = alias("${name}-zip.html");

92 my $gfile = alias("${name}.gif");

93 return Live3Dfile("${name}.m",

94 image => $gfile,

95 archive => $mfile,

96 size => $lsize, tex_size => $ltsize,

97 scale => 1.4);

98 }

99

100 $ml->rf_print_a(~~&my_print_a);

101

102 ##############################################

103 # Main text

104

105 BEGIN_TEXT

106

107 \{ColumnTable(

108 "Match the equations below with the images

109 of their level surfaces at the right.".

110 $BCENTER.$PAR.$ml->print_q.$ECENTER.$PAR.

111 "(You can drag the images to rotate them.)",

112 $ml->print_a,

113 indent => 0, separation => 30, valign => "TOP"

114 )\}

115 $PAR

116

117 END_TEXT

118

119 ##################################################

120 # Answers

121

122 Context("ABCD");

123 ANS(string_cmp($ml->ra_correct_ans));

124

125 $showPartialCorrectAnswers = 0;

126 install_problem_grader(~~&std_problem_grader);

127

128 ##################################################

129

130 END_PROBLEM();

131 ENDDOCUMENT(); # This should be the last executable line in the problem.

-----


WARNINGS
µ¦å{h­

Last update: Saturday, April 6, 2002 at 9:14:16 PM.
This site maintained using Manila and Frontier software.