Log of /trunk/pg/lib/Value/WeBWorK.pm
Parent Directory
Revision
5929 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Oct 7 23:12:06 2008 UTC (4 years, 7 months ago) by
dpvc
File length: 3604 byte(s)
Diff to
previous 5214
Added a routine to trap errors in a function call. I've needed this
for a long time, and got tired of working around the lack by hacks
involving PG_restricted_eval, which can't handle local variables from
the calling function. This addition is still safe because it is
passed code (not a string) and the code is already compiled in the
safe compartment, so it can't include the disallowed commands.
Now I need to go back to remove the hacks from the various pg/macros
files where they currently exist.
Revision
4990 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 7 23:48:20 2007 UTC (5 years, 11 months ago) by
dpvc
File length: 3258 byte(s)
Diff to
previous 3569
More updates to use the new Value->Package() call. This will make the
standard object-creation functions like Real() and Complex() use the
new lookup method.
Revision
3569 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 25 03:40:44 2005 UTC (7 years, 9 months ago) by
dpvc
File length: 3247 byte(s)
Diff to
previous 3492
Fixed problem with Context's not properly initializing themselves with
the WW environment parameters (like zeroLevelTol and useBaseTenLog).
The copy method and the method that did an initialized copy used to be
separate routines, but that turned out to be unnecessary, so they have
now been merged (copy always tries to initialize the WW values when it
can, and when the copied context doesn't already have them).
The reason this is complicated is that a number contexts are set up
before the global.conf data is available, so these can't be
initialized with the WW values. Also, these default contexts are
stored in the persistant processes, and we don't want to leave
possibly course-specific values lying around in them, so whenever a
context is selected, it is copied from the standard version and the
WW parameters are inserted into it. The problem author can only
modify the copy, not the original, so this is OK with mod_perl.
The context's copy method now always tries to initialize (we used to
have to call initCoopy to get a copy that has the WW parameters
inserted). That turned out to cause trouble with code that handled
contexts without the usual Context() command.
Revision
2914 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Oct 13 02:41:33 2004 UTC (8 years, 7 months ago) by
dpvc
File length: 3171 byte(s)
Diff to
previous 2688
Added support for useBaseTenLogs to make log() work like ln() or
log10() depending on the value in the course.conf file.
Also fixed a bug that caused the WeBWorK parameters not to be
copied into contexts by initCopy().
Revision
2688 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Aug 27 19:42:59 2004 UTC (8 years, 8 months ago) by
dpvc
File length: 3060 byte(s)
Diff to
previous 2678
Added in functMaxConstantOfIntegration support in the adaptive
parameter answer checking. Also added a flag to the formula answer
checker that allows checking a formula up to a constant (for
integration problems). This really just adds a new parameter to the
context and adds that to the formula, so there is nothing deep about
this.
ANS(Formula("2x")->cmp(upToConstant=>1));
Finally, don't look for adaptive parameters if they aren't actually
used in the professor's formula (even if they are defined).
Revision
2678 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Aug 23 23:55:37 2004 UTC (8 years, 9 months ago) by
dpvc
File length: 2969 byte(s)
Diff to
previous 2674
Modified the parser so that the classes for the various object
constructors are stored in the context table rather than hard-coded
into the parser. That way, you can override the default classes with
your own. This gives you even more complete control to modify the
parser. (You had been able to replace the definitions of operators,
functions and list-like objects, but could not override the behaviour
of numbers, strings, variables, and so on. Now you can.)
This effects most of the files, but only by changing the name of the
calls that create the various objects.
There are also a couple of other minor fixes.
Revision
2673 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Aug 23 01:21:27 2004 UTC (8 years, 9 months ago) by
dpvc
File length: 2891 byte(s)
Diff to
previous 2664
Moved WW-specific routines from Parser.pm to WeBWorK.pm.
Changed error reporting when the error message was not generated by
the parser directly. (The stack trace and line number references are
removed before the error is reported.)
Revision
2664 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Sat Aug 21 22:02:14 2004 UTC (8 years, 9 months ago) by
dpvc
File length: 1527 byte(s)
Added a file to perform WeBWorK-specific modifications to the
Parser/Value packages. (I've tried to make these independent of
WeBWorK, so you can use them in other perl code if you want to.)
The parameters for fuzzy reals and some of the other parameters now
are taken from the pg->{ansEvalDefaults} values (as defined in
global.conf or course.conf). More still needs to be done with this,
however.
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.