Log of /trunk/pg/macros/contextLimitedPolynomial.pl
Parent Directory
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
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
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
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.