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

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

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

Revision 4996 Revision 4997
1loadMacros('Parser.pl'); 1loadMacros('Parser.pl');
2 2
3sub _contextIntegerFunctions_init {}; # don't reload this file 3sub _contextIntegerFunctions_init {}; # don't reload this file
4
5=head3 Context("IntegerFunctions")
4 6
5###################################################################### 7######################################################################
6# 8#
7# This is a Parser context that adds integer related functions C(n,r) 9# This is a Parser context that adds integer related functions C(n,r)
8# and P(n,r). They can be used by the problem author and also by 10# and P(n,r). They can be used by the problem author and also by
19# ANS(Compute("P($a, $b)")->cmp); 21# ANS(Compute("P($a, $b)")->cmp);
20# 22#
21# Note: If the context is set to something else, such as Numeric, it 23# Note: If the context is set to something else, such as Numeric, it
22# can be set back with Context("IntegerFunctions"). 24# can be set back with Context("IntegerFunctions").
23 25
26=cut
24 27
25$context{IntegerFunctions} = Context("Numeric")->copy; 28$context{IntegerFunctions} = Context("Numeric")->copy;
26 29
27package IntegerFunction2; 30package IntegerFunction2;
28our @ISA = qw(Parser::Function::numeric2); # checks for 2 numeric inputs 31our @ISA = qw(Parser::Function::numeric2); # checks for 2 numeric inputs

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9