[system] / branches / rel-2-4-patches / pg / macros / PGasu.pl Repository:
ViewVC logotype

Diff of /branches/rel-2-4-patches/pg/macros/PGasu.pl

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

Revision 6054 Revision 6055
115Wrapper for other answer evaluators. It marks the answer wrong if 115Wrapper for other answer evaluators. It marks the answer wrong if
116it contains one of the six basic trig functions. 116it contains one of the six basic trig functions.
117 117
118This is useful if you want students to report the value of sin(pi/4), 118This is useful if you want students to report the value of sin(pi/4),
119but you don't want to allow "sin(pi/4)" as the answer. 119but you don't want to allow "sin(pi/4)" as the answer.
120
121A similar effect can be accomplished with Contexts() by undefining
122the trig functions.
123See http://webwork.maa.org/wiki/Modifying_contexts_%28advanced%29#.282.29_Functions
124
120 125
121=cut 126=cut
122 127
123# ^function no_trig_fun 128# ^function no_trig_fun
124# ^uses fun_cmp 129# ^uses fun_cmp
200functions in the answer, or if the answer must include some string). 205functions in the answer, or if the answer must include some string).
201 206
202First argument is the string to have, or not have 207First argument is the string to have, or not have
203Second argument is optional, and tells us whether yes or no 208Second argument is optional, and tells us whether yes or no
204Third argument is the error message to produce (if any). 209Third argument is the error message to produce (if any).
210
211A similar effect can be accomplished with Contexts() by undefining
212the trig functions.
213See http://webwork.maa.org/wiki/Modifying_contexts_%28advanced%29
205 214
206=cut 215=cut
207 216
208 217
209# First argument is the string to have, or not have 218# First argument is the string to have, or not have

Legend:
Removed from v.6054  
changed lines
  Added in v.6055

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9