|Links to HEAD:||(view) (download) (as text) (annotate)|
Changed wording of a warning message
Don't reduce -ax+b to b-ax in polynomial contexts.
Fixed a problem introduced in the previous version where an error is reported about undefined values used in addition.
Make numbers be considered coefficients of x^0 in singlePowers mode, not just LimitedPolynomial-Strict context. For LimitedPolynomials with singlePowers set to 1, you can still do addition in the constant term by using parentheses, e.g. 4x^2 + (3+4).
Fix LimitedPolynomial-Strict to check for singlePowers (there was a typo) and to consider constants to be coefficients of x^0. Give better error messages in some cases.
added standard copyright/license header
fixed indentation of verbatim paragraphs: now using hard tabs exclusively. the downside of this is that these get rendered as eight-column tabs.
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.
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");
Don't factor negatives out of multiple terms at once.
Add context names for the context(s) created here.
Move the context creation to the _init routine so that modifications to main:: occur at initialization time, not when the file is loaded.
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.)
Changed Parser.pl to MathObjects.pl
Updated calls to Parser::Context->getCopy to remove unneeded undef argument.
Use new context methods.
Fixing docementation so that it can be read from the web.
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");
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).
Make error messages potentially localizable (by making them use sprintf-style strings rather than variable subtitution).
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.
|aubreyja at gmail dot com||ViewVC Help|
|Powered by ViewVC 1.0.9|