Skip to content

Commit

Permalink
Update STACK sample materials.
Browse files Browse the repository at this point in the history
  • Loading branch information
sangwinc committed Nov 19, 2024
1 parent 837c9bd commit dd74c5b
Show file tree
Hide file tree
Showing 186 changed files with 2,407 additions and 2,630 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ta:factor(n);</text>
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>{@n@} = {@ta@} </text>
<text>{@n@} = {@ta@}</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
<questionvariables>
<text>a:2^(rand(1)+1)*3^(rand(2))*5^(rand(2));
b:2^(rand(1)+1)*3^(rand(2))*5^(rand(2))*7;
ta:ratsimp(rootscontract(radcan(sqrt(a)*sqrt(b))));
</text>
ta:ratsimp(rootscontract(radcan(sqrt(a)*sqrt(b))));</text>
</questionvariables>
<specificfeedback format="html">
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ta:gcd(a,b);</text>
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>(Hcf) of \({@a@}\) and \({@b@}\) is \({@ta@}\). </text>
<text>(Hcf) of \({@a@}\) and \({@b@}\) is \({@ta@}\).</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ta:lcm(a,b);</text>
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>(LCM) of \({@a@}\) and \({@b@}\) is \({@ta@}\). </text>
<text>(LCM) of \({@a@}\) and \({@b@}\) is \({@ta@}\).</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@ d:b;
c:d+1;
ta:(a/b)+(c/d);
lcm:lcm(b,d);
simp:false;
</text>
simp:false;</text>
</questionvariables>
<specificfeedback format="html">
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>\[{@a/b@}+{@c/d@} = {@ta@}.\] </text>
<text>\[{@a/b@}+{@c/d@} = {@ta@}.\]</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ d:b;
c:d+rand(3)+1;
ta:(a/b)-(c/d);
lcm:lcm(b,d);
simp:false;
</text>
simp:false;</text>
</questionvariables>
<specificfeedback format="html">
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ d:b+1+2*rand(3);
c:d+rand(3)+1;
ta:(a/b)+(c/d);
lcm:lcm(b,d);
simp:false;
</text>
simp:false;</text>
</questionvariables>
<specificfeedback format="html">
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ d:rand([3,7,11]);
c:rand([2,5,13])^rand([0,1]);
ta:(a/b)-(c/d);
lcm:lcm(b,d);
simp:false;
</text>
simp:false;</text>
</questionvariables>
<specificfeedback format="html">
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ d:7;
c:rand([1,2,3,4,5,6,8,9]);
ta:(a/b)+(c/d);
lcm:lcm(b,d);
simp:false;
</text>
simp:false;</text>
</questionvariables>
<specificfeedback format="html">
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>\[{@a/b@}+{@c/d@} = {@ta@}.\] </text>
<text>\[{@a/b@}+{@c/d@} = {@ta@}.\]</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ d:3;
c:rand([1,2,4,5,7,8,10]);
ta:(a/b)-(c/d);
lcm:lcm(b,d);
simp:false;
</text>
simp:false;</text>
</questionvariables>
<specificfeedback format="html">
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ d:f*b;
c:d-1;
ta:(a/b)+(c/d);
lcm:lcm(b,d);
simp:false;
</text>
simp:false;</text>
</questionvariables>
<specificfeedback format="html">
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ d:f*b;
c:1;
ta:(a/b)-(c/d);
lcm:lcm(b,d);
simp:false
</text>
simp:false</text>
</questionvariables>
<specificfeedback format="html">
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ d:f*rand([2,4]);
c:d+1;
ta:(a/b)+(c/d);
lcm:lcm(b,d);
simp:false;
</text>
simp:false;</text>
</questionvariables>
<specificfeedback format="html">
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ f:e+rand(4)+1;
g:rand(5)+1;
h:g+rand(4)+1;
ta:((a/b)+(c/d))/((e/f)+(g/h));
simp:false;
</text>
simp:false;</text>
</questionvariables>
<specificfeedback format="html">
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ t:c/d;
ta1:(s^2+2*t^2);
ta2:(3-s*t);
ta:ta1/ta2;
simp:false;
</text>
simp:false;</text>
</questionvariables>
<specificfeedback format="html">
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ fta:ev(factor(ta),simp);</text>
</expected>
</qtest>
<qtest>
<testcase>3</testcase>
<testcase>2</testcase>
<description/>
<testinput>
<name>ans</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
Give an equivalent expression without brackets.
<br>
= [[input:ans]]
[[validation:ans]]
]]></text>
[[validation:ans]]]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[<html>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ta:ev(1/a,simp);</text>
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>\[ \frac{@v@}{@ev(a*v,simp)@} = {@ta@}. \] </text>
<text>\[ \frac{@v@}{@ev(a*v,simp)@} = {@ta@}. \]</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>\[ \frac{@b-a@}{@a-b@} = {@ta@}. \] </text>
<text>\[ \frac{@b-a@}{@a-b@} = {@ta@}. \]</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ta:ev((a*f*(v-c))/(b*f*(v-c)^3),simp);</text>
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>\[ \frac{@ev(a*f*(v-c),simp)@}{@ev(b*f*(v-c)^3,simp)@} = {@ta@}. \] </text>
<text>\[ \frac{@ev(a*f*(v-c),simp)@}{@ev(b*f*(v-c)^3,simp)@} = {@ta@}. \]</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ta:(k2-k1)/cf1;</text>
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>\[ {@cf1*v+k1@} = {@k2@} \Rightarrow {@v@} = {@ta@}. \] </text>
<text>\[ {@cf1*v+k1@} = {@k2@} \Rightarrow {@v@} = {@ta@}. \]</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ta:35/4;</text>
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>\[ {@(3-v)/5+3@} = {@(2*v+1)/10@} \Rightarrow {@v@} = {@ta@}. \] </text>
<text>\[ {@(3-v)/5+3@} = {@(2*v+1)/10@} \Rightarrow {@v@} = {@ta@}. \]</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<generalfeedback format="html">
<text>Simply remove all common factors from the expression. In this example:
\[ {@v^p1+v^p2@} = {@ta@}. \]
The important thing is to remember the 1 after factoring. </text>
The important thing is to remember the 1 after factoring.</text>
</generalfeedback>
<defaultgrade>1</defaultgrade>
<penalty>0.1</penalty>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<generalfeedback format="html">
<text>Simply remove all common factors from the expression. In this example:
\[ {@v^p1-v^p2@} = {@ta@}. \]
The important thing is to remember the 1 after factoring. </text>
The important thing is to remember the 1 after factoring.</text>
</generalfeedback>
<defaultgrade>1</defaultgrade>
<penalty>0.1</penalty>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Now you have an equation for \(x\).</text>
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>\[ {@y@} = {@sqrt(x^2+4)@} \Rightarrow x = {@ta@} . \] </text>
<text>\[ {@y@} = {@sqrt(x^2+4)@} \Rightarrow x = {@ta@} . \]</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Now you have an equation for \(x\).</text>
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>\[{@a@} = {@sqrt(b+x)@} \Rightarrow x = {@ta@}.\] </text>
<text>\[{@a@} = {@sqrt(b+x)@} \Rightarrow x = {@ta@}.\]</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<quiz>
<question type="stack">
<name>
<text>AlgMap-13.1 </text>
<text>AlgMap-13.1</text>
</name>
<questiontext format="html">
<text><![CDATA[Factorise the following:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The equation is of the form 'square, twice product, square':
Where:
\[ a^2 = x. \]
\[ b^2 = 4y. \]
Therefore \((a+b)^2 = (x+4y)^2. \) </text>
Therefore \((a+b)^2 = (x+4y)^2. \)</text>
</generalfeedback>
<defaultgrade>1</defaultgrade>
<penalty>0.1</penalty>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<text>The trick to factorising this expression is to carry out a substitution, \(u=xy\). Then we obtain the quadratic:
\[ u^2-2u+1, \]
which is easily solved by normal methods:
\[ u^2-2u+1 = \left(u-1\right)^2 = \left(xy-1\right)^2. \] </text>
\[ u^2-2u+1 = \left(u-1\right)^2 = \left(xy-1\right)^2. \]</text>
</generalfeedback>
<defaultgrade>1</defaultgrade>
<penalty>0.1</penalty>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ which is now clearly a difference of two squares. So factorising gives:
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>\[ {@(a+b)^2-(a+c)^2@} = {@ta@}. \] </text>
<text>\[ {@(a+b)^2-(a+c)^2@} = {@ta@}. \]</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Then factor out \(x+y\) to give:
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>\[ {@(a*x+a*y-b*x-b*y)@} = {@ta@}. \] </text>
<text>\[ {@(a*x+a*y-b*x-b*y)@} = {@ta@}. \]</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ta:factor((cf1*v+a)*(cf2*v+b));</text>
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>\[ {@expand((cf1*v+a)*(cf2*v+b))@} = {@ta@}. \] </text>
<text>\[ {@expand((cf1*v+a)*(cf2*v+b))@} = {@ta@}. \]</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ta:factor((cf1*v+a)*(cf2*v+b));</text>
<text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
</specificfeedback>
<questionnote format="moodle_auto_format">
<text>\[ {@expand((cf1*v+a)*(cf2*v+b))@} = {@ta@}. \] </text>
<text>\[ {@expand((cf1*v+a)*(cf2*v+b))@} = {@ta@}. \]</text>
</questionnote>
<questiondescription format="moodle_auto_format">
<text/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ ta:factor((cf1*v+a)*(cf2*v+b));</text>
</expected>
</qtest>
<qtest>
<testcase>3</testcase>
<testcase>2</testcase>
<description/>
<testinput>
<name>ans</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
<text>By factorisng the numerator and the denominator we obtain:
\[\frac{@factor(n)@}{@factor(d)@}.\]
Then we can cancel the \({@x@}\)'s and constants from the numerator
and denominator to obtain: \[ {@ta@}. \]
</text>
and denominator to obtain: \[ {@ta@}. \]</text>
</generalfeedback>
<defaultgrade>1</defaultgrade>
<penalty>0.1</penalty>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ Write this quadratic in factored form: [[input:ansf]]\(=0\). [[validation:ansf]]
<br>
Solve this equation, giving your answer as a set \(\left(\mbox{e.g. }\left\{x_1 , x_2\right\}\right)\): <br>
<br>
\({@v@} \in \) [[input:ans]] [[validation:ans]][[feedback:prt1]]
]]></text>
\({@v@} \in \) [[input:ans]] [[validation:ans]][[feedback:prt1]]]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[There are multiple ways of solving quadratic equations but if you can spot how to factorise the quadratic then this method is by far the fastest and simplest. In this example we can factorise the quadratic to give:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ Solve the quadratic equation \({@tq@}=0\).
Give your answer as a set
\(\left(\mbox e.g.\ \left\{x_1 , x_2\right\} \right)\): <br>
[[input:ans2]] [[validation:ans2]]
[[feedback:prt1]]
]]></text>
[[feedback:prt1]]]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[When solving a more complicated quadratic a better option, than factorising, is completing the square (The method by which we remove the {@v@} term). The general rule is:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
[[validation:ans]]
<br>
(i.e. the form \(\left({@v@}+a\right)^2+b\)).
]]></text>
(i.e. the form \(\left({@v@}+a\right)^2+b\)).]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[Our aim is to 'destroy' the \(x\) term. We do this by considering the general quadratic:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
<questiontext format="html">
<text>Differentiate {@p@} with respect to {@v@}.

[[input:ans1]] [[validation:ans1]]
</text>
[[input:ans1]] [[validation:ans1]]</text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[In order to solve this problem we will have to use the product rule <hint>calc_product_rule</hint> as follows:
Expand All @@ -17,7 +16,7 @@
\frac{d}{d{@v@}}[{@p@}] &\displaystyle =&\displaystyle \left[\frac{d}{d{@v@}}({@pp1@})\right]\cdot {@pp2@} + ({@pp1@})\cdot \left[\frac{d}{d{@v@}}[{@pp2@}]\right] \\
&\displaystyle =&\displaystyle ({@diff(pp1,v)@})\cdot {@pp2@} + ({@pp1@})\cdot {@diff(pp2,v)@} \\
&\displaystyle =&\displaystyle {@diff(p,v)@}
\end{array}\] ]]></text>
\end{array}\]]]></text>
</generalfeedback>
<defaultgrade>1</defaultgrade>
<penalty>0.1</penalty>
Expand Down
Loading

0 comments on commit dd74c5b

Please sign in to comment.