[system] / trunk / webwork / system / courseScripts Repository:
ViewVC logotype

Log of /trunk/webwork/system/courseScripts

View Directory Listing Directory Listing


Sticky Revision:

Revision 1078 - Directory Listing
Modified Mon Jun 9 17:26:29 2003 UTC (9 years, 11 months ago) by apizer
use /usr/local/bin/perl ib shebang line

Revision 1077 - Directory Listing
Modified Mon Jun 9 13:56:36 2003 UTC (9 years, 11 months ago) by gage
Added this file which won't get erases if you do rm *.pl.  It is
identical to MAKEFILE.PL
--Mike

Revision 1076 - Directory Listing
Modified Mon Jun 9 13:50:16 2003 UTC (9 years, 11 months ago) by gage
Explains that all of the files have been moved to pg
--Mike

Revision 1075 - Directory Listing
Modified Mon Jun 9 13:49:37 2003 UTC (9 years, 11 months ago) by gage
These files are now maintained in pg/macros. Assuming that pg and system
are sibling files you can run MAKELINKS.pl in system/courseScripts to
create links from system/courseScripts to these files in pg/macros.

pg can be downloaded from the cvs:
cvs -d :pserver:anonymous@webwork-db.math.rochester.edu:/var/cvs/system
checkout pg

-Mike

Revision 1074 - Directory Listing
Modified Mon Jun 9 13:46:11 2003 UTC (9 years, 11 months ago) by gage
These files are now maintained in pg/lib. Assuming that pg and system
are sibling files you can run MAKELINKS.pl in system/courseScripts to
create links from system/courseScripts to these files in pg/lib.

pg can be downloaded from the cvs:
cvs -d :pserver:anonymous@webwork-db.math.rochester.edu:/var/cvs/system
checkout pg

-Mike

Revision 1067 - Directory Listing
Modified Mon Jun 9 01:44:46 2003 UTC (9 years, 11 months ago) by gage
Added dvipng subroutine.  Corrected some errors in math2image.  dvipng
is still not being called correctly -- I think math2image needs more
updates.

dvipng is also in IO.pm, but making this available to WeBWorK1.8 seems
like a lot of work, hence I've only made a copy of the dvipng subroutine
from IO.pm.  With luck this will not interfere with WeBWork2.0.  I'm
open to suggestions for a better way to make both dvipng methods
available to both WeBWorK2.0 and WeBWorK 1.8
--Mike

Revision 1062 - Directory Listing
Modified Sun Jun 8 19:02:48 2003 UTC (9 years, 11 months ago) by gage
This file constructs links from the courseScripts directory to the
pg/lib and pg/macros directories
--Mike

Revision 1053 - Directory Listing
Modified Fri Jun 6 22:17:45 2003 UTC (9 years, 11 months ago) by jj
Add support for hline in matricies, and fixed vertical spacing problem in pdf
output when top_labels are used.  tth mode still cannot handle top_labels.

Revision 1046 - Directory Listing
Modified Fri Jun 6 19:32:53 2003 UTC (9 years, 11 months ago) by jj
Fixed bug in pdf output with top_labels in a display_matrix.

Revision 1043 - Directory Listing
Modified Fri Jun 6 18:01:32 2003 UTC (9 years, 11 months ago) by jj
Features added (and code cleanup) for display_matrix.  Matricies can
now have "top labels".  If the matrix has "Fraction" objects, it detects that
and prints the fraction.

Revision 1037 - Directory Listing
Modified Fri Jun 6 01:13:18 2003 UTC (9 years, 11 months ago) by gage
Added HTML_img tags
-- Mike

