Hi Mike,
Above instructions - replacing Utils.pm and Problem.pm - definitely
helped. Now most of the problems display in the library browser, and
"Try it" works for those that do display correctly. Several problems
still don't display, but the error message about &sourceFilePath
has been replaced by errors like the one below. (The
&sourcefilepath error seems to have gone away.)
Thanks,
Lars.
---------------------------------------------------
WeBWorK Error
WeBWorK has encountered a software error while attempting to process
this problem. It is likely that there is an error in the problem
itself. If you are a student, report this error message to your
professor to have it corrected. If you are a professor, please consult
the error output below for more information.
Error messages
expected an answer hash at line 2502 of (eval 209) Died within
main::trim_whitespace called at line 297 of [PG]/macros/listAnswer.pl
from within main::std_list_cmp called at line 33 of
[PG]/macros/unionAnswer.pl from within main::num_union_cmp called at
line 37 of [TMPL]/unionLibrary/setAlgebraAbsoluteValue/p1-abs-b.pg
Error details
Problem1
ERROR caught by Translator while processing problem file:unionLibrary/setAlgebraAbsoluteValue/p1-abs-b.pg
*
expected an answer hash at line 2502 of (eval 209)
Died within main::trim_whitespace called at line 297 of [PG]/macros/listAnswer.pl
from within main::std_list_cmp called at line 33 of [PG]/macros/unionAnswer.pl
from within main::num_union_cmp called at line 37 of [TMPL]/unionLibrary/setAlgebraAbsoluteValue/p1-abs-b.pg
*
------Input Read
1 ##DESCRIPTION
2 ## Inequality
3 ##ENDDESCRIPTION
4 ## K. Lesh, Union College, 9/9/03
5
6 DOCUMENT(); # This should be the first executable line in the problem.
7
8 loadMacros(
9 PG.pl,
10 PGbasicmacros.pl,
11 PGchoicemacros.pl,
12 PGanswermacros.pl,
13 PGauxiliaryFunctions.pl,
14 "PGunion.pl", # Union College utilities
15 "unionAnswer.pl", # Load answer-checker appropriate to the problem
16 "PGcourse.pl", # Customization file for the course
17 );
18
19 TEXT(beginproblem());
20
21 BEGIN_PROBLEM();
22
23 $a = random(1,8,1);
24 $b = random(2,10,1);
25 $c = random(3,15,1);
26 $min=-$a-$b*$c;
27 $max=$b*$c-$a;
28
29 BEGIN_TEXT
30 Solve the following inequality. Enter the answer in interval notation.
31 [ left|frac{x+$a}{$b}right| leq $c ]
32 $BR
33 Answer: {ans_rule(35)}
34 $PAR
35 $INFINITY_UNION_MESSAGE
36 END_TEXT
37
38 $showPartialCorrectAnswers = 0;
39 ANS(num_union_cmp("[$min,$max]"));
40
41 END_PROBLEM();
42 ENDDOCUMENT(); # This should be the last executable line in the problem.;
-----
<| Post or View Comments |>
|