Log of /trunk/webwork/system/courseScripts/PGanswermacros.pl
Parent Directory
Revision
237 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Oct 19 15:59:44 2001 UTC (11 years, 8 months ago) by
apizer
File length: 144202 byte(s)
Diff to
previous 227
Fixed bug in std_num_cmp (and 7 other related answer evaluators) so that
relative tolerances can be set
Revision
172 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 30 03:03:19 2001 UTC (11 years, 9 months ago) by
gage
File length: 143304 byte(s)
Diff to
previous 159
Made sure that num_cmp, fun_cmp and str_cmp return an
answer evaluator when used in scalar context. In other words
$ans_eval = num_cmp(234);
will now work as expected -- you will get one answer evaluator which
checks whether the answer is 234.
Previously you had to write:
($ans_eval) = num_cmp(234);
or else you would have the numeral 1 placed in $ans_eval since
that is how many answer evaluators were created.
Revision
159 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 23 23:56:03 2001 UTC (11 years, 9 months ago) by
gage
File length: 143207 byte(s)
Diff to
previous 154
Modified NUM_CMP so that it always places a numerical value in
$rh_ans->{correct_ans} even when the original answer is an
exression to be evaluated by perl.
Also modified prfmt so that it doesn't try to format arithmetic
expressions using sprintf
Revision
154 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Aug 21 01:23:43 2001 UTC (11 years, 10 months ago) by
gage
File length: 142972 byte(s)
Diff to
previous 135
Added a default value for tolerance to is_zero_array
macro and removed the allow_unknown_defaults value.
Changed the call to is_zero_array from tol to tolerance in
FUNCTION_CMP.
Previously, because of the mislabeling of 'tolerance' as 'tol' the
tolerance value could not be set and was always being
set to a default value.
Revision
119 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Aug 11 01:48:05 2001 UTC (11 years, 10 months ago) by
gage
File length: 141882 byte(s)
Diff to
previous 110
Added pod comments to PGanswermacros for some of the filters.
I also rearranged the structure of the file slightly to make it
easier to add the pod documentation.
Revision
110 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 9 21:39:26 2001 UTC (11 years, 10 months ago) by
gage
File length: 138377 byte(s)
Diff to
previous 103
Changes made to best approximation parameters -- added
set_default_options call. Removed some warning messages.
Revision
103 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Aug 8 02:29:05 2001 UTC (11 years, 10 months ago) by
gage
File length: 137859 byte(s)
Diff to
previous 88
Changed names in calculate difference vector subroutine to make the
process a bit clearer. There is still more work to be done.
Revision
88 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jul 12 14:53:58 2001 UTC (11 years, 11 months ago) by
apizer
File length: 137731 byte(s)
Diff to
previous 84
Fixed bug so that now functions with negative values are handled correctly
Line 2451 has been replaced by line 2452
Revision
49 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 21 19:53:59 2001 UTC (12 years ago) by
chris
File length: 144309 byte(s)
Diff to
previous 44
Added "evaluatesToNumber" subroutine. In conjunction with fix_answer_for_display filter, this now fixes a bug with displaying student_ans in a problem that allows strings for valid answers.
Revision
40 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 21 13:33:27 2001 UTC (12 years ago) by
gage
File length: 143666 byte(s)
Diff to
previous 36
Changed NUM_CMP so that the calculated versions of the student's answer
and the professor's remain in the answer hash to be displayed by
displayMacros.
There are now slight clues, when using num_str_cmp that the
instructor's answer is a string. I'm not sure anyone can find them
easily. Further refinements should be able to remove them in any case.
Revision
36 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 20 20:01:26 2001 UTC (12 years ago) by
gage
File length: 143259 byte(s)
Diff to
previous 35
Simplified some of the scripts. Using forking there is no need
to evaluate $main:: everytime, since it remains the same for both
the parent (where the script is compiled) and in the child where
the script is executed.
There were other minor fixes to work around bugs in 5.6.0 which were
fixed in 5.6.1
Revision
28 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 19 20:56:08 2001 UTC (12 years ago) by
gage
File length: 151283 byte(s)
Diff to
previous 22
Fixed problem in dangerousMacros.pl defining i so that it can be used
as a complex number.
Fixed htmlLink so that it gives a friendly error message about broken links
when fed an undefined url.
Revision
22 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 19 13:07:28 2001 UTC (12 years ago) by
chris
File length: 151275 byte(s)
Diff to
previous 11
Added unix-style filters to NUM_CMP and re-routed all numerical answer evaluators to num_cmp. Combined numerical_compare_with_units and NUM_CMP.
Revision
8 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 15 16:24:03 2001 UTC (12 years ago) by
gage
File length: 131192 byte(s)
Diff to
previous 6
modified use lib lines in cgi-scripts, scripts, courseScripts
removed Global.pm updating and use lib line code from system_webwork_setup
modified Global.pm to use webworkConfig (which is not in the repository!)
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.