Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

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