[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 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