[system] / trunk / pg / macros Repository:
ViewVC logotype

Log of /trunk/pg/macros

View Directory Listing Directory Listing


Sticky Revision:

Revision 2626 - Directory Listing
Modified Mon Aug 16 19:44:26 2004 UTC (15 years, 3 months ago) by dpvc
One more fix for handling intervals properly (I think it's really
right this time).  Also, named constants that end in numbers will
produce TeX output with the number as a subscript (this was already
true for variable names).

Revision 2609 - Directory Listing
Modified Sat Aug 14 13:54:52 2004 UTC (15 years, 4 months ago) by dpvc
Added a String type to the Value package.  Mostly this is to make it
possible to generate an answer checker for it that uses the parser.
It also makes it more consistent for handling things like stringify,
especially when they are recursively called internally.

Added new default strings "NONE" and "DNE", since these get used a
lot.

Modified how the default parameters are set up for the answer
checkers, and how the answer checker reports the expected answer type
in type mismatch error messages.

Revision 2608 - Directory Listing
Modified Sat Aug 14 13:49:56 2004 UTC (15 years, 4 months ago) by dpvc
Added Infinity function (similar to i and pi) for creating infinity
constants.

Revision 2602 - Directory Listing
Modified Fri Aug 13 22:57:27 2004 UTC (15 years, 4 months ago) by dpvc
Changed the way the parser checks to see if it is loaded.

Revision 2590 - Directory Listing
Modified Wed Aug 11 18:02:44 2004 UTC (15 years, 4 months ago) by dpvc
Added Real() command to create fuzzy reals.

Revision 2576 - Directory Listing
Modified Wed Aug 4 20:52:28 2004 UTC (15 years, 4 months ago) by dpvc
Make Parser work with PGauxiliaryFunctions.pl, and add the macro files
needed to initialize the parser.

Revision 2574 - Directory Listing
Modified Wed Aug 4 20:23:11 2004 UTC (15 years, 4 months ago) by dpvc
Make Parser live nicely with Complex1.pm.

In particular, make the i() function determine whether it should
call the Complex::i() function or the Parser version.

Revision 2558 - Directory Listing
Modified Wed Jul 28 20:32:33 2004 UTC (15 years, 4 months ago) by sh002i
merged changes from rel-2-1-a1 -- stop using that branch.

Revision 2518 - Directory Listing
Modified Fri Jul 16 01:32:52 2004 UTC (15 years, 5 months ago) by gage
Will create the tempDirectory if it is missing.

this is useful if, for example, you switch the tmp directory from
webwork2/courses/courseName/html/tmp  to something like

/ww/htdocs/tmp/courseName

You don't want to create a courseName node for every course, you would
prefer to create only /ww/htdocs/tmp

the current version will create the node courseName if it doesn't exist
(or the name tmp in the first example) but will not create files
higher up the tree.

Revision 2488 - Directory Listing
Modified Sun Jul 11 21:36:26 2004 UTC (15 years, 5 months ago) by gage
Added better error messages.  Removed and extraneous slash.

Revision 2445 - Directory Listing
Modified Tue Jul 6 21:21:20 2004 UTC (15 years, 5 months ago) by jj
Allow psvn to equal 0.  It could happen in situations where a problem
isn't really assigned to the person.

Revision 2443 - Directory Listing
Modified Tue Jul 6 15:16:51 2004 UTC (15 years, 5 months ago) by jj
Allow new option for image.  extra_html_tags are added to the img tag of the
image.  Allows you to control the vertical alignment of an image.

Revision 2400 - Directory Listing
Modified Fri Jun 25 12:32:14 2004 UTC (15 years, 5 months ago) by dpvc
Fixed error in ANS_NUM_TO_NAME.

Revision 2396 - Directory Listing
Modified Thu Jun 24 22:07:22 2004 UTC (15 years, 5 months ago) by dpvc
Moved the <BR> in std_print_q from the beginning of a line to the end
of a line.  This prevents unexpected initial blank lines.

Revision 2393 - Directory Listing
Modified Thu Jun 24 21:01:23 2004 UTC (15 years, 5 months ago) by dpvc
Removed the experimental Parser-based implementations of i(), j() and k().
(sorry about that).

