[system] / trunk / webwork / system / courseScripts / PGanswermacros.pl Repository:
ViewVC logotype

Log of /trunk/webwork/system/courseScripts/PGanswermacros.pl

Parent Directory Parent Directory


Sticky Revision:
(Current path doesn't exist after revision 1074)

Revision 172 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 30 03:03:19 2001 UTC (11 years, 8 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, 9 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 135 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 15 14:45:38 2001 UTC (11 years, 9 months ago) by ch003i
File length: 143103 byte(s)
Diff to previous 125
Added 'allow_unknown_options' in is_a_zero_array filter to avoid error in function_cmp routine.

Revision 125 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 13 18:12:32 2001 UTC (11 years, 9 months ago) by gage
File length: 143064 byte(s)
Diff to previous 124
Updating pod documentation

Revision 124 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 13 16:09:14 2001 UTC (11 years, 9 months ago) by gage
File length: 143082 byte(s)
Diff to previous 122
Updating pod documentation

Revision 122 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 11 03:17:43 2001 UTC (11 years, 9 months ago) by gage
File length: 143336 byte(s)
Diff to previous 120
More adjustments to documentation for answer evaluators

Revision 120 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 11 02:25:08 2001 UTC (11 years, 9 months ago) by gage
File length: 143160 byte(s)
Diff to previous 119
More documentation added.

Revision 119 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 11 01:48:05 2001 UTC (11 years, 9 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, 9 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, 9 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, 10 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 84 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 3 12:54:15 2001 UTC (11 years, 10 months ago) by apizer
File length: 137626 byte(s)
Diff to previous 81
added line 3618 so that only capital E's will be used in scientific notation

Revision 81 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 2 19:13:35 2001 UTC (11 years, 10 months ago) by chris
File length: 137538 byte(s)
Diff to previous 54
Continuing standardizing spacing and fixing comments.

Revision 54 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 22 18:45:00 2001 UTC (11 years, 11 months ago) by chris
File length: 138192 byte(s)
Diff to previous 53
Continuing to edit the file to fix spacing and ordering of subroutines.

Revision 53 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 22 17:34:13 2001 UTC (11 years, 11 months ago) by chris
File length: 138788 byte(s)
Diff to previous 50
Removed already-commented-out routines which were no longer needed.

Revision 50 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 21 20:38:56 2001 UTC (11 years, 11 months ago) by chris
File length: 144653 byte(s)
Diff to previous 49
Split evalutesToNumber into subroutine is_a_numeric_expression.  No changes in functionality.

Revision 49 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 21 19:53:59 2001 UTC (11 years, 11 months 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 44 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 21 15:38:33 2001 UTC (11 years, 11 months ago) by chris
File length: 143846 byte(s)
Diff to previous 41
Corrected "unrecognizable units" error message so it is displayed correctly.

Revision 41 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 21 14:40:51 2001 UTC (11 years, 11 months ago) by chris
File length: 143796 byte(s)
Diff to previous 40
Added postfilter fix_answers_for_display which incorporates all changes made in previous version.

Revision 40 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 21 13:33:27 2001 UTC (11 years, 11 months 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 (11 years, 11 months 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 35 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 20 19:04:08 2001 UTC (11 years, 11 months ago) by chris
File length: 143169 byte(s)
Diff to previous 34
Modified num_cmp to use filters for string comparsions.  Routed std_num_str_cmp through num_cmp routines.

Revision 34 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 20 02:02:49 2001 UTC (11 years, 11 months ago) by gage
File length: 154186 byte(s)
Diff to previous 33
Fixed problem in std_num_cmp arising from an earlier merge.

Revision 33 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 20 00:40:30 2001 UTC (11 years, 11 months ago) by gage
File length: 153864 byte(s)
Diff to previous 32
Corrected error in _PGanswermacros_init

Revision 32 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 20 00:32:01 2001 UTC (11 years, 11 months ago) by gage
File length: 153862 byte(s)
Diff to previous 28
Added _PGanswermacros_init subroutine

Revision 28 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 19 20:56:08 2001 UTC (11 years, 11 months 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 (11 years, 11 months 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 11 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 18 15:21:51 2001 UTC (11 years, 11 months ago) by sam
File length: 131192 byte(s)
Diff to previous 10
another setup script test (changed #! lines)

Revision 10 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 15 21:06:18 2001 UTC (11 years, 11 months ago) by sam
File length: 131184 byte(s)
Diff to previous 8
nothing should change

Revision 8 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 15 16:24:03 2001 UTC (11 years, 11 months 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!)

Revision 6 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 15 14:29:57 2001 UTC (11 years, 11 months ago) by gage
File length: 131184 byte(s)
Diff to previous 5
development version dev-1-7-01 from /ww/webwork/development 15-June-2001

Revision 5 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 14 23:45:41 2001 UTC (11 years, 11 months ago) by gage
File length: 131188 byte(s)
Diff to previous 2
dev-1-7-01

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Thu Jun 14 17:08:51 2001 UTC (11 years, 11 months ago) by sam
File length: 128984 byte(s)
initial import

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.

  Diffs between and
  Type of Diff should be a

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9