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

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

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

Revision 5584 Revision 5585
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: pg/macros/displayMacros.pl,v 1.9 2007/10/04 16:41:07 sh002i Exp $ 4# $CVSHeader: pg/macros/PGfunctionevaluators.pl,v 1.1 2007/11/08 00:00:15 sh002i 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.
69my $functZeroLevelTolDefault; 69my $functZeroLevelTolDefault;
70my $inputs_ref; 70my $inputs_ref;
71my $useOldAnswerMacros; 71my $useOldAnswerMacros;
72my $user_context; 72my $user_context;
73sub _PGfunctionevaluators_init { 73sub _PGfunctionevaluators_init {
74 $functAbsTolDefault = PG_restricted_eval(q/$functAbsTolDefault/); 74 $functAbsTolDefault = PG_restricted_eval(q/$envir{functAbsTolDefault}/);
75 $functLLimitDefault = PG_restricted_eval(q/$functLLimitDefault/); 75 $functLLimitDefault = PG_restricted_eval(q/$envir{functLLimitDefault}/);
76 $functMaxConstantOfIntegration = PG_restricted_eval(q/$functMaxConstantOfIntegration/); 76 $functMaxConstantOfIntegration = PG_restricted_eval(q/$envir{functMaxConstantOfIntegration}/);
77 $functNumOfPoints = PG_restricted_eval(q/$functNumOfPoints/); 77 $functNumOfPoints = PG_restricted_eval(q/$envir{functNumOfPoints}/);
78 $functRelPercentTolDefault = PG_restricted_eval(q/$functRelPercentTolDefault/); 78 $functRelPercentTolDefault = PG_restricted_eval(q/$envir{functRelPercentTolDefault}/);
79 $functULimitDefault = PG_restricted_eval(q/$functULimitDefault/); 79 $functULimitDefault = PG_restricted_eval(q/$envir{functULimitDefault}/);
80 $functVarDefault = PG_restricted_eval(q/$functVarDefault/); 80 $functVarDefault = PG_restricted_eval(q/$envir{functVarDefault}/);
81 $functZeroLevelDefault = PG_restricted_eval(q/$functZeroLevelDefault/); 81 $functZeroLevelDefault = PG_restricted_eval(q/$envir{functZeroLevelDefault}/);
82 $functZeroLevelTolDefault = PG_restricted_eval(q/$functZeroLevelTolDefault/); 82 $functZeroLevelTolDefault = PG_restricted_eval(q/$envir{functZeroLevelTolDefault}/);
83 $inputs_ref = PG_restricted_eval(q/$inputs_ref/); 83 $inputs_ref = PG_restricted_eval(q/$envir{inputs_ref}/);
84 $useOldAnswerMacros = PG_restricted_eval(q/$useOldAnswerMacros/); 84 $useOldAnswerMacros = PG_restricted_eval(q/$envir{useOldAnswerMacros}/);
85 unless ($useOldAnswerMacros) { 85 unless ($useOldAnswerMacros) {
86 $user_context = PG_restricted_eval(q/\%context/); 86 $user_context = PG_restricted_eval(q/\%context/);
87 $Context = sub { Parser::Context->current($user_context, @_) }; 87 $Context = sub { Parser::Context->current($user_context, @_) };
88 } 88 }
89} 89}

Legend:
Removed from v.5584  
changed lines
  Added in v.5585

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9