Revision 2392 - Directory Listing
Modified Thu Jun 24 21:00:26 2004 UTC (15 years, 5 months ago) by dpvc
Removed skip and rule from problem header generated in TeX mode here,
and let the snippets handle it (they were producing redundent rules).

Also removed some unwanted spaces in htmllink().

(Accidentally committed experimental change to dangerousMacros.pl, and
don't know how to prevent it at this point, so I'll commit a change
back to the original in a moment.)

Revision 2370 - Directory Listing
Modified Wed Jun 23 01:19:15 2004 UTC (15 years, 5 months ago) by sh002i
moved DISPLAY_MODE_FAILOVER into this file

Revision 2292 - Directory Listing
Modified Fri Jun 11 16:40:44 2004 UTC (15 years, 6 months ago) by dpvc
Fixed a bug in jsMath mode where it would not display < (when it looked like
part of a tag).

Also, removed unwanted spaced around input box.

Revision 2277 - Directory Listing
Modified Tue Jun 8 02:06:32 2004 UTC (15 years, 6 months ago) by sh002i
Reformatted the FUNCTION_CMP subroutine to make it more readable. Also,
one functional change:

< (defined ($inputs_ref->{$prev_ans_label} and $inputs_ref->{$prev_ans_label} =~/\S/) )
> (defined $inputs_ref->{$prev_ans_label} and $inputs_ref->{$prev_ans_label} =~/\S/)

I think the latter was what was intended.

Revision 2274 - Directory Listing
Modified Mon Jun 7 23:53:45 2004 UTC (15 years, 6 months ago) by sh002i
got rid of remaining calls to "wwerror". Fixes bug #530.

Revision 2270 - Directory Listing
Modified Mon Jun 7 11:52:47 2004 UTC (15 years, 6 months ago) by dpvc
Removed redundant HTML_jsMath check.

Revision 2267 - Directory Listing
Modified Mon Jun 7 01:34:34 2004 UTC (15 years, 6 months ago) by dpvc
Added jsMath support to these files.

Basically, HTML_jsMath should do whatever HTML_dpng mode does.  I simply included
it HTML_jsMath every time HTML_dpng appeared.

Revision 2253 - Directory Listing
Modified Sat Jun 5 16:13:33 2004 UTC (15 years, 6 months ago) by jj
Allow on-the-fly graphics in jsmath and asciimath modes.

Revision 2243 - Directory Listing
Modified Wed Jun 2 20:18:48 2004 UTC (15 years, 6 months ago) by jj
Fixed bug which caused some debug output to always appear.

Revision 2232 - Directory Listing
Modified Mon May 31 15:44:43 2004 UTC (15 years, 6 months ago) by jj
Re-use on-the-fly graphs, unless problem seed has change, source file has changed, or the problem is being rendered without being part of a real set.

Revision 2215 - Directory Listing
Modified Mon May 24 21:24:41 2004 UTC (15 years, 6 months ago) by jj
Allow default size of on the fly graphics to be set in global.conf, and make pop-ups of those graphs have windows closer to the size of the graph.  Also, pop-ups always make a new window - important for problems which make you compare two or more popped up graphs.

Revision 2206 - Directory Listing
Modified Mon May 24 17:51:44 2004 UTC (15 years, 6 months ago) by jj
Made on the fly graph names use problem seed rather than psvn.  It is a better identifier for pages like SetMaker.  Also made image names workable for set names containing periods (for the day when set names are free to contain periods).

Revision 2201 - Directory Listing
Modified Mon May 24 02:32:45 2004 UTC (15 years, 6 months ago) by dpvc
update to asciimath for MSIE.

Revision 2199 - Directory Listing
Modified Mon May 24 01:59:53 2004 UTC (15 years, 6 months ago) by dpvc
Support for asciimath.

Added preliminary support for asciimath rendering.  You must use a
MathML-enabled browser.

Revision 2193 - Directory Listing
Modified Mon May 24 01:05:03 2004 UTC (15 years, 6 months ago) by sh002i
failover data now passed in via %envir.

Revision 2173 - Directory Listing
Modified Sun May 23 01:33:22 2004 UTC (15 years, 6 months ago) by jj
Added helpLink for standard help pages in pg files.

Revision 2166 - Directory Listing
Modified Sat May 22 22:16:20 2004 UTC (15 years, 6 months ago) by dpvc
Files needed for jsMath display mode.