Revision 1036 - Directory Listing
Modified Fri Jun 6 00:10:57 2003 UTC (9 years, 11 months ago) by gage
Removed the subroutine dvipng (which is now defined elsewhere and with
4 calling arguments.

--Mike

Revision 1033 - Directory Listing
Modified Thu Jun 5 21:54:22 2003 UTC (9 years, 11 months ago) by gage
Added HTML_img mode to PGmatrixmacros.pl display commands.
--Mike

Revision 1030 - Directory Listing
Modified Thu Jun 5 19:52:39 2003 UTC (9 years, 11 months ago) by gage
Added Liam's code for entering a matrix column by column
--Mike

Revision 1019 - Directory Listing
Modified Thu Jun 5 00:18:21 2003 UTC (9 years, 11 months ago) by gage
Commiting IO.pl, a webwork2 file, in order to bring the macros for webwork1 and webwork2 into sync
with each other.
--Mike

Revision 999 - Directory Listing
Modified Tue Jun 3 22:14:23 2003 UTC (9 years, 11 months ago) by jj
Modified pc_evaluator to make extra brackets optional, comments optional, and
scores of 1 optional.

Revision 966 - Directory Listing
Modified Mon Jun 2 17:44:21 2003 UTC (9 years, 11 months ago) by lr003k
added a new_from_col_vecs method

Revision 965 - Directory Listing
Modified Mon Jun 2 15:51:01 2003 UTC (9 years, 11 months ago) by lr003k
fixed an error

Revision 964 - Directory Listing
Modified Mon Jun 2 15:06:58 2003 UTC (9 years, 11 months ago) by lr003k
I have added a basis_cmp and a number of other methods necessary for
this answer evaluator to work.

Revision 934 - Directory Listing
Modified Wed May 28 20:02:56 2003 UTC (9 years, 11 months ago) by apizer
add original_correct_ans as a hash key bringing the set of defined keys to 9

Revision 908 - Directory Listing
Modified Tue May 27 15:56:11 2003 UTC (9 years, 11 months ago) by apizer
display original_correct_ans as correct answer unless original_correct_ans is not defined

Revision 898 - Directory Listing
Modified Fri May 23 16:01:27 2003 UTC (10 years ago) by jj
Fixed bug/typo in trace.

Revision 879 - Directory Listing
Modified Thu May 22 04:16:00 2003 UTC (10 years ago) by gage
This has the file access code used by save_answer_to_file

It only recognizes the fileID 'preflight' at the moment.

A list of the allowable fileID's and their corresponding addresses
should be placed in Global.

-- Mike

Revision 878 - Directory Listing
Modified Thu May 22 04:14:26 2003 UTC (10 years ago) by gage
Added   save_answer_to_file  to the answer macros. Useage:
TEXT(ans_box(5,80) );
ANS(save_answer_to_file('preflight'));

Saves the answer entered into the answerbox to a file preflight.log
in the logs directory of the course.

The actual writing mechanism is contained in the file AnswerIO.pm

Revision 870 - Directory Listing
Modified Tue May 20 04:41:11 2003 UTC (10 years ago) by jj
Fixed local variable problem in Perm and Comb; made them less succeptable
to overflow problems, and reorganized calling dependencies.  Also added
aliases P and C.

Revision 864 - Directory Listing
Modified Mon May 19 16:51:57 2003 UTC (10 years ago) by jj
Reduced blank space on left side of matrix delimiter images.

Revision 863 - Directory Listing
Modified Mon May 19 14:17:24 2003 UTC (10 years ago) by lr003k
I was working on an older version, 1.10 changes now included.

Revision 862 - Directory Listing
Modified Mon May 19 13:33:05 2003 UTC (10 years ago) by lr003k
added a subrouting (answer_matrix) to create an m by n matrix of
ans_rule's

Revision 858 - Directory Listing
Modified Sat May 17 18:39:52 2003 UTC (10 years ago) by gage
Made modifications to the tth subroutine that make it work
seomewhat better with matrices.  There is a filter, which
changes the  characters used by tth  that only works properly
with iCAB (not much use).  I have also added the -u switch
to tth which makes the symbols work well with
MSIE, OmniWeb, iCab, and Safari on the Mac.  It does not work
with Camino on the mac, but it does work with Mozilla.

How does it work in your browser?

-- Mike (gage@math.rochester.edu)

Revision 855 - Directory Listing
Modified Fri May 16 22:56:55 2003 UTC (10 years ago) by jj
Added documentation for display_matrix and mbox.

Revision 854 - Directory Listing
Modified Fri May 16 21:27:33 2003 UTC (10 years ago) by jj
Vertical solid and dashed lines should now work in display_matrix in all modes.

Revision 850 - Directory Listing
Modified Fri May 16 05:27:21 2003 UTC (10 years ago) by gage
Replaced a use of uc (upper case) with tr/a-z/A-Z

For some reason uc stopped working on webwork although it worked other
places.  Very puzzling.

Revision 849 - Directory Listing
Modified Fri May 16 05:11:49 2003 UTC (10 years ago) by gage
Commented out subroutines which are not being used (to the best
of my knowledge)  For the most part these are subroutines which were
originally designed to help clean up the instructors answers.  This
turned out to be a rather idiosyncratic process, and the standard
subroutines didn't seem to be that useful.

We might want to return to this problem later.

Revision 848 - Directory Listing
Modified Fri May 16 05:04:51 2003 UTC (10 years ago) by gage
Added a new subroutine for constructing filters

Revision 846 - Directory Listing
Modified Thu May 15 23:42:24 2003 UTC (10 years ago) by jj
Bug fix in mbox for l2h mode, vertical bars in matricies starting to work in
all modes.

Revision 845 - Directory Listing
Modified Thu May 15 22:28:36 2003 UTC (10 years ago) by jj
Added initial version of mbox command.

Revision 844 - Directory Listing
Modified Thu May 15 19:18:46 2003 UTC (10 years ago) by jj
Add support for |,[,],{,} as delimeters to matricies in display_matrix

Revision 826 - Directory Listing
Modified Tue May 13 16:12:41 2003 UTC (10 years ago) by jj
Changed display_matrix to display_matrix_mm, added display_matrix_math_mode, and changed displaymat to display_matrix.

Revision 824 - Directory Listing
Modified Mon May 12 22:19:01 2003 UTC (10 years ago) by jj
Introduction of displaymat, and related functions.  This is just a preliminary
addition to be refined shortly.

Revision 822 - Directory Listing
Modified Fri May 9 17:07:30 2003 UTC (10 years ago) by jj
Initial code for displaymat.

Revision 801 - Directory Listing
Modified Thu Mar 27 15:49:12 2003 UTC (10 years, 1 month ago) by jj
Modified random so that random(a,b,c) always produces values between a and b.

Revision 781 - Directory Listing
Modified Fri Mar 7 20:32:40 2003 UTC (10 years, 2 months ago) by jj
list_random has been moved elsewhere, and bug was fixed in nicestring

Revision 777 - Directory Listing
Modified Fri Mar 7 15:06:53 2003 UTC (10 years, 2 months ago) by apizer
new entires

Revision 776 - Directory Listing
Modified Fri Mar 7 15:05:33 2003 UTC (10 years, 2 months ago) by apizer
Added Mark Schmitt's changes

Revision 749 - Directory Listing
Modified Wed Feb 26 20:17:49 2003 UTC (10 years, 2 months ago) by gage
Corrected a bug in checkbox_cmp.  If the answer had more than one
boxed checked the student's answer could be passed to this subroutine
either as a \0 delimited string  or as an array reference.  The
subroutine couldn't handle the array reference.  Now it can.

Revision 729 - Directory Listing
Modified Fri Feb 7 18:17:13 2003 UTC (10 years, 3 months ago) by apizer
fixed call to romberg which now requires "level => 8"

Revision 690 - Directory Listing
Modified Mon Jan 6 21:06:27 2003 UTC (10 years, 4 months ago) by gage
Bringing the macros files in line with the macros files in webwork-modperl

Revision 689 - Directory Listing
Modified Mon Jan 6 20:26:43 2003 UTC (10 years, 4 months ago) by gage
corrected typo in documentation.

Revision 680 - Directory Listing
Modified Wed Dec 18 20:07:48 2002 UTC (10 years, 5 months ago) by jj
Modified OL so that entries have an extra line break when images are produced
by dvipng.

Revision 679 - Directory Listing
Modified Wed Dec 18 20:05:08 2002 UTC (10 years, 5 months ago) by jj
Added vertical space for entries produced by match_questions_list when
using dvipng.

Revision 674 - Directory Listing
Modified Wed Dec 11 18:47:45 2002 UTC (10 years, 5 months ago) by apizer
add documentation

Revision 673 - Directory Listing
Modified Wed Dec 11 18:42:05 2002 UTC (10 years, 5 months ago) by apizer
allow strings like "-INF" to be valid in the strings options

Revision 666 - Directory Listing
Modified Mon Dec 2 21:02:36 2002 UTC (10 years, 5 months ago) by apizer
Added back in the changed from versions 1.44 and 1.45

Revision 665 - Directory Listing
Modified Mon Dec 2 20:52:10 2002 UTC (10 years, 5 months ago) by apizer
reverting to version 1.42.  Version 1.43 is buggy.

Revision 627 - Directory Listing
Modified Sat Nov 9 16:42:04 2002 UTC (10 years, 6 months ago) by gage
Revised warnings on Latex2HTML code so that more information is passed
back to the user via the webpage.  The main change was to replace the
wwerror calls with warns.

wwerror hasn't been updated in some time.  I suspect that all of these
calls can be replaced by warn calls or perhaps, in some cases, die
calls.

Revision 626 - Directory Listing
Modified Sat Nov 9 16:38:28 2002 UTC (10 years, 6 months ago) by gage
No changes (except for spaces)

Revision 625 - Directory Listing
Modified Sat Nov 9 16:37:58 2002 UTC (10 years, 6 months ago) by gage
Format changes, which make dangerousMacros more readable were added to
the standard webwork courseScripts folder

Revision 622 - Directory Listing
Modified Fri Nov 8 19:54:43 2002 UTC (10 years, 6 months ago) by gage
Added code to use the external paths to gif2eps and png2eps when defined

Revision 600 - Directory Listing
Modified Tue Oct 22 13:35:06 2002 UTC (10 years, 7 months ago) by apizer
ass ` to the list of characters ($ and @) filtered out of sticky answers

Revision 599 - Directory Listing
Modified Tue Oct 22 13:20:36 2002 UTC (10 years, 7 months ago) by apizer
fixed other variants of tex_ans_rule

Revision 598 - Directory Listing
Modified Tue Oct 22 13:15:02 2002 UTC (10 years, 7 months ago) by apizer
answer rules can not be placed within equations in dvipng mode

Revision 597 - Directory Listing
Modified Mon Oct 21 19:28:27 2002 UTC (10 years, 7 months ago) by apizer
entered Mark's bug fix for floor()

Revision 580 - Directory Listing
Modified Fri Oct 11 16:28:10 2002 UTC (10 years, 7 months ago) by apizer
Change how debugging output works

Revision 545 - Directory Listing
Modified Fri Sep 13 17:27:11 2002 UTC (10 years, 8 months ago) by jj
Initial import.

Revision 541 - Directory Listing
Modified Mon Sep 9 21:20:00 2002 UTC (10 years, 8 months ago) by apizer
Select available modes in Global.pm per John Jones suggestion

Revision 540 - Directory Listing
Modified Mon Sep 9 19:05:55 2002 UTC (10 years, 8 months ago) by apizer
use the new variable extendedPath

Revision 531 - Directory Listing
Modified Fri Sep 6 14:24:20 2002 UTC (10 years, 8 months ago) by apizer
rename refreshLatex2HTML to refreshCachedImages

Revision 487 - Directory Listing
Modified Wed Aug 21 15:08:54 2002 UTC (10 years, 9 months ago) by gage
Fixed #! line

Revision 486 - Directory Listing
Modified Wed Aug 21 15:08:22 2002 UTC (10 years, 9 months ago) by gage
fixed #!/usr/local/bin/webwork-perl   line

Revision 483 - Directory Listing
Modified Tue Aug 20 20:49:41 2002 UTC (10 years, 9 months ago) by jj
Added support for HTML_dpng mode (dvipng rendering).

Revision 482 - Directory Listing
Modified Tue Aug 20 20:47:22 2002 UTC (10 years, 9 months ago) by jj
Added support for HTML_dpng (dvipng) rendering, and Sam's ev3_math abstraction.

Revision 481 - Directory Listing
Modified Tue Aug 20 20:43:46 2002 UTC (10 years, 9 months ago) by jj
Added code for HTML_dpng (dvipng) mode.

Revision 472 - Directory Listing
Modified Mon Aug 19 19:27:44 2002 UTC (10 years, 9 months ago) by jj
Not functionally different, but made it easier to add/subtract display modes.

Revision 463 - Directory Listing
Modified Wed Aug 14 23:06:00 2002 UTC (10 years, 9 months ago) by jj
Added new randomization function, list_random, which takes a list of values
and picks one from the list.

Revision 462 - Directory Listing
Modified Wed Aug 14 22:45:11 2002 UTC (10 years, 9 months ago) by jj
Allow $useBaseTenLog=1 to make log act as base 10 in student answers.
Can be set system/course wide, and overriden on a problem by problem basis.

Revision 459 - Directory Listing
Modified Wed Aug 14 22:17:11 2002 UTC (10 years, 9 months ago) by jj
Changed string checking option to num_cmp.
Now num_cmp("-I", strings=>["I", "-I"]) works.

Revision 458 - Directory Listing
Modified Wed Aug 14 16:59:35 2002 UTC (10 years, 9 months ago) by jj
Changed CARET so it would display better in TeX and Latex2HTML modes.

Revision 457 - Directory Listing
Modified Mon Aug 12 14:43:40 2002 UTC (10 years, 9 months ago) by lr003k
multi_cmp doesn't seem to be working

Revision 437 - Directory Listing
Modified Wed Jul 24 20:46:35 2002 UTC (10 years, 9 months ago) by apizer
Allow setting refreshLatex2HTML = 1 in a problem to force L2H to be run.
That is, the cached image will never be used.

Revision 407 - Directory Listing
Modified Mon Jun 24 18:32:49 2002 UTC (10 years, 10 months ago) by gage
Commented out the debugging messages again.

Revision 406 - Directory Listing
Modified Mon Jun 24 18:32:11 2002 UTC (10 years, 10 months ago) by lr003k
added some commenting to the code I've been working on
~Liam

Revision 405 - Directory Listing
Modified Mon Jun 24 18:31:25 2002 UTC (10 years, 10 months ago) by lr003k
added a comment to a prefilter I had created earlier
~Liam

Revision 391 - Directory Listing
Modified Thu Jun 20 13:37:40 2002 UTC (10 years, 11 months ago) by gage
Temporarily turned on some debugging print outs (to STDERR) which
should help tell us which modules and macro packages are loaded.

Revision 387 - Directory Listing
Modified Wed Jun 19 13:54:23 2002 UTC (10 years, 11 months ago) by lr003k
added a multiple method, still a little buggy, but it currently works, I still need to document it as well

Revision 385 - Directory Listing
Modified Wed Jun 19 02:36:03 2002 UTC (10 years, 11 months ago) by gage
Moved where the my variables *-format are defined.

Revision 384 - Directory Listing
Modified Wed Jun 19 01:34:24 2002 UTC (10 years, 11 months ago) by gage
Added my ($rformat,$theta_format); to the polar subroutine

Revision 333 - Directory Listing
Modified Fri May 31 18:21:35 2002 UTC (10 years, 11 months ago) by apizer
Fixed bug reported by Danny Glin by removing all $ and @ from student answers before using them as sticky
answers.

Revision 327 - Directory Listing
Modified Thu May 30 21:52:07 2002 UTC (10 years, 11 months ago) by gage
Having much trouble with the exportation of functions from Complex1.

Maybe this will do it.

Revision 326 - Directory Listing
Modified Thu May 30 20:43:55 2002 UTC (10 years, 11 months ago) by gage
Sometimes it seems like the committed file doesn't get modified??

Revision 325 - Directory Listing
Modified Thu May 30 20:41:08 2002 UTC (10 years, 11 months ago) by gage
Fixed a misplaced  parens.

Revision 321 - Directory Listing
Modified Thu May 30 19:21:16 2002 UTC (10 years, 11 months ago) by gage
Fixed bug in PGcomplexmacros.pl having to do with the lack of a
=cut line in the pod documentation.

The loadMacros eval doesn't fail gracefully when this kind of mistake
occurs.  More work needs to be done on loadMacros.

Also changed the _PGcomplexmacros_init subroutine to include the
exporting of variables from Complex.

I think this is what it was supposed to do in any case, but perhaps not.
When using the forking process it was only necessary to export the
variables in the parent.

Revision 312 - Directory Listing
Modified Tue May 28 17:47:07 2002 UTC (10 years, 11 months ago) by apizer
 - changed reduce so that it would always leave the denominator
   positive (so reducing 6/-10 gives -3/5)
 - added documentation line for reduce
 - added method pow which takes an integer argument, and returns the
   fraction raised to that power (throwing warnings for indeterminant
   forms or division by 0)
 - added doc line for pow

Revision 309 - Directory Listing
Modified Fri May 24 15:54:55 2002 UTC (11 years ago) by apizer
Corrected a minor typo in a comment. Mostly wanted to check how log messages appear. There was a problem with
the previous log message that was caused by terminal emulation on my PC.

Revision 308 - Directory Listing
Modified Fri May 24 15:42:28 2002 UTC (11 years ago) by apizer
beginning with `CVS:' are removed automatically CVS:  CVS: Committing in . CVS:  CVS: Modified Files: CVS:
Fraction.pm CVS: ----------------------------------------------------------------------
This is John Jones updated version using \ensuremath in place of \( ...\) and including a print_inline
command.

Revision 307 - Directory Listing
Modified Fri May 24 00:31:55 2002 UTC (11 years ago) by gage
Continuing to add documentation to AnswerHash
AnswerHas is largely described.  A general description of the
filters is also done.  The AnswerEvaluator object needs much
more documentation.

Revision 293 - Directory Listing
Modified Thu May 23 13:52:02 2002 UTC (11 years ago) by gage
Adding documentation

Revision 275 - Directory Listing
Modified Mon May 13 20:45:47 2002 UTC (11 years ago) by apizer
removed automatically CVS:  CVS: Modified Files: CVS:  PGanswermacros.pl CVS:
----------------------------------------------------------------------
Corrected bug involvinf use of tolerance in num_cmp.  Also added warning if incompatible paramaters are pass3ed to num
compare.

Revision 274 - Directory Listing
Modified Mon May 13 18:40:56 2002 UTC (11 years ago) by gage
Modified a problem involving the option "tolerance" in num_cmp.

Revision 273 - Directory Listing
Modified Fri May 10 21:29:05 2002 UTC (11 years ago) by voloshin
in normal_prob, increased the level with which it calls romberg to 8, to improve the estimates of probabilities.

Revision 272 - Directory Listing
Modified Mon Apr 1 16:44:03 2002 UTC (11 years, 1 month ago) by apizer
I found a small error in PGpolynomials.  Version 1.1.2 is attached.  I was
missing a '+' in the stringification routine.

Revision 271 - Directory Listing
Modified Tue Mar 26 19:49:10 2002 UTC (11 years, 1 month ago) by apizer
Macros for doing operations on polynomials contributed by Mark Schmitt

Revision 265 - Directory Listing
Modified Fri Dec 21 15:57:58 2001 UTC (11 years, 5 months ago) by apizer
`CVS:' are removed automatically CVS:  CVS: Modified Files: CVS:  PGbasicmacros.pl CVS:
----------------------------------------------------------------------
Fixed infinite loop in NAMED_ANS_RADIO_OPTION

Revision 264 - Directory Listing
Modified Fri Dec 21 04:14:11 2001 UTC (11 years, 5 months ago) by gage
Modified documentation.  Also added labeled_ans_rule(name, width) which is a synonym
for NAMED_ANS_RULE(name, width) except that width is given a default of 20 if it is omitted.

Revision 263 - Directory Listing
Modified Fri Dec 21 04:12:34 2001 UTC (11 years, 5 months ago) by gage
Modifified documentation.  Added LABELED_ANS as a synonym for NAMED_ANS.  Somehow
it seems to sound better.  The original subroutines remain of course.

Revision 262 - Directory Listing
Modified Fri Dec 21 04:10:11 2001 UTC (11 years, 5 months ago) by gage
Made modifications in the evaluate method of AnswerEvaluator which allow the
answer evaluators to be called twice.  (Specifically the error flags are initialized
at the beginning of each call to evaluate).

Revision 237 - Directory Listing
Modified Fri Oct 19 15:59:44 2001 UTC (11 years, 7 months ago) by apizer
Fixed bug in std_num_cmp (and 7 other related answer evaluators) so that
relative tolerances can be set

Revision 227 - Directory Listing
Modified Tue Oct 2 13:55:21 2001 UTC (11 years, 7 months ago) by apizer
Only replace e by E if the expression looks like a number.  This could be made
more robust.

Revision 219 - Directory Listing
Modified Mon Sep 24 16:52:17 2001 UTC (11 years, 7 months ago) by gage
Added documentation and _PG....macros_int functions to these files.

In PGcomplexmacros.pl I removed the automatic exportation of log() from
PGcomplexmacros.pl since
this (and sqrt() ) cause conflicts with CORE::log() and CORE::sqrt().
-- Warnings of the form "Ambiguous call to   ..... resolved in favor of
CORE::... " etc.

The functions can always be accessed by Complex::log() and Complex::sqrt()
when needed for complex numbers.

There may be a more sophisticated method of exporting these calls which
would avoid the warnings and remain transparent both to those who are
using complex numbers and those who are not.  If anyone has any ideas they
will be welcome.  The code to modify is at the top of the
PGcomplexmacros.pl file inside the _PGcomplexmacros_init subroutine.

Revision 211 - Directory Listing
Modified Thu Sep 20 00:24:13 2001 UTC (11 years, 8 months ago) by apizer
changed BCENTER and ECENTER as per Mike's suggestion.

Revision 210 - Directory Listing
Modified Wed Sep 19 20:51:47 2001 UTC (11 years, 8 months ago) by apizer
Fixed bug so that 0/3 works.  Communucated by John Jones.

Revision 209 - Directory Listing
Modified Wed Sep 19 20:49:56 2001 UTC (11 years, 8 months ago) by apizer
Fixed bug in gcd so that e.g. gcd(3,0) works.  Communicated by John Jones.

Revision 208 - Directory Listing
Modified Wed Sep 19 20:32:53 2001 UTC (11 years, 8 months ago) by apizer
added italic and center macros

Revision 206 - Directory Listing
Modified Fri Sep 14 20:21:52 2001 UTC (11 years, 8 months ago) by apizer
added anstext_non_anonymous, a non anonymous version of anstext

Revision 200 - Directory Listing
Modified Mon Sep 10 18:18:37 2001 UTC (11 years, 8 months ago) by gage
Made small change to NUM_CMP which insures that
 $correctVal is defined when the answer is a string.

Revision 199 - Directory Listing
Modified Mon Sep 10 17:07:36 2001 UTC (11 years, 8 months ago) by gage
Made the check within dangerousMacros.pl which insures that DOCUMENT()
comes before loadMacros() in a problem, more robust.

the new code checks this formatting somewhat more rigorously and gives a
clearer error message about what is wrong.  The check is still not foolproof.

Revision 198 - Directory Listing
Modified Mon Sep 10 17:05:20 2001 UTC (11 years, 8 months ago) by gage
removed unneeded comments and cleaned up the code formatting.

Revision 197 - Directory Listing
Modified Mon Sep 10 17:03:33 2001 UTC (11 years, 8 months ago) by gage
Removed commented out lines which are no longer needed.

Revision 195 - Directory Listing
Modified Sat Sep 8 13:34:03 2001 UTC (11 years, 8 months ago) by apizer
explicitly delete CAPA options 'sig', 'tries', 'wgt' which are
meaningless to WeBWorK

Revision 194 - Directory Listing
Modified Sat Sep 8 04:51:25 2001 UTC (11 years, 8 months ago) by gage
Fixed a bug in CAPA_ans which called the old style numerical compare
and string compare functions (including some useless parameters)

This will fix several errors that have arisen in CAPA problems, but
perhaps not all of them.

Revision 193 - Directory Listing
Modified Sat Sep 8 04:49:44 2001 UTC (11 years, 8 months ago) by gage
Fixed a bug which prevented the unit mol from working.

Revision 189 - Directory Listing
Modified Tue Sep 4 22:23:09 2001 UTC (11 years, 8 months ago) by gage
Added a change to loadMacros that allows for macro files that
end in .pg

Revision 188 - Directory Listing
Modified Tue Sep 4 16:40:58 2001 UTC (11 years, 8 months ago) by gage
Modifications in these two files make questions whose answer blanks hve
the same names behave properly.

The new versions of CGI seem to return such answers as a reference to an array.
Earlier versions returned the answrs as a string with \0 separators.

With the new changes the AnswerEvaluator get_student_answer subroutine and
the NAMED_ANS_RULE in PGbasicmacros.pl will handle either a null separated
string or an answer array when dealing with vector answers.

This should correct some difficulties experienced in the linear algebra
questions.  More testing needs to be done.

Revision 187 - Directory Listing
Modified Fri Aug 31 19:29:51 2001 UTC (11 years, 8 months ago) by sh002i
not new anymore!

Revision 182 - Directory Listing
Modified Fri Aug 31 17:13:40 2001 UTC (11 years, 8 months ago) by sh002i
Got rid of a die that I put into makeL2H for debugging.

Revision 178 - Directory Listing
Modified Fri Aug 31 16:06:54 2001 UTC (11 years, 8 months ago) by sh002i
makeL2H now appends the contents of $Global::externalLaTeX2HTMLSupportPath
to $ENV{PATH} before calling latex2html. this is kinda hackish, but it
works. perhaps instead of this, we should set the path globally to
something like '/bin:/usr/bin:/usr/local/bin'. (see the email i'm about
to send.)

Revision 173 - Directory Listing
Modified Thu Aug 30 12:04:00 2001 UTC (11 years, 8 months ago) by gage
Protect against possibility that {debug} is not defined
in AnswerEvaluator.

Revision 172 - Directory Listing
Modified Thu Aug 30 03:03:19 2001 UTC (11 years, 8 months ago) by gage
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 171 - Directory Listing
Modified Thu Aug 30 02:59:30 2001 UTC (11 years, 8 months ago) by gage
Fixed a misspelling of displaystr in the undeterminedExp subroutine

Revision 170 - Directory Listing
Modified Thu Aug 30 02:58:29 2001 UTC (11 years, 8 months ago) by gage
Fixed a careless mistake in localizing variables.

Revision 165 - Directory Listing
Modified Wed Aug 29 18:06:08 2001 UTC (11 years, 8 months ago) by apizer
Added Zig's more general problem grader

Revision 163 - Directory Listing
Modified Wed Aug 29 11:56:30 2001 UTC (11 years, 8 months ago) by gage
Modifications to documentation.

Minor modifications to the way some defaults are set.  New
versions use set_default_options.

Revision 160 - Directory Listing
Modified Sun Aug 26 02:22:48 2001 UTC (11 years, 8 months ago) by gage
Modified the pod documentation

Revision 159 - Directory Listing
Modified Thu Aug 23 23:56:03 2001 UTC (11 years, 9 months ago) by gage
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 158 - Directory Listing
Modified Wed Aug 22 19:19:14 2001 UTC (11 years, 9 months ago) by gage
Commented out  an unnecesary line requiring List.pm

Revision 156 - Directory Listing
Modified Wed Aug 22 16:16:04 2001 UTC (11 years, 9 months ago) by gage
Added mol (mole -- basic unit)
and horsepower = 746W (watts)

Revision 154 - Directory Listing
Modified Tue Aug 21 01:23:43 2001 UTC (11 years, 9 months ago) by gage
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 146 - Directory Listing
Modified Fri Aug 17 18:15:23 2001 UTC (11 years, 9 months ago) by sh002i
moved from webwork/ww_prob_lib/macros

Revision 135 - Directory Listing
Modified Wed Aug 15 14:45:38 2001 UTC (11 years, 9 months ago) by ch003i
Added 'allow_unknown_options' in is_a_zero_array filter to avoid error in function_cmp routine.

Revision 128 - Directory Listing
Modified Mon Aug 13 20:41:26 2001 UTC (11 years, 9 months ago) by sh002i
Fixed makeL2H to use $Global::externalLatex2HTML{Path,Version,Init} vars.

Revision 125 - Directory Listing
Modified Mon Aug 13 18:12:32 2001 UTC (11 years, 9 months ago) by gage
Updating pod documentation

Revision 124 - Directory Listing
Modified Mon Aug 13 16:09:14 2001 UTC (11 years, 9 months ago) by gage
Updating pod documentation

Revision 123 - Directory Listing
Modified Mon Aug 13 16:07:32 2001 UTC (11 years, 9 months ago) by gage
Removed warning message about avg_problem_grader, since now
avg_problem_grader is also installed in PGtranslator and can
be used as a default grader. (std_problem_grader can also be
used as a default).

Revision 122 - Directory Listing
Modified Sat Aug 11 03:17:43 2001 UTC (11 years, 9 months ago) by gage
More adjustments to documentation for answer evaluators

Revision 120 - Directory Listing
Modified Sat Aug 11 02:25:08 2001 UTC (11 years, 9 months ago) by gage
More documentation added.

Revision 119 - Directory Listing
Modified Sat Aug 11 01:48:05 2001 UTC (11 years, 9 months ago) by gage
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 114 - Directory Listing
Modified Fri Aug 10 18:58:31 2001 UTC (11 years, 9 months ago) by ch003i
Edited l2h_sticky_answers to stop unwanted combining when answers used multiple fields.

Revision 110 - Directory Listing
Modified Thu Aug 9 21:39:26 2001 UTC (11 years, 9 months ago) by gage
Changes made to best approximation parameters -- added
set_default_options call.  Removed some warning messages.

Revision 109 - Directory Listing
Modified Thu Aug 9 21:37:29 2001 UTC (11 years, 9 months ago) by gage
AnswerEvaluators can now handle ans_hash as an input (this allows
the answerevaluator to be used as a filter in another answer evaluator

Cosmetic changes made to the error reporting when the debug
flag is set.

Revision 108 - Directory Listing
Modified Thu Aug 9 16:25:05 2001 UTC (11 years, 9 months ago) by ch003i
Edited check_eigenvector to include debug option and fixed post-filter to prevent crashing.

Revision 103 - Directory Listing
Modified Wed Aug 8 02:29:05 2001 UTC (11 years, 9 months ago) by gage
Changed names in calculate difference vector   subroutine to make the
process a bit clearer.  There is still more work to be done.

Revision 102 - Directory Listing
Modified Wed Aug 8 02:24:16 2001 UTC (11 years, 9 months ago) by gage
Minor  changes to the #!/usr/bin/perl line

Revision 98 - Directory Listing
Modified Tue Aug 7 18:33:48 2001 UTC (11 years, 9 months ago) by sam
Changed $tthpath to pull path from %envir rather than hardcoded path. Yay!

Revision 91 - Directory Listing
Modified Wed Aug 1 16:32:51 2001 UTC (11 years, 9 months ago) by gage
Bringing the common courseScripts version of PGcomplexmacros.pl up to date with the version of PGcomplexmacros.pl found
in the WW_Prob_Lib2 macros directory.

Revision 88 - Directory Listing
Modified Thu Jul 12 14:53:58 2001 UTC (11 years, 10 months ago) by apizer
Fixed bug so that now functions with negative values are handled correctly
Line 2451 has been replaced by line 2452

Revision 84 - Directory Listing
Modified Tue Jul 3 12:54:15 2001 UTC (11 years, 10 months ago) by apizer
added line 3618 so that only capital E's will be used in scientific notation

Revision 81 - Directory Listing
Modified Mon Jul 2 19:13:35 2001 UTC (11 years, 10 months ago) by chris
Continuing standardizing spacing and fixing comments.

Revision 80 - Directory Listing
Modified Mon Jul 2 19:04:34 2001 UTC (11 years, 10 months ago) by maria
added Regression.pm

Revision 79 - Directory Listing
Modified Mon Jul 2 19:02:06 2001 UTC (11 years, 10 months ago) by maria
initial report

Revision 78 - Directory Listing
Modified Thu Jun 28 16:59:20 2001 UTC (11 years, 10 months ago) by maria
modified documentation

Revision 77 - Directory Listing
Modified Thu Jun 28 16:12:58 2001 UTC (11 years, 10 months ago) by maria
updated from version 0.06 to version 0.07

Revision 74 - Directory Listing
Modified Wed Jun 27 21:04:59 2001 UTC (11 years, 10 months ago) by maria
modified documentation

Revision 73 - Directory Listing
Modified Mon Jun 25 20:14:44 2001 UTC (11 years, 10 months ago) by apizer
peviewing empty an empty answer no loger gives a pick screen

Revision 72 - Directory Listing
Modified Mon Jun 25 19:23:12 2001 UTC (11 years, 10 months ago) by gage
Change MatrixReal to MatrixReal1

Revision 71 - Directory Listing
Modified Mon Jun 25 19:22:49 2001 UTC (11 years, 10 months ago) by gage
Changed references to MatrixReal to MatrixReal1

This might break problems involving matrices or ones involving
answering questions with arbitrary constants (e.g. indefinite integral)

I believe I have caught all of the instances in which this name is used.

Revision 68 - Directory Listing
Modified Mon Jun 25 18:18:32 2001 UTC (11 years, 10 months ago) by sam
Renamed MatrixReal.pm to MatrixReal1.pm

Revision 67 - Directory Listing
Modified Mon Jun 25 16:07:17 2001 UTC (11 years, 10 months ago) by maria
corrected a misprint

Revision 65 - Directory Listing
Modified Sun Jun 24 03:55:24 2001 UTC (11 years, 11 months ago) by gage
Replaced $piece1 with $piece3 in line 336 and following to avoid a
"my" conflict.  I also commented out oldivy which contained a print
statement and therefore wouldn't compile within the problems.

These are temporary fixes, for this file in order to enable it to compile.

Revision 64 - Directory Listing
Modified Sun Jun 24 02:38:31 2001 UTC (11 years, 11 months ago) by maria
just corrected spelling

Revision 63 - Directory Listing
Modified Sat Jun 23 21:22:33 2001 UTC (11 years, 11 months ago) by maria
Renamed normal to normal_prob, and inv_normal to normal_distr (modified all the problems in the library accordingly.)
----------------------------------------------------------------------

Revision 61 - Directory Listing
Modified Fri Jun 22 21:29:58 2001 UTC (11 years, 11 months ago) by gage
Fixed errors in sourceAlias

Modified parts of alias so that PG_restricted_eval was not used.
(This is unnecessary as long as we use forking to create a child
with the same namespace.)

Revision 60 - Directory Listing
Modified Fri Jun 22 20:03:01 2001 UTC (11 years, 11 months ago) by gage
Added _PGgraphmacros_init subroutine

Revision 59 - Directory Listing
Modified Fri Jun 22 19:39:04 2001 UTC (11 years, 11 months ago) by gage
Added Distributions to the module list

Revision 58 - Directory Listing
Modified Fri Jun 22 19:38:28 2001 UTC (11 years, 11 months ago) by gage
Corrected the #!/usr/local/bin/webwork-perl
line

Revision 56 - Directory Listing
Modified Fri Jun 22 19:31:16 2001 UTC (11 years, 11 months ago) by maria
initial report

Revision 55 - Directory Listing
Modified Fri Jun 22 19:28:28 2001 UTC (11 years, 11 months ago) by maria
added -PGstatisticsmacros_init; cosmetic changes

Revision 54 - Directory Listing
Modified Fri Jun 22 18:45:00 2001 UTC (11 years, 11 months ago) by chris
Continuing to edit the file to fix spacing and ordering of subroutines.

Revision 53 - Directory Listing
Modified Fri Jun 22 17:34:13 2001 UTC (11 years, 11 months ago) by chris
Removed already-commented-out routines which were no longer needed.

Revision 52 - Directory Listing
Modified Fri Jun 22 01:06:52 2001 UTC (11 years, 11 months ago) by maria
made 'infty' an acceptable limit of integration for normal function

Revision 50 - Directory Listing
Modified Thu Jun 21 20:38:56 2001 UTC (11 years, 11 months ago) by chris
Split evalutesToNumber into subroutine is_a_numeric_expression.  No changes in functionality.

Revision 49 - Directory Listing
Modified Thu Jun 21 19:53:59 2001 UTC (11 years, 11 months ago) by chris
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 47 - Directory Listing
Modified Thu Jun 21 19:02:29 2001 UTC (11 years, 11 months ago) by chris
Same as PG163macros.pl with a new name.  subroutine ivy updated to improve readability.

Revision 46 - Directory Listing
Modified Thu Jun 21 19:00:53 2001 UTC (11 years, 11 months ago) by amanda
fixed fact and step functions so they are recognizable functions again.i

Revision 45 - Directory Listing
Modified Thu Jun 21 16:58:25 2001 UTC (11 years, 11 months ago) by gage
Added PGcomplexmacros.pl and PGmatrixmacros.pl to CVS

Revision 44 - Directory Listing
Modified Thu Jun 21 15:38:33 2001 UTC (11 years, 11 months ago) by chris
Corrected "unrecognizable units" error message so it is displayed correctly.

Revision 43 - Directory Listing
Modified Thu Jun 21 15:00:33 2001 UTC (11 years, 11 months ago) by maria
fixed inv_romberg

Revision 42 - Directory Listing
Modified Thu Jun 21 14:57:19 2001 UTC (11 years, 11 months ago) by maria
new macros

Revision 41 - Directory Listing
Modified Thu Jun 21 14:40:51 2001 UTC (11 years, 11 months ago) by chris
Added postfilter fix_answers_for_display which incorporates all changes made in previous version.

Revision 40 - Directory Listing
Modified Thu Jun 21 13:33:27 2001 UTC (11 years, 11 months ago) by gage
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 39 - Directory Listing
Modified Thu Jun 21 10:21:28 2001 UTC (11 years, 11 months ago) by maria
added inv_romberg function which, given a function, a, and value computes b s.t. integral from a to b is equal
to value.

Revision 38 - Directory Listing
Modified Thu Jun 21 01:07:21 2001 UTC (11 years, 11 months ago) by maria
added back the fact (factorial) function that has been accidentally deleted

Revision 37 - Directory Listing
Modified Thu Jun 21 01:03:14 2001 UTC (11 years, 11 months ago) by apizer
Hints and Solutions now use basically the same mechanism.  Fixed hugs in hints
and minor bugs in solutions.

Revision 36 - Directory Listing
Modified Wed Jun 20 20:01:26 2001 UTC (11 years, 11 months ago) by gage
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 - Directory Listing
Modified Wed Jun 20 19:04:08 2001 UTC (11 years, 11 months ago) by chris
Modified num_cmp to use filters for string comparsions.  Routed std_num_str_cmp through num_cmp routines.

Revision 34 - Directory Listing
Modified Wed Jun 20 02:02:49 2001 UTC (11 years, 11 months ago) by gage
Fixed problem in std_num_cmp arising from an earlier merge.

Revision 33 - Directory Listing
Modified Wed Jun 20 00:40:30 2001 UTC (11 years, 11 months ago) by gage
Corrected error in _PGanswermacros_init

Revision 32 - Directory Listing
Modified Wed Jun 20 00:32:01 2001 UTC (11 years, 11 months ago) by gage
Added _PGanswermacros_init subroutine

Revision 31 - Directory Listing
Modified Wed Jun 20 00:29:58 2001 UTC (11 years, 11 months ago) by gage
Added _PG......_init  subroutines to these two files
.

Revision 30 - Directory Listing
Modified Tue Jun 19 22:29:01 2001 UTC (11 years, 11 months ago) by gage
More refinement of the initialization routines in PGbasicmacros.pl and the
way it is called from dangerousMacros.pl

Revision 29 - Directory Listing
Modified Tue Jun 19 21:56:35 2001 UTC (11 years, 11 months ago) by gage
Fixed an evaluation which was being done at compile time rather than at
run time.  This could cause the definition of 'main' to be incorrect.

The evaluation was in an error message, so it has probably not been noticed.

Revision 28 - Directory Listing
Modified Tue Jun 19 20:56:08 2001 UTC (11 years, 11 months ago) by gage
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 27 - Directory Listing
Modified Tue Jun 19 20:31:39 2001 UTC (11 years, 11 months ago) by gage
Many modifications to courseScript scripts which will insure that the
routines are re-entrant (i.e. they can be called via mod_perl and don't
need to be re-compiled for every execution run.)

Minor modifications to processProblem8.pl and to PGtranslator.pm

Revision 26 - Directory Listing
Modified Tue Jun 19 16:49:09 2001 UTC (11 years, 11 months ago) by gage
Fixed bug in rhomberg.

Revision 23 - Directory Listing
Modified Tue Jun 19 15:37:34 2001 UTC (11 years, 11 months ago) by gage
Modified the  documentation for the trapezoid function.

Revision 22 - Directory Listing
Modified Tue Jun 19 13:07:28 2001 UTC (11 years, 11 months ago) by chris
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 20 - Directory Listing
Modified Tue Jun 19 01:50:35 2001 UTC (11 years, 11 months ago) by gage
Removing from dev 1-7-01
the files numericalmethods.pl and unit_processor.pl which are
no longer used.  They have been replaced by Units.pm and PGnumericalmacros.pl
respectively.

Revision 19 - Directory Listing
Modified Mon Jun 18 19:38:16 2001 UTC (11 years, 11 months ago) by amanda
added fact function to list of functions accepted
fixed step and fact function so that they are seen properly in 'preview answer'
usa

Revision 16 - Directory Listing
Modified Mon Jun 18 17:54:53 2001 UTC (11 years, 11 months ago) by sam
added test comment at top.

Revision 14 - Directory Listing
Modified Mon Jun 18 17:32:39 2001 UTC (11 years, 11 months ago) by amanda
added fact function

Revision 11 - Directory Listing
Modified Mon Jun 18 15:21:51 2001 UTC (11 years, 11 months ago) by sam
another setup script test (changed #! lines)

Revision 10 - Directory Listing
Modified Fri Jun 15 21:06:18 2001 UTC (11 years, 11 months ago) by sam
nothing should change

Revision 8 - Directory Listing
Modified Fri Jun 15 16:24:03 2001 UTC (11 years, 11 months ago) by gage
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 7 - Directory Listing
Modified Fri Jun 15 15:16:23 2001 UTC (11 years, 11 months ago) by gage
tthPath set to /usr/local/bin/tth

Revision 6 - Directory Listing
Modified Fri Jun 15 14:29:57 2001 UTC (11 years, 11 months ago) by gage
development version dev-1-7-01 from /ww/webwork/development 15-June-2001

Revision 5 - Directory Listing
Modified Thu Jun 14 23:45:41 2001 UTC (11 years, 11 months ago) by gage
dev-1-7-01

Revision 4 - Directory Listing
Modified Thu Jun 14 23:27:51 2001 UTC (11 years, 11 months ago) by gage
dev-1-7-1

Revision 2 - Directory Listing
Added Thu Jun 14 17:08:51 2001 UTC (11 years, 11 months ago) by sam
initial import

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9