[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 5372 Revision 5373
3 3
4sub _contextLimitedPolynomial_init {}; # don't load it again 4sub _contextLimitedPolynomial_init {}; # don't load it again
5 5
6=head3 Context("LimitedPolynomial") 6=head3 Context("LimitedPolynomial")
7 7
8########################################################## 8 ##########################################################
9# 9 #
10# Implements a context in which students can only 10 # Implements a context in which students can only
11# enter (expanded) polynomials (i.e., sums of multiples 11 # enter (expanded) polynomials (i.e., sums of multiples
12# of powers of x). 12 # of powers of x).
13# 13 #
14# Select the context using: 14 # Select the context using:
15# 15 #
16# Context("LimitedPolynomial"); 16 # Context("LimitedPolynomial");
17# 17 #
18# If you set the "singlePowers" flag, then only one monomial of 18 # If you set the "singlePowers" flag, then only one monomial of
19# each degree can be included in the polynomial: 19 # each degree can be included in the polynomial:
20# 20 #
21# Context("LimitedPolynomial")->flags->set(singlePowers=>1); 21 # Context("LimitedPolynomial")->flags->set(singlePowers=>1);
22# 22 #
23 23
24=cut 24=cut
25 25
26# 26#
27# Handle common checking for BOPs 27# Handle common checking for BOPs
356 "${_}h"=>{class => 'LimitedPolynomial::Function::hyperbolic'} 356 "${_}h"=>{class => 'LimitedPolynomial::Function::hyperbolic'}
357 ); 357 );
358} 358}
359 359
360Context("LimitedPolynomial"); 360Context("LimitedPolynomial");
361
3621;

Legend:
Removed from v.5372  
changed lines
  Added in v.5373

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9