Revision 2155 - Directory Listing
Modified Sat May 22 18:04:23 2004 UTC (15 years, 6 months ago) by jj
Moved nicestring to PGbasicmacros.

Revision 2153 - Directory Listing
Modified Sat May 22 15:53:00 2004 UTC (15 years, 6 months ago) by gage
Removed warning messages.  The macroDirectory and courseScripts directory are now defined from the %envir
variable which is shared directly with the new Safe compartment rather than via calls to $main::macroDirectory
which seemed to be unstable in some instances.  I've left the FIXME sign in place just in case there
are still problems.

Revision 2151 - Directory Listing
Modified Sat May 22 01:23:17 2004 UTC (15 years, 6 months ago) by gage
Roll back the previous changes.  They were added to HEAD instead of to the experimental branch.

Revision 2150 - Directory Listing
Modified Sat May 22 01:19:11 2004 UTC (15 years, 6 months ago) by gage
Experimental refactorization of answer evaluators will take place on this branch.

Revision 2144 - Directory Listing
Modified Fri May 21 23:58:13 2004 UTC (15 years, 6 months ago) by apizer
Removed old commented out code dealing with PGsort.

Arnie

Revision 2143 - Directory Listing
Modified Fri May 21 23:56:48 2004 UTC (15 years, 6 months ago) by apizer
Use the new PGsort which uses a true/false compare (e.g. < or lt )
rather than a -1,0,1 compare (e.g. <=> or cmp ).

Arnie

Revision 2061 - Directory Listing
Modified Sun May 9 17:45:41 2004 UTC (15 years, 7 months ago) by gage
Modifications to PGbasicmacros and PGanswermacros which check whether a function answer
is the same as the function answer submitted previously.  Gives warning message
if the same incorrect answers is submitted twice in a row.  The functions must
both compile in order to recognize that they are the same answer.  Two syntactically
incorrect entries will not be recognized as equivalent, even if they are in some sense.

Revision 2057 - Directory Listing
Modified Sat May 8 22:53:03 2004 UTC (15 years, 7 months ago) by gage
Preliminary changes that may eventually allow us to solve the be_strict problem for 5.8.0

Revision 2056 - Directory Listing
Modified Sat May 8 22:51:38 2004 UTC (15 years, 7 months ago) by gage
Updating answer evaluators in PGanswermacros.pl

Beginning to include code that will allow us to
check whether the current answer is the same
as the one submitted previously.

Revision 1964 - Directory Listing
Modified Thu Apr 22 14:39:28 2004 UTC (15 years, 7 months ago) by jj
Added convention to beginproblem that point value of "" means that we don't
print the point value at all.  It will also supress printing of the filename
if someone is supposed to have filenames printed, which is appropriate for
the one known time this convention is used.

Revision 1943 - Directory Listing
Modified Sun Apr 4 20:05:34 2004 UTC (15 years, 8 months ago) by jj
Synched with ASU version.  Defunct functions deleted, new functions added,
and documentation added.

Revision 1941 - Directory Listing
Modified Sun Apr 4 15:56:59 2004 UTC (15 years, 8 months ago) by jj
WW 2 didn't like the top line.  Inserting a comment seems to fix it.  Also
corrected a typo.

Revision 1932 - Directory Listing
Modified Sat Apr 3 15:44:55 2004 UTC (15 years, 8 months ago) by jj
Added support for useBaseTenLog for ww2.

Revision 1896 - Directory Listing
Modified Wed Mar 17 00:45:28 2004 UTC (15 years, 8 months ago) by gage
Changed the naming of arrays from ArRaY[0,0,0] to ArRaY__0:0:0:__

This involved changes in PG.pl and PGmorematrixmacros (ans_array_filter)

Made other cosmetic fixes to code.  Added names to many filters to help with
debugging.  It seems to work for now.

Revision 1834 - Directory Listing
Modified Thu Mar 4 17:41:06 2004 UTC (15 years, 9 months ago) by gage
Added comments

Revision 1831 - Directory Listing
Modified Thu Mar 4 13:06:32 2004 UTC (15 years, 9 months ago) by gage
Changed documentation spacing

Revision 1812 - Directory Listing
Modified Mon Feb 16 20:34:01 2004 UTC (15 years, 9 months ago) by gage
This is a new attempt to fix the problem that there was no
preview string if the units were incorrect.  The previous fix
caused difficulties if strings were entered for numerical answers.

