From: dpvc v. a. <we...@ma...> - 2007-10-31 01:48:25
|
Log Message: ----------- 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). Modified Files: -------------- pg/macros: contextLimitedPolynomial.pl Revision Data ------------- Index: contextLimitedPolynomial.pl =================================================================== RCS file: /webwork/cvs/system/pg/macros/contextLimitedPolynomial.pl,v retrieving revision 1.18 retrieving revision 1.19 diff -Lmacros/contextLimitedPolynomial.pl -Lmacros/contextLimitedPolynomial.pl -u -r1.18 -r1.19 --- macros/contextLimitedPolynomial.pl +++ macros/contextLimitedPolynomial.pl @@ -150,7 +150,7 @@ $self->{exponents} = [(0) x scalar(keys %{$vIndex})]; $self->{exponents}[$self->{index}] = 1; } elsif ($self->class eq 'Number') { - $self->{exponents} = [] if $self->context->flag("strictCoefficients"); + $self->{exponents} = []; } if ($self->{exponents}) { my $power = join(',',@{$self->{exponents}}); |