1<?xml version="1.0" encoding="UTF-8"?>
2<quiz>
3<!-- question: 0  -->
4  <question type="category">
5    <category>
6        <text>$course$/Default for Scratch/input_samples</text>
7
8    </category>
9  </question>
10
11<!-- question: 1  -->
12  <question type="stack">
13    <name>
14      <text>Algebraic input</text>
15    </name>
16    <questiontext format="html">
17      <text><![CDATA[<p>Type in {@ta@}.<br></p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
18    </questiontext>
19    <generalfeedback format="html">
20      <text></text>
21    </generalfeedback>
22    <defaultgrade>1.0000000</defaultgrade>
23    <penalty>0.1000000</penalty>
24    <hidden>0</hidden>
25    <questionvariables>
26      <text>ta:a*b</text>
27    </questionvariables>
28    <specificfeedback format="html">
29      <text>[[feedback:prt1]]</text>
30    </specificfeedback>
31    <questionnote>
32      <text></text>
33    </questionnote>
34    <questionsimplify>1</questionsimplify>
35    <assumepositive>0</assumepositive>
36    <assumereal>0</assumereal>
37    <prtcorrect format="html">
38      <text>Correct answer, well done.</text>
39    </prtcorrect>
40    <prtpartiallycorrect format="html">
41      <text>Your answer is partially correct.</text>
42    </prtpartiallycorrect>
43    <prtincorrect format="html">
44      <text>Incorrect answer.</text>
45    </prtincorrect>
46    <multiplicationsign>dot</multiplicationsign>
47    <sqrtsign>1</sqrtsign>
48    <complexno>i</complexno>
49    <inversetrig>cos-1</inversetrig>
50    <matrixparens>[</matrixparens>
51    <variantsselectionseed></variantsselectionseed>
52    <input>
53      <name>ans1</name>
54      <type>algebraic</type>
55      <tans>ta</tans>
56      <boxsize>15</boxsize>
57      <strictsyntax>1</strictsyntax>
58      <insertstars>2</insertstars>
59      <syntaxhint></syntaxhint>
60      <syntaxattribute>0</syntaxattribute>
61      <forbidwords>solve</forbidwords>
62      <allowwords></allowwords>
63      <forbidfloat>1</forbidfloat>
64      <requirelowestterms>0</requirelowestterms>
65      <checkanswertype>1</checkanswertype>
66      <mustverify>1</mustverify>
67      <showvalidation>1</showvalidation>
68      <options></options>
69    </input>
70    <prt>
71      <name>prt1</name>
72      <value>1.0000000</value>
73      <autosimplify>1</autosimplify>
74      <feedbackvariables>
75        <text></text>
76      </feedbackvariables>
77      <node>
78        <name>0</name>
79        <answertest>AlgEquiv</answertest>
80        <sans>ans1</sans>
81        <tans>ta</tans>
82        <testoptions></testoptions>
83        <quiet>0</quiet>
84        <truescoremode>=</truescoremode>
85        <truescore>1.0000000</truescore>
86        <truepenalty></truepenalty>
87        <truenextnode>-1</truenextnode>
88        <trueanswernote>prt1-1-T</trueanswernote>
89        <truefeedback format="html">
90          <text></text>
91        </truefeedback>
92        <falsescoremode>=</falsescoremode>
93        <falsescore>0.0000000</falsescore>
94        <falsepenalty></falsepenalty>
95        <falsenextnode>-1</falsenextnode>
96        <falseanswernote>prt1-1-F</falseanswernote>
97        <falsefeedback format="html">
98          <text></text>
99        </falsefeedback>
100      </node>
101    </prt>
102  </question>
103
104<!-- question: 2  -->
105  <question type="stack">
106    <name>
107      <text>Algebraic input (answer box sizes test)</text>
108    </name>
109    <questiontext format="html">
110      <text><![CDATA[<p>This question just tests answer boxes of multiple sizes.</p><p>[[input:ans1]] [[validation:ans1]]</p><p>[[input:ans2]] [[validation:ans2]]</p><p>[[input:ans3]] [[validation:ans3]]</p><p>[[input:ans4]] [[validation:ans4]]</p><p>[[input:ans5]] [[validation:ans5]]</p><p>[[input:ans7]] [[validation:ans7]]</p><p>[[input:ans10]] [[validation:ans10]]</p><p>[[input:ans15]] [[validation:ans15]]</p><p>[[input:ans20]] [[validation:ans20]]</p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p>]]></text>
111    </questiontext>
112    <generalfeedback format="html">
113      <text></text>
114    </generalfeedback>
115    <defaultgrade>1.0000000</defaultgrade>
116    <penalty>0.1000000</penalty>
117    <hidden>0</hidden>
118    <questionvariables>
119      <text></text>
120    </questionvariables>
121    <specificfeedback format="html">
122      <text>[[feedback:prt1]]</text>
123    </specificfeedback>
124    <questionnote>
125      <text></text>
126    </questionnote>
127    <questionsimplify>1</questionsimplify>
128    <assumepositive>0</assumepositive>
129    <assumereal>0</assumereal>
130    <prtcorrect format="html">
131      <text>Correct answer, well done.</text>
132    </prtcorrect>
133    <prtpartiallycorrect format="html">
134      <text>Your answer is partially correct.</text>
135    </prtpartiallycorrect>
136    <prtincorrect format="html">
137      <text>Incorrect answer.</text>
138    </prtincorrect>
139    <multiplicationsign>dot</multiplicationsign>
140    <sqrtsign>1</sqrtsign>
141    <complexno>i</complexno>
142    <inversetrig>cos-1</inversetrig>
143    <matrixparens>[</matrixparens>
144    <variantsselectionseed></variantsselectionseed>
145    <input>
146      <name>ans1</name>
147      <type>algebraic</type>
148      <tans>2</tans>
149      <boxsize>1</boxsize>
150      <strictsyntax>1</strictsyntax>
151      <insertstars>0</insertstars>
152      <syntaxhint>2</syntaxhint>
153      <syntaxattribute>0</syntaxattribute>
154      <forbidwords></forbidwords>
155      <allowwords></allowwords>
156      <forbidfloat>1</forbidfloat>
157      <requirelowestterms>0</requirelowestterms>
158      <checkanswertype>0</checkanswertype>
159      <mustverify>1</mustverify>
160      <showvalidation>1</showvalidation>
161      <options></options>
162    </input>
163    <input>
164      <name>ans10</name>
165      <type>algebraic</type>
166      <tans>2</tans>
167      <boxsize>10</boxsize>
168      <strictsyntax>1</strictsyntax>
169      <insertstars>0</insertstars>
170      <syntaxhint>2222222222</syntaxhint>
171      <syntaxattribute>0</syntaxattribute>
172      <forbidwords></forbidwords>
173      <allowwords></allowwords>
174      <forbidfloat>1</forbidfloat>
175      <requirelowestterms>0</requirelowestterms>
176      <checkanswertype>0</checkanswertype>
177      <mustverify>1</mustverify>
178      <showvalidation>1</showvalidation>
179      <options></options>
180    </input>
181    <input>
182      <name>ans15</name>
183      <type>algebraic</type>
184      <tans>2</tans>
185      <boxsize>15</boxsize>
186      <strictsyntax>1</strictsyntax>
187      <insertstars>0</insertstars>
188      <syntaxhint>222222222222222</syntaxhint>
189      <syntaxattribute>0</syntaxattribute>
190      <forbidwords></forbidwords>
191      <allowwords></allowwords>
192      <forbidfloat>1</forbidfloat>
193      <requirelowestterms>0</requirelowestterms>
194      <checkanswertype>0</checkanswertype>
195      <mustverify>1</mustverify>
196      <showvalidation>1</showvalidation>
197      <options></options>
198    </input>
199    <input>
200      <name>ans2</name>
201      <type>algebraic</type>
202      <tans>2</tans>
203      <boxsize>2</boxsize>
204      <strictsyntax>1</strictsyntax>
205      <insertstars>0</insertstars>
206      <syntaxhint>22</syntaxhint>
207      <syntaxattribute>0</syntaxattribute>
208      <forbidwords></forbidwords>
209      <allowwords></allowwords>
210      <forbidfloat>1</forbidfloat>
211      <requirelowestterms>0</requirelowestterms>
212      <checkanswertype>0</checkanswertype>
213      <mustverify>1</mustverify>
214      <showvalidation>1</showvalidation>
215      <options></options>
216    </input>
217    <input>
218      <name>ans20</name>
219      <type>algebraic</type>
220      <tans>2</tans>
221      <boxsize>20</boxsize>
222      <strictsyntax>1</strictsyntax>
223      <insertstars>0</insertstars>
224      <syntaxhint>12345123451234512345</syntaxhint>
225      <syntaxattribute>0</syntaxattribute>
226      <forbidwords></forbidwords>
227      <allowwords></allowwords>
228      <forbidfloat>1</forbidfloat>
229      <requirelowestterms>0</requirelowestterms>
230      <checkanswertype>0</checkanswertype>
231      <mustverify>1</mustverify>
232      <showvalidation>1</showvalidation>
233      <options></options>
234    </input>
235    <input>
236      <name>ans3</name>
237      <type>algebraic</type>
238      <tans>2</tans>
239      <boxsize>3</boxsize>
240      <strictsyntax>1</strictsyntax>
241      <insertstars>0</insertstars>
242      <syntaxhint>222</syntaxhint>
243      <syntaxattribute>0</syntaxattribute>
244      <forbidwords></forbidwords>
245      <allowwords></allowwords>
246      <forbidfloat>1</forbidfloat>
247      <requirelowestterms>0</requirelowestterms>
248      <checkanswertype>0</checkanswertype>
249      <mustverify>1</mustverify>
250      <showvalidation>1</showvalidation>
251      <options></options>
252    </input>
253    <input>
254      <name>ans4</name>
255      <type>algebraic</type>
256      <tans>2</tans>
257      <boxsize>4</boxsize>
258      <strictsyntax>1</strictsyntax>
259      <insertstars>0</insertstars>
260      <syntaxhint>2222</syntaxhint>
261      <syntaxattribute>0</syntaxattribute>
262      <forbidwords></forbidwords>
263      <allowwords></allowwords>
264      <forbidfloat>1</forbidfloat>
265      <requirelowestterms>0</requirelowestterms>
266      <checkanswertype>0</checkanswertype>
267      <mustverify>1</mustverify>
268      <showvalidation>1</showvalidation>
269      <options></options>
270    </input>
271    <input>
272      <name>ans5</name>
273      <type>algebraic</type>
274      <tans>2</tans>
275      <boxsize>5</boxsize>
276      <strictsyntax>1</strictsyntax>
277      <insertstars>0</insertstars>
278      <syntaxhint>22222</syntaxhint>
279      <syntaxattribute>0</syntaxattribute>
280      <forbidwords></forbidwords>
281      <allowwords></allowwords>
282      <forbidfloat>1</forbidfloat>
283      <requirelowestterms>0</requirelowestterms>
284      <checkanswertype>0</checkanswertype>
285      <mustverify>1</mustverify>
286      <showvalidation>1</showvalidation>
287      <options></options>
288    </input>
289    <input>
290      <name>ans7</name>
291      <type>algebraic</type>
292      <tans>2</tans>
293      <boxsize>5</boxsize>
294      <strictsyntax>1</strictsyntax>
295      <insertstars>0</insertstars>
296      <syntaxhint>2222222</syntaxhint>
297      <syntaxattribute>0</syntaxattribute>
298      <forbidwords></forbidwords>
299      <allowwords></allowwords>
300      <forbidfloat>1</forbidfloat>
301      <requirelowestterms>0</requirelowestterms>
302      <checkanswertype>0</checkanswertype>
303      <mustverify>1</mustverify>
304      <showvalidation>1</showvalidation>
305      <options></options>
306    </input>
307    <prt>
308      <name>prt1</name>
309      <value>1.0000000</value>
310      <autosimplify>1</autosimplify>
311      <feedbackvariables>
312        <text></text>
313      </feedbackvariables>
314      <node>
315        <name>0</name>
316        <answertest>AlgEquiv</answertest>
317        <sans>ans1</sans>
318        <tans>2</tans>
319        <testoptions></testoptions>
320        <quiet>0</quiet>
321        <truescoremode>=</truescoremode>
322        <truescore>1.0000000</truescore>
323        <truepenalty></truepenalty>
324        <truenextnode>-1</truenextnode>
325        <trueanswernote>prt1-1-T</trueanswernote>
326        <truefeedback format="html">
327          <text><![CDATA[<p>This just takes account of the first answer box!</p>]]></text>
328        </truefeedback>
329        <falsescoremode>=</falsescoremode>
330        <falsescore>0.0000000</falsescore>
331        <falsepenalty></falsepenalty>
332        <falsenextnode>-1</falsenextnode>
333        <falseanswernote>prt1-1-F</falseanswernote>
334        <falsefeedback format="html">
335          <text><![CDATA[<p>This just takes account of the first answer box!<br></p>]]></text>
336        </falsefeedback>
337      </node>
338    </prt>
339  </question>
340
341<!-- question: 3  -->
342  <question type="stack">
343    <name>
344      <text>Checkbox</text>
345    </name>
346    <questiontext format="html">
347      <text><![CDATA[<p>Differentiate {@p@} with respect to \(x\).</p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
348    </questiontext>
349    <generalfeedback format="html">
350      <text></text>
351    </generalfeedback>
352    <defaultgrade>1.0000000</defaultgrade>
353    <penalty>0.1000000</penalty>
354    <hidden>0</hidden>
355    <questionvariables>
356      <text><![CDATA[/* Create a list of potential answers. */
357p:sin(2*x);
358ta:[[diff(p,x),true],[p,false],[int(p,x),false],[cos(2*x)+c,false]];
359/* The actual correct answer.    */
360tac:diff(p,x)
361/* Add in a "None of these" to the end of the list.  The Maxima value is the atom null. */
362tao:[null, false, "None of these"];
363ta:append(ta,[tao]);]]></text>
364    </questionvariables>
365    <specificfeedback format="html">
366      <text>[[feedback:prt1]]</text>
367    </specificfeedback>
368    <questionnote>
369      <text></text>
370    </questionnote>
371    <questionsimplify>1</questionsimplify>
372    <assumepositive>0</assumepositive>
373    <assumereal>0</assumereal>
374    <prtcorrect format="html">
375      <text>Correct answer, well done.</text>
376    </prtcorrect>
377    <prtpartiallycorrect format="html">
378      <text>Your answer is partially correct.</text>
379    </prtpartiallycorrect>
380    <prtincorrect format="html">
381      <text>Incorrect answer.</text>
382    </prtincorrect>
383    <multiplicationsign>dot</multiplicationsign>
384    <sqrtsign>1</sqrtsign>
385    <complexno>i</complexno>
386    <inversetrig>cos-1</inversetrig>
387    <matrixparens>[</matrixparens>
388    <variantsselectionseed></variantsselectionseed>
389    <input>
390      <name>ans1</name>
391      <type>checkbox</type>
392      <tans>ta</tans>
393      <boxsize>15</boxsize>
394      <strictsyntax>1</strictsyntax>
395      <insertstars>0</insertstars>
396      <syntaxhint></syntaxhint>
397      <syntaxattribute>0</syntaxattribute>
398      <forbidwords></forbidwords>
399      <allowwords></allowwords>
400      <forbidfloat>1</forbidfloat>
401      <requirelowestterms>0</requirelowestterms>
402      <checkanswertype>0</checkanswertype>
403      <mustverify>1</mustverify>
404      <showvalidation>2</showvalidation>
405      <options></options>
406    </input>
407    <prt>
408      <name>prt1</name>
409      <value>1.0000000</value>
410      <autosimplify>1</autosimplify>
411      <feedbackvariables>
412        <text></text>
413      </feedbackvariables>
414      <node>
415        <name>0</name>
416        <answertest>Diff</answertest>
417        <sans>first(ans1)</sans>
418        <tans>diff(p,x)</tans>
419        <testoptions>x</testoptions>
420        <quiet>0</quiet>
421        <truescoremode>=</truescoremode>
422        <truescore>1.0000000</truescore>
423        <truepenalty></truepenalty>
424        <truenextnode>-1</truenextnode>
425        <trueanswernote>prt1-1-T</trueanswernote>
426        <truefeedback format="html">
427          <text></text>
428        </truefeedback>
429        <falsescoremode>=</falsescoremode>
430        <falsescore>0.0000000</falsescore>
431        <falsepenalty></falsepenalty>
432        <falsenextnode>-1</falsenextnode>
433        <falseanswernote>prt1-1-F</falseanswernote>
434        <falsefeedback format="html">
435          <text></text>
436        </falsefeedback>
437      </node>
438    </prt>
439  </question>
440
441<!-- question: 4  -->
442  <question type="stack">
443    <name>
444      <text>Dropdown (shuffle)</text>
445    </name>
446    <questiontext format="html">
447      <text><![CDATA[<p>Differentiate {@p@} with respect to \(x\).</p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
448    </questiontext>
449    <generalfeedback format="html">
450      <text></text>
451    </generalfeedback>
452    <defaultgrade>1.0000000</defaultgrade>
453    <penalty>0.1000000</penalty>
454    <hidden>0</hidden>
455    <questionvariables>
456      <text><![CDATA[/* Create a list of potential answers. */
457p:sin(2*x);
458ta:[[diff(p,x),true],[p,false],[int(p,x),false],[cos(2*x)+c,false]];
459/* The actual correct answer.    */
460tac:diff(p,x)
461/* Randomly shuffle the list "ta". */
462ta:random_permutation(ta);
463/* Add in a "None of these" to the end of the list.  The Maxima value is the atom null. */
464tao:[null, false, "None of these"];
465ta:append(ta,[tao]);]]></text>
466    </questionvariables>
467    <specificfeedback format="html">
468      <text>[[feedback:prt1]]</text>
469    </specificfeedback>
470    <questionnote>
471      <text>{@ta@}</text>
472    </questionnote>
473    <questionsimplify>1</questionsimplify>
474    <assumepositive>0</assumepositive>
475    <assumereal>0</assumereal>
476    <prtcorrect format="html">
477      <text>Correct answer, well done.</text>
478    </prtcorrect>
479    <prtpartiallycorrect format="html">
480      <text>Your answer is partially correct.</text>
481    </prtpartiallycorrect>
482    <prtincorrect format="html">
483      <text>Incorrect answer.</text>
484    </prtincorrect>
485    <multiplicationsign>dot</multiplicationsign>
486    <sqrtsign>1</sqrtsign>
487    <complexno>i</complexno>
488    <inversetrig>cos-1</inversetrig>
489    <matrixparens>[</matrixparens>
490    <variantsselectionseed></variantsselectionseed>
491    <input>
492      <name>ans1</name>
493      <type>dropdown</type>
494      <tans>ta</tans>
495      <boxsize>15</boxsize>
496      <strictsyntax>1</strictsyntax>
497      <insertstars>0</insertstars>
498      <syntaxhint></syntaxhint>
499      <syntaxattribute>0</syntaxattribute>
500      <forbidwords></forbidwords>
501      <allowwords></allowwords>
502      <forbidfloat>1</forbidfloat>
503      <requirelowestterms>0</requirelowestterms>
504      <checkanswertype>0</checkanswertype>
505      <mustverify>1</mustverify>
506      <showvalidation>2</showvalidation>
507      <options></options>
508    </input>
509    <prt>
510      <name>prt1</name>
511      <value>1.0000000</value>
512      <autosimplify>1</autosimplify>
513      <feedbackvariables>
514        <text></text>
515      </feedbackvariables>
516      <node>
517        <name>0</name>
518        <answertest>Diff</answertest>
519        <sans>first(ans1)</sans>
520        <tans>diff(p,x)</tans>
521        <testoptions>x</testoptions>
522        <quiet>0</quiet>
523        <truescoremode>=</truescoremode>
524        <truescore>1.0000000</truescore>
525        <truepenalty></truepenalty>
526        <truenextnode>-1</truenextnode>
527        <trueanswernote>prt1-1-T</trueanswernote>
528        <truefeedback format="html">
529          <text></text>
530        </truefeedback>
531        <falsescoremode>=</falsescoremode>
532        <falsescore>0.0000000</falsescore>
533        <falsepenalty></falsepenalty>
534        <falsenextnode>-1</falsenextnode>
535        <falseanswernote>prt1-1-F</falseanswernote>
536        <falsefeedback format="html">
537          <text></text>
538        </falsefeedback>
539      </node>
540    </prt>
541  </question>
542
543<!-- question: 5  -->
544  <question type="stack">
545    <name>
546      <text>Equiv input test</text>
547    </name>
548    <questiontext format="html">
549      <text><![CDATA[<p>Solve {@p@}.<br></p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
550    </questiontext>
551    <generalfeedback format="html">
552      <text><![CDATA[<p>sangwinc<br></p>]]></text>
553    </generalfeedback>
554    <defaultgrade>1.0000000</defaultgrade>
555    <penalty>0.1000000</penalty>
556    <hidden>0</hidden>
557    <questionvariables>
558      <text>v:x
559p:3*v+7=4
560ta:[p,x=(4-7)/3,x=-1]</text>
561    </questionvariables>
562    <specificfeedback format="html">
563      <text>[[feedback:prt1]]</text>
564    </specificfeedback>
565    <questionnote>
566      <text></text>
567    </questionnote>
568    <questionsimplify>1</questionsimplify>
569    <assumepositive>0</assumepositive>
570    <assumereal>0</assumereal>
571    <prtcorrect format="html">
572      <text>Correct answer, well done.</text>
573    </prtcorrect>
574    <prtpartiallycorrect format="html">
575      <text>Your answer is partially correct.</text>
576    </prtpartiallycorrect>
577    <prtincorrect format="html">
578      <text>Incorrect answer.</text>
579    </prtincorrect>
580    <multiplicationsign>dot</multiplicationsign>
581    <sqrtsign>1</sqrtsign>
582    <complexno>i</complexno>
583    <inversetrig>cos-1</inversetrig>
584    <matrixparens>[</matrixparens>
585    <variantsselectionseed></variantsselectionseed>
586    <input>
587      <name>ans1</name>
588      <type>equiv</type>
589      <tans>ta</tans>
590      <boxsize>15</boxsize>
591      <strictsyntax>1</strictsyntax>
592      <insertstars>5</insertstars>
593      <syntaxhint>firstline</syntaxhint>
594      <syntaxattribute>0</syntaxattribute>
595      <forbidwords></forbidwords>
596      <allowwords></allowwords>
597      <forbidfloat>1</forbidfloat>
598      <requirelowestterms>0</requirelowestterms>
599      <checkanswertype>1</checkanswertype>
600      <mustverify>1</mustverify>
601      <showvalidation>1</showvalidation>
602      <options></options>
603    </input>
604    <prt>
605      <name>prt1</name>
606      <value>1.0000000</value>
607      <autosimplify>1</autosimplify>
608      <feedbackvariables>
609        <text></text>
610      </feedbackvariables>
611      <node>
612        <name>0</name>
613        <answertest>AlgEquiv</answertest>
614        <sans>last(ans1)</sans>
615        <tans>last(ta)</tans>
616        <testoptions></testoptions>
617        <quiet>0</quiet>
618        <truescoremode>=</truescoremode>
619        <truescore>1.0000000</truescore>
620        <truepenalty></truepenalty>
621        <truenextnode>-1</truenextnode>
622        <trueanswernote>prt1-1-T</trueanswernote>
623        <truefeedback format="html">
624          <text></text>
625        </truefeedback>
626        <falsescoremode>=</falsescoremode>
627        <falsescore>0.0000000</falsescore>
628        <falsepenalty></falsepenalty>
629        <falsenextnode>-1</falsenextnode>
630        <falseanswernote>prt1-1-F</falseanswernote>
631        <falsefeedback format="html">
632          <text></text>
633        </falsefeedback>
634      </node>
635    </prt>
636  </question>
637
638<!-- question: 6  -->
639  <question type="stack">
640    <name>
641      <text>Matrix</text>
642    </name>
643    <questiontext format="html">
644      <text><![CDATA[<p>Type in {@M@}<br></p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
645    </questiontext>
646    <generalfeedback format="html">
647      <text></text>
648    </generalfeedback>
649    <defaultgrade>1.0000000</defaultgrade>
650    <penalty>0.1000000</penalty>
651    <hidden>0</hidden>
652    <questionvariables>
653      <text>M:matrix([1,2],[3,4])</text>
654    </questionvariables>
655    <specificfeedback format="html">
656      <text>[[feedback:prt1]]</text>
657    </specificfeedback>
658    <questionnote>
659      <text></text>
660    </questionnote>
661    <questionsimplify>1</questionsimplify>
662    <assumepositive>0</assumepositive>
663    <assumereal>0</assumereal>
664    <prtcorrect format="html">
665      <text>Correct answer, well done.</text>
666    </prtcorrect>
667    <prtpartiallycorrect format="html">
668      <text>Your answer is partially correct.</text>
669    </prtpartiallycorrect>
670    <prtincorrect format="html">
671      <text>Incorrect answer.</text>
672    </prtincorrect>
673    <multiplicationsign>dot</multiplicationsign>
674    <sqrtsign>1</sqrtsign>
675    <complexno>i</complexno>
676    <inversetrig>cos-1</inversetrig>
677    <matrixparens>[</matrixparens>
678    <variantsselectionseed></variantsselectionseed>
679    <input>
680      <name>ans1</name>
681      <type>matrix</type>
682      <tans>M</tans>
683      <boxsize>15</boxsize>
684      <strictsyntax>1</strictsyntax>
685      <insertstars>0</insertstars>
686      <syntaxhint></syntaxhint>
687      <syntaxattribute>0</syntaxattribute>
688      <forbidwords></forbidwords>
689      <allowwords></allowwords>
690      <forbidfloat>1</forbidfloat>
691      <requirelowestterms>0</requirelowestterms>
692      <checkanswertype>1</checkanswertype>
693      <mustverify>1</mustverify>
694      <showvalidation>1</showvalidation>
695      <options></options>
696    </input>
697    <prt>
698      <name>prt1</name>
699      <value>1.0000000</value>
700      <autosimplify>1</autosimplify>
701      <feedbackvariables>
702        <text></text>
703      </feedbackvariables>
704      <node>
705        <name>0</name>
706        <answertest>AlgEquiv</answertest>
707        <sans>ans1</sans>
708        <tans>M</tans>
709        <testoptions></testoptions>
710        <quiet>0</quiet>
711        <truescoremode>=</truescoremode>
712        <truescore>1.0000000</truescore>
713        <truepenalty></truepenalty>
714        <truenextnode>-1</truenextnode>
715        <trueanswernote>prt1-1-T</trueanswernote>
716        <truefeedback format="html">
717          <text></text>
718        </truefeedback>
719        <falsescoremode>=</falsescoremode>
720        <falsescore>0.0000000</falsescore>
721        <falsepenalty></falsepenalty>
722        <falsenextnode>-1</falsenextnode>
723        <falseanswernote>prt1-1-F</falseanswernote>
724        <falsefeedback format="html">
725          <text></text>
726        </falsefeedback>
727      </node>
728    </prt>
729  </question>
730
731<!-- question: 7  -->
732  <question type="stack">
733    <name>
734      <text>Notes</text>
735    </name>
736    <questiontext format="html">
737      <text><![CDATA[<p>Show your working in this box! \(x\).<br></p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
738    </questiontext>
739    <generalfeedback format="html">
740      <text></text>
741    </generalfeedback>
742    <defaultgrade>1.0000000</defaultgrade>
743    <penalty>0.1000000</penalty>
744    <hidden>0</hidden>
745    <questionvariables>
746      <text></text>
747    </questionvariables>
748    <specificfeedback format="html">
749      <text>[[feedback:prt1]]</text>
750    </specificfeedback>
751    <questionnote>
752      <text></text>
753    </questionnote>
754    <questionsimplify>1</questionsimplify>
755    <assumepositive>0</assumepositive>
756    <assumereal>0</assumereal>
757    <prtcorrect format="html">
758      <text>Correct answer, well done.</text>
759    </prtcorrect>
760    <prtpartiallycorrect format="html">
761      <text>Your answer is partially correct.</text>
762    </prtpartiallycorrect>
763    <prtincorrect format="html">
764      <text>Incorrect answer.</text>
765    </prtincorrect>
766    <multiplicationsign>dot</multiplicationsign>
767    <sqrtsign>1</sqrtsign>
768    <complexno>i</complexno>
769    <inversetrig>cos-1</inversetrig>
770    <matrixparens>[</matrixparens>
771    <variantsselectionseed></variantsselectionseed>
772    <input>
773      <name>ans1</name>
774      <type>notes</type>
775      <tans>true</tans>
776      <boxsize>15</boxsize>
777      <strictsyntax>1</strictsyntax>
778      <insertstars>0</insertstars>
779      <syntaxhint></syntaxhint>
780      <syntaxattribute>0</syntaxattribute>
781      <forbidwords></forbidwords>
782      <allowwords></allowwords>
783      <forbidfloat>1</forbidfloat>
784      <requirelowestterms>0</requirelowestterms>
785      <checkanswertype>0</checkanswertype>
786      <mustverify>1</mustverify>
787      <showvalidation>1</showvalidation>
788      <options></options>
789    </input>
790    <prt>
791      <name>prt1</name>
792      <value>1.0000000</value>
793      <autosimplify>1</autosimplify>
794      <feedbackvariables>
795        <text></text>
796      </feedbackvariables>
797      <node>
798        <name>0</name>
799        <answertest>AlgEquiv</answertest>
800        <sans>ans1</sans>
801        <tans>true</tans>
802        <testoptions></testoptions>
803        <quiet>0</quiet>
804        <truescoremode>=</truescoremode>
805        <truescore>1.0000000</truescore>
806        <truepenalty></truepenalty>
807        <truenextnode>-1</truenextnode>
808        <trueanswernote>prt1-1-T</trueanswernote>
809        <truefeedback format="html">
810          <text></text>
811        </truefeedback>
812        <falsescoremode>=</falsescoremode>
813        <falsescore>0.0000000</falsescore>
814        <falsepenalty></falsepenalty>
815        <falsenextnode>-1</falsenextnode>
816        <falseanswernote>prt1-1-F</falseanswernote>
817        <falsefeedback format="html">
818          <text></text>
819        </falsefeedback>
820      </node>
821    </prt>
822  </question>
823
824<!-- question: 8  -->
825  <question type="stack">
826    <name>
827      <text>Radio</text>
828    </name>
829    <questiontext format="html">
830      <text><![CDATA[<p>Differentiate {@p@} with respect to \(x\).</p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
831    </questiontext>
832    <generalfeedback format="html">
833      <text></text>
834    </generalfeedback>
835    <defaultgrade>1.0000000</defaultgrade>
836    <penalty>0.1000000</penalty>
837    <hidden>0</hidden>
838    <questionvariables>
839      <text><![CDATA[/* Create a list of potential answers. */
840p:sin(2*x);
841ta:[[diff(p,x),true],[p,false],[int(p,x),false],[cos(2*x)+c,false]];
842/* The actual correct answer.    */
843tac:diff(p,x)
844/* Add in a "None of these" to the end of the list.  The Maxima value is the atom null. */
845tao:[null, false, "None of these"];
846ta:append(ta,[tao]);]]></text>
847    </questionvariables>
848    <specificfeedback format="html">
849      <text>[[feedback:prt1]]</text>
850    </specificfeedback>
851    <questionnote>
852      <text></text>
853    </questionnote>
854    <questionsimplify>1</questionsimplify>
855    <assumepositive>0</assumepositive>
856    <assumereal>0</assumereal>
857    <prtcorrect format="html">
858      <text>Correct answer, well done.</text>
859    </prtcorrect>
860    <prtpartiallycorrect format="html">
861      <text>Your answer is partially correct.</text>
862    </prtpartiallycorrect>
863    <prtincorrect format="html">
864      <text>Incorrect answer.</text>
865    </prtincorrect>
866    <multiplicationsign>dot</multiplicationsign>
867    <sqrtsign>1</sqrtsign>
868    <complexno>i</complexno>
869    <inversetrig>cos-1</inversetrig>
870    <matrixparens>[</matrixparens>
871    <variantsselectionseed></variantsselectionseed>
872    <input>
873      <name>ans1</name>
874      <type>radio</type>
875      <tans>ta</tans>
876      <boxsize>15</boxsize>
877      <strictsyntax>1</strictsyntax>
878      <insertstars>0</insertstars>
879      <syntaxhint></syntaxhint>
880      <syntaxattribute>0</syntaxattribute>
881      <forbidwords></forbidwords>
882      <allowwords></allowwords>
883      <forbidfloat>1</forbidfloat>
884      <requirelowestterms>0</requirelowestterms>
885      <checkanswertype>0</checkanswertype>
886      <mustverify>1</mustverify>
887      <showvalidation>1</showvalidation>
888      <options></options>
889    </input>
890    <prt>
891      <name>prt1</name>
892      <value>1.0000000</value>
893      <autosimplify>1</autosimplify>
894      <feedbackvariables>
895        <text></text>
896      </feedbackvariables>
897      <node>
898        <name>0</name>
899        <answertest>Diff</answertest>
900        <sans>first(ans1)</sans>
901        <tans>diff(p,x)</tans>
902        <testoptions>x</testoptions>
903        <quiet>0</quiet>
904        <truescoremode>=</truescoremode>
905        <truescore>1.0000000</truescore>
906        <truepenalty></truepenalty>
907        <truenextnode>-1</truenextnode>
908        <trueanswernote>prt1-1-T</trueanswernote>
909        <truefeedback format="html">
910          <text></text>
911        </truefeedback>
912        <falsescoremode>=</falsescoremode>
913        <falsescore>0.0000000</falsescore>
914        <falsepenalty></falsepenalty>
915        <falsenextnode>-1</falsenextnode>
916        <falseanswernote>prt1-1-F</falseanswernote>
917        <falsefeedback format="html">
918          <text></text>
919        </falsefeedback>
920      </node>
921    </prt>
922  </question>
923
924<!-- question: 9  -->
925  <question type="stack">
926    <name>
927      <text>Single char</text>
928    </name>
929    <questiontext format="html">
930      <text><![CDATA[<p>Type in \(x\)<br></p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
931    </questiontext>
932    <generalfeedback format="html">
933      <text></text>
934    </generalfeedback>
935    <defaultgrade>1.0000000</defaultgrade>
936    <penalty>0.1000000</penalty>
937    <hidden>0</hidden>
938    <questionvariables>
939      <text></text>
940    </questionvariables>
941    <specificfeedback format="html">
942      <text>[[feedback:prt1]]</text>
943    </specificfeedback>
944    <questionnote>
945      <text></text>
946    </questionnote>
947    <questionsimplify>1</questionsimplify>
948    <assumepositive>0</assumepositive>
949    <assumereal>0</assumereal>
950    <prtcorrect format="html">
951      <text>Correct answer, well done.</text>
952    </prtcorrect>
953    <prtpartiallycorrect format="html">
954      <text>Your answer is partially correct.</text>
955    </prtpartiallycorrect>
956    <prtincorrect format="html">
957      <text>Incorrect answer.</text>
958    </prtincorrect>
959    <multiplicationsign>dot</multiplicationsign>
960    <sqrtsign>1</sqrtsign>
961    <complexno>i</complexno>
962    <inversetrig>cos-1</inversetrig>
963    <matrixparens>[</matrixparens>
964    <variantsselectionseed></variantsselectionseed>
965    <input>
966      <name>ans1</name>
967      <type>singlechar</type>
968      <tans>x</tans>
969      <boxsize>15</boxsize>
970      <strictsyntax>1</strictsyntax>
971      <insertstars>0</insertstars>
972      <syntaxhint></syntaxhint>
973      <syntaxattribute>0</syntaxattribute>
974      <forbidwords></forbidwords>
975      <allowwords></allowwords>
976      <forbidfloat>1</forbidfloat>
977      <requirelowestterms>0</requirelowestterms>
978      <checkanswertype>0</checkanswertype>
979      <mustverify>1</mustverify>
980      <showvalidation>1</showvalidation>
981      <options></options>
982    </input>
983    <prt>
984      <name>prt1</name>
985      <value>1.0000000</value>
986      <autosimplify>1</autosimplify>
987      <feedbackvariables>
988        <text></text>
989      </feedbackvariables>
990      <node>
991        <name>0</name>
992        <answertest>AlgEquiv</answertest>
993        <sans>ans1</sans>
994        <tans>x</tans>
995        <testoptions></testoptions>
996        <quiet>0</quiet>
997        <truescoremode>=</truescoremode>
998        <truescore>1.0000000</truescore>
999        <truepenalty></truepenalty>
1000        <truenextnode>-1</truenextnode>
1001        <trueanswernote>prt1-1-T</trueanswernote>
1002        <truefeedback format="html">
1003          <text></text>
1004        </truefeedback>
1005        <falsescoremode>=</falsescoremode>
1006        <falsescore>0.0000000</falsescore>
1007        <falsepenalty></falsepenalty>
1008        <falsenextnode>-1</falsenextnode>
1009        <falseanswernote>prt1-1-F</falseanswernote>
1010        <falsefeedback format="html">
1011          <text></text>
1012        </falsefeedback>
1013      </node>
1014    </prt>
1015  </question>
1016
1017<!-- question: 0  -->
1018  <question type="category">
1019    <category>
1020        <text>$course$/Default for Scratch</text>
1021
1022    </category>
1023  </question>
1024
1025<!-- question: 13  -->
1026  <question type="stack">
1027    <name>
1028      <text>test_1_integration</text>
1029    </name>
1030    <questiontext format="html">
1031      <text><![CDATA[<p>Find \[ \int {@p@} d{@v@}\] [[input:ans1]] [[validation:ans1]]</p>]]></text>
1032    </questiontext>
1033    <generalfeedback format="html">
1034      <text><![CDATA[<p>We can either do this question by inspection (i.e. spot the answer) or in a more formal manner by using the substitution \[ u = ({@v@}-{@a@}).\] Then, since \(\frac{d}{d{@v@}}u=1\) we have \[ \int {@p@} d{@v@} = \int u^{@n@} du = \frac{u^{@n+1@}}{@n+1@}+c = {@ta@}+c.\]</p>]]></text>
1035    </generalfeedback>
1036    <defaultgrade>1.0000000</defaultgrade>
1037    <penalty>0.1000000</penalty>
1038    <hidden>0</hidden>
1039    <questionvariables>
1040      <text>n:rand(5)+3;
1041a:rand(5)+3;
1042v:rand([x,t]);
1043p:(v-a)^n;
1044ta:(v-a)^(n+1)/(n+1);</text>
1045    </questionvariables>
1046    <specificfeedback format="html">
1047      <text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
1048    </specificfeedback>
1049    <questionnote>
1050      <text>\(\int {@p@} d{@v@} = {@ta@}\)</text>
1051    </questionnote>
1052    <questionsimplify>1</questionsimplify>
1053    <assumepositive>0</assumepositive>
1054    <assumereal>0</assumereal>
1055    <prtcorrect format="html">
1056      <text><![CDATA[<p><span class="correct">Correct answer, well done.</span></p>]]></text>
1057    </prtcorrect>
1058    <prtpartiallycorrect format="html">
1059      <text><![CDATA[<p><span class="partially">Your answer is partially correct.</span></p>]]></text>
1060    </prtpartiallycorrect>
1061    <prtincorrect format="html">
1062      <text><![CDATA[<p><span class="incorrect">Incorrect answer.</span></p>]]></text>
1063    </prtincorrect>
1064    <multiplicationsign>dot</multiplicationsign>
1065    <sqrtsign>1</sqrtsign>
1066    <complexno>i</complexno>
1067    <inversetrig>cos-1</inversetrig>
1068    <matrixparens>[</matrixparens>
1069    <variantsselectionseed></variantsselectionseed>
1070    <input>
1071      <name>ans1</name>
1072      <type>algebraic</type>
1073      <tans>ta+c</tans>
1074      <boxsize>20</boxsize>
1075      <strictsyntax>1</strictsyntax>
1076      <insertstars>0</insertstars>
1077      <syntaxhint></syntaxhint>
1078      <syntaxattribute>0</syntaxattribute>
1079      <forbidwords>int</forbidwords>
1080      <allowwords></allowwords>
1081      <forbidfloat>1</forbidfloat>
1082      <requirelowestterms>1</requirelowestterms>
1083      <checkanswertype>1</checkanswertype>
1084      <mustverify>1</mustverify>
1085      <showvalidation>1</showvalidation>
1086      <options></options>
1087    </input>
1088    <prt>
1089      <name>prt1</name>
1090      <value>1.0000000</value>
1091      <autosimplify>1</autosimplify>
1092      <feedbackvariables>
1093        <text></text>
1094      </feedbackvariables>
1095      <node>
1096        <name>0</name>
1097        <answertest>Int</answertest>
1098        <sans>ans1</sans>
1099        <tans>ta</tans>
1100        <testoptions>v</testoptions>
1101        <quiet>0</quiet>
1102        <truescoremode>=</truescoremode>
1103        <truescore>1.0000000</truescore>
1104        <truepenalty></truepenalty>
1105        <truenextnode>-1</truenextnode>
1106        <trueanswernote>1-0-T </trueanswernote>
1107        <truefeedback format="html">
1108          <text></text>
1109        </truefeedback>
1110        <falsescoremode>=</falsescoremode>
1111        <falsescore>0.0000000</falsescore>
1112        <falsepenalty></falsepenalty>
1113        <falsenextnode>-1</falsenextnode>
1114        <falseanswernote>1-0-F </falseanswernote>
1115        <falsefeedback format="html">
1116          <text></text>
1117        </falsefeedback>
1118      </node>
1119    </prt>
1120    <deployedseed>1</deployedseed>
1121    <deployedseed>1001758021</deployedseed>
1122    <qtest>
1123      <testcase>1</testcase>
1124      <testinput>
1125        <name>ans1</name>
1126        <value>ta+c</value>
1127      </testinput>
1128      <expected>
1129        <name>prt1</name>
1130        <expectedscore>1.0000000</expectedscore>
1131        <expectedpenalty>0.0000000</expectedpenalty>
1132        <expectedanswernote>1-0-T</expectedanswernote>
1133      </expected>
1134    </qtest>
1135    <qtest>
1136      <testcase>2</testcase>
1137      <testinput>
1138        <name>ans1</name>
1139        <value>ta</value>
1140      </testinput>
1141      <expected>
1142        <name>prt1</name>
1143        <expectedscore>0.0000000</expectedscore>
1144        <expectedpenalty>0.1000000</expectedpenalty>
1145        <expectedanswernote>1-0-F</expectedanswernote>
1146      </expected>
1147    </qtest>
1148    <qtest>
1149      <testcase>3</testcase>
1150      <testinput>
1151        <name>ans1</name>
1152        <value>n*(v-a)^(n-1)</value>
1153      </testinput>
1154      <expected>
1155        <name>prt1</name>
1156        <expectedscore>0.0000000</expectedscore>
1157        <expectedpenalty>0.1000000</expectedpenalty>
1158        <expectedanswernote>1-0-F</expectedanswernote>
1159      </expected>
1160    </qtest>
1161    <qtest>
1162      <testcase>4</testcase>
1163      <testinput>
1164        <name>ans1</name>
1165        <value>(v-a)^(n+1)</value>
1166      </testinput>
1167      <expected>
1168        <name>prt1</name>
1169        <expectedscore>0.0000000</expectedscore>
1170        <expectedpenalty>0.1000000</expectedpenalty>
1171        <expectedanswernote>1-0-F</expectedanswernote>
1172      </expected>
1173    </qtest>
1174  </question>
1175
1176<!-- question: 14  -->
1177  <question type="stack">
1178    <name>
1179      <text>test_2_rectangle</text>
1180    </name>
1181    <questiontext format="html">
1182      <text><![CDATA[<p>A rectangle has length {@sg@}cm greater than its width. If it has an area of \({@abs(ar)@}cm^2\), find the dimensions of the rectangle.</p>
1183 <p>1. Write down an equation which relates the side lengths to the area of the rectangle. <br />[[input:ans1]] [[validation:ans1]] [[feedback:eq]]</p>
1184 <p>2. Solve your equation. Enter your answer as a set of numbers. <br /> [[input:ans2]] [[validation:ans2]] [[feedback:sol]]</p>
1185 <p>3. Hence, find the length of the shorter side. <br />[[input:ans3]] cm [[validation:ans3]] [[feedback:short]]</p>]]></text>
1186    </questiontext>
1187    <generalfeedback format="html">
1188      <text><![CDATA[<p>If \(x\)cm is the width then \((x+{@sg@})\) is the length. Now the area is \({@abs(ar)@}cm^2\) and so \[ {@x*(x+sg)=-ar@}.\] \[ {@x^2+sg*x+ar@}=0\] \[ {@(x+rp)*(x+rn)=0@} \] So that \(x={@-rp@}\) or \(x={@-rn@}\). Since lengths are positive quantities \(x&gt;0\) and we discard the negative root. Hence the length of the shorter side is \(x={@-rn@}\)cm.</p>]]></text>
1189    </generalfeedback>
1190    <defaultgrade>1.0000000</defaultgrade>
1191    <penalty>0.1000000</penalty>
1192    <hidden>0</hidden>
1193    <questionvariables>
1194      <text>rn:-1*(rand(4)+2);
1195rp:9+rand(6);
1196ar:rn*rp;
1197sg:rn+rp;
1198ta1:x*(x+sg)=-ar;
1199ta2:x*(x-sg)=-ar;
1200tas1:setify(map(rhs,solve(ta1,x)));
1201tas2:setify(map(rhs,solve(ta2,x)));</text>
1202    </questionvariables>
1203    <specificfeedback format="html">
1204      <text></text>
1205    </specificfeedback>
1206    <questionnote>
1207      <text>{@ta1@}, {@tas1@}.</text>
1208    </questionnote>
1209    <questionsimplify>1</questionsimplify>
1210    <assumepositive>0</assumepositive>
1211    <assumereal>0</assumereal>
1212    <prtcorrect format="html">
1213      <text><![CDATA[<p><span class="correct">Correct answer, well done.</span></p>]]></text>
1214    </prtcorrect>
1215    <prtpartiallycorrect format="html">
1216      <text><![CDATA[<p><span class="partially">Your answer is partially correct.</span></p>]]></text>
1217    </prtpartiallycorrect>
1218    <prtincorrect format="html">
1219      <text><![CDATA[<p><span class="incorrect">Incorrect answer.</span></p>]]></text>
1220    </prtincorrect>
1221    <multiplicationsign>dot</multiplicationsign>
1222    <sqrtsign>1</sqrtsign>
1223    <complexno>i</complexno>
1224    <inversetrig>cos-1</inversetrig>
1225    <matrixparens>[</matrixparens>
1226    <variantsselectionseed></variantsselectionseed>
1227    <input>
1228      <name>ans1</name>
1229      <type>algebraic</type>
1230      <tans>ta1</tans>
1231      <boxsize>15</boxsize>
1232      <strictsyntax>1</strictsyntax>
1233      <insertstars>1</insertstars>
1234      <syntaxhint></syntaxhint>
1235      <syntaxattribute>0</syntaxattribute>
1236      <forbidwords></forbidwords>
1237      <allowwords></allowwords>
1238      <forbidfloat>1</forbidfloat>
1239      <requirelowestterms>1</requirelowestterms>
1240      <checkanswertype>1</checkanswertype>
1241      <mustverify>1</mustverify>
1242      <showvalidation>1</showvalidation>
1243      <options></options>
1244    </input>
1245    <input>
1246      <name>ans2</name>
1247      <type>algebraic</type>
1248      <tans>tas1</tans>
1249      <boxsize>15</boxsize>
1250      <strictsyntax>1</strictsyntax>
1251      <insertstars>1</insertstars>
1252      <syntaxhint></syntaxhint>
1253      <syntaxattribute>0</syntaxattribute>
1254      <forbidwords></forbidwords>
1255      <allowwords></allowwords>
1256      <forbidfloat>1</forbidfloat>
1257      <requirelowestterms>1</requirelowestterms>
1258      <checkanswertype>1</checkanswertype>
1259      <mustverify>1</mustverify>
1260      <showvalidation>1</showvalidation>
1261      <options></options>
1262    </input>
1263    <input>
1264      <name>ans3</name>
1265      <type>algebraic</type>
1266      <tans>rp</tans>
1267      <boxsize>5</boxsize>
1268      <strictsyntax>1</strictsyntax>
1269      <insertstars>1</insertstars>
1270      <syntaxhint></syntaxhint>
1271      <syntaxattribute>0</syntaxattribute>
1272      <forbidwords></forbidwords>
1273      <allowwords></allowwords>
1274      <forbidfloat>1</forbidfloat>
1275      <requirelowestterms>1</requirelowestterms>
1276      <checkanswertype>1</checkanswertype>
1277      <mustverify>1</mustverify>
1278      <showvalidation>1</showvalidation>
1279      <options></options>
1280    </input>
1281    <prt>
1282      <name>eq</name>
1283      <value>1.0000000</value>
1284      <autosimplify>1</autosimplify>
1285      <feedbackvariables>
1286        <text></text>
1287      </feedbackvariables>
1288      <node>
1289        <name>0</name>
1290        <answertest>SubstEquiv</answertest>
1291        <sans>ans1</sans>
1292        <tans>ta1</tans>
1293        <testoptions></testoptions>
1294        <quiet>1</quiet>
1295        <truescoremode>=</truescoremode>
1296        <truescore>1.0000000</truescore>
1297        <truepenalty></truepenalty>
1298        <truenextnode>-1</truenextnode>
1299        <trueanswernote>eq-0-T </trueanswernote>
1300        <truefeedback format="html">
1301          <text></text>
1302        </truefeedback>
1303        <falsescoremode>=</falsescoremode>
1304        <falsescore>0.0000000</falsescore>
1305        <falsepenalty></falsepenalty>
1306        <falsenextnode>1</falsenextnode>
1307        <falseanswernote>eq-0-F </falseanswernote>
1308        <falsefeedback format="html">
1309          <text></text>
1310        </falsefeedback>
1311      </node>
1312      <node>
1313        <name>1</name>
1314        <answertest>SubstEquiv</answertest>
1315        <sans>ans1</sans>
1316        <tans>ta2</tans>
1317        <testoptions></testoptions>
1318        <quiet>1</quiet>
1319        <truescoremode>=</truescoremode>
1320        <truescore>1.0000000</truescore>
1321        <truepenalty></truepenalty>
1322        <truenextnode>-1</truenextnode>
1323        <trueanswernote>eq-1-T </trueanswernote>
1324        <truefeedback format="html">
1325          <text></text>
1326        </truefeedback>
1327        <falsescoremode>=</falsescoremode>
1328        <falsescore>0.0000000</falsescore>
1329        <falsepenalty></falsepenalty>
1330        <falsenextnode>-1</falsenextnode>
1331        <falseanswernote>eq-1-F </falseanswernote>
1332        <falsefeedback format="html">
1333          <text></text>
1334        </falsefeedback>
1335      </node>
1336    </prt>
1337    <prt>
1338      <name>short</name>
1339      <value>1.0000000</value>
1340      <autosimplify>1</autosimplify>
1341      <feedbackvariables>
1342        <text></text>
1343      </feedbackvariables>
1344      <node>
1345        <name>0</name>
1346        <answertest>AlgEquiv</answertest>
1347        <sans>ans3</sans>
1348        <tans>-rn</tans>
1349        <testoptions></testoptions>
1350        <quiet>0</quiet>
1351        <truescoremode>=</truescoremode>
1352        <truescore>1.0000000</truescore>
1353        <truepenalty></truepenalty>
1354        <truenextnode>-1</truenextnode>
1355        <trueanswernote>short-0-T </trueanswernote>
1356        <truefeedback format="html">
1357          <text></text>
1358        </truefeedback>
1359        <falsescoremode>=</falsescoremode>
1360        <falsescore>0.0000000</falsescore>
1361        <falsepenalty></falsepenalty>
1362        <falsenextnode>-1</falsenextnode>
1363        <falseanswernote>short-0-F </falseanswernote>
1364        <falsefeedback format="html">
1365          <text></text>
1366        </falsefeedback>
1367      </node>
1368    </prt>
1369    <prt>
1370      <name>sol</name>
1371      <value>1.0000000</value>
1372      <autosimplify>1</autosimplify>
1373      <feedbackvariables>
1374        <text>v1:first(listofvars(ans1));
1375 ftm:setify(map(rhs,solve(ans1,v1)));</text>
1376      </feedbackvariables>
1377      <node>
1378        <name>0</name>
1379        <answertest>SubstEquiv</answertest>
1380        <sans>ans1</sans>
1381        <tans>ta1</tans>
1382        <testoptions></testoptions>
1383        <quiet>1</quiet>
1384        <truescoremode>=</truescoremode>
1385        <truescore>1.0000000</truescore>
1386        <truepenalty></truepenalty>
1387        <truenextnode>3</truenextnode>
1388        <trueanswernote>sol-0-T </trueanswernote>
1389        <truefeedback format="html">
1390          <text></text>
1391        </truefeedback>
1392        <falsescoremode>=</falsescoremode>
1393        <falsescore>0.0000000</falsescore>
1394        <falsepenalty></falsepenalty>
1395        <falsenextnode>1</falsenextnode>
1396        <falseanswernote>sol-0-F </falseanswernote>
1397        <falsefeedback format="html">
1398          <text></text>
1399        </falsefeedback>
1400      </node>
1401      <node>
1402        <name>1</name>
1403        <answertest>SubstEquiv</answertest>
1404        <sans>ans1</sans>
1405        <tans>ta2</tans>
1406        <testoptions></testoptions>
1407        <quiet>1</quiet>
1408        <truescoremode>=</truescoremode>
1409        <truescore>1.0000000</truescore>
1410        <truepenalty></truepenalty>
1411        <truenextnode>4</truenextnode>
1412        <trueanswernote>sol-1-T </trueanswernote>
1413        <truefeedback format="html">
1414          <text></text>
1415        </truefeedback>
1416        <falsescoremode>=</falsescoremode>
1417        <falsescore>0.0000000</falsescore>
1418        <falsepenalty></falsepenalty>
1419        <falsenextnode>2</falsenextnode>
1420        <falseanswernote>sol-1-F </falseanswernote>
1421        <falsefeedback format="html">
1422          <text></text>
1423        </falsefeedback>
1424      </node>
1425      <node>
1426        <name>2</name>
1427        <answertest>AlgEquiv</answertest>
1428        <sans>ans2</sans>
1429        <tans>ftm</tans>
1430        <testoptions></testoptions>
1431        <quiet>0</quiet>
1432        <truescoremode>=</truescoremode>
1433        <truescore>1.0000000</truescore>
1434        <truepenalty></truepenalty>
1435        <truenextnode>-1</truenextnode>
1436        <trueanswernote>sol-2-T </trueanswernote>
1437        <truefeedback format="html">
1438          <text><![CDATA[<p>You have correctly solved the equation you have entered in part 1. Please try both parts again!</p>]]></text>
1439        </truefeedback>
1440        <falsescoremode>=</falsescoremode>
1441        <falsescore>0.0000000</falsescore>
1442        <falsepenalty></falsepenalty>
1443        <falsenextnode>-1</falsenextnode>
1444        <falseanswernote>sol-2-F </falseanswernote>
1445        <falsefeedback format="html">
1446          <text></text>
1447        </falsefeedback>
1448      </node>
1449      <node>
1450        <name>3</name>
1451        <answertest>AlgEquiv</answertest>
1452        <sans>ans2</sans>
1453        <tans>tas1</tans>
1454        <testoptions></testoptions>
1455        <quiet>0</quiet>
1456        <truescoremode>=</truescoremode>
1457        <truescore>1.0000000</truescore>
1458        <truepenalty></truepenalty>
1459        <truenextnode>-1</truenextnode>
1460        <trueanswernote>sol-3-T </trueanswernote>
1461        <truefeedback format="html">
1462          <text></text>
1463        </truefeedback>
1464        <falsescoremode>=</falsescoremode>
1465        <falsescore>0.0000000</falsescore>
1466        <falsepenalty></falsepenalty>
1467        <falsenextnode>-1</falsenextnode>
1468        <falseanswernote>sol-3-F </falseanswernote>
1469        <falsefeedback format="html">
1470          <text></text>
1471        </falsefeedback>
1472      </node>
1473      <node>
1474        <name>4</name>
1475        <answertest>AlgEquiv</answertest>
1476        <sans>ans2</sans>
1477        <tans>tas2</tans>
1478        <testoptions></testoptions>
1479        <quiet>0</quiet>
1480        <truescoremode>=</truescoremode>
1481        <truescore>1.0000000</truescore>
1482        <truepenalty></truepenalty>
1483        <truenextnode>-1</truenextnode>
1484        <trueanswernote>sol-5-T</trueanswernote>
1485        <truefeedback format="html">
1486          <text></text>
1487        </truefeedback>
1488        <falsescoremode>-</falsescoremode>
1489        <falsescore>0.0000000</falsescore>
1490        <falsepenalty></falsepenalty>
1491        <falsenextnode>-1</falsenextnode>
1492        <falseanswernote>sol-5-F</falseanswernote>
1493        <falsefeedback format="html">
1494          <text></text>
1495        </falsefeedback>
1496      </node>
1497    </prt>
1498    <deployedseed>92</deployedseed>
1499    <deployedseed>1621764605</deployedseed>
1500    <deployedseed>79313047</deployedseed>
1501    <deployedseed>1740562616</deployedseed>
1502    <qtest>
1503      <testcase>1</testcase>
1504      <testinput>
1505        <name>ans1</name>
1506        <value>ta1</value>
1507      </testinput>
1508      <testinput>
1509        <name>ans2</name>
1510        <value>ev({-rp,-rn},simp)</value>
1511      </testinput>
1512      <testinput>
1513        <name>ans3</name>
1514        <value>ev(-rn,simp)</value>
1515      </testinput>
1516      <expected>
1517        <name>eq</name>
1518        <expectedscore>1.0000000</expectedscore>
1519        <expectedpenalty>0.0000000</expectedpenalty>
1520        <expectedanswernote>eq-0-T</expectedanswernote>
1521      </expected>
1522      <expected>
1523        <name>short</name>
1524        <expectedscore>1.0000000</expectedscore>
1525        <expectedpenalty>0.0000000</expectedpenalty>
1526        <expectedanswernote>short-0-T</expectedanswernote>
1527      </expected>
1528      <expected>
1529        <name>sol</name>
1530        <expectedscore>1.0000000</expectedscore>
1531        <expectedpenalty>0.0000000</expectedpenalty>
1532        <expectedanswernote>sol-3-T</expectedanswernote>
1533      </expected>
1534    </qtest>
1535    <qtest>
1536      <testcase>2</testcase>
1537      <testinput>
1538        <name>ans1</name>
1539        <value>ta2</value>
1540      </testinput>
1541      <testinput>
1542        <name>ans2</name>
1543        <value>ev({rp,rn},simp)</value>
1544      </testinput>
1545      <testinput>
1546        <name>ans3</name>
1547        <value>ev(-rn,simp)</value>
1548      </testinput>
1549      <expected>
1550        <name>eq</name>
1551        <expectedscore>1.0000000</expectedscore>
1552        <expectedpenalty>0.0000000</expectedpenalty>
1553        <expectedanswernote>eq-1-T</expectedanswernote>
1554      </expected>
1555      <expected>
1556        <name>short</name>
1557        <expectedscore>1.0000000</expectedscore>
1558        <expectedpenalty>0.0000000</expectedpenalty>
1559        <expectedanswernote>short-0-T</expectedanswernote>
1560      </expected>
1561      <expected>
1562        <name>sol</name>
1563        <expectedscore>1.0000000</expectedscore>
1564        <expectedpenalty>0.0000000</expectedpenalty>
1565        <expectedanswernote>sol-5-T</expectedanswernote>
1566      </expected>
1567    </qtest>
1568    <qtest>
1569      <testcase>3</testcase>
1570      <testinput>
1571        <name>ans1</name>
1572        <value>x+sg=-ar</value>
1573      </testinput>
1574      <testinput>
1575        <name>ans2</name>
1576        <value>{-ar-sg}</value>
1577      </testinput>
1578      <testinput>
1579        <name>ans3</name>
1580        <value></value>
1581      </testinput>
1582      <expected>
1583        <name>eq</name>
1584        <expectedscore>0.0000000</expectedscore>
1585        <expectedpenalty>0.1000000</expectedpenalty>
1586        <expectedanswernote>eq-1-F</expectedanswernote>
1587      </expected>
1588      <expected>
1589        <name>short</name>
1590        <expectedscore></expectedscore>
1591        <expectedpenalty></expectedpenalty>
1592        <expectedanswernote>NULL</expectedanswernote>
1593      </expected>
1594      <expected>
1595        <name>sol</name>
1596        <expectedscore>1.0000000</expectedscore>
1597        <expectedpenalty>0.0000000</expectedpenalty>
1598        <expectedanswernote>sol-2-T</expectedanswernote>
1599      </expected>
1600    </qtest>
1601  </question>
1602
1603<!-- question: 15  -->
1604  <question type="stack">
1605    <name>
1606      <text>test_3_matrix</text>
1607    </name>
1608    <questiontext format="html">
1609      <text><![CDATA[<p>Calculate \[ {@A@}.{@B@}\]</p>
1610<p> [[input:ans1]] [[validation:ans1]]</p>]]></text>
1611    </questiontext>
1612    <generalfeedback format="html">
1613      <text><![CDATA[<p>To multiply matrices \(A\) and \(B\) we need to remember that the \((i,j)\)th entry is the scalar product of the \(i\)th row of \(A\) with the \(j\)th column of \(B\).</p>
1614<p>\[ {@A@}.{@B@} = {@C@} = {@D@}.\]</p>]]></text>
1615    </generalfeedback>
1616    <defaultgrade>1.0000000</defaultgrade>
1617    <penalty>0.1000000</penalty>
1618    <hidden>0</hidden>
1619    <questionvariables>
1620      <text><![CDATA[A:ev(rand(matrix([5,5],[5,5]))+matrix([2,2],[2,2]),simp);
1621B:ev(rand(matrix([5,5],[5,5]))+matrix([2,2],[2,2]),simp);
1622TA:ev(A.B,simp);
1623TB:ev(A*B,simp);
1624BT:transpose(B);
1625C:zeromatrix (first(matrix_size(A)), second(matrix_size(A)));
1626S:for a:1 thru first(matrix_size(A)) do for b:1 thru second(matrix_size(A)) do C[ev(a,simp),ev(b,simp)]:apply("+",zip_with("*",A[ev(a,simp)],BT[ev(b,simp)]));
1627D:ev(C,simp);
1628C:C;]]></text>
1629    </questionvariables>
1630    <specificfeedback format="html">
1631      <text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
1632    </specificfeedback>
1633    <questionnote>
1634      <text>\({@A@}.{@B@}={@TA@}\)</text>
1635    </questionnote>
1636    <questionsimplify>0</questionsimplify>
1637    <assumepositive>0</assumepositive>
1638    <assumereal>0</assumereal>
1639    <prtcorrect format="html">
1640      <text><![CDATA[<p><span class="correct">Correct answer, well done.</span></p>]]></text>
1641    </prtcorrect>
1642    <prtpartiallycorrect format="html">
1643      <text><![CDATA[<p><span class="partially">Your answer is partially correct.</span></p>]]></text>
1644    </prtpartiallycorrect>
1645    <prtincorrect format="html">
1646      <text><![CDATA[<p><span class="incorrect">Incorrect answer.</span></p>]]></text>
1647    </prtincorrect>
1648    <multiplicationsign>dot</multiplicationsign>
1649    <sqrtsign>1</sqrtsign>
1650    <complexno>i</complexno>
1651    <inversetrig>cos-1</inversetrig>
1652    <matrixparens>[</matrixparens>
1653    <variantsselectionseed></variantsselectionseed>
1654    <input>
1655      <name>ans1</name>
1656      <type>matrix</type>
1657      <tans>TA</tans>
1658      <boxsize>3</boxsize>
1659      <strictsyntax>1</strictsyntax>
1660      <insertstars>0</insertstars>
1661      <syntaxhint></syntaxhint>
1662      <syntaxattribute>0</syntaxattribute>
1663      <forbidwords></forbidwords>
1664      <allowwords></allowwords>
1665      <forbidfloat>1</forbidfloat>
1666      <requirelowestterms>1</requirelowestterms>
1667      <checkanswertype>1</checkanswertype>
1668      <mustverify>1</mustverify>
1669      <showvalidation>1</showvalidation>
1670      <options></options>
1671    </input>
1672    <prt>
1673      <name>prt1</name>
1674      <value>1.0000000</value>
1675      <autosimplify>1</autosimplify>
1676      <feedbackvariables>
1677        <text></text>
1678      </feedbackvariables>
1679      <node>
1680        <name>0</name>
1681        <answertest>AlgEquiv</answertest>
1682        <sans>ans1</sans>
1683        <tans>TA</tans>
1684        <testoptions></testoptions>
1685        <quiet>1</quiet>
1686        <truescoremode>=</truescoremode>
1687        <truescore>1.0000000</truescore>
1688        <truepenalty></truepenalty>
1689        <truenextnode>-1</truenextnode>
1690        <trueanswernote>1-0-T </trueanswernote>
1691        <truefeedback format="html">
1692          <text></text>
1693        </truefeedback>
1694        <falsescoremode>=</falsescoremode>
1695        <falsescore>0.0000000</falsescore>
1696        <falsepenalty></falsepenalty>
1697        <falsenextnode>1</falsenextnode>
1698        <falseanswernote>1-0-F</falseanswernote>
1699        <falsefeedback format="html">
1700          <text></text>
1701        </falsefeedback>
1702      </node>
1703      <node>
1704        <name>1</name>
1705        <answertest>AlgEquiv</answertest>
1706        <sans>ans1</sans>
1707        <tans>TB</tans>
1708        <testoptions></testoptions>
1709        <quiet>1</quiet>
1710        <truescoremode>=</truescoremode>
1711        <truescore>0.0000000</truescore>
1712        <truepenalty></truepenalty>
1713        <truenextnode>-1</truenextnode>
1714        <trueanswernote>1-1-T </trueanswernote>
1715        <truefeedback format="html">
1716          <text><![CDATA[<p>Remember, you don't multiply matrices by multiplying the corresponding entries! A quite different process is needed.</p>]]></text>
1717        </truefeedback>
1718        <falsescoremode>=</falsescoremode>
1719        <falsescore>0.0000000</falsescore>
1720        <falsepenalty></falsepenalty>
1721        <falsenextnode>2</falsenextnode>
1722        <falseanswernote>1-1-F </falseanswernote>
1723        <falsefeedback format="html">
1724          <text></text>
1725        </falsefeedback>
1726      </node>
1727      <node>
1728        <name>2</name>
1729        <answertest>AlgEquiv</answertest>
1730        <sans>ans1</sans>
1731        <tans>A+B</tans>
1732        <testoptions></testoptions>
1733        <quiet>1</quiet>
1734        <truescoremode>=</truescoremode>
1735        <truescore>0.0000000</truescore>
1736        <truepenalty></truepenalty>
1737        <truenextnode>-1</truenextnode>
1738        <trueanswernote>1-3-T</trueanswernote>
1739        <truefeedback format="html">
1740          <text><![CDATA[<p>Please multiply the matrices. It looks like you have added them instead!</p>]]></text>
1741        </truefeedback>
1742        <falsescoremode>=</falsescoremode>
1743        <falsescore>0.0000000</falsescore>
1744        <falsepenalty></falsepenalty>
1745        <falsenextnode>-1</falsenextnode>
1746        <falseanswernote>1-3-F</falseanswernote>
1747        <falsefeedback format="html">
1748          <text></text>
1749        </falsefeedback>
1750      </node>
1751    </prt>
1752    <deployedseed>86</deployedseed>
1753    <deployedseed>219862533</deployedseed>
1754    <deployedseed>1167893775</deployedseed>
1755    <qtest>
1756      <testcase>1</testcase>
1757      <testinput>
1758        <name>ans1</name>
1759        <value>TA</value>
1760      </testinput>
1761      <expected>
1762        <name>prt1</name>
1763        <expectedscore>1.0000000</expectedscore>
1764        <expectedpenalty>0.0000000</expectedpenalty>
1765        <expectedanswernote>1-0-T </expectedanswernote>
1766      </expected>
1767    </qtest>
1768    <qtest>
1769      <testcase>2</testcase>
1770      <testinput>
1771        <name>ans1</name>
1772        <value>TB</value>
1773      </testinput>
1774      <expected>
1775        <name>prt1</name>
1776        <expectedscore>0.0000000</expectedscore>
1777        <expectedpenalty>0.1000000</expectedpenalty>
1778        <expectedanswernote>1-1-T</expectedanswernote>
1779      </expected>
1780    </qtest>
1781    <qtest>
1782      <testcase>4</testcase>
1783      <testinput>
1784        <name>ans1</name>
1785        <value>1</value>
1786      </testinput>
1787      <expected>
1788        <name>prt1</name>
1789        <expectedscore></expectedscore>
1790        <expectedpenalty></expectedpenalty>
1791        <expectedanswernote>NULL</expectedanswernote>
1792      </expected>
1793    </qtest>
1794    <qtest>
1795      <testcase>5</testcase>
1796      <testinput>
1797        <name>ans1</name>
1798        <value>A</value>
1799      </testinput>
1800      <expected>
1801        <name>prt1</name>
1802        <expectedscore>0.0000000</expectedscore>
1803        <expectedpenalty>0.1000000</expectedpenalty>
1804        <expectedanswernote>1-3-F</expectedanswernote>
1805      </expected>
1806    </qtest>
1807  </question>
1808
1809<!-- question: 18  -->
1810  <question type="stack">
1811    <name>
1812      <text>test_5_cubic_spline</text>
1813    </name>
1814    <questiontext format="html">
1815      <text><![CDATA[<p>Consider the real function</p>
1816<p>\[ f(x) :=\left\{ \begin{array}{ll} {@f0@} &amp; \mbox{for } x\leq {@x0@}, \\ p(x) &amp; \mbox{for } {@x0@} &lt; x &lt; {@x1@}, \\ {@f1@} &amp; \mbox{for } {@x1@}\leq x.\end{array} \right. \]</p>
1817<p>{@plot(pg,[x,(x0-3),(x1+3)],[y,-3,3])@}</p>
1818<p>Find the cubic polynomial \(p(x)\) which makes \(f(x)\) continuously differentiable. </p>
1819<p>\(p(x)=\)[[input:ans1]]</p>
1820<div>[[validation:ans1]]</div>]]></text>
1821    </questiontext>
1822    <generalfeedback format="html">
1823      <text><![CDATA[<p>First we need to find the information which \(p(x)\) needs to satisfy.  This is</p>
1824<p>\[ p({@x0@})={@subst(x=x0,f0)@}.\]</p>
1825<p>\[ p({@x1@})={@subst(x=x1,f1)@}.\]</p>
1826<p>\[ p'({@x0@})={@subst(x=x0,diff(f0,x))@}.\]</p>
1827<p>\[ p'({@x1@})={@subst(x=x1,diff(f1,x))@}.\]</p>
1828<p>If we define \(p(x)\) to be the cubic </p>
1829<p>\[ p(x) = a_3 x^3 + a_2 x^2 + a_1 x + a_0,\]</p>
1830<p>We then set up the matrix equation</p>
1831<p>\[ {@CS@} {@CV@} = {@CT@} \]</p>
1832<p>Solving this gives the coefficients, from which we get the polynomial.</p>
1833<p>{@ta@}.</p>]]></text>
1834    </generalfeedback>
1835    <defaultgrade>1.0000000</defaultgrade>
1836    <penalty>0.0000000</penalty>
1837    <hidden>0</hidden>
1838    <questionvariables>
1839      <text><![CDATA[x0 : -1;
1840f0 : 1;
1841x1 : 2;
1842f1 : sin(%pi*x)
1843/* Note, we should really use inf instead of 1000 here, but Maxima gives up plotting with the options used by STACK */
1844pg:if x<x0 then f0 else if x<x1 then 1000 else f1;
1845CS:matrix([1,x0,x0^2,x0^3],[0,1,2*x0,3*x0^2],[1,x1,x1^2,x1^3],[0,1,2*x1,3*x1^2])
1846CT:transpose(matrix([ev(f0,x=x0),subst(x=x0,diff(f0,x)),ev(f1,x=x1),subst(x=x1,diff(f1,x))]));
1847CV:transpose(matrix([a0,a1,a2,a3]));
1848CS2:invert(CS).CT;
1849ta : matrix([1,x,x^2,x^3]).CS2;]]></text>
1850    </questionvariables>
1851    <specificfeedback format="html">
1852      <text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
1853    </specificfeedback>
1854    <questionnote>
1855      <text>{@ta@}</text>
1856    </questionnote>
1857    <questionsimplify>1</questionsimplify>
1858    <assumepositive>0</assumepositive>
1859    <assumereal>0</assumereal>
1860    <prtcorrect format="html">
1861      <text><![CDATA[<p>Correct answer, well done.</p>]]></text>
1862    </prtcorrect>
1863    <prtpartiallycorrect format="html">
1864      <text><![CDATA[<p>Your answer is partially correct.</p>]]></text>
1865    </prtpartiallycorrect>
1866    <prtincorrect format="html">
1867      <text><![CDATA[<p>Incorrect answer.</p>]]></text>
1868    </prtincorrect>
1869    <multiplicationsign>dot</multiplicationsign>
1870    <sqrtsign>1</sqrtsign>
1871    <complexno>i</complexno>
1872    <inversetrig>cos-1</inversetrig>
1873    <matrixparens>[</matrixparens>
1874    <variantsselectionseed></variantsselectionseed>
1875    <input>
1876      <name>ans1</name>
1877      <type>algebraic</type>
1878      <tans>ta</tans>
1879      <boxsize>15</boxsize>
1880      <strictsyntax>1</strictsyntax>
1881      <insertstars>0</insertstars>
1882      <syntaxhint></syntaxhint>
1883      <syntaxattribute>0</syntaxattribute>
1884      <forbidwords></forbidwords>
1885      <allowwords></allowwords>
1886      <forbidfloat>1</forbidfloat>
1887      <requirelowestterms>0</requirelowestterms>
1888      <checkanswertype>0</checkanswertype>
1889      <mustverify>1</mustverify>
1890      <showvalidation>1</showvalidation>
1891      <options></options>
1892    </input>
1893    <prt>
1894      <name>prt1</name>
1895      <value>1.0000000</value>
1896      <autosimplify>1</autosimplify>
1897      <feedbackvariables>
1898        <text><![CDATA[anspt : if (x>x0 and x<x1) then ans1 else 1000;]]></text>
1899      </feedbackvariables>
1900      <node>
1901        <name>0</name>
1902        <answertest>AlgEquiv</answertest>
1903        <sans>subst(x=x0,ans1)</sans>
1904        <tans>subst(x=x0,f0)</tans>
1905        <testoptions></testoptions>
1906        <quiet>0</quiet>
1907        <truescoremode>+</truescoremode>
1908        <truescore>0.2500000</truescore>
1909        <truepenalty></truepenalty>
1910        <truenextnode>1</truenextnode>
1911        <trueanswernote>prt1-1-T</trueanswernote>
1912        <truefeedback format="html">
1913          <text></text>
1914        </truefeedback>
1915        <falsescoremode>=</falsescoremode>
1916        <falsescore>0.0000000</falsescore>
1917        <falsepenalty></falsepenalty>
1918        <falsenextnode>1</falsenextnode>
1919        <falseanswernote>prt1-1-F</falseanswernote>
1920        <falsefeedback format="html">
1921          <text><![CDATA[<p>Your answer does not satisfy \({@p(x0)=subst(x=x0,f0)@}\).</p>]]></text>
1922        </falsefeedback>
1923      </node>
1924      <node>
1925        <name>1</name>
1926        <answertest>AlgEquiv</answertest>
1927        <sans>subst(x=x1,ans1)</sans>
1928        <tans>subst(x=x1,f1)</tans>
1929        <testoptions></testoptions>
1930        <quiet>0</quiet>
1931        <truescoremode>+</truescoremode>
1932        <truescore>0.2500000</truescore>
1933        <truepenalty></truepenalty>
1934        <truenextnode>2</truenextnode>
1935        <trueanswernote>prt1-2-T</trueanswernote>
1936        <truefeedback format="html">
1937          <text></text>
1938        </truefeedback>
1939        <falsescoremode>+</falsescoremode>
1940        <falsescore>0.0000000</falsescore>
1941        <falsepenalty></falsepenalty>
1942        <falsenextnode>2</falsenextnode>
1943        <falseanswernote>prt1-2-F</falseanswernote>
1944        <falsefeedback format="html">
1945          <text><![CDATA[<p>Your answer does not satisfy \({@p(x1)=subst(x=x1,f1)@}\).</p>]]></text>
1946        </falsefeedback>
1947      </node>
1948      <node>
1949        <name>2</name>
1950        <answertest>AlgEquiv</answertest>
1951        <sans>subst(x=x0,diff(ans1,x))</sans>
1952        <tans>subst(x=x0,diff(f0,x))</tans>
1953        <testoptions></testoptions>
1954        <quiet>0</quiet>
1955        <truescoremode>+</truescoremode>
1956        <truescore>0.2500000</truescore>
1957        <truepenalty></truepenalty>
1958        <truenextnode>3</truenextnode>
1959        <trueanswernote>prt1-3-T</trueanswernote>
1960        <truefeedback format="html">
1961          <text></text>
1962        </truefeedback>
1963        <falsescoremode>+</falsescoremode>
1964        <falsescore>0.0000000</falsescore>
1965        <falsepenalty></falsepenalty>
1966        <falsenextnode>3</falsenextnode>
1967        <falseanswernote>prt1-3-F</falseanswernote>
1968        <falsefeedback format="html">
1969          <text><![CDATA[<p>Your answer does not satisfy \(p'({@x0@})={@subst(x=x0,diff(f0,x))@}\).</p>]]></text>
1970        </falsefeedback>
1971      </node>
1972      <node>
1973        <name>3</name>
1974        <answertest>AlgEquiv</answertest>
1975        <sans>subst(x=x1,diff(ans1,x))</sans>
1976        <tans>subst(x=x1,diff(f1,x))</tans>
1977        <testoptions></testoptions>
1978        <quiet>0</quiet>
1979        <truescoremode>+</truescoremode>
1980        <truescore>0.2500000</truescore>
1981        <truepenalty></truepenalty>
1982        <truenextnode>4</truenextnode>
1983        <trueanswernote>prt1-4-T</trueanswernote>
1984        <truefeedback format="html">
1985          <text></text>
1986        </truefeedback>
1987        <falsescoremode>+</falsescoremode>
1988        <falsescore>0.0000000</falsescore>
1989        <falsepenalty></falsepenalty>
1990        <falsenextnode>4</falsenextnode>
1991        <falseanswernote>prt1-4-F</falseanswernote>
1992        <falsefeedback format="html">
1993          <text><![CDATA[<p>Your answer does not satisfy \(p'({@x1@})={@subst(x=x1,diff(f1,x))@}\).</p>]]></text>
1994        </falsefeedback>
1995      </node>
1996      <node>
1997        <name>4</name>
1998        <answertest>AlgEquiv</answertest>
1999        <sans>degree(ans1,x)</sans>
2000        <tans>3</tans>
2001        <testoptions></testoptions>
2002        <quiet>0</quiet>
2003        <truescoremode>+</truescoremode>
2004        <truescore>0.0000000</truescore>
2005        <truepenalty></truepenalty>
2006        <truenextnode>5</truenextnode>
2007        <trueanswernote>prt1-5-T</trueanswernote>
2008        <truefeedback format="html">
2009          <text></text>
2010        </truefeedback>
2011        <falsescoremode>=</falsescoremode>
2012        <falsescore>0.0000000</falsescore>
2013        <falsepenalty></falsepenalty>
2014        <falsenextnode>5</falsenextnode>
2015        <falseanswernote>prt1-5-F</falseanswernote>
2016        <falsefeedback format="html">
2017          <text><![CDATA[<p>Your answer is not a cubic!</p>]]></text>
2018        </falsefeedback>
2019      </node>
2020      <node>
2021        <name>5</name>
2022        <answertest>AlgEquiv</answertest>
2023        <sans>ans1</sans>
2024        <tans>ta</tans>
2025        <testoptions></testoptions>
2026        <quiet>0</quiet>
2027        <truescoremode>=</truescoremode>
2028        <truescore>1.0000000</truescore>
2029        <truepenalty></truepenalty>
2030        <truenextnode>-1</truenextnode>
2031        <trueanswernote>prt1-6-T</trueanswernote>
2032        <truefeedback format="html">
2033          <text></text>
2034        </truefeedback>
2035        <falsescoremode>+</falsescoremode>
2036        <falsescore>0.0000000</falsescore>
2037        <falsepenalty></falsepenalty>
2038        <falsenextnode>-1</falsenextnode>
2039        <falseanswernote>prt1-6-F</falseanswernote>
2040        <falsefeedback format="html">
2041          <text><![CDATA[<p>Your answer is plotted below, although part of your graph might appear out of range of the plot!</p>
2042<p>{@plot([pg,anspt],[x,(x0-3),(x1+3)],[y,-3,3])@}</p>]]></text>
2043        </falsefeedback>
2044      </node>
2045    </prt>
2046    <qtest>
2047      <testcase>1</testcase>
2048      <testinput>
2049        <name>ans1</name>
2050        <value>ta</value>
2051      </testinput>
2052      <expected>
2053        <name>prt1</name>
2054        <expectedscore>1.0000000</expectedscore>
2055        <expectedpenalty>0.0000000</expectedpenalty>
2056        <expectedanswernote>prt1-6-T</expectedanswernote>
2057      </expected>
2058    </qtest>
2059    <qtest>
2060      <testcase>2</testcase>
2061      <testinput>
2062        <name>ans1</name>
2063        <value>x^2</value>
2064      </testinput>
2065      <expected>
2066        <name>prt1</name>
2067        <expectedscore>0.0000000</expectedscore>
2068        <expectedpenalty>0.0000000</expectedpenalty>
2069        <expectedanswernote>prt1-6-F</expectedanswernote>
2070      </expected>
2071    </qtest>
2072    <qtest>
2073      <testcase>3</testcase>
2074      <testinput>
2075        <name>ans1</name>
2076        <value>(2*%pi/9+2/27)*x^3-x^2/9+(-2*%pi/3-4/9)*x-4*%pi/9+20/27</value>
2077      </testinput>
2078      <expected>
2079        <name>prt1</name>
2080        <expectedscore>0.7500000</expectedscore>
2081        <expectedpenalty>0.0000000</expectedpenalty>
2082        <expectedanswernote>prt1-6-F</expectedanswernote>
2083      </expected>
2084    </qtest>
2085  </question>
2086
2087<!-- question: 16  -->
2088  <question type="stack">
2089    <name>
2090      <text>text_4_complex-De Moivre's</text>
2091    </name>
2092    <questiontext format="html">
2093      <text><![CDATA[<p>Given a complex number \(\displaystyle z={@q@}\) <span class="nolink">determine<br /></span></p>
2094<p>\(|z^{@n@}|=\)[[input:ans1]] [[validation:ans1]] [[feedback:prt1]]</p>
2095<p>and \(\arg(z^{@n@})=\)[[input:ans2]] [[validation:ans2]] [[feedback:prt2]]</p>]]></text>
2096    </questiontext>
2097    <generalfeedback format="html">
2098      <text><![CDATA[<p>It makes sense that the index laws should still apply.  This is called De Moivre's theorem.</p>
2099<p>\[ {@q^n@} ={@a^n@} e^{@b*n*%i*%pi@}.\]</p>
2100<p>Recall that</p>
2101<p>\[ e^{i\theta} = \cos(\theta)+i\sin(\theta).\]</p>
2102<p>Working with the principle argument \(0\leq \theta \leq 2\pi\) gives us</p>
2103<p>\[ {@q^n@} = {@a^n@} e^{@b*n*%i*%pi@} = {@a^n@} e^{@ev(b*n,simp)*%i*%pi@} = {@a^n@} e^{@p*%i*%pi@}.\]</p>]]></text>
2104    </generalfeedback>
2105    <defaultgrade>1.0000000</defaultgrade>
2106    <penalty>0.1000000</penalty>
2107    <hidden>0</hidden>
2108    <questionvariables>
2109      <text>a : ev(2+rand(15),simp);
2110b : ev((-1)^rand(2)*((1+rand(10)))/(2+rand(15)),simp);
2111n : ev(3+rand(20),simp);
2112q : a*%e^(b*%i*%pi);
2113p : ev(mod(b*n,2),simp);</text>
2114    </questionvariables>
2115    <specificfeedback format="html">
2116      <text></text>
2117    </specificfeedback>
2118    <questionnote>
2119      <text>{@q^n = a^n*(cos(p*%i*%pi)+%i*sin(p*%i*%pi))@}</text>
2120    </questionnote>
2121    <questionsimplify>0</questionsimplify>
2122    <assumepositive>0</assumepositive>
2123    <assumereal>0</assumereal>
2124    <prtcorrect format="html">
2125      <text><![CDATA[<p>Correct answer, well done.</p>]]></text>
2126    </prtcorrect>
2127    <prtpartiallycorrect format="html">
2128      <text><![CDATA[<p>Your answer is partially correct.</p>]]></text>
2129    </prtpartiallycorrect>
2130    <prtincorrect format="html">
2131      <text><![CDATA[<p>Incorrect answer.</p>]]></text>
2132    </prtincorrect>
2133    <multiplicationsign>dot</multiplicationsign>
2134    <sqrtsign>1</sqrtsign>
2135    <complexno>i</complexno>
2136    <inversetrig>cos-1</inversetrig>
2137    <matrixparens>[</matrixparens>
2138    <variantsselectionseed></variantsselectionseed>
2139    <input>
2140      <name>ans1</name>
2141      <type>algebraic</type>
2142      <tans>a^n</tans>
2143      <boxsize>15</boxsize>
2144      <strictsyntax>1</strictsyntax>
2145      <insertstars>0</insertstars>
2146      <syntaxhint></syntaxhint>
2147      <syntaxattribute>0</syntaxattribute>
2148      <forbidwords></forbidwords>
2149      <allowwords></allowwords>
2150      <forbidfloat>1</forbidfloat>
2151      <requirelowestterms>0</requirelowestterms>
2152      <checkanswertype>0</checkanswertype>
2153      <mustverify>1</mustverify>
2154      <showvalidation>1</showvalidation>
2155      <options></options>
2156    </input>
2157    <input>
2158      <name>ans2</name>
2159      <type>algebraic</type>
2160      <tans>p*%pi</tans>
2161      <boxsize>15</boxsize>
2162      <strictsyntax>1</strictsyntax>
2163      <insertstars>0</insertstars>
2164      <syntaxhint></syntaxhint>
2165      <syntaxattribute>0</syntaxattribute>
2166      <forbidwords></forbidwords>
2167      <allowwords></allowwords>
2168      <forbidfloat>1</forbidfloat>
2169      <requirelowestterms>0</requirelowestterms>
2170      <checkanswertype>0</checkanswertype>
2171      <mustverify>1</mustverify>
2172      <showvalidation>1</showvalidation>
2173      <options></options>
2174    </input>
2175    <prt>
2176      <name>prt1</name>
2177      <value>1.0000000</value>
2178      <autosimplify>1</autosimplify>
2179      <feedbackvariables>
2180        <text></text>
2181      </feedbackvariables>
2182      <node>
2183        <name>0</name>
2184        <answertest>AlgEquiv</answertest>
2185        <sans>ans1</sans>
2186        <tans>a^n</tans>
2187        <testoptions></testoptions>
2188        <quiet>0</quiet>
2189        <truescoremode>=</truescoremode>
2190        <truescore>1.0000000</truescore>
2191        <truepenalty>0.0000000</truepenalty>
2192        <truenextnode>-1</truenextnode>
2193        <trueanswernote>prt1-1-T</trueanswernote>
2194        <truefeedback format="html">
2195          <text></text>
2196        </truefeedback>
2197        <falsescoremode>=</falsescoremode>
2198        <falsescore>0.0000000</falsescore>
2199        <falsepenalty>0.0000000</falsepenalty>
2200        <falsenextnode>-1</falsenextnode>
2201        <falseanswernote>prt1-1-F</falseanswernote>
2202        <falsefeedback format="html">
2203          <text></text>
2204        </falsefeedback>
2205      </node>
2206    </prt>
2207    <prt>
2208      <name>prt2</name>
2209      <value>1.0000000</value>
2210      <autosimplify>1</autosimplify>
2211      <feedbackvariables>
2212        <text></text>
2213      </feedbackvariables>
2214      <node>
2215        <name>0</name>
2216        <answertest>AlgEquiv</answertest>
2217        <sans>[cos(ans2),sin(ans2)]</sans>
2218        <tans>[cos(b*%pi*n),sin(b*%pi*n)]</tans>
2219        <testoptions></testoptions>
2220        <quiet>1</quiet>
2221        <truescoremode>=</truescoremode>
2222        <truescore>1.0000000</truescore>
2223        <truepenalty></truepenalty>
2224        <truenextnode>-1</truenextnode>
2225        <trueanswernote>prt2-1-T</trueanswernote>
2226        <truefeedback format="html">
2227          <text></text>
2228        </truefeedback>
2229        <falsescoremode>=</falsescoremode>
2230        <falsescore>0.0000000</falsescore>
2231        <falsepenalty></falsepenalty>
2232        <falsenextnode>-1</falsenextnode>
2233        <falseanswernote>prt2-1-F</falseanswernote>
2234        <falsefeedback format="html">
2235          <text></text>
2236        </falsefeedback>
2237      </node>
2238    </prt>
2239    <qtest>
2240      <testcase>1</testcase>
2241      <testinput>
2242        <name>ans1</name>
2243        <value>a^n</value>
2244      </testinput>
2245      <testinput>
2246        <name>ans2</name>
2247        <value></value>
2248      </testinput>
2249      <expected>
2250        <name>prt1</name>
2251        <expectedscore>1.0000000</expectedscore>
2252        <expectedpenalty>0.0000000</expectedpenalty>
2253        <expectedanswernote>prt1-1-T</expectedanswernote>
2254      </expected>
2255      <expected>
2256        <name>prt2</name>
2257        <expectedscore></expectedscore>
2258        <expectedpenalty></expectedpenalty>
2259        <expectedanswernote>NULL</expectedanswernote>
2260      </expected>
2261    </qtest>
2262    <qtest>
2263      <testcase>2</testcase>
2264      <testinput>
2265        <name>ans1</name>
2266        <value></value>
2267      </testinput>
2268      <testinput>
2269        <name>ans2</name>
2270        <value>b*n*%pi</value>
2271      </testinput>
2272      <expected>
2273        <name>prt1</name>
2274        <expectedscore></expectedscore>
2275        <expectedpenalty></expectedpenalty>
2276        <expectedanswernote>NULL</expectedanswernote>
2277      </expected>
2278      <expected>
2279        <name>prt2</name>
2280        <expectedscore>1.0000000</expectedscore>
2281        <expectedpenalty>0.0000000</expectedpenalty>
2282        <expectedanswernote>prt2-1-T</expectedanswernote>
2283      </expected>
2284    </qtest>
2285    <qtest>
2286      <testcase>3</testcase>
2287      <testinput>
2288        <name>ans1</name>
2289        <value></value>
2290      </testinput>
2291      <testinput>
2292        <name>ans2</name>
2293        <value>p*%pi</value>
2294      </testinput>
2295      <expected>
2296        <name>prt1</name>
2297        <expectedscore></expectedscore>
2298        <expectedpenalty></expectedpenalty>
2299        <expectedanswernote>NULL</expectedanswernote>
2300      </expected>
2301      <expected>
2302        <name>prt2</name>
2303        <expectedscore>1.0000000</expectedscore>
2304        <expectedpenalty>0.0000000</expectedpenalty>
2305        <expectedanswernote>prt2-1-T</expectedanswernote>
2306      </expected>
2307    </qtest>
2308  </question>
2309
2310<!-- question: 19  -->
2311  <question type="stack">
2312    <name>
2313      <text>text_6_odd_even</text>
2314    </name>
2315    <questiontext format="html">
2316      <text><![CDATA[<p>1. Give an example of an odd function by typing an expression which represents it. \(f_1(x)=\) [[input:ans1]]. [[validation:ans1]] [[feedback:odd]]</p>
2317<p>2. Give an example of an even function. \(f_2(x)=\) [[input:ans2]]. [[validation:ans2]] [[feedback:even]]</p>
2318<p>3. Give an example of a function which is odd and even. \(f_3(x)=\) [[input:ans3]]. [[validation:ans3]] [[feedback:oddeven]]</p>
2319<p>4. Is the answer to 3. unique? [[input:ans4]] (Or are there many different possibilities.) [[validation:ans4]] [[feedback:unique]]</p>]]></text>
2320    </questiontext>
2321    <generalfeedback format="html">
2322      <text></text>
2323    </generalfeedback>
2324    <defaultgrade>1.0000000</defaultgrade>
2325    <penalty>0.3333333</penalty>
2326    <hidden>0</hidden>
2327    <questionvariables>
2328      <text></text>
2329    </questionvariables>
2330    <specificfeedback format="html">
2331      <text></text>
2332    </specificfeedback>
2333    <questionnote>
2334      <text></text>
2335    </questionnote>
2336    <questionsimplify>1</questionsimplify>
2337    <assumepositive>0</assumepositive>
2338    <assumereal>0</assumereal>
2339    <prtcorrect format="html">
2340      <text><![CDATA[<p><span class="correct">Correct answer, well done.</span></p>]]></text>
2341    </prtcorrect>
2342    <prtpartiallycorrect format="html">
2343      <text><![CDATA[<p><span class="incorrect">Your answer is partially correct.</span></p>]]></text>
2344    </prtpartiallycorrect>
2345    <prtincorrect format="html">
2346      <text><![CDATA[<p><span class="partially">Incorrect answer.</span></p>]]></text>
2347    </prtincorrect>
2348    <multiplicationsign>dot</multiplicationsign>
2349    <sqrtsign>1</sqrtsign>
2350    <complexno>i</complexno>
2351    <inversetrig>cos-1</inversetrig>
2352    <matrixparens>[</matrixparens>
2353    <variantsselectionseed></variantsselectionseed>
2354    <input>
2355      <name>ans1</name>
2356      <type>algebraic</type>
2357      <tans>x^3</tans>
2358      <boxsize>15</boxsize>
2359      <strictsyntax>1</strictsyntax>
2360      <insertstars>0</insertstars>
2361      <syntaxhint></syntaxhint>
2362      <syntaxattribute>0</syntaxattribute>
2363      <forbidwords></forbidwords>
2364      <allowwords></allowwords>
2365      <forbidfloat>1</forbidfloat>
2366      <requirelowestterms>1</requirelowestterms>
2367      <checkanswertype>1</checkanswertype>
2368      <mustverify>1</mustverify>
2369      <showvalidation>1</showvalidation>
2370      <options></options>
2371    </input>
2372    <input>
2373      <name>ans2</name>
2374      <type>algebraic</type>
2375      <tans>x^4</tans>
2376      <boxsize>15</boxsize>
2377      <strictsyntax>1</strictsyntax>
2378      <insertstars>0</insertstars>
2379      <syntaxhint></syntaxhint>
2380      <syntaxattribute>0</syntaxattribute>
2381      <forbidwords></forbidwords>
2382      <allowwords></allowwords>
2383      <forbidfloat>1</forbidfloat>
2384      <requirelowestterms>1</requirelowestterms>
2385      <checkanswertype>1</checkanswertype>
2386      <mustverify>1</mustverify>
2387      <showvalidation>1</showvalidation>
2388      <options></options>
2389    </input>
2390    <input>
2391      <name>ans3</name>
2392      <type>algebraic</type>
2393      <tans>0</tans>
2394      <boxsize>15</boxsize>
2395      <strictsyntax>1</strictsyntax>
2396      <insertstars>0</insertstars>
2397      <syntaxhint></syntaxhint>
2398      <syntaxattribute>0</syntaxattribute>
2399      <forbidwords></forbidwords>
2400      <allowwords></allowwords>
2401      <forbidfloat>1</forbidfloat>
2402      <requirelowestterms>1</requirelowestterms>
2403      <checkanswertype>1</checkanswertype>
2404      <mustverify>1</mustverify>
2405      <showvalidation>1</showvalidation>
2406      <options></options>
2407    </input>
2408    <input>
2409      <name>ans4</name>
2410      <type>boolean</type>
2411      <tans>true</tans>
2412      <boxsize>15</boxsize>
2413      <strictsyntax>1</strictsyntax>
2414      <insertstars>0</insertstars>
2415      <syntaxhint></syntaxhint>
2416      <syntaxattribute>0</syntaxattribute>
2417      <forbidwords></forbidwords>
2418      <allowwords></allowwords>
2419      <forbidfloat>1</forbidfloat>
2420      <requirelowestterms>1</requirelowestterms>
2421      <checkanswertype>1</checkanswertype>
2422      <mustverify>1</mustverify>
2423      <showvalidation>1</showvalidation>
2424      <options></options>
2425    </input>
2426    <prt>
2427      <name>even</name>
2428      <value>1.0000000</value>
2429      <autosimplify>1</autosimplify>
2430      <feedbackvariables>
2431        <text>sa:ans2-subst(x=-x,ans2);</text>
2432      </feedbackvariables>
2433      <node>
2434        <name>0</name>
2435        <answertest>AlgEquiv</answertest>
2436        <sans>sa</sans>
2437        <tans>0</tans>
2438        <testoptions></testoptions>
2439        <quiet>0</quiet>
2440        <truescoremode>=</truescoremode>
2441        <truescore>1.0000000</truescore>
2442        <truepenalty></truepenalty>
2443        <truenextnode>-1</truenextnode>
2444        <trueanswernote>even-0-T </trueanswernote>
2445        <truefeedback format="html">
2446          <text></text>
2447        </truefeedback>
2448        <falsescoremode>=</falsescoremode>
2449        <falsescore>0.0000000</falsescore>
2450        <falsepenalty></falsepenalty>
2451        <falsenextnode>-1</falsenextnode>
2452        <falseanswernote>even-0-F </falseanswernote>
2453        <falsefeedback format="html">
2454          <text><![CDATA[<p>Your answer is not an even function. Look, \[ f(x)-f(-x)={@sa@} \neq 0.\]</p>]]></text>
2455        </falsefeedback>
2456      </node>
2457    </prt>
2458    <prt>
2459      <name>odd</name>
2460      <value>1.0000000</value>
2461      <autosimplify>1</autosimplify>
2462      <feedbackvariables>
2463        <text>sa:subst(x=-x,ans1)+ans1;</text>
2464      </feedbackvariables>
2465      <node>
2466        <name>0</name>
2467        <answertest>AlgEquiv</answertest>
2468        <sans>sa</sans>
2469        <tans>0</tans>
2470        <testoptions></testoptions>
2471        <quiet>0</quiet>
2472        <truescoremode>=</truescoremode>
2473        <truescore>1.0000000</truescore>
2474        <truepenalty></truepenalty>
2475        <truenextnode>-1</truenextnode>
2476        <trueanswernote>odd-0-T </trueanswernote>
2477        <truefeedback format="html">
2478          <text></text>
2479        </truefeedback>
2480        <falsescoremode>=</falsescoremode>
2481        <falsescore>0.0000000</falsescore>
2482        <falsepenalty></falsepenalty>
2483        <falsenextnode>-1</falsenextnode>
2484        <falseanswernote>odd-0-F </falseanswernote>
2485        <falsefeedback format="html">
2486          <text><![CDATA[<p>Your answer is not an odd function. Look, \[ f(x)+f(-x)={@sa@} \neq 0.\]</p>]]></text>
2487        </falsefeedback>
2488      </node>
2489    </prt>
2490    <prt>
2491      <name>oddeven</name>
2492      <value>2.0000000</value>
2493      <autosimplify>1</autosimplify>
2494      <feedbackvariables>
2495        <text>sa1:subst(x=-x,ans3)+ans3;
2496sa2:ans3-subst(x=-x,ans3);</text>
2497      </feedbackvariables>
2498      <node>
2499        <name>0</name>
2500        <answertest>AlgEquiv</answertest>
2501        <sans>sa1</sans>
2502        <tans>0</tans>
2503        <testoptions></testoptions>
2504        <quiet>0</quiet>
2505        <truescoremode>=</truescoremode>
2506        <truescore>0.5000000</truescore>
2507        <truepenalty></truepenalty>
2508        <truenextnode>1</truenextnode>
2509        <trueanswernote>ODD</trueanswernote>
2510        <truefeedback format="html">
2511          <text></text>
2512        </truefeedback>
2513        <falsescoremode>=</falsescoremode>
2514        <falsescore>0.0000000</falsescore>
2515        <falsepenalty></falsepenalty>
2516        <falsenextnode>1</falsenextnode>
2517        <falseanswernote>oddeven-0-F </falseanswernote>
2518        <falsefeedback format="html">
2519          <text><![CDATA[<p>Your answer is not an odd function. Look, \[ f(x)+f(-x)={@sa1@} \neq 0.\]</p>]]></text>
2520        </falsefeedback>
2521      </node>
2522      <node>
2523        <name>1</name>
2524        <answertest>AlgEquiv</answertest>
2525        <sans>sa2</sans>
2526        <tans>0</tans>
2527        <testoptions></testoptions>
2528        <quiet>0</quiet>
2529        <truescoremode>+</truescoremode>
2530        <truescore>0.5000000</truescore>
2531        <truepenalty></truepenalty>
2532        <truenextnode>-1</truenextnode>
2533        <trueanswernote>EVEN</trueanswernote>
2534        <truefeedback format="html">
2535          <text></text>
2536        </truefeedback>
2537        <falsescoremode>+</falsescoremode>
2538        <falsescore>0.0000000</falsescore>
2539        <falsepenalty></falsepenalty>
2540        <falsenextnode>-1</falsenextnode>
2541        <falseanswernote>oddeven-1-F </falseanswernote>
2542        <falsefeedback format="html">
2543          <text><![CDATA[<p>Your answer is not an even function. Look, \[ f(x)-f(-x)={@sa2@} \neq 0.\]</p>]]></text>
2544        </falsefeedback>
2545      </node>
2546    </prt>
2547    <prt>
2548      <name>unique</name>
2549      <value>1.0000000</value>
2550      <autosimplify>1</autosimplify>
2551      <feedbackvariables>
2552        <text></text>
2553      </feedbackvariables>
2554      <node>
2555        <name>0</name>
2556        <answertest>AlgEquiv</answertest>
2557        <sans>ans4</sans>
2558        <tans>true</tans>
2559        <testoptions></testoptions>
2560        <quiet>0</quiet>
2561        <truescoremode>=</truescoremode>
2562        <truescore>1.0000000</truescore>
2563        <truepenalty></truepenalty>
2564        <truenextnode>-1</truenextnode>
2565        <trueanswernote>unique-0-T </trueanswernote>
2566        <truefeedback format="html">
2567          <text></text>
2568        </truefeedback>
2569        <falsescoremode>=</falsescoremode>
2570        <falsescore>0.0000000</falsescore>
2571        <falsepenalty></falsepenalty>
2572        <falsenextnode>-1</falsenextnode>
2573        <falseanswernote>unique-0-F </falseanswernote>
2574        <falsefeedback format="html">
2575          <text></text>
2576        </falsefeedback>
2577      </node>
2578    </prt>
2579    <qtest>
2580      <testcase>1</testcase>
2581      <testinput>
2582        <name>ans1</name>
2583        <value>x^3</value>
2584      </testinput>
2585      <testinput>
2586        <name>ans2</name>
2587        <value>cos(x)</value>
2588      </testinput>
2589      <testinput>
2590        <name>ans3</name>
2591        <value>0</value>
2592      </testinput>
2593      <testinput>
2594        <name>ans4</name>
2595        <value>true</value>
2596      </testinput>
2597      <expected>
2598        <name>even</name>
2599        <expectedscore>1.0000000</expectedscore>
2600        <expectedpenalty>0.0000000</expectedpenalty>
2601        <expectedanswernote>even-0-T</expectedanswernote>
2602      </expected>
2603      <expected>
2604        <name>odd</name>
2605        <expectedscore>1.0000000</expectedscore>
2606        <expectedpenalty>0.0000000</expectedpenalty>
2607        <expectedanswernote>odd-0-T</expectedanswernote>
2608      </expected>
2609      <expected>
2610        <name>oddeven</name>
2611        <expectedscore>1.0000000</expectedscore>
2612        <expectedpenalty>0.0000000</expectedpenalty>
2613        <expectedanswernote>EVEN</expectedanswernote>
2614      </expected>
2615      <expected>
2616        <name>unique</name>
2617        <expectedscore>1.0000000</expectedscore>
2618        <expectedpenalty>0.0000000</expectedpenalty>
2619        <expectedanswernote>unique-0-T</expectedanswernote>
2620      </expected>
2621    </qtest>
2622    <qtest>
2623      <testcase>2</testcase>
2624      <testinput>
2625        <name>ans1</name>
2626        <value>x^2</value>
2627      </testinput>
2628      <testinput>
2629        <name>ans2</name>
2630        <value>x^3</value>
2631      </testinput>
2632      <testinput>
2633        <name>ans3</name>
2634        <value>x^3</value>
2635      </testinput>
2636      <testinput>
2637        <name>ans4</name>
2638        <value>false</value>
2639      </testinput>
2640      <expected>
2641        <name>even</name>
2642        <expectedscore>0.0000000</expectedscore>
2643        <expectedpenalty>0.3333333</expectedpenalty>
2644        <expectedanswernote>even-0-F</expectedanswernote>
2645      </expected>
2646      <expected>
2647        <name>odd</name>
2648        <expectedscore>0.0000000</expectedscore>
2649        <expectedpenalty>0.3333333</expectedpenalty>
2650        <expectedanswernote>odd-0-F</expectedanswernote>
2651      </expected>
2652      <expected>
2653        <name>oddeven</name>
2654        <expectedscore>0.5000000</expectedscore>
2655        <expectedpenalty>0.3333333</expectedpenalty>
2656        <expectedanswernote>oddeven-1-F</expectedanswernote>
2657      </expected>
2658      <expected>
2659        <name>unique</name>
2660        <expectedscore>0.0000000</expectedscore>
2661        <expectedpenalty>0.3333333</expectedpenalty>
2662        <expectedanswernote>unique-0-F</expectedanswernote>
2663      </expected>
2664    </qtest>
2665  </question>
2666
2667<!-- question: 23  -->
2668  <question type="stack">
2669    <name>
2670      <text>text_7_solve_quadratic</text>
2671    </name>
2672    <questiontext format="html">
2673      <text><![CDATA[<p></p><p>Solve {@first(ta)@}, by factoring and working line by line. &nbsp;Leave your answer in the form \({@v@}=\cdots \mbox{ or } {@v@}=\cdots\) in fully simplified form.</p><p>[[input:ans1]] [[validation:ans1]]</p>]]></text>
2674    </questiontext>
2675    <generalfeedback format="html">
2676      <text><![CDATA[<p>\[ {@stack_disp_arg(ta, true)@} \]</p>]]></text>
2677    </generalfeedback>
2678    <defaultgrade>1.0000000</defaultgrade>
2679    <penalty>0.1000000</penalty>
2680    <hidden>0</hidden>
2681    <questionvariables>
2682      <text>n1:2
2683n2:n1+3
2684v:x
2685p:expand((v-n1)*(v-n2))
2686simp:false
2687ta:[p=0,(v-n1)*(v-n2)=0,v-n1=0 nounor v-n2=0,v=n1 nounor v=n2]</text>
2688    </questionvariables>
2689    <specificfeedback format="html">
2690      <text>[[feedback:prt1]]</text>
2691    </specificfeedback>
2692    <questionnote>
2693      <text>{@ta@}</text>
2694    </questionnote>
2695    <questionsimplify>1</questionsimplify>
2696    <assumepositive>0</assumepositive>
2697    <assumereal>0</assumereal>
2698    <prtcorrect format="html">
2699      <text>Correct answer, well done.</text>
2700    </prtcorrect>
2701    <prtpartiallycorrect format="html">
2702      <text>Your answer is partially correct.</text>
2703    </prtpartiallycorrect>
2704    <prtincorrect format="html">
2705      <text>Incorrect answer.</text>
2706    </prtincorrect>
2707    <multiplicationsign>none</multiplicationsign>
2708    <sqrtsign>1</sqrtsign>
2709    <complexno>i</complexno>
2710    <inversetrig>cos-1</inversetrig>
2711    <matrixparens>[</matrixparens>
2712    <variantsselectionseed></variantsselectionseed>
2713    <input>
2714      <name>ans1</name>
2715      <type>equiv</type>
2716      <tans>ta</tans>
2717      <boxsize>15</boxsize>
2718      <strictsyntax>1</strictsyntax>
2719      <insertstars>5</insertstars>
2720      <syntaxhint>firstline</syntaxhint>
2721      <syntaxattribute>0</syntaxattribute>
2722      <forbidwords></forbidwords>
2723      <allowwords></allowwords>
2724      <forbidfloat>1</forbidfloat>
2725      <requirelowestterms>0</requirelowestterms>
2726      <checkanswertype>0</checkanswertype>
2727      <mustverify>1</mustverify>
2728      <showvalidation>1</showvalidation>
2729      <options>firstline</options>
2730    </input>
2731    <prt>
2732      <name>prt1</name>
2733      <value>1.0000000</value>
2734      <autosimplify>0</autosimplify>
2735      <feedbackvariables>
2736        <text>foundfac1:ev(sublist(ans1,lambda([ex], equationp(ex) and is(rhs(ex)=0))),simp);
2737foundfac2:ev(any_listp(lambda([ex], second(ATFacForm(lhs(ex),lhs(ex),x))), foundfac1),simp);</text>
2738      </feedbackvariables>
2739      <node>
2740        <name>0</name>
2741        <answertest>EquivFirst</answertest>
2742        <sans>ans1</sans>
2743        <tans>ta</tans>
2744        <testoptions>x</testoptions>
2745        <quiet>0</quiet>
2746        <truescoremode>=</truescoremode>
2747        <truescore>1.0000000</truescore>
2748        <truepenalty></truepenalty>
2749        <truenextnode>1</truenextnode>
2750        <trueanswernote>prt1-1-T</trueanswernote>
2751        <truefeedback format="html">
2752          <text></text>
2753        </truefeedback>
2754        <falsescoremode>=</falsescoremode>
2755        <falsescore>0.0000000</falsescore>
2756        <falsepenalty></falsepenalty>
2757        <falsenextnode>-1</falsenextnode>
2758        <falseanswernote>prt1-1-F</falseanswernote>
2759        <falsefeedback format="html">
2760          <text></text>
2761        </falsefeedback>
2762      </node>
2763      <node>
2764        <name>1</name>
2765        <answertest>EqualComAss</answertest>
2766        <sans>last(ans1)</sans>
2767        <tans>last(ta)</tans>
2768        <testoptions></testoptions>
2769        <quiet>1</quiet>
2770        <truescoremode>+</truescoremode>
2771        <truescore>0.0000000</truescore>
2772        <truepenalty></truepenalty>
2773        <truenextnode>2</truenextnode>
2774        <trueanswernote>prt1-2-T</trueanswernote>
2775        <truefeedback format="html">
2776          <text></text>
2777        </truefeedback>
2778        <falsescoremode>=</falsescoremode>
2779        <falsescore>0.0000000</falsescore>
2780        <falsepenalty></falsepenalty>
2781        <falsenextnode>2</falsenextnode>
2782        <falseanswernote>prt1-2-F</falseanswernote>
2783        <falsefeedback format="html">
2784          <text><![CDATA[Your answer is not in the correct form, which is \({@v@}=\cdots \mbox{ or } {@v@}=\cdots\) where numbers are fully simplified.<p><br></p>]]></text>
2785        </falsefeedback>
2786      </node>
2787      <node>
2788        <name>2</name>
2789        <answertest>AlgEquiv</answertest>
2790        <sans>foundfac2</sans>
2791        <tans>true</tans>
2792        <testoptions></testoptions>
2793        <quiet>1</quiet>
2794        <truescoremode>+</truescoremode>
2795        <truescore>0.0000000</truescore>
2796        <truepenalty></truepenalty>
2797        <truenextnode>-1</truenextnode>
2798        <trueanswernote>prt1-3-T</trueanswernote>
2799        <truefeedback format="html">
2800          <text></text>
2801        </truefeedback>
2802        <falsescoremode>=</falsescoremode>
2803        <falsescore>0.0000000</falsescore>
2804        <falsepenalty></falsepenalty>
2805        <falsenextnode>-1</falsenextnode>
2806        <falseanswernote>prt1-3-F</falseanswernote>
2807        <falsefeedback format="html">
2808          <text><![CDATA[<p>The question asked you to solve the equation by factoring the equation. &nbsp;The factored form should appear as one line in your working.</p>]]></text>
2809        </falsefeedback>
2810      </node>
2811    </prt>
2812    <qtest>
2813      <testcase>1</testcase>
2814      <testinput>
2815        <name>ans1</name>
2816        <value>ta</value>
2817      </testinput>
2818      <expected>
2819        <name>prt1</name>
2820        <expectedscore>1.0000000</expectedscore>
2821        <expectedpenalty>0.0000000</expectedpenalty>
2822        <expectedanswernote>prt1-3-T</expectedanswernote>
2823      </expected>
2824    </qtest>
2825    <qtest>
2826      <testcase>2</testcase>
2827      <testinput>
2828        <name>ans1</name>
2829        <value>[p=0, (x-n1)*(x-n1) = 0, x=n1 nounor n2]</value>
2830      </testinput>
2831      <expected>
2832        <name>prt1</name>
2833        <expectedscore></expectedscore>
2834        <expectedpenalty></expectedpenalty>
2835        <expectedanswernote>NULL</expectedanswernote>
2836      </expected>
2837    </qtest>
2838    <qtest>
2839      <testcase>3</testcase>
2840      <testinput>
2841        <name>ans1</name>
2842        <value> [p=0,x-n1 = 0 nounor x-n2 = 0,x = n1 nounor x = n2]</value>
2843      </testinput>
2844      <expected>
2845        <name>prt1</name>
2846        <expectedscore>0.0000000</expectedscore>
2847        <expectedpenalty>0.1000000</expectedpenalty>
2848        <expectedanswernote>prt1-3-F</expectedanswernote>
2849      </expected>
2850    </qtest>
2851    <qtest>
2852      <testcase>4</testcase>
2853      <testinput>
2854        <name>ans1</name>
2855        <value>[p=0,(x-(n1+n2)/2)^2-ev((n1+n2)^2/4-n1*n2,simp)=0,(x-(n1+n2)/2)^2=ev((n1+n2)^2/4-n1*n2,simp),(x-(n1+n2)/2)=+-ev(sqrt((n1+n2)^2/4-n1*n2),simp),x=ev((n1+n2)/2+sqrt((n1+n2)^2/4-n1*n2),simp) nounor x=ev((n1+n2)/2-sqrt((n1+n2)^2/4-n1*n2),simp)]  </value>
2856      </testinput>
2857      <expected>
2858        <name>prt1</name>
2859        <expectedscore>0.0000000</expectedscore>
2860        <expectedpenalty>0.1000000</expectedpenalty>
2861        <expectedanswernote>prt1-3-F</expectedanswernote>
2862      </expected>
2863    </qtest>
2864  </question>
2865
2866<!-- question: 0  -->
2867  <question type="category">
2868    <category>
2869        <text>$course$/Default for Scratch/input_samples</text>
2870
2871    </category>
2872  </question>
2873
2874<!-- question: 10  -->
2875  <question type="stack">
2876    <name>
2877      <text>Textarea test</text>
2878    </name>
2879    <questiontext format="html">
2880      <text><![CDATA[Dummy maths input:&nbsp; \({@ta@}\).<br>[[input:ans1]] [[validation:ans1]]]]></text>
2881    </questiontext>
2882    <generalfeedback format="html">
2883      <text></text>
2884    </generalfeedback>
2885    <defaultgrade>1.0000000</defaultgrade>
2886    <penalty>0.1000000</penalty>
2887    <hidden>0</hidden>
2888    <questionvariables>
2889      <text>ta:[x=1,x=2]</text>
2890    </questionvariables>
2891    <specificfeedback format="html">
2892      <text><![CDATA[[[feedback:prt1]]&lt;/p&gt;&lt;div&gt;]]></text>
2893    </specificfeedback>
2894    <questionnote>
2895      <text>vendor/bin/phpunit --group qtype_stack</text>
2896    </questionnote>
2897    <questionsimplify>1</questionsimplify>
2898    <assumepositive>0</assumepositive>
2899    <assumereal>0</assumereal>
2900    <prtcorrect format="html">
2901      <text>Correct answer, well done.</text>
2902    </prtcorrect>
2903    <prtpartiallycorrect format="html">
2904      <text>Your answer is partially correct.</text>
2905    </prtpartiallycorrect>
2906    <prtincorrect format="html">
2907      <text>Incorrect answer.</text>
2908    </prtincorrect>
2909    <multiplicationsign>dot</multiplicationsign>
2910    <sqrtsign>1</sqrtsign>
2911    <complexno>i</complexno>
2912    <inversetrig>cos-1</inversetrig>
2913    <matrixparens>[</matrixparens>
2914    <variantsselectionseed></variantsselectionseed>
2915    <input>
2916      <name>ans1</name>
2917      <type>textarea</type>
2918      <tans>ta</tans>
2919      <boxsize>15</boxsize>
2920      <strictsyntax>1</strictsyntax>
2921      <insertstars>1</insertstars>
2922      <syntaxhint></syntaxhint>
2923      <syntaxattribute>0</syntaxattribute>
2924      <forbidwords></forbidwords>
2925      <allowwords></allowwords>
2926      <forbidfloat>1</forbidfloat>
2927      <requirelowestterms>0</requirelowestterms>
2928      <checkanswertype>0</checkanswertype>
2929      <mustverify>1</mustverify>
2930      <showvalidation>1</showvalidation>
2931      <options></options>
2932    </input>
2933    <prt>
2934      <name>prt1</name>
2935      <value>1.0000000</value>
2936      <autosimplify>1</autosimplify>
2937      <feedbackvariables>
2938        <text></text>
2939      </feedbackvariables>
2940      <node>
2941        <name>0</name>
2942        <answertest>AlgEquiv</answertest>
2943        <sans>ans1</sans>
2944        <tans>ta</tans>
2945        <testoptions></testoptions>
2946        <quiet>0</quiet>
2947        <truescoremode>=</truescoremode>
2948        <truescore>1.0000000</truescore>
2949        <truepenalty></truepenalty>
2950        <truenextnode>-1</truenextnode>
2951        <trueanswernote>prt1-1-T</trueanswernote>
2952        <truefeedback format="html">
2953          <text></text>
2954        </truefeedback>
2955        <falsescoremode>=</falsescoremode>
2956        <falsescore>0.0000000</falsescore>
2957        <falsepenalty></falsepenalty>
2958        <falsenextnode>-1</falsenextnode>
2959        <falseanswernote>prt1-1-F</falseanswernote>
2960        <falsefeedback format="html">
2961          <text></text>
2962        </falsefeedback>
2963      </node>
2964    </prt>
2965  </question>
2966
2967<!-- question: 11  -->
2968  <question type="stack">
2969    <name>
2970      <text>True/false</text>
2971    </name>
2972    <questiontext format="html">
2973      <text><![CDATA[<p>All generalizations are false: [[input:ans1]] [[validation:ans1]]</p><p><br></p>]]></text>
2974    </questiontext>
2975    <generalfeedback format="html">
2976      <text></text>
2977    </generalfeedback>
2978    <defaultgrade>1.0000000</defaultgrade>
2979    <penalty>0.1000000</penalty>
2980    <hidden>0</hidden>
2981    <questionvariables>
2982      <text></text>
2983    </questionvariables>
2984    <specificfeedback format="html">
2985      <text>[[feedback:prt1]]</text>
2986    </specificfeedback>
2987    <questionnote>
2988      <text></text>
2989    </questionnote>
2990    <questionsimplify>1</questionsimplify>
2991    <assumepositive>0</assumepositive>
2992    <assumereal>0</assumereal>
2993    <prtcorrect format="html">
2994      <text>Correct answer, well done.</text>
2995    </prtcorrect>
2996    <prtpartiallycorrect format="html">
2997      <text>Your answer is partially correct.</text>
2998    </prtpartiallycorrect>
2999    <prtincorrect format="html">
3000      <text>Incorrect answer.</text>
3001    </prtincorrect>
3002    <multiplicationsign>dot</multiplicationsign>
3003    <sqrtsign>1</sqrtsign>
3004    <complexno>i</complexno>
3005    <inversetrig>cos-1</inversetrig>
3006    <matrixparens>[</matrixparens>
3007    <variantsselectionseed></variantsselectionseed>
3008    <input>
3009      <name>ans1</name>
3010      <type>boolean</type>
3011      <tans>false</tans>
3012      <boxsize>15</boxsize>
3013      <strictsyntax>1</strictsyntax>
3014      <insertstars>0</insertstars>
3015      <syntaxhint></syntaxhint>
3016      <syntaxattribute>0</syntaxattribute>
3017      <forbidwords></forbidwords>
3018      <allowwords></allowwords>
3019      <forbidfloat>1</forbidfloat>
3020      <requirelowestterms>0</requirelowestterms>
3021      <checkanswertype>0</checkanswertype>
3022      <mustverify>1</mustverify>
3023      <showvalidation>1</showvalidation>
3024      <options></options>
3025    </input>
3026    <prt>
3027      <name>prt1</name>
3028      <value>1.0000000</value>
3029      <autosimplify>1</autosimplify>
3030      <feedbackvariables>
3031        <text></text>
3032      </feedbackvariables>
3033      <node>
3034        <name>0</name>
3035        <answertest>AlgEquiv</answertest>
3036        <sans>ans1</sans>
3037        <tans>false</tans>
3038        <testoptions></testoptions>
3039        <quiet>0</quiet>
3040        <truescoremode>=</truescoremode>
3041        <truescore>0.5000000</truescore>
3042        <truepenalty></truepenalty>
3043        <truenextnode>-1</truenextnode>
3044        <trueanswernote>prt1-1-T</trueanswernote>
3045        <truefeedback format="html">
3046          <text><![CDATA[<p>Who knows!</p>]]></text>
3047        </truefeedback>
3048        <falsescoremode>=</falsescoremode>
3049        <falsescore>0.5000000</falsescore>
3050        <falsepenalty></falsepenalty>
3051        <falsenextnode>-1</falsenextnode>
3052        <falseanswernote>prt1-1-F</falseanswernote>
3053        <falsefeedback format="html">
3054          <text><![CDATA[<p>Who knows!<br></p>]]></text>
3055        </falsefeedback>
3056      </node>
3057    </prt>
3058  </question>
3059
3060<!-- question: 12  -->
3061  <question type="stack">
3062    <name>
3063      <text>Units</text>
3064    </name>
3065    <questiontext format="html">
3066      <text><![CDATA[<p>What is gravity?</p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
3067    </questiontext>
3068    <generalfeedback format="html">
3069      <text></text>
3070    </generalfeedback>
3071    <defaultgrade>1.0000000</defaultgrade>
3072    <penalty>0.1000000</penalty>
3073    <hidden>0</hidden>
3074    <questionvariables>
3075      <text>ta:9.81*m*s^-2</text>
3076    </questionvariables>
3077    <specificfeedback format="html">
3078      <text>[[feedback:prt1]]</text>
3079    </specificfeedback>
3080    <questionnote>
3081      <text></text>
3082    </questionnote>
3083    <questionsimplify>1</questionsimplify>
3084    <assumepositive>0</assumepositive>
3085    <assumereal>0</assumereal>
3086    <prtcorrect format="html">
3087      <text>Correct answer, well done.</text>
3088    </prtcorrect>
3089    <prtpartiallycorrect format="html">
3090      <text>Your answer is partially correct.</text>
3091    </prtpartiallycorrect>
3092    <prtincorrect format="html">
3093      <text>Incorrect answer.</text>
3094    </prtincorrect>
3095    <multiplicationsign>dot</multiplicationsign>
3096    <sqrtsign>1</sqrtsign>
3097    <complexno>i</complexno>
3098    <inversetrig>cos-1</inversetrig>
3099    <matrixparens>[</matrixparens>
3100    <variantsselectionseed></variantsselectionseed>
3101    <input>
3102      <name>ans1</name>
3103      <type>units</type>
3104      <tans>ta</tans>
3105      <boxsize>15</boxsize>
3106      <strictsyntax>1</strictsyntax>
3107      <insertstars>0</insertstars>
3108      <syntaxhint></syntaxhint>
3109      <syntaxattribute>0</syntaxattribute>
3110      <forbidwords></forbidwords>
3111      <allowwords></allowwords>
3112      <forbidfloat>1</forbidfloat>
3113      <requirelowestterms>0</requirelowestterms>
3114      <checkanswertype>0</checkanswertype>
3115      <mustverify>1</mustverify>
3116      <showvalidation>1</showvalidation>
3117      <options></options>
3118    </input>
3119    <prt>
3120      <name>prt1</name>
3121      <value>1.0000000</value>
3122      <autosimplify>1</autosimplify>
3123      <feedbackvariables>
3124        <text></text>
3125      </feedbackvariables>
3126      <node>
3127        <name>0</name>
3128        <answertest>Units</answertest>
3129        <sans>ans1</sans>
3130        <tans>ta</tans>
3131        <testoptions>3</testoptions>
3132        <quiet>0</quiet>
3133        <truescoremode>=</truescoremode>
3134        <truescore>1.0000000</truescore>
3135        <truepenalty></truepenalty>
3136        <truenextnode>-1</truenextnode>
3137        <trueanswernote>prt1-1-T</trueanswernote>
3138        <truefeedback format="html">
3139          <text></text>
3140        </truefeedback>
3141        <falsescoremode>=</falsescoremode>
3142        <falsescore>0.0000000</falsescore>
3143        <falsepenalty></falsepenalty>
3144        <falsenextnode>-1</falsenextnode>
3145        <falseanswernote>prt1-1-F</falseanswernote>
3146        <falsefeedback format="html">
3147          <text></text>
3148        </falsefeedback>
3149      </node>
3150    </prt>
3151  </question>
3152
3153</quiz>