| … | |
… | |
| 115 | Wrapper for other answer evaluators. It marks the answer wrong if |
115 | Wrapper for other answer evaluators. It marks the answer wrong if |
| 116 | it contains one of the six basic trig functions. |
116 | it contains one of the six basic trig functions. |
| 117 | |
117 | |
| 118 | This is useful if you want students to report the value of sin(pi/4), |
118 | This is useful if you want students to report the value of sin(pi/4), |
| 119 | but you don't want to allow "sin(pi/4)" as the answer. |
119 | but you don't want to allow "sin(pi/4)" as the answer. |
|
|
120 | |
|
|
121 | A similar effect can be accomplished with Contexts() by undefining |
|
|
122 | the trig functions. |
|
|
123 | See 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 |
| … | |
… | |
| 200 | functions in the answer, or if the answer must include some string). |
205 | functions in the answer, or if the answer must include some string). |
| 201 | |
206 | |
| 202 | First argument is the string to have, or not have |
207 | First argument is the string to have, or not have |
| 203 | Second argument is optional, and tells us whether yes or no |
208 | Second argument is optional, and tells us whether yes or no |
| 204 | Third argument is the error message to produce (if any). |
209 | Third argument is the error message to produce (if any). |
|
|
210 | |
|
|
211 | A similar effect can be accomplished with Contexts() by undefining |
|
|
212 | the trig functions. |
|
|
213 | See 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 |