[system] / trunk / pg / macros / PGcommonFunctions.pl Repository:
ViewVC logotype

Log of /trunk/pg/macros/PGcommonFunctions.pl

Parent Directory Parent Directory

Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 4997 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 11 18:16:40 2007 UTC (12 years, 8 months ago) by gage
File length: 4394 byte(s)
Diff to previous 3601
Fixing docementation so that it can be read from the web.

Revision 3601 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 6 21:02:05 2005 UTC (14 years, 5 months ago) by dpvc
File length: 4348 byte(s)
Diff to previous 3333
Movified the copying of functions from Complex1:: into main:: to avoid
conflicts with the PGcommonFunctions.pl versions (these errors were
trapped, but still show up in the error log unnecessarily).

Also commented out some code that was not doing anything other than
producing error messages in the error log.  (It was left over from a
syntax check on the professor's answer, but the actual check was
removed, leaving a portion that tries to process the answer, but
usually fails (because things like "1+4i" need to be converted to
"1+4*i" before they can be used in PG_answer_eval, but that was not
being done).

Because of this, it is not possible currently to do cplx_cmp("1+4i"),
and instead you must to cplx_cmp(new Complex(1,4)).

To fix this, you would need to call check_syntax (and the other
filters that are called on the student's answer) before calling
PG_answer_eval.  Of course, you should only do this when the
professor's answer isn't already a Complex object.

I am going to work on a Legacy module like the ones for num_cmp and
fun_cmp to replace cplx_cmp, which should avoid these problems and
make the changes suggested above unnecessary.

Revision 3333 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 3 20:06:33 2005 UTC (14 years, 7 months ago) by dpvc
File length: 4266 byte(s)
Diff to previous 3305
Adjusted some spacing

Revision 3305 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 21 19:56:00 2005 UTC (14 years, 8 months ago) by jj
File length: 4308 byte(s)
Diff to previous 3220
New context which allows students to use C(n,r) and P(n,r) in their
answers.  To support this, the webwork versions of these functions
have been moved from PGaux... to PGcommon...

Revision 3220 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 2 00:56:19 2005 UTC (14 years, 9 months ago) by dpvc
File length: 3805 byte(s)
Diff to previous 3191
Changed the call method to check if the function is actually defined
inthe parser before calling the parser method.  This allows things
like C(n,r) to be moved here but not automatically included in the

Revision 3191 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 16 04:17:35 2005 UTC (14 years, 11 months ago) by dpvc
File length: 3744 byte(s)
Diff to previous 2602
Fixed error with asec and acsc where the parameters were not being
passed properly.

Revision 2602 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 13 22:57:27 2004 UTC (15 years, 6 months ago) by dpvc
File length: 3732 byte(s)
Diff to previous 2576
Changed the way the parser checks to see if it is loaded.

Revision 2576 - (view) (download) (as text) (annotate) - [select for diffs]
Added Wed Aug 4 20:52:28 2004 UTC (15 years, 6 months ago) by dpvc
File length: 3736 byte(s)
Make Parser work with PGauxiliaryFunctions.pl, and add the macro files
needed to initialize the parser.

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