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

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

Parent Directory Parent Directory


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

Revision 5551 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 2 20:48:05 2007 UTC (12 years, 2 months ago) by sh002i
File length: 13041 byte(s)
Diff to previous 5518
improved formatting for docs -- these were in pod sections but were all
formatted as verbatim sections, and i moved them into normal paragraphs,
lists, etc. should make things more readable from the web.

Revision 5518 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 20 22:47:01 2007 UTC (12 years, 2 months ago) by dpvc
File length: 13122 byte(s)
Diff to previous 5484
Adds a new context that is more limited by not allowing operations
within the coefficients and exponents themselves.  Access this context
using

      Context("LimitedPolynomial-Strict");

Revision 5484 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 10 23:21:24 2007 UTC (12 years, 3 months ago) by dpvc
File length: 11415 byte(s)
Diff to previous 5441
Don't factor negatives out of multiple terms at once.

Revision 5441 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 28 22:40:15 2007 UTC (12 years, 3 months ago) by dpvc
File length: 11324 byte(s)
Diff to previous 5392
Add context names for the context(s) created here.

Revision 5392 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 19 21:50:23 2007 UTC (12 years, 3 months ago) by dpvc
File length: 11282 byte(s)
Diff to previous 5373
Move the context creation to the _init routine so that modifications
to main:: occur at initialization time, not when the file is loaded.

Revision 5373 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 19 02:01:57 2007 UTC (12 years, 4 months ago) by dpvc
File length: 11054 byte(s)
Diff to previous 5371
Normalized comments and headers to that they will format their POD
documentation properly.  (I know that the POD processing was supposed
to strip off the initial #, but that doesn't seem to happen, so I've
added a space throughout.)

Revision 5371 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 19 00:56:25 2007 UTC (12 years, 4 months ago) by dpvc
File length: 11035 byte(s)
Diff to previous 5370
Changed Parser.pl to MathObjects.pl

Revision 5370 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 19 00:48:19 2007 UTC (12 years, 4 months ago) by dpvc
File length: 11030 byte(s)
Diff to previous 5051
Updated calls to Parser::Context->getCopy to remove unneeded undef
argument.

Revision 5051 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 28 02:20:00 2007 UTC (12 years, 5 months ago) by dpvc
File length: 11036 byte(s)
Diff to previous 4997
Use new context methods.

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

Revision 4298 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 26 02:54:01 2006 UTC (13 years, 4 months ago) by dpvc
File length: 10993 byte(s)
Diff to previous 4121
Extended this context to handle multivariable polynomials.  So you can
use things like

	loadMacros("contextLimitedPolynomial.pl");
	Context("LimitedPolynomial")->variables->are(x => 'Real', y => 'Real');
        Context()->flags->set(singlePowers=>1);
	$f = Formula("1 + x + y + 2xy + x^2 + y^2");

Revision 4121 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 5 20:43:22 2006 UTC (13 years, 6 months ago) by dpvc
File length: 8803 byte(s)
Diff to previous 3383
Fixed a problem where things like x+4x would be accepted even in
single-power mode (the initial x was not being identified as a single
power of x correctly).

Revision 3383 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 15 02:57:01 2005 UTC (14 years, 5 months ago) by jj
File length: 8751 byte(s)
Diff to previous 3371
Fixed typo.

Revision 3371 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 12 22:39:56 2005 UTC (14 years, 5 months ago) by dpvc
File length: 8751 byte(s)
Diff to previous 3294
Make error messages potentially localizable (by making them use
sprintf-style strings rather than variable subtitution).

Revision 3294 - (view) (download) (as text) (annotate) - [select for diffs]
Added Wed Jun 15 23:55:17 2005 UTC (14 years, 6 months ago) by dpvc
File length: 8747 byte(s)
Implements a Parser context in which only polynomials (of a single
variable) can be entered.  Only sums of multiples of powers of the
variable are allowed to be entered (though the coefficients can
contain mathematical operations).  An optional flag lets you specify
that only one term of each degree is allowed, so the student would
have to combine 1+x+x+x^2 to get 1+2x+x^2 in that case.

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