1 <?xml version="1.0" encoding="UTF-8"?>
4 <question type="category">
6 <text>$course$/Default for Scratch/input_samples</text>
12 <question type="stack">
14 <text>Algebraic input</text>
16 <questiontext format="html">
17 <text><![CDATA[<p>Type in {@ta@}.<br></p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
19 <generalfeedback format="html">
22 <defaultgrade>1.0000000</defaultgrade>
23 <penalty>0.1000000</penalty>
28 <specificfeedback format="html">
29 <text>[[feedback:prt1]]</text>
34 <questionsimplify>1</questionsimplify>
35 <assumepositive>0</assumepositive>
36 <assumereal>0</assumereal>
37 <prtcorrect format="html">
38 <text>Correct answer, well done.</text>
40 <prtpartiallycorrect format="html">
41 <text>Your answer is partially correct.</text>
42 </prtpartiallycorrect>
43 <prtincorrect format="html">
44 <text>Incorrect answer.</text>
46 <multiplicationsign>dot</multiplicationsign>
47 <sqrtsign>1</sqrtsign>
48 <complexno>i</complexno>
49 <inversetrig>cos-1</inversetrig>
50 <matrixparens>[</matrixparens>
51 <variantsselectionseed></variantsselectionseed>
54 <type>algebraic</type>
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>
72 <value>1.0000000</value>
73 <autosimplify>1</autosimplify>
79 <answertest>AlgEquiv</answertest>
82 <testoptions></testoptions>
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">
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">
105 <question type="stack">
107 <text>Algebraic input (answer box sizes test)</text>
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>
112 <generalfeedback format="html">
115 <defaultgrade>1.0000000</defaultgrade>
116 <penalty>0.1000000</penalty>
121 <specificfeedback format="html">
122 <text>[[feedback:prt1]]</text>
127 <questionsimplify>1</questionsimplify>
128 <assumepositive>0</assumepositive>
129 <assumereal>0</assumereal>
130 <prtcorrect format="html">
131 <text>Correct answer, well done.</text>
133 <prtpartiallycorrect format="html">
134 <text>Your answer is partially correct.</text>
135 </prtpartiallycorrect>
136 <prtincorrect format="html">
137 <text>Incorrect answer.</text>
139 <multiplicationsign>dot</multiplicationsign>
140 <sqrtsign>1</sqrtsign>
141 <complexno>i</complexno>
142 <inversetrig>cos-1</inversetrig>
143 <matrixparens>[</matrixparens>
144 <variantsselectionseed></variantsselectionseed>
147 <type>algebraic</type>
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>
165 <type>algebraic</type>
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>
183 <type>algebraic</type>
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>
201 <type>algebraic</type>
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>
219 <type>algebraic</type>
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>
237 <type>algebraic</type>
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>
255 <type>algebraic</type>
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>
273 <type>algebraic</type>
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>
291 <type>algebraic</type>
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>
309 <value>1.0000000</value>
310 <autosimplify>1</autosimplify>
316 <answertest>AlgEquiv</answertest>
319 <testoptions></testoptions>
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>
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>
342 <question type="stack">
344 <text>Checkbox</text>
346 <questiontext format="html">
347 <text><![CDATA[<p>Differentiate {@p@} with respect to \(x\).</p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
349 <generalfeedback format="html">
352 <defaultgrade>1.0000000</defaultgrade>
353 <penalty>0.1000000</penalty>
356 <text><![CDATA[/* Create a list of potential answers. */
358 ta:[[diff(p,x),true],[p,false],[int(p,x),false],[cos(2*x)+c,false]];
359 /* The actual correct answer. */
361 /* Add in a "None of these" to the end of the list. The Maxima value is the atom null. */
362 tao:[null, false, "None of these"];
363 ta:append(ta,[tao]);]]></text>
365 <specificfeedback format="html">
366 <text>[[feedback:prt1]]</text>
371 <questionsimplify>1</questionsimplify>
372 <assumepositive>0</assumepositive>
373 <assumereal>0</assumereal>
374 <prtcorrect format="html">
375 <text>Correct answer, well done.</text>
377 <prtpartiallycorrect format="html">
378 <text>Your answer is partially correct.</text>
379 </prtpartiallycorrect>
380 <prtincorrect format="html">
381 <text>Incorrect answer.</text>
383 <multiplicationsign>dot</multiplicationsign>
384 <sqrtsign>1</sqrtsign>
385 <complexno>i</complexno>
386 <inversetrig>cos-1</inversetrig>
387 <matrixparens>[</matrixparens>
388 <variantsselectionseed></variantsselectionseed>
391 <type>checkbox</type>
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>
409 <value>1.0000000</value>
410 <autosimplify>1</autosimplify>
416 <answertest>Diff</answertest>
417 <sans>first(ans1)</sans>
418 <tans>diff(p,x)</tans>
419 <testoptions>x</testoptions>
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">
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">
442 <question type="stack">
444 <text>Dropdown (shuffle)</text>
446 <questiontext format="html">
447 <text><![CDATA[<p>Differentiate {@p@} with respect to \(x\).</p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
449 <generalfeedback format="html">
452 <defaultgrade>1.0000000</defaultgrade>
453 <penalty>0.1000000</penalty>
456 <text><![CDATA[/* Create a list of potential answers. */
458 ta:[[diff(p,x),true],[p,false],[int(p,x),false],[cos(2*x)+c,false]];
459 /* The actual correct answer. */
461 /* Randomly shuffle the list "ta". */
462 ta:random_permutation(ta);
463 /* Add in a "None of these" to the end of the list. The Maxima value is the atom null. */
464 tao:[null, false, "None of these"];
465 ta:append(ta,[tao]);]]></text>
467 <specificfeedback format="html">
468 <text>[[feedback:prt1]]</text>
473 <questionsimplify>1</questionsimplify>
474 <assumepositive>0</assumepositive>
475 <assumereal>0</assumereal>
476 <prtcorrect format="html">
477 <text>Correct answer, well done.</text>
479 <prtpartiallycorrect format="html">
480 <text>Your answer is partially correct.</text>
481 </prtpartiallycorrect>
482 <prtincorrect format="html">
483 <text>Incorrect answer.</text>
485 <multiplicationsign>dot</multiplicationsign>
486 <sqrtsign>1</sqrtsign>
487 <complexno>i</complexno>
488 <inversetrig>cos-1</inversetrig>
489 <matrixparens>[</matrixparens>
490 <variantsselectionseed></variantsselectionseed>
493 <type>dropdown</type>
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>
511 <value>1.0000000</value>
512 <autosimplify>1</autosimplify>
518 <answertest>Diff</answertest>
519 <sans>first(ans1)</sans>
520 <tans>diff(p,x)</tans>
521 <testoptions>x</testoptions>
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">
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">
544 <question type="stack">
546 <text>Equiv input test</text>
548 <questiontext format="html">
549 <text><![CDATA[<p>Solve {@p@}.<br></p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
551 <generalfeedback format="html">
552 <text><![CDATA[<p>sangwinc<br></p>]]></text>
554 <defaultgrade>1.0000000</defaultgrade>
555 <penalty>0.1000000</penalty>
560 ta:[p,x=(4-7)/3,x=-1]</text>
562 <specificfeedback format="html">
563 <text>[[feedback:prt1]]</text>
568 <questionsimplify>1</questionsimplify>
569 <assumepositive>0</assumepositive>
570 <assumereal>0</assumereal>
571 <prtcorrect format="html">
572 <text>Correct answer, well done.</text>
574 <prtpartiallycorrect format="html">
575 <text>Your answer is partially correct.</text>
576 </prtpartiallycorrect>
577 <prtincorrect format="html">
578 <text>Incorrect answer.</text>
580 <multiplicationsign>dot</multiplicationsign>
581 <sqrtsign>1</sqrtsign>
582 <complexno>i</complexno>
583 <inversetrig>cos-1</inversetrig>
584 <matrixparens>[</matrixparens>
585 <variantsselectionseed></variantsselectionseed>
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>
606 <value>1.0000000</value>
607 <autosimplify>1</autosimplify>
613 <answertest>AlgEquiv</answertest>
614 <sans>last(ans1)</sans>
615 <tans>last(ta)</tans>
616 <testoptions></testoptions>
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">
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">
639 <question type="stack">
643 <questiontext format="html">
644 <text><![CDATA[<p>Type in {@M@}<br></p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
646 <generalfeedback format="html">
649 <defaultgrade>1.0000000</defaultgrade>
650 <penalty>0.1000000</penalty>
653 <text>M:matrix([1,2],[3,4])</text>
655 <specificfeedback format="html">
656 <text>[[feedback:prt1]]</text>
661 <questionsimplify>1</questionsimplify>
662 <assumepositive>0</assumepositive>
663 <assumereal>0</assumereal>
664 <prtcorrect format="html">
665 <text>Correct answer, well done.</text>
667 <prtpartiallycorrect format="html">
668 <text>Your answer is partially correct.</text>
669 </prtpartiallycorrect>
670 <prtincorrect format="html">
671 <text>Incorrect answer.</text>
673 <multiplicationsign>dot</multiplicationsign>
674 <sqrtsign>1</sqrtsign>
675 <complexno>i</complexno>
676 <inversetrig>cos-1</inversetrig>
677 <matrixparens>[</matrixparens>
678 <variantsselectionseed></variantsselectionseed>
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>
699 <value>1.0000000</value>
700 <autosimplify>1</autosimplify>
706 <answertest>AlgEquiv</answertest>
709 <testoptions></testoptions>
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">
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">
732 <question type="stack">
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>
739 <generalfeedback format="html">
742 <defaultgrade>1.0000000</defaultgrade>
743 <penalty>0.1000000</penalty>
748 <specificfeedback format="html">
749 <text>[[feedback:prt1]]</text>
754 <questionsimplify>1</questionsimplify>
755 <assumepositive>0</assumepositive>
756 <assumereal>0</assumereal>
757 <prtcorrect format="html">
758 <text>Correct answer, well done.</text>
760 <prtpartiallycorrect format="html">
761 <text>Your answer is partially correct.</text>
762 </prtpartiallycorrect>
763 <prtincorrect format="html">
764 <text>Incorrect answer.</text>
766 <multiplicationsign>dot</multiplicationsign>
767 <sqrtsign>1</sqrtsign>
768 <complexno>i</complexno>
769 <inversetrig>cos-1</inversetrig>
770 <matrixparens>[</matrixparens>
771 <variantsselectionseed></variantsselectionseed>
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>
792 <value>1.0000000</value>
793 <autosimplify>1</autosimplify>
799 <answertest>AlgEquiv</answertest>
802 <testoptions></testoptions>
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">
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">
825 <question type="stack">
829 <questiontext format="html">
830 <text><![CDATA[<p>Differentiate {@p@} with respect to \(x\).</p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
832 <generalfeedback format="html">
835 <defaultgrade>1.0000000</defaultgrade>
836 <penalty>0.1000000</penalty>
839 <text><![CDATA[/* Create a list of potential answers. */
841 ta:[[diff(p,x),true],[p,false],[int(p,x),false],[cos(2*x)+c,false]];
842 /* The actual correct answer. */
844 /* Add in a "None of these" to the end of the list. The Maxima value is the atom null. */
845 tao:[null, false, "None of these"];
846 ta:append(ta,[tao]);]]></text>
848 <specificfeedback format="html">
849 <text>[[feedback:prt1]]</text>
854 <questionsimplify>1</questionsimplify>
855 <assumepositive>0</assumepositive>
856 <assumereal>0</assumereal>
857 <prtcorrect format="html">
858 <text>Correct answer, well done.</text>
860 <prtpartiallycorrect format="html">
861 <text>Your answer is partially correct.</text>
862 </prtpartiallycorrect>
863 <prtincorrect format="html">
864 <text>Incorrect answer.</text>
866 <multiplicationsign>dot</multiplicationsign>
867 <sqrtsign>1</sqrtsign>
868 <complexno>i</complexno>
869 <inversetrig>cos-1</inversetrig>
870 <matrixparens>[</matrixparens>
871 <variantsselectionseed></variantsselectionseed>
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>
892 <value>1.0000000</value>
893 <autosimplify>1</autosimplify>
899 <answertest>Diff</answertest>
900 <sans>first(ans1)</sans>
901 <tans>diff(p,x)</tans>
902 <testoptions>x</testoptions>
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">
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">
925 <question type="stack">
927 <text>Single char</text>
929 <questiontext format="html">
930 <text><![CDATA[<p>Type in \(x\)<br></p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
932 <generalfeedback format="html">
935 <defaultgrade>1.0000000</defaultgrade>
936 <penalty>0.1000000</penalty>
941 <specificfeedback format="html">
942 <text>[[feedback:prt1]]</text>
947 <questionsimplify>1</questionsimplify>
948 <assumepositive>0</assumepositive>
949 <assumereal>0</assumereal>
950 <prtcorrect format="html">
951 <text>Correct answer, well done.</text>
953 <prtpartiallycorrect format="html">
954 <text>Your answer is partially correct.</text>
955 </prtpartiallycorrect>
956 <prtincorrect format="html">
957 <text>Incorrect answer.</text>
959 <multiplicationsign>dot</multiplicationsign>
960 <sqrtsign>1</sqrtsign>
961 <complexno>i</complexno>
962 <inversetrig>cos-1</inversetrig>
963 <matrixparens>[</matrixparens>
964 <variantsselectionseed></variantsselectionseed>
967 <type>singlechar</type>
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>
985 <value>1.0000000</value>
986 <autosimplify>1</autosimplify>
992 <answertest>AlgEquiv</answertest>
995 <testoptions></testoptions>
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">
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">
1017 <!-- question: 0 -->
1018 <question type="category">
1020 <text>$course$/Default for Scratch</text>
1025 <!-- question: 13 -->
1026 <question type="stack">
1028 <text>test_1_integration</text>
1030 <questiontext format="html">
1031 <text><![CDATA[<p>Find \[ \int {@p@} d{@v@}\] [[input:ans1]] [[validation:ans1]]</p>]]></text>
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>
1036 <defaultgrade>1.0000000</defaultgrade>
1037 <penalty>0.1000000</penalty>
1044 ta:(v-a)^(n+1)/(n+1);</text>
1045 </questionvariables>
1046 <specificfeedback format="html">
1047 <text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
1050 <text>\(\int {@p@} d{@v@} = {@ta@}\)</text>
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>
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>
1064 <multiplicationsign>dot</multiplicationsign>
1065 <sqrtsign>1</sqrtsign>
1066 <complexno>i</complexno>
1067 <inversetrig>cos-1</inversetrig>
1068 <matrixparens>[</matrixparens>
1069 <variantsselectionseed></variantsselectionseed>
1072 <type>algebraic</type>
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>
1090 <value>1.0000000</value>
1091 <autosimplify>1</autosimplify>
1094 </feedbackvariables>
1097 <answertest>Int</answertest>
1100 <testoptions>v</testoptions>
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">
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">
1120 <deployedseed>1</deployedseed>
1121 <deployedseed>1001758021</deployedseed>
1123 <testcase>1</testcase>
1130 <expectedscore>1.0000000</expectedscore>
1131 <expectedpenalty>0.0000000</expectedpenalty>
1132 <expectedanswernote>1-0-T</expectedanswernote>
1136 <testcase>2</testcase>
1143 <expectedscore>0.0000000</expectedscore>
1144 <expectedpenalty>0.1000000</expectedpenalty>
1145 <expectedanswernote>1-0-F</expectedanswernote>
1149 <testcase>3</testcase>
1152 <value>n*(v-a)^(n-1)</value>
1156 <expectedscore>0.0000000</expectedscore>
1157 <expectedpenalty>0.1000000</expectedpenalty>
1158 <expectedanswernote>1-0-F</expectedanswernote>
1162 <testcase>4</testcase>
1165 <value>(v-a)^(n+1)</value>
1169 <expectedscore>0.0000000</expectedscore>
1170 <expectedpenalty>0.1000000</expectedpenalty>
1171 <expectedanswernote>1-0-F</expectedanswernote>
1176 <!-- question: 14 -->
1177 <question type="stack">
1179 <text>test_2_rectangle</text>
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>
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>0\) and we discard the negative root. Hence the length of the shorter side is \(x={@-rn@}\)cm.</p>]]></text>
1190 <defaultgrade>1.0000000</defaultgrade>
1191 <penalty>0.1000000</penalty>
1194 <text>rn:-1*(rand(4)+2);
1200 tas1:setify(map(rhs,solve(ta1,x)));
1201 tas2:setify(map(rhs,solve(ta2,x)));</text>
1202 </questionvariables>
1203 <specificfeedback format="html">
1207 <text>{@ta1@}, {@tas1@}.</text>
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>
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>
1221 <multiplicationsign>dot</multiplicationsign>
1222 <sqrtsign>1</sqrtsign>
1223 <complexno>i</complexno>
1224 <inversetrig>cos-1</inversetrig>
1225 <matrixparens>[</matrixparens>
1226 <variantsselectionseed></variantsselectionseed>
1229 <type>algebraic</type>
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>
1247 <type>algebraic</type>
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>
1265 <type>algebraic</type>
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>
1283 <value>1.0000000</value>
1284 <autosimplify>1</autosimplify>
1287 </feedbackvariables>
1290 <answertest>SubstEquiv</answertest>
1293 <testoptions></testoptions>
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">
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">
1314 <answertest>SubstEquiv</answertest>
1317 <testoptions></testoptions>
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">
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">
1339 <value>1.0000000</value>
1340 <autosimplify>1</autosimplify>
1343 </feedbackvariables>
1346 <answertest>AlgEquiv</answertest>
1349 <testoptions></testoptions>
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">
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">
1371 <value>1.0000000</value>
1372 <autosimplify>1</autosimplify>
1374 <text>v1:first(listofvars(ans1));
1375 ftm:setify(map(rhs,solve(ans1,v1)));</text>
1376 </feedbackvariables>
1379 <answertest>SubstEquiv</answertest>
1382 <testoptions></testoptions>
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">
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">
1403 <answertest>SubstEquiv</answertest>
1406 <testoptions></testoptions>
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">
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">
1427 <answertest>AlgEquiv</answertest>
1430 <testoptions></testoptions>
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>
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">
1451 <answertest>AlgEquiv</answertest>
1454 <testoptions></testoptions>
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">
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">
1475 <answertest>AlgEquiv</answertest>
1478 <testoptions></testoptions>
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">
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">
1498 <deployedseed>92</deployedseed>
1499 <deployedseed>1621764605</deployedseed>
1500 <deployedseed>79313047</deployedseed>
1501 <deployedseed>1740562616</deployedseed>
1503 <testcase>1</testcase>
1510 <value>ev({-rp,-rn},simp)</value>
1514 <value>ev(-rn,simp)</value>
1518 <expectedscore>1.0000000</expectedscore>
1519 <expectedpenalty>0.0000000</expectedpenalty>
1520 <expectedanswernote>eq-0-T</expectedanswernote>
1524 <expectedscore>1.0000000</expectedscore>
1525 <expectedpenalty>0.0000000</expectedpenalty>
1526 <expectedanswernote>short-0-T</expectedanswernote>
1530 <expectedscore>1.0000000</expectedscore>
1531 <expectedpenalty>0.0000000</expectedpenalty>
1532 <expectedanswernote>sol-3-T</expectedanswernote>
1536 <testcase>2</testcase>
1543 <value>ev({rp,rn},simp)</value>
1547 <value>ev(-rn,simp)</value>
1551 <expectedscore>1.0000000</expectedscore>
1552 <expectedpenalty>0.0000000</expectedpenalty>
1553 <expectedanswernote>eq-1-T</expectedanswernote>
1557 <expectedscore>1.0000000</expectedscore>
1558 <expectedpenalty>0.0000000</expectedpenalty>
1559 <expectedanswernote>short-0-T</expectedanswernote>
1563 <expectedscore>1.0000000</expectedscore>
1564 <expectedpenalty>0.0000000</expectedpenalty>
1565 <expectedanswernote>sol-5-T</expectedanswernote>
1569 <testcase>3</testcase>
1572 <value>x+sg=-ar</value>
1576 <value>{-ar-sg}</value>
1584 <expectedscore>0.0000000</expectedscore>
1585 <expectedpenalty>0.1000000</expectedpenalty>
1586 <expectedanswernote>eq-1-F</expectedanswernote>
1590 <expectedscore></expectedscore>
1591 <expectedpenalty></expectedpenalty>
1592 <expectedanswernote>NULL</expectedanswernote>
1596 <expectedscore>1.0000000</expectedscore>
1597 <expectedpenalty>0.0000000</expectedpenalty>
1598 <expectedanswernote>sol-2-T</expectedanswernote>
1603 <!-- question: 15 -->
1604 <question type="stack">
1606 <text>test_3_matrix</text>
1608 <questiontext format="html">
1609 <text><![CDATA[<p>Calculate \[ {@A@}.{@B@}\]</p>
1610 <p>Â [[input:ans1]]Â [[validation:ans1]]</p>]]></text>
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>
1616 <defaultgrade>1.0000000</defaultgrade>
1617 <penalty>0.1000000</penalty>
1620 <text><![CDATA[A:ev(rand(matrix([5,5],[5,5]))+matrix([2,2],[2,2]),simp);
1621 B:ev(rand(matrix([5,5],[5,5]))+matrix([2,2],[2,2]),simp);
1625 C:zeromatrix (first(matrix_size(A)), second(matrix_size(A)));
1626 S: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)]));
1629 </questionvariables>
1630 <specificfeedback format="html">
1631 <text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
1634 <text>\({@A@}.{@B@}={@TA@}\)</text>
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>
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>
1648 <multiplicationsign>dot</multiplicationsign>
1649 <sqrtsign>1</sqrtsign>
1650 <complexno>i</complexno>
1651 <inversetrig>cos-1</inversetrig>
1652 <matrixparens>[</matrixparens>
1653 <variantsselectionseed></variantsselectionseed>
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>
1674 <value>1.0000000</value>
1675 <autosimplify>1</autosimplify>
1678 </feedbackvariables>
1681 <answertest>AlgEquiv</answertest>
1684 <testoptions></testoptions>
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">
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">
1705 <answertest>AlgEquiv</answertest>
1708 <testoptions></testoptions>
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>
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">
1729 <answertest>AlgEquiv</answertest>
1732 <testoptions></testoptions>
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>
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">
1752 <deployedseed>86</deployedseed>
1753 <deployedseed>219862533</deployedseed>
1754 <deployedseed>1167893775</deployedseed>
1756 <testcase>1</testcase>
1763 <expectedscore>1.0000000</expectedscore>
1764 <expectedpenalty>0.0000000</expectedpenalty>
1765 <expectedanswernote>1-0-T </expectedanswernote>
1769 <testcase>2</testcase>
1776 <expectedscore>0.0000000</expectedscore>
1777 <expectedpenalty>0.1000000</expectedpenalty>
1778 <expectedanswernote>1-1-T</expectedanswernote>
1782 <testcase>4</testcase>
1789 <expectedscore></expectedscore>
1790 <expectedpenalty></expectedpenalty>
1791 <expectedanswernote>NULL</expectedanswernote>
1795 <testcase>5</testcase>
1802 <expectedscore>0.0000000</expectedscore>
1803 <expectedpenalty>0.1000000</expectedpenalty>
1804 <expectedanswernote>1-3-F</expectedanswernote>
1809 <!-- question: 18 -->
1810 <question type="stack">
1812 <text>test_5_cubic_spline</text>
1814 <questiontext format="html">
1815 <text><![CDATA[<p>Consider the real function</p>
1816 <p>\[ f(x) :=\left\{ \begin{array}{ll} {@f0@} & \mbox{for } x\leq {@x0@}, \\ p(x) & \mbox{for } {@x0@} < x < {@x1@}, \\ {@f1@} & \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>
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>
1835 <defaultgrade>1.0000000</defaultgrade>
1836 <penalty>0.0000000</penalty>
1839 <text><![CDATA[x0 : -1;
1843 /* Note, we should really use inf instead of 1000 here, but Maxima gives up plotting with the options used by STACK */
1844 pg:if x<x0 then f0 else if x<x1 then 1000 else f1;
1845 CS: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])
1846 CT:transpose(matrix([ev(f0,x=x0),subst(x=x0,diff(f0,x)),ev(f1,x=x1),subst(x=x1,diff(f1,x))]));
1847 CV:transpose(matrix([a0,a1,a2,a3]));
1849 ta : matrix([1,x,x^2,x^3]).CS2;]]></text>
1850 </questionvariables>
1851 <specificfeedback format="html">
1852 <text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
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>
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>
1869 <multiplicationsign>dot</multiplicationsign>
1870 <sqrtsign>1</sqrtsign>
1871 <complexno>i</complexno>
1872 <inversetrig>cos-1</inversetrig>
1873 <matrixparens>[</matrixparens>
1874 <variantsselectionseed></variantsselectionseed>
1877 <type>algebraic</type>
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>
1895 <value>1.0000000</value>
1896 <autosimplify>1</autosimplify>
1898 <text><![CDATA[anspt : if (x>x0 and x<x1) then ans1 else 1000;]]></text>
1899 </feedbackvariables>
1902 <answertest>AlgEquiv</answertest>
1903 <sans>subst(x=x0,ans1)</sans>
1904 <tans>subst(x=x0,f0)</tans>
1905 <testoptions></testoptions>
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">
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>
1926 <answertest>AlgEquiv</answertest>
1927 <sans>subst(x=x1,ans1)</sans>
1928 <tans>subst(x=x1,f1)</tans>
1929 <testoptions></testoptions>
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">
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>
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>
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">
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>
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>
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">
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>
1998 <answertest>AlgEquiv</answertest>
1999 <sans>degree(ans1,x)</sans>
2001 <testoptions></testoptions>
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">
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>
2022 <answertest>AlgEquiv</answertest>
2025 <testoptions></testoptions>
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">
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>
2047 <testcase>1</testcase>
2054 <expectedscore>1.0000000</expectedscore>
2055 <expectedpenalty>0.0000000</expectedpenalty>
2056 <expectedanswernote>prt1-6-T</expectedanswernote>
2060 <testcase>2</testcase>
2067 <expectedscore>0.0000000</expectedscore>
2068 <expectedpenalty>0.0000000</expectedpenalty>
2069 <expectedanswernote>prt1-6-F</expectedanswernote>
2073 <testcase>3</testcase>
2076 <value>(2*%pi/9+2/27)*x^3-x^2/9+(-2*%pi/3-4/9)*x-4*%pi/9+20/27</value>
2080 <expectedscore>0.7500000</expectedscore>
2081 <expectedpenalty>0.0000000</expectedpenalty>
2082 <expectedanswernote>prt1-6-F</expectedanswernote>
2087 <!-- question: 16 -->
2088 <question type="stack">
2090 <text>text_4_complex-De Moivre's</text>
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>
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>
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>
2105 <defaultgrade>1.0000000</defaultgrade>
2106 <penalty>0.1000000</penalty>
2109 <text>a : ev(2+rand(15),simp);
2110 b : ev((-1)^rand(2)*((1+rand(10)))/(2+rand(15)),simp);
2111 n : ev(3+rand(20),simp);
2112 q : a*%e^(b*%i*%pi);
2113 p : ev(mod(b*n,2),simp);</text>
2114 </questionvariables>
2115 <specificfeedback format="html">
2119 <text>{@q^n = a^n*(cos(p*%i*%pi)+%i*sin(p*%i*%pi))@}</text>
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>
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>
2133 <multiplicationsign>dot</multiplicationsign>
2134 <sqrtsign>1</sqrtsign>
2135 <complexno>i</complexno>
2136 <inversetrig>cos-1</inversetrig>
2137 <matrixparens>[</matrixparens>
2138 <variantsselectionseed></variantsselectionseed>
2141 <type>algebraic</type>
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>
2159 <type>algebraic</type>
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>
2177 <value>1.0000000</value>
2178 <autosimplify>1</autosimplify>
2181 </feedbackvariables>
2184 <answertest>AlgEquiv</answertest>
2187 <testoptions></testoptions>
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">
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">
2209 <value>1.0000000</value>
2210 <autosimplify>1</autosimplify>
2213 </feedbackvariables>
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>
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">
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">
2240 <testcase>1</testcase>
2251 <expectedscore>1.0000000</expectedscore>
2252 <expectedpenalty>0.0000000</expectedpenalty>
2253 <expectedanswernote>prt1-1-T</expectedanswernote>
2257 <expectedscore></expectedscore>
2258 <expectedpenalty></expectedpenalty>
2259 <expectedanswernote>NULL</expectedanswernote>
2263 <testcase>2</testcase>
2270 <value>b*n*%pi</value>
2274 <expectedscore></expectedscore>
2275 <expectedpenalty></expectedpenalty>
2276 <expectedanswernote>NULL</expectedanswernote>
2280 <expectedscore>1.0000000</expectedscore>
2281 <expectedpenalty>0.0000000</expectedpenalty>
2282 <expectedanswernote>prt2-1-T</expectedanswernote>
2286 <testcase>3</testcase>
2293 <value>p*%pi</value>
2297 <expectedscore></expectedscore>
2298 <expectedpenalty></expectedpenalty>
2299 <expectedanswernote>NULL</expectedanswernote>
2303 <expectedscore>1.0000000</expectedscore>
2304 <expectedpenalty>0.0000000</expectedpenalty>
2305 <expectedanswernote>prt2-1-T</expectedanswernote>
2310 <!-- question: 19 -->
2311 <question type="stack">
2313 <text>text_6_odd_even</text>
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>
2321 <generalfeedback format="html">
2324 <defaultgrade>1.0000000</defaultgrade>
2325 <penalty>0.3333333</penalty>
2329 </questionvariables>
2330 <specificfeedback format="html">
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>
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>
2348 <multiplicationsign>dot</multiplicationsign>
2349 <sqrtsign>1</sqrtsign>
2350 <complexno>i</complexno>
2351 <inversetrig>cos-1</inversetrig>
2352 <matrixparens>[</matrixparens>
2353 <variantsselectionseed></variantsselectionseed>
2356 <type>algebraic</type>
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>
2374 <type>algebraic</type>
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>
2392 <type>algebraic</type>
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>
2410 <type>boolean</type>
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>
2428 <value>1.0000000</value>
2429 <autosimplify>1</autosimplify>
2431 <text>sa:ans2-subst(x=-x,ans2);</text>
2432 </feedbackvariables>
2435 <answertest>AlgEquiv</answertest>
2438 <testoptions></testoptions>
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">
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>
2460 <value>1.0000000</value>
2461 <autosimplify>1</autosimplify>
2463 <text>sa:subst(x=-x,ans1)+ans1;</text>
2464 </feedbackvariables>
2467 <answertest>AlgEquiv</answertest>
2470 <testoptions></testoptions>
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">
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>
2491 <name>oddeven</name>
2492 <value>2.0000000</value>
2493 <autosimplify>1</autosimplify>
2495 <text>sa1:subst(x=-x,ans3)+ans3;
2496 sa2:ans3-subst(x=-x,ans3);</text>
2497 </feedbackvariables>
2500 <answertest>AlgEquiv</answertest>
2503 <testoptions></testoptions>
2505 <truescoremode>=</truescoremode>
2506 <truescore>0.5000000</truescore>
2507 <truepenalty></truepenalty>
2508 <truenextnode>1</truenextnode>
2509 <trueanswernote>ODD</trueanswernote>
2510 <truefeedback format="html">
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>
2524 <answertest>AlgEquiv</answertest>
2527 <testoptions></testoptions>
2529 <truescoremode>+</truescoremode>
2530 <truescore>0.5000000</truescore>
2531 <truepenalty></truepenalty>
2532 <truenextnode>-1</truenextnode>
2533 <trueanswernote>EVEN</trueanswernote>
2534 <truefeedback format="html">
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>
2549 <value>1.0000000</value>
2550 <autosimplify>1</autosimplify>
2553 </feedbackvariables>
2556 <answertest>AlgEquiv</answertest>
2559 <testoptions></testoptions>
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">
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">
2580 <testcase>1</testcase>
2587 <value>cos(x)</value>
2599 <expectedscore>1.0000000</expectedscore>
2600 <expectedpenalty>0.0000000</expectedpenalty>
2601 <expectedanswernote>even-0-T</expectedanswernote>
2605 <expectedscore>1.0000000</expectedscore>
2606 <expectedpenalty>0.0000000</expectedpenalty>
2607 <expectedanswernote>odd-0-T</expectedanswernote>
2610 <name>oddeven</name>
2611 <expectedscore>1.0000000</expectedscore>
2612 <expectedpenalty>0.0000000</expectedpenalty>
2613 <expectedanswernote>EVEN</expectedanswernote>
2617 <expectedscore>1.0000000</expectedscore>
2618 <expectedpenalty>0.0000000</expectedpenalty>
2619 <expectedanswernote>unique-0-T</expectedanswernote>
2623 <testcase>2</testcase>
2638 <value>false</value>
2642 <expectedscore>0.0000000</expectedscore>
2643 <expectedpenalty>0.3333333</expectedpenalty>
2644 <expectedanswernote>even-0-F</expectedanswernote>
2648 <expectedscore>0.0000000</expectedscore>
2649 <expectedpenalty>0.3333333</expectedpenalty>
2650 <expectedanswernote>odd-0-F</expectedanswernote>
2653 <name>oddeven</name>
2654 <expectedscore>0.5000000</expectedscore>
2655 <expectedpenalty>0.3333333</expectedpenalty>
2656 <expectedanswernote>oddeven-1-F</expectedanswernote>
2660 <expectedscore>0.0000000</expectedscore>
2661 <expectedpenalty>0.3333333</expectedpenalty>
2662 <expectedanswernote>unique-0-F</expectedanswernote>
2667 <!-- question: 23 -->
2668 <question type="stack">
2670 <text>text_7_solve_quadratic</text>
2672 <questiontext format="html">
2673 <text><![CDATA[<p></p><p>Solve {@first(ta)@}, by factoring and working line by line. Leave your answer in the form \({@v@}=\cdots \mbox{ or } {@v@}=\cdots\) in fully simplified form.</p><p>[[input:ans1]] [[validation:ans1]]</p>]]></text>
2675 <generalfeedback format="html">
2676 <text><![CDATA[<p>\[ {@stack_disp_arg(ta, true)@} \]</p>]]></text>
2678 <defaultgrade>1.0000000</defaultgrade>
2679 <penalty>0.1000000</penalty>
2685 p:expand((v-n1)*(v-n2))
2687 ta:[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>
2695 <questionsimplify>1</questionsimplify>
2696 <assumepositive>0</assumepositive>
2697 <assumereal>0</assumereal>
2698 <prtcorrect format="html">
2699 <text>Correct answer, well done.</text>
2701 <prtpartiallycorrect format="html">
2702 <text>Your answer is partially correct.</text>
2703 </prtpartiallycorrect>
2704 <prtincorrect format="html">
2705 <text>Incorrect answer.</text>
2707 <multiplicationsign>none</multiplicationsign>
2708 <sqrtsign>1</sqrtsign>
2709 <complexno>i</complexno>
2710 <inversetrig>cos-1</inversetrig>
2711 <matrixparens>[</matrixparens>
2712 <variantsselectionseed></variantsselectionseed>
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>
2733 <value>1.0000000</value>
2734 <autosimplify>0</autosimplify>
2736 <text>foundfac1:ev(sublist(ans1,lambda([ex], equationp(ex) and is(rhs(ex)=0))),simp);
2737 foundfac2:ev(any_listp(lambda([ex], second(ATFacForm(lhs(ex),lhs(ex),x))), foundfac1),simp);</text>
2738 </feedbackvariables>
2741 <answertest>EquivFirst</answertest>
2744 <testoptions>x</testoptions>
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">
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">
2765 <answertest>EqualComAss</answertest>
2766 <sans>last(ans1)</sans>
2767 <tans>last(ta)</tans>
2768 <testoptions></testoptions>
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">
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>
2789 <answertest>AlgEquiv</answertest>
2790 <sans>foundfac2</sans>
2792 <testoptions></testoptions>
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">
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. The factored form should appear as one line in your working.</p>]]></text>
2813 <testcase>1</testcase>
2820 <expectedscore>1.0000000</expectedscore>
2821 <expectedpenalty>0.0000000</expectedpenalty>
2822 <expectedanswernote>prt1-3-T</expectedanswernote>
2826 <testcase>2</testcase>
2829 <value>[p=0, (x-n1)*(x-n1) = 0, x=n1 nounor n2]</value>
2833 <expectedscore></expectedscore>
2834 <expectedpenalty></expectedpenalty>
2835 <expectedanswernote>NULL</expectedanswernote>
2839 <testcase>3</testcase>
2842 <value> [p=0,x-n1 = 0 nounor x-n2 = 0,x = n1 nounor x = n2]</value>
2846 <expectedscore>0.0000000</expectedscore>
2847 <expectedpenalty>0.1000000</expectedpenalty>
2848 <expectedanswernote>prt1-3-F</expectedanswernote>
2852 <testcase>4</testcase>
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>
2859 <expectedscore>0.0000000</expectedscore>
2860 <expectedpenalty>0.1000000</expectedpenalty>
2861 <expectedanswernote>prt1-3-F</expectedanswernote>
2866 <!-- question: 0 -->
2867 <question type="category">
2869 <text>$course$/Default for Scratch/input_samples</text>
2874 <!-- question: 10 -->
2875 <question type="stack">
2877 <text>Textarea test</text>
2879 <questiontext format="html">
2880 <text><![CDATA[Dummy maths input: \({@ta@}\).<br>[[input:ans1]] [[validation:ans1]]]]></text>
2882 <generalfeedback format="html">
2885 <defaultgrade>1.0000000</defaultgrade>
2886 <penalty>0.1000000</penalty>
2889 <text>ta:[x=1,x=2]</text>
2890 </questionvariables>
2891 <specificfeedback format="html">
2892 <text><![CDATA[[[feedback:prt1]]</p><div>]]></text>
2895 <text>vendor/bin/phpunit --group qtype_stack</text>
2897 <questionsimplify>1</questionsimplify>
2898 <assumepositive>0</assumepositive>
2899 <assumereal>0</assumereal>
2900 <prtcorrect format="html">
2901 <text>Correct answer, well done.</text>
2903 <prtpartiallycorrect format="html">
2904 <text>Your answer is partially correct.</text>
2905 </prtpartiallycorrect>
2906 <prtincorrect format="html">
2907 <text>Incorrect answer.</text>
2909 <multiplicationsign>dot</multiplicationsign>
2910 <sqrtsign>1</sqrtsign>
2911 <complexno>i</complexno>
2912 <inversetrig>cos-1</inversetrig>
2913 <matrixparens>[</matrixparens>
2914 <variantsselectionseed></variantsselectionseed>
2917 <type>textarea</type>
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>
2935 <value>1.0000000</value>
2936 <autosimplify>1</autosimplify>
2939 </feedbackvariables>
2942 <answertest>AlgEquiv</answertest>
2945 <testoptions></testoptions>
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">
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">
2967 <!-- question: 11 -->
2968 <question type="stack">
2970 <text>True/false</text>
2972 <questiontext format="html">
2973 <text><![CDATA[<p>All generalizations are false: [[input:ans1]] [[validation:ans1]]</p><p><br></p>]]></text>
2975 <generalfeedback format="html">
2978 <defaultgrade>1.0000000</defaultgrade>
2979 <penalty>0.1000000</penalty>
2983 </questionvariables>
2984 <specificfeedback format="html">
2985 <text>[[feedback:prt1]]</text>
2990 <questionsimplify>1</questionsimplify>
2991 <assumepositive>0</assumepositive>
2992 <assumereal>0</assumereal>
2993 <prtcorrect format="html">
2994 <text>Correct answer, well done.</text>
2996 <prtpartiallycorrect format="html">
2997 <text>Your answer is partially correct.</text>
2998 </prtpartiallycorrect>
2999 <prtincorrect format="html">
3000 <text>Incorrect answer.</text>
3002 <multiplicationsign>dot</multiplicationsign>
3003 <sqrtsign>1</sqrtsign>
3004 <complexno>i</complexno>
3005 <inversetrig>cos-1</inversetrig>
3006 <matrixparens>[</matrixparens>
3007 <variantsselectionseed></variantsselectionseed>
3010 <type>boolean</type>
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>
3028 <value>1.0000000</value>
3029 <autosimplify>1</autosimplify>
3032 </feedbackvariables>
3035 <answertest>AlgEquiv</answertest>
3038 <testoptions></testoptions>
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>
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>
3060 <!-- question: 12 -->
3061 <question type="stack">
3065 <questiontext format="html">
3066 <text><![CDATA[<p>What is gravity?</p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
3068 <generalfeedback format="html">
3071 <defaultgrade>1.0000000</defaultgrade>
3072 <penalty>0.1000000</penalty>
3075 <text>ta:9.81*m*s^-2</text>
3076 </questionvariables>
3077 <specificfeedback format="html">
3078 <text>[[feedback:prt1]]</text>
3083 <questionsimplify>1</questionsimplify>
3084 <assumepositive>0</assumepositive>
3085 <assumereal>0</assumereal>
3086 <prtcorrect format="html">
3087 <text>Correct answer, well done.</text>
3089 <prtpartiallycorrect format="html">
3090 <text>Your answer is partially correct.</text>
3091 </prtpartiallycorrect>
3092 <prtincorrect format="html">
3093 <text>Incorrect answer.</text>
3095 <multiplicationsign>dot</multiplicationsign>
3096 <sqrtsign>1</sqrtsign>
3097 <complexno>i</complexno>
3098 <inversetrig>cos-1</inversetrig>
3099 <matrixparens>[</matrixparens>
3100 <variantsselectionseed></variantsselectionseed>
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>
3121 <value>1.0000000</value>
3122 <autosimplify>1</autosimplify>
3125 </feedbackvariables>
3128 <answertest>Units</answertest>
3131 <testoptions>3</testoptions>
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">
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">