|Links to HEAD:||(view) (download) (as text) (annotate)|
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|