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

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

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

Revision 5372 Revision 5373
2 2
3sub _answerVariableList_init {}; # don't reload this file 3sub _answerVariableList_init {}; # don't reload this file
4 4
5=head1 DESCRIPTION 5=head1 DESCRIPTION
6 6
7###################################################################### 7 ######################################################################
8# 8 #
9# This answer checker compares the student answer to a list of 9 # This answer checker compares the student answer to a list of
10# variable names (so, for example, you can ask for what values a 10 # variable names (so, for example, you can ask for what values a
11# given function depends on). 11 # given function depends on).
12# 12 #
13# Use addVariables() to create the list of variables that from which 13 # Use addVariables() to create the list of variables that from which
14# the student can choose, and then use variable_cmp() to generate the 14 # the student can choose, and then use variable_cmp() to generate the
15# answer checker. If the formula passed to variable_cmp contains 15 # answer checker. If the formula passed to variable_cmp contains
16# parentheses around the list, then the student's answer must as 16 # parentheses around the list, then the student's answer must as
17# well. 17 # well.
18# 18 #
19# You can also include additional parameters to variable_cmp. These 19 # You can also include additional parameters to variable_cmp. These
20# can be any of the flags appropriate for List() answer checker. 20 # can be any of the flags appropriate for List() answer checker.
21# 21 #
22# Usage examples: 22 # Usage examples:
23# 23 #
24# addVariables('x','y','z'); 24 # addVariables('x','y','z');
25# ANS(variable_cmp("(x,y)")); 25 # ANS(variable_cmp("(x,y)"));
26# 26 #
27# addVariables('x','y','z','s','t,); 27 # addVariables('x','y','z','s','t,);
28# ANS(variable_cmp("s,t")); 28 # ANS(variable_cmp("s,t"));
29# 29 #
30# addVariables('x','y','z'); 30 # addVariables('x','y','z');
31# ANS(variable_cmp("(x)",showHints=>0,showLengthHints=>0)); 31 # ANS(variable_cmp("(x)",showHints=>0,showLengthHints=>0));
32# 32 #
33 33
34=cut 34=cut
35 35
36# 36#
37# A new context for variable lists 37# A new context for variable lists

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9