[system] / trunk / pg / lib / Parser / Number.pm Repository:
ViewVC logotype

Log of /trunk/pg/lib/Parser/Number.pm

Parent Directory Parent Directory


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

Revision 5509 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 15 00:56:51 2007 UTC (12 years, 3 months ago) by dpvc
File length: 2450 byte(s)
Diff to previous 5060
Formula objects and Context objects contain reference loops, which
prevent them from being freed properly by perl when they are no longer
needed.  This is a source of an important memory leak in WeBWorK.  The
problem has been fixed by using Scalar::Util::weaken for these
recursive references, so these objects can be freed properly when they
go out of scope.  This should cause an improvement in the memory usage
of the httpd child processes.

Revision 5060 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 28 20:42:53 2007 UTC (12 years, 5 months ago) by dpvc
File length: 2434 byte(s)
Diff to previous 5001
Use Value->context rather than $$Value::context.

Revision 5001 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 12 04:05:56 2007 UTC (12 years, 6 months ago) by dpvc
File length: 2436 byte(s)
Diff to previous 4994
More fixes for creating items in the corret context.  Also added a
method for looking up the package associated with a particular Parser
class (for consistency with the Value->Package call).

Revision 4994 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 10 01:17:29 2007 UTC (12 years, 6 months ago) by dpvc
File length: 2527 byte(s)
Diff to previous 4028
Update to handle the fact that the Value package now includes the
context with all MathObjects.  (This may still need some work.)

Revision 4028 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 18 22:42:55 2006 UTC (13 years, 9 months ago) by dpvc
File length: 2317 byte(s)
Diff to previous 3782
Change check for zero from fuzzy check to strict check (when the
problem used absolute tolerances, in particular, this can causebig
problems).

Revision 3782 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 1 13:17:27 2005 UTC (14 years ago) by dpvc
File length: 2313 byte(s)
Diff to previous 3441
Fixed a problem with not including parentheses when a negative number
is the base of a power. (And in general, when a negative is used as an
operand of a higher-precendence operation, but it really only affected
powers.)

Revision 3441 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 1 12:04:23 2005 UTC (14 years, 4 months ago) by dpvc
File length: 2207 byte(s)
Diff to previous 3335
Updates to make mode=>'frac' properly emulate the original num_cmp
behavior (it now allows decimals and fractions instead of requiring a
fraction).  There is also a new LimitedNumeric-StrictFraction context
(not currently used) that disallows decimals and requires fractions.

Revision 3335 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 4 03:28:09 2005 UTC (14 years, 5 months ago) by dpvc
File length: 2158 byte(s)
Diff to previous 2796
Allow Parser::Number::NoDecimals() to accept a context to be modified
(rather than always changing the curent context).

Revision 2796 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 19 01:15:03 2004 UTC (15 years, 2 months ago) by dpvc
File length: 2118 byte(s)
Diff to previous 2678
Added flags that control the reductions performed by
Formula()->reduce.  Each reduction operation can be individually
enabled or disabled in the context, and in the reduce() call itself.

More complex reductions need to be developed.

Revision 2678 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 23 23:55:37 2004 UTC (15 years, 3 months ago) by dpvc
File length: 2014 byte(s)
Diff to previous 2650
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 2650 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 19 14:23:00 2004 UTC (15 years, 3 months ago) by dpvc
File length: 1942 byte(s)
Diff to previous 2625
Added Parser::Number::NoDecimals() function that causes the parser to
give an error message when the student types a decimal number.  This
means the student must enter fractions as fractions, or values like
sqrt(2) or pi/4 symbolically not numerically.

Revision 2625 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 16 18:35:12 2004 UTC (15 years, 4 months ago) by dpvc
File length: 1641 byte(s)
Diff to previous 2615
Added string comparison to all Value object classes (to compare the
string value of an object to another string).

Overloaded perl '.' operator to do dot product when the operands are
formulas returning vectors.  (Part of the auto-generation of
formulas).

A few improvements to real and complex class output results.

Made Union class slightly more robust and removed need for makeUnion
method other than in the Union itself.

Revision 2615 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 14 21:27:45 2004 UTC (15 years, 4 months ago) by dpvc
File length: 1597 byte(s)
Diff to previous 2612
*** empty log message ***

Revision 2612 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 14 19:29:42 2004 UTC (15 years, 4 months ago) by dpvc
File length: 1532 byte(s)
Diff to previous 2579
Fixed some bugs in the handle of the context in ->string and ->TeX
methods of Value objects.

Revision 2579 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 9 21:38:01 2004 UTC (15 years, 4 months ago) by dpvc
File length: 1446 byte(s)
Diff to previous 2558
Significant update to new parser.

New features include:

  Better control over format of vector output (you can now
    specify ijk-format rather than <...> format)

  "Fuzzy" reals, where the relations like == return true when the
    two values are "close enough".  (This is controlable using
    parameters similar to those used in NUM_CMP).

  The fuzzy reals are now used in vectors/points/matrices/complexes/intervals
    and so on so that their relations will also be fuzzy.  E.g.,
    (1E-13,2) == (0,3) will be true, and norm(Vector(0,1E-13)) will
    equal 0.

  The two main portions of the parser (the Parser and Value packages)
    now share a common context object for configuration purposes.

Revision 2558 - (view) (download) (as text) (annotate) - [select for diffs]
Added Wed Jul 28 20:32:33 2004 UTC (15 years, 4 months ago) by sh002i
File length: 1539 byte(s)
merged changes from rel-2-1-a1 -- stop using that branch.

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