The new code has been added to the subroutine fix_answers_for_display
which already performed answer cleanup of various kinds.

Revision 1797 - Directory Listing
Modified Thu Feb 12 20:26:26 2004 UTC (15 years, 10 months ago) by toenail
Reordered pre-filters in NUM_CMP to allow for latex previews of answers with no units

Revision 1791 - Directory Listing
Modified Thu Feb 12 14:23:36 2004 UTC (15 years, 10 months ago) by gage
Added RECORD_FORM_DATA for making sticky form data which
is not specifically related to answers.

Revision 1785 - Directory Listing
Modified Mon Feb 9 17:18:39 2004 UTC (15 years, 10 months ago) by gage
Modifications to checkbox_cmp to include preview_latex_string.

this completes the squashing of bug #400

Revision 1784 - Directory Listing
Modified Mon Feb 9 17:09:06 2004 UTC (15 years, 10 months ago) by gage
Made changes to the check box macros so that they will remain
sticky when more than one check box is checked.
Involves splitting a null separated string ( or perhaps converting
a reference to an array).  uses a new subroutine contained_in(elem,
array_or_arrray_ref_or_null_separated_string)

this resolves part of bug #400

--Mike

Revision 1780 - Directory Listing
Modified Fri Feb 6 02:55:55 2004 UTC (15 years, 10 months ago) by gage
Corrected format of one line.

--Mike

Revision 1765 - Directory Listing
Modified Fri Jan 30 18:04:37 2004 UTC (15 years, 10 months ago) by jj
Fix bug from last fix, and a second bug caused by $Global::htmlModeDefault
being accidentally called $Global::htmldisplayModeDefault in this file.

Revision 1764 - Directory Listing
Modified Fri Jan 30 15:28:46 2004 UTC (15 years, 10 months ago) by jj
Some sites use only one display mode.  In that case, the "choice of one"
display mode should not be displayed.

Revision 1758 - Directory Listing
Modified Mon Jan 26 16:36:29 2004 UTC (15 years, 10 months ago) by jj
If LaTeX formula ends in a backslash after removing training spaces,
then we removed too much space, so we add a space to the end of it so
it ends '\ \)'.

Revision 1710 - Directory Listing
Modified Tue Jan 6 14:04:34 2004 UTC (15 years, 11 months ago) by apizer
fixed bug in call to Romberg routine.  Romberg now requires parameters
of the form "level => 8".  This was fixed previously I thought. Not sure
how the fix was lost.

Arnie

Revision 1690 - Directory Listing
Modified Sun Dec 28 19:46:57 2003 UTC (15 years, 11 months ago) by gage
Zeroed the variable storing the responses to questionnaires.  Should
fix the error on questionnaires revealed by the persistance of mod_perl
modules.

Changed warning message in dangerousMacros.pl to more accurately describe
what is wrong when the gif2eps script cannot be executed.  (Based on actual
experience running a course on webwork.math.rochester.edu -- I couldn't remember
what my own warning message implied.)
--Mike

Revision 1620 - Directory Listing
Modified Fri Nov 7 14:55:12 2003 UTC (16 years, 1 month ago) by apizer
fixed a bug in line 2469 replacing \npsvnNumber by \n$psvnNumber

Arnie

Revision 1550 - Directory Listing
Modified Tue Sep 30 01:18:25 2003 UTC (16 years, 2 months ago) by sh002i
check to see if $envir->{texDisposition} is defined before trying to
access it.

Revision 1534 - Directory Listing
Modified Thu Sep 25 05:42:31 2003 UTC (16 years, 2 months ago) by sh002i
removed unneeded #! line

Revision 1528 - Directory Listing
Modified Thu Sep 25 01:29:21 2003 UTC (16 years, 2 months ago) by sh002i
fixed #! line

Revision 1525 - Directory Listing
Modified Thu Sep 25 00:29:59 2003 UTC (16 years, 2 months ago) by sh002i
removed unneeded #! lines

Revision 1506 - Directory Listing
Modified Fri Sep 19 01:30:13 2003 UTC (16 years, 2 months ago) by gage
Fixed check_string filter so that it places a
value in preivew_text_string and in preview_latex_string
in the answer hash.  For example entering DNE did not
show up in answer preview, which bothered some students.

--Mike

Revision 1505 - Directory Listing
Modified Mon Sep 15 05:47:38 2003 UTC (16 years, 3 months ago) by lr003k
It seems as though the way I tried to fix long decimals isn't working the way I wanted it too, so I've commented it out for now.

~Liam

Revision 1494 - Directory Listing
Modified Tue Sep 9 02:06:31 2003 UTC (16 years, 3 months ago) by jj
Put mbox around entries of a matrix in TeX-based modes to protect
math inside of them.

Revision 1490 - Directory Listing
Modified Sun Sep 7 17:40:54 2003 UTC (16 years, 3 months ago) by gage
Corrected a typo in EV4
--Mike

Revision 1483 - Directory Listing
Modified Fri Sep 5 13:19:45 2003 UTC (16 years, 3 months ago) by gage
Added EV4 routine supplied by Zig Fiedorowicz
--Mike

Revision 1463 - Directory Listing
Modified Fri Aug 15 16:51:09 2003 UTC (16 years, 4 months ago) by gage
Changes to mail that make it work properly with ALLOW_MAIL_TO
--Mike

Revision 1462 - Directory Listing
Modified Fri Aug 15 16:49:42 2003 UTC (16 years, 4 months ago) by gage
Made changes to rh_sticky_answers so that they
are addressed correctly.

Long term I would like to remove all
references to main:: except for those
in the init routines.  The references
can be replaced by a locally defined
pointer to the  value in the current safe
compartment.

This procedure should make it easier to
maintain the macros.  All references to
global variables will occur in the init
routine.

--Mike

Revision 1456 - Directory Listing
Modified Thu Aug 14 16:10:01 2003 UTC (16 years, 4 months ago) by gage
At least a temporary fix for mail_answers_to2

These evaluators are run in the grader and the
environment variables have disappeared??  I can't find
them at any rate.

this is at best a temporary fix until we get the global
variable situation under control when using cached code.
--Mike

Revision 1455 - Directory Listing
Modified Thu Aug 14 13:27:54 2003 UTC (16 years, 4 months ago) by gage
Made changes to anstext and a few
other answer evaluators so that they
evaluated "main::" correctly.

Still need to fix install problem
grader
--Mike

Revision 1453 - Directory Listing
Modified Wed Aug 6 18:59:26 2003 UTC (16 years, 4 months ago) by jj
New file with linear programming simplex method related macros.

Revision 1452 - Directory Listing
Modified Tue Aug 5 16:37:10 2003 UTC (16 years, 4 months ago) by jj
Revised documentation for test_points.

Revision 1451 - Directory Listing
Modified Tue Aug 5 16:34:38 2003 UTC (16 years, 4 months ago) by jj
Added some documentation for test_points.

Revision 1450 - Directory Listing
Modified Tue Aug 5 16:24:48 2003 UTC (16 years, 4 months ago) by jj
Added option of test_points to fun_cmp.

Revision 1390 - Directory Listing
Modified Tue Jul 15 17:55:32 2003 UTC (16 years, 5 months ago) by apizer
Back off from Cervone's new definition of BR

Arnie

Revision 1385 - Directory Listing
Modified Mon Jul 14 20:22:19 2003 UTC (16 years, 5 months ago) by apizer
Fixed a bug in Davide Cervone's changes

Arnie

Revision 1379 - Directory Listing
Modified Mon Jul 14 15:16:30 2003 UTC (16 years, 5 months ago) by apizer
Incorporated Davide Cervone's improvements and bug fixes.  This mostly
involved removing unwanted spaces, etc.

Arnie

Revision 1365 - Directory Listing
Modified Fri Jul 11 20:18:57 2003 UTC (16 years, 5 months ago) by lr003k
In order to make ans_array entries "sticky" I've had to change some stuff.
The answer labels for these entries are now put into $main::PG_FLAGS{ANSWER_ENTRY_ORDER} as an array reference in PG.pl.
In processProblem8.pl the labels are caught again in the subroutines logCourseData and encode_submitted_answers. It is important that
they're caught there rather than earlier because then the translator would think that every entry was it's own answer.
Professor Gage says that processProblem8.pl is no longer used in webwork2, and he says he'll fix this there.

Revision 1351 - Directory Listing
Modified Fri Jul 11 16:30:04 2003 UTC (16 years, 5 months ago) by apizer
incorporate some of davide Cervone'e changes

Arnie

Revision 1332 - Directory Listing
Modified Wed Jul 9 20:29:04 2003 UTC (16 years, 5 months ago) by lr003k
Fixed a rounding problem.

Revision 1331 - Directory Listing
Modified Wed Jul 9 20:28:40 2003 UTC (16 years, 5 months ago) by lr003k
Removed the last change, it's now handled in display_matrix.

Revision 1328 - Directory Listing
Modified Wed Jul 9 19:45:40 2003 UTC (16 years, 5 months ago) by gage
Added $ to PG_random_generator in the subroutine SRAND.  Why it worked
before as a bare word is anyone's guess. Now that $PG_random_generator
is a local variable the bareword no longer works properly.
--Mike

Revision 1327 - Directory Listing
Modified Wed Jul 9 18:06:52 2003 UTC (16 years, 5 months ago) by lr003k
Added a pretty_matrix sub routine to fix some rounding problems.

Revision 1319 - Directory Listing
Modified Mon Jul 7 02:27:15 2003 UTC (16 years, 5 months ago) by jj
Made box option functional for display_matrix.  It lets you specify an
element to be boxed.

Revision 1318 - Directory Listing
Modified Mon Jul 7 01:34:38 2003 UTC (16 years, 5 months ago) by jj
Fixed bugs in matrix display when top_labels are present.

Revision 1317 - Directory Listing
Modified Fri Jul 4 05:08:37 2003 UTC (16 years, 5 months ago) by jj
Fixed tick marks for graphs - x/y values were reversed.

Revision 1314 - Directory Listing
Modified Wed Jul 2 15:27:59 2003 UTC (16 years, 5 months ago) by apizer
Add backslash to list of characters filtered out of sticky answers

Arnie

Revision 1312 - Directory Listing
Modified Tue Jul 1 17:55:12 2003 UTC (16 years, 5 months ago) by gage
Fixed error in sourceAlias.  The variable is %main::envir not
$main::envir !!!
--Mike

Revision 1311 - Directory Listing
Modified Tue Jul 1 15:36:43 2003 UTC (16 years, 5 months ago) by gage
Changed the defintion of *i to be inside the Complex package.
this and the change to dangerousMacros seems to have cured bug #116

In dangerousMacros, I've added sub i {Complex::i}; after sub i;

--Mike

Revision 1305 - Directory Listing
Modified Tue Jul 1 00:48:01 2003 UTC (16 years, 5 months ago) by gage
Latest attempt to get a version of dangerousMacros.pl that will
work with both 5.6.1 adn 5.6.0
--Mike

Revision 1304 - Directory Listing
Modified Mon Jun 30 23:24:29 2003 UTC (16 years, 5 months ago) by gage
removed unnecessary "no strict, use strict" pair
--Mike

Revision 1303 - Directory Listing
Modified Mon Jun 30 20:36:57 2003 UTC (16 years, 5 months ago) by apizer
added missing hyperbolic, inverse trig, and inverse hyperbolic functions
cintributed by Davide Cervone

Arnie

Revision 1298 - Directory Listing
Modified Fri Jun 27 19:53:50 2003 UTC (16 years, 5 months ago) by gage
Fixed typo in beginproblem
--Mike

Revision 1294 - Directory Listing
Modified Fri Jun 27 13:57:09 2003 UTC (16 years, 5 months ago) by lr003k
Added a vec_solution_cmp. Used for problems where the answer
needs to be v1_s*v2+t*v3 where v1,v2,and v3 are vectors. v1 has
to be a linear combination of the professors answer where the
first one has a nonzero coefficient. The others are a basis, and
are compared with compare_basis.

Revision 1286 - Directory Listing
Modified Thu Jun 26 21:08:47 2003 UTC (16 years, 5 months ago) by gage
Make sure that the local my variables are updated in PGbasicmacros
as well as the variables in main::.

--Mike

Revision 1280 - Directory Listing
Modified Thu Jun 26 17:42:18 2003 UTC (16 years, 5 months ago) by malsyned
Merged the changes needed to work with the new WW2 translator
optimizations into the main pg branch.

Revision 1278 - Directory Listing
Modified Thu Jun 26 13:55:43 2003 UTC (16 years, 5 months ago) by lr003k
Matrices now displayed in previewer.

Revision 1276 - Directory Listing
Modified Wed Jun 25 16:26:42 2003 UTC (16 years, 5 months ago) by lr003k
committed the wrong thing

Revision 1274 - Directory Listing
Modified Wed Jun 25 15:43:03 2003 UTC (16 years, 5 months ago) by lr003k
fixed a bug

Revision 1267 - Directory Listing
Modified Tue Jun 24 15:25:58 2003 UTC (16 years, 5 months ago) by gage
Changes that allow these files to work with caching version
of Webwork2.0 -- optimized for speed
--Mike

Revision 1266 - Directory Listing
Modified Tue Jun 24 15:24:09 2003 UTC (16 years, 5 months ago) by gage
Changes that allow these files to work with optimized
version of WeBWorK2.0 which uses caching of macro files.
--Mike

Revision 1265 - Directory Listing
Modified Tue Jun 24 14:58:03 2003 UTC (16 years, 5 months ago) by lr003k
Made the code more object-oriented

Revision 1253 - Directory Listing
Modified Mon Jun 23 18:34:44 2003 UTC (16 years, 5 months ago) by gage
More changes to make these files compatible
with WeBWorK2.0 and cached compartments
-- Mike

Revision 1251 - Directory Listing
Modified Mon Jun 23 16:24:32 2003 UTC (16 years, 5 months ago) by gage
Changes made to PGbasicmacros so that it can be cached.
Changes should be compatible with webwork1.8
--MIke

Revision 1250 - Directory Listing
Modified Mon Jun 23 15:43:11 2003 UTC (16 years, 5 months ago) by gage
Made changes required to allow caching of these files.
My tests indicate that these changes are compatible with webwork1.8
One possible problem might be the mail-to answer macros
which access the environement variable directly
I think I have this properly patched, but it has not been
tested yet.
--Mike

Revision 1238 - Directory Listing
Modified Fri Jun 20 19:05:38 2003 UTC (16 years, 5 months ago) by lr003k
Matrices now take math constants.

Revision 1237 - Directory Listing
Modified Fri Jun 20 18:59:44 2003 UTC (16 years, 5 months ago) by lr003k
Student answer now displayed in a html table given by jones's
display matrix method in PGmatrixmacros. The braces were giving
me headaches so I set the option to none, at least for now.

Revision 1161 - Directory Listing
Modified Fri Jun 13 17:36:10 2003 UTC (16 years, 6 months ago) by lr003k
Was not accepting negative answers, the sign problem is fixed now.

Revision 1158 - Directory Listing
Modified Fri Jun 13 17:12:18 2003 UTC (16 years, 6 months ago) by sh002i
rollback change to the way ImageGenerator::add is called.
-sam

Revision 1155 - Directory Listing
Modified Fri Jun 13 02:33:56 2003 UTC (16 years, 6 months ago) by sh002i
changes to the math_ev3 functions in PGbasicmacros.pl to support new
interface to ImageGenerator and some cleanup.
-sam

Revision 1140 - Directory Listing
Modified Thu Jun 12 19:14:38 2003 UTC (16 years, 6 months ago) by gage
Answer labels are now prefixed by a Quiz prefix which allows more
than one problem to appear on the same page.
-- Mike

Revision 1127 - Directory Listing
Modified Wed Jun 11 19:18:19 2003 UTC (16 years, 6 months ago) by lr003k
Was working from an older copy before my last update, sorry.

Revision 1126 - Directory Listing
Modified Wed Jun 11 18:34:40 2003 UTC (16 years, 6 months ago) by jj
Fixed isPrime, which had said that 4 was prime, and shortened its loop.

Revision 1123 - Directory Listing
Modified Wed Jun 11 15:28:47 2003 UTC (16 years, 6 months ago) by lr003k
Ok, there is the ans_array_filter added which allows for the answer to be coming from the ans_array.

Revision 1122 - Directory Listing
Modified Wed Jun 11 14:54:27 2003 UTC (16 years, 6 months ago) by lr003k
Added two methods for naming the blanks in ans_array. The names now have the format ArRaY3[1,0,2] (this would be the name of
the 3rd answer (it's taken from main::answer_count which is then incremented so the answer before it is AnSwEr2 and the
answer after it is AnSwEr4) and it would be the second matrix or vector in the answer ( I need to take multiple vectors for
things like basis cmp, so ans_array_extension puts the vectors in different locations) and the 0 and 2 are row and column in
that matrix or vector.

Revision 1121 - Directory Listing
Modified Wed Jun 11 14:47:59 2003 UTC (16 years, 6 months ago) by lr003k
I removed the subroutine answer_matrix since it really belongs in basic macros with the other answer blank methods.

Revision 1120 - Directory Listing
Modified Wed Jun 11 14:46:35 2003 UTC (16 years, 6 months ago) by lr003k
I've added ans_array and ans_array extension and moved answer_matrix here since this is probably where it should be with all
the other answer blank methods. I still have to comment the code.

Revision 1115 - Directory Listing
Modified Wed Jun 11 02:43:42 2003 UTC (16 years, 6 months ago) by apizer
Fixed error concerning variable $string.
Cleaned up how polynomials are displayed.

Arnie

Revision 1102 - Directory Listing
Modified Tue Jun 10 16:23:47 2003 UTC (16 years, 6 months ago) by lr003k
ok, I'm pretty sure that this one is the one we want. Unfortunately the other one was an old one, that cmpl_cmp4 was not used
anywhere and I had removed it later, and this one has multi_cmp. Sorry for all the confusion.

Revision 1097 - Directory Listing
Modified Mon Jun 9 23:26:19 2003 UTC (16 years, 6 months ago) by jj
Slightly better handling of top_labels in tth mode when force_tex is set; namely
it ignores the labels instead of letting the TeX code confuse tth so badly that
the matrix is basically lost.

Revision 1091 - Directory Listing
Modified Mon Jun 9 21:53:11 2003 UTC (16 years, 6 months ago) by gage
Added > /dev/null tags to the commands which run tex and dvi for
HTML_img mode.  These will probably work now for the most part.
I don't know how well this will work if there is an error in
getting either tex or dvips to run.

For many problems using WeBWorK1.8 and typeset3 mode  thing work fine.
Please submit example problems where the images don't show up or some
other image related error occurs as bugs to
http://webwork3.math.rochester.edu/bugzilla
--Mike

Revision 1090 - Directory Listing
Modified Mon Jun 9 21:24:08 2003 UTC (16 years, 6 months ago) by gage
Fixed a patch to round (and Round) originally due to Mark Schmitt
which didn't get included in the latest updates and transfer to pg
--Mike

Revision 1088 - Directory Listing
Modified Mon Jun 9 21:05:11 2003 UTC (16 years, 6 months ago) by gage
Commented out code  that is not used (I believe)

comp_cplx4 and cplx_cmp4

-- Mike

Revision 1080 - Directory Listing
Modified Mon Jun 9 17:49:36 2003 UTC (16 years, 6 months ago) by apizer
remove unneccsary shebang lines

Arnie

Revision 1072 - Directory Listing
Modified Mon Jun 9 02:27:04 2003 UTC (16 years, 6 months ago) by gage
The file PGcomplexmacros.pl is partially in sync with the version in
courseScripts.  I need advice on the latest versions of some of the
subroutines from Liam.
--Mike

Revision 1071 - Directory Listing
Modified Mon Jun 9 02:26:17 2003 UTC (16 years, 6 months ago) by gage
Bringing these files in sync with the latest versions in the
courseScripts CVS
--Mike

Revision 1069 - Directory Listing
Modified Mon Jun 9 02:01:41 2003 UTC (16 years, 6 months ago) by gage
Bringing this version into sync with the latest version in
courseScripts.
In particular dvipng is active in this script to make HTML_img
useable in WeBWorK2.0.  Not yet finished with this.
--Mike

Revision 1068 - Directory Listing
Modified Mon Jun 9 01:59:37 2003 UTC (16 years, 6 months ago) by gage
Updating the copy of PGchoicemacros.pl to the latest version available
in courseScripts
--Mike

Revision 1066 - Directory Listing
Modified Mon Jun 9 00:54:33 2003 UTC (16 years, 6 months ago) by gage
Adding a newer version of PGmatrixmacros.pl
--Mike

Revision 1064 - Directory Listing
Modified Mon Jun 9 00:34:51 2003 UTC (16 years, 6 months ago) by gage
Adding recent macro files to the pg collection
--Mike

Revision 1050 - Directory Listing
Added Fri Jun 6 21:39:42 2003 UTC (16 years, 6 months ago) by sh002i
moved PG modules and macro files from webwork-modperl to pg
-sam

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9