[system] / trunk / pg / macros / contextLimitedPolynomial.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/contextLimitedPolynomial.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 4298 Revision 4997
1
1loadMacros("Parser.pl"); 2loadMacros("Parser.pl");
2 3
3sub _contextLimitedPolynomial_init {}; # don't load it again 4sub _contextLimitedPolynomial_init {}; # don't load it again
5
6=head3 Context("LimitedPolynomial")
4 7
5########################################################## 8##########################################################
6# 9#
7# Implements a context in which students can only 10# Implements a context in which students can only
8# enter (expanded) polynomials (i.e., sums of multiples 11# enter (expanded) polynomials (i.e., sums of multiples
19# 22#
20 23
21# 24#
22# Handle common checking for BOPs 25# Handle common checking for BOPs
23# 26#
27
28=cut
29
24package LimitedPolynomial::BOP; 30package LimitedPolynomial::BOP;
25 31
26# 32#
27# Do original check and then if the operands are numbers, its OK. 33# Do original check and then if the operands are numbers, its OK.
28# Otherwise, do an operator-specific check for if the polynomial is OK. 34# Otherwise, do an operator-specific check for if the polynomial is OK.

Legend:
Removed from v.4298  
changed lines
  Added in v.4997

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9