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

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

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

Revision 6058 Revision 6141
1################################################################################ 1################################################################################
2# WeBWorK Online Homework Delivery System 2# WeBWorK Online Homework Delivery System
3# Copyright 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/ 3# Copyright 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/
4# $CVSHeader$ 4# $CVSHeader: pg/macros/parserFormulaUpToConstant.pl,v 1.21 2009/06/25 23:28:44 gage Exp $
5# 5#
6# This program is free software; you can redistribute it and/or modify it under 6# This program is free software; you can redistribute it and/or modify it under
7# the terms of either: (a) the GNU General Public License as published by the 7# the terms of either: (a) the GNU General Public License as published by the
8# Free Software Foundation; either version 2, or (at your option) any later 8# Free Software Foundation; either version 2, or (at your option) any later
9# version, or (b) the "Artistic License" which comes with this package. 9# version, or (b) the "Artistic License" which comes with this package.
44The FormulaUpToConstant should work like any normal Formula, 44The FormulaUpToConstant should work like any normal Formula,
45and in particular, you use $f->cmp to get its answer checker. 45and in particular, you use $f->cmp to get its answer checker.
46 46
47 ANS($f->cmp); 47 ANS($f->cmp);
48 48
49Note that the FormulaUpToConstant object creates its only private 49Note that the FormulaUpToConstant object creates its own private
50copy of the current Context (so that it can add variables without 50copy of the current Context (so that it can add variables without
51affecting the rest of the problem). You should not notice this 51affecting the rest of the problem). You should not notice this
52in general, but if you need to access that context, use $f->{context}. 52in general, but if you need to access that context, use $f->{context}.
53E.g. 53E.g.
54 54

Legend:
Removed from v.6058  
changed lines
  Added in v.6141

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9