diff --git a/doc/en/Authoring/Answer_Tests/Results/AlgEquiv.md b/doc/en/Authoring/Answer_Tests/Results/AlgEquiv.md index bcb888bf81560806488451b5293a5e636e9e6d5e..908be6522f8d0ae4ba5d2df047e8af0ab8420af2 100644 --- a/doc/en/Authoring/Answer_Tests/Results/AlgEquiv.md +++ b/doc/en/Authoring/Answer_Tests/Results/AlgEquiv.md @@ -196,6 +196,15 @@ This page exposes the results of running answer tests on STACK test cases. This <td class="cell c5">0</td> <td class="cell c6">ATAlgEquiv_WrongCase.</td> </tr> +<tr class="pass"> + <td class="cell c0">AlgEquiv</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>1/(R-r)</pre></td> + <td class="cell c3"><pre>1</pre></td> + <td class="cell c4"></td> + <td class="cell c5">0</td> + <td class="cell c6"></td> +</tr> <tr class="pass"> <td class="cell c0">AlgEquiv</td> <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> @@ -1652,7 +1661,7 @@ i,i),i,8)</pre></td> </tr> <tr class="pass"> <td class="cell c0"><td colspan="2"></td></td> - <td class="cell c1"><td colspan="4">The following entries are incorrect, although they may appear in a simplified form from that which you actually entered. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left \{5-x > 0\,{\text{ and }}\, x-1 > 0 \right \}\]</span></span></td></td> + <td class="cell c1"><td colspan="4">The following entries are incorrect, although they may appear in a simplified form from that which you actually entered. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left \{5-x > 0\,{\text{ and }}\, x-1 > 0 \right \}\]</span></span></td></td> </tr> <tr class="notes"> <td class="cell c0"><td colspan="6">Equivalence for elements of sets is different from expressions: see docs.</td></td> @@ -1707,6 +1716,47 @@ lgebraic:true)),simp)</pre></td> <td class="cell c5">1</td> <td class="cell c6"></td> </tr> +<tr class="pass"> + <td class="cell c0">AlgEquiv</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>(a^b)^c</pre></td> + <td class="cell c3"><pre>a^(b*c)</pre></td> + <td class="cell c4"></td> + <td class="cell c5">0</td> + <td class="cell c6"></td> +</tr> +<tr class="pass"> + <td class="cell c0">AlgEquiv</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>ev(radcan((a^b)^c),radexpand:a +ll,simp)</pre></td> + <td class="cell c3"><pre>a^(b*c)</pre></td> + <td class="cell c4"></td> + <td class="cell c5">1</td> + <td class="cell c6"></td> +</tr> +<tr class="pass"> + <td class="cell c0">AlgEquiv</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>(n+1)^((n+2)/(n+1))/(n+2)</pre></td> + <td class="cell c3"><pre>1/(n+2)*((n+1)^(1/(n+1)))^(n+2 +)</pre></td> + <td class="cell c4"></td> + <td class="cell c5">0</td> + <td class="cell c6"></td> +</tr> +<tr class="pass"> + <td class="cell c0">AlgEquiv</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>ev(radcan((n+1)^((n+2)/(n+1))/ +(n+2)),radexpand:all,simp)</pre></td> + <td class="cell c3"><pre>ev(radcan(1/(n+2)*((n+1)^(1/(n ++1)))^(n+2)),radexpand:all,sim +p)</pre></td> + <td class="cell c4"></td> + <td class="cell c5">1</td> + <td class="cell c6"></td> +</tr> <tr class="pass"> <td class="cell c0">AlgEquiv</td> <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> @@ -2491,6 +2541,15 @@ k^2+4*k-12)}</pre></td> <td class="cell c5">1</td> <td class="cell c6">ATEquation_empty</td> </tr> +<tr class="pass"> + <td class="cell c0">AlgEquiv</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>2=3</pre></td> + <td class="cell c3"><pre>2=4</pre></td> + <td class="cell c4"></td> + <td class="cell c5">1</td> + <td class="cell c6">ATEquation_empty</td> +</tr> <tr class="pass"> <td class="cell c0">AlgEquiv</td> <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> @@ -2799,8 +2858,8 @@ k^2+4*k-12)}</pre></td> <tr class="pass"> <td class="cell c0">AlgEquiv</td> <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> - <td class="cell c2"><pre>stack_single_variable_solver(mi -nf <= x)</pre></td> + <td class="cell c2"><pre>stack_single_variable_solver(m +inf <= x)</pre></td> <td class="cell c3"><pre>co(minf,inf)</pre></td> <td class="cell c4"></td> <td class="cell c5">1</td> @@ -2809,8 +2868,8 @@ nf <= x)</pre></td> <tr class="pass"> <td class="cell c0">AlgEquiv</td> <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> - <td class="cell c2"><pre>stack_single_variable_solver(-i -nf <= x)</pre></td> + <td class="cell c2"><pre>stack_single_variable_solver(- +inf <= x)</pre></td> <td class="cell c3"><pre>co(minf,inf)</pre></td> <td class="cell c4"></td> <td class="cell c5">1</td> @@ -2819,8 +2878,8 @@ nf <= x)</pre></td> <tr class="pass"> <td class="cell c0">AlgEquiv</td> <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> - <td class="cell c2"><pre>stack_single_variable_solver(x -<= inf)</pre></td> + <td class="cell c2"><pre>stack_single_variable_solver(x + <= inf)</pre></td> <td class="cell c3"><pre>oc(minf,inf)</pre></td> <td class="cell c4"></td> <td class="cell c5">1</td> @@ -2829,8 +2888,8 @@ nf <= x)</pre></td> <tr class="pass"> <td class="cell c0">AlgEquiv</td> <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> - <td class="cell c2"><pre>stack_single_variable_solver(mi -nf <= x)</pre></td> + <td class="cell c2"><pre>stack_single_variable_solver(m +inf <= x)</pre></td> <td class="cell c3"><pre>oo(minf,inf)</pre></td> <td class="cell c4"></td> <td class="cell c5">0</td> @@ -3974,6 +4033,24 @@ x-(2/3)*(sqrt(2/3))*x^2+(4/9)* <td class="cell c5">1</td> <td class="cell c6"></td> </tr> +<tr class="pass"> + <td class="cell c0">AlgEquiv</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>binomial(58,[9,15,20,14])</pre></td> + <td class="cell c3"><pre>binomial(58,[15,9,20,14])</pre></td> + <td class="cell c4"></td> + <td class="cell c5">1</td> + <td class="cell c6"></td> +</tr> +<tr class="pass"> + <td class="cell c0">AlgEquiv</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>binomial(x,[a,b,c])</pre></td> + <td class="cell c3"><pre>binomial(x,[b,c,a])</pre></td> + <td class="cell c4"></td> + <td class="cell c5">1</td> + <td class="cell c6"></td> +</tr> <tr class="notes"> <td class="cell c0"><td colspan="6">Unevaluated derviatives</td></td> </tr> diff --git a/doc/en/Authoring/Answer_Tests/Results/CasEqual.md b/doc/en/Authoring/Answer_Tests/Results/CasEqual.md index 5b9baddfa07eb0457eca089aa8f2390fea95be15..27d73cf69ad1a3ab57ee4aa1d0070403bb5ad527 100644 --- a/doc/en/Authoring/Answer_Tests/Results/CasEqual.md +++ b/doc/en/Authoring/Answer_Tests/Results/CasEqual.md @@ -424,6 +424,46 @@ i/6))</pre></td> <td class="cell c5">1</td> <td class="cell c6">ATCASEqual_true.</td> </tr> +<tr class="pass"> + <td class="cell c0">CasEqual</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>complex_exponentialp(3*exp(-%i +*%pi/6))</pre></td> + <td class="cell c3"><pre>true</pre></td> + <td class="cell c4"></td> + <td class="cell c5">1</td> + <td class="cell c6">ATCASEqual_true.</td> +</tr> +<tr class="pass"> + <td class="cell c0">CasEqual</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>complex_exponentialp(-3*exp(%i +*%pi/6))</pre></td> + <td class="cell c3"><pre>true</pre></td> + <td class="cell c4"></td> + <td class="cell c5">1</td> + <td class="cell c6">ATCASEqual_true.</td> +</tr> +<tr class="pass"> + <td class="cell c0">CasEqual</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>complex_exponentialp(-(3*exp(% +i*%pi/6)))</pre></td> + <td class="cell c3"><pre>true</pre></td> + <td class="cell c4"></td> + <td class="cell c5">1</td> + <td class="cell c6">ATCASEqual_true.</td> +</tr> +<tr class="pass"> + <td class="cell c0">CasEqual</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>complex_exponentialp(-(r*exp(i +*atan(bb/aa))))</pre></td> + <td class="cell c3"><pre>true</pre></td> + <td class="cell c4"></td> + <td class="cell c5">0</td> + <td class="cell c6">ATCASEqual_false.</td> +</tr> <tr class="pass"> <td class="cell c0">CasEqual</td> <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> diff --git a/doc/en/Authoring/Answer_Tests/Results/EqualComAss.md b/doc/en/Authoring/Answer_Tests/Results/EqualComAss.md index 08308c83d8aeb0ecdc5ec3c804214f6d0f6c3ced..4454213560a3ae8dff1489260aa686633fee1275 100644 --- a/doc/en/Authoring/Answer_Tests/Results/EqualComAss.md +++ b/doc/en/Authoring/Answer_Tests/Results/EqualComAss.md @@ -156,6 +156,15 @@ This page exposes the results of running answer tests on STACK test cases. This <td class="cell c5">0</td> <td class="cell c6">ATEqualComAss (AlgEquiv-false)ATAlgEquiv_WrongCase.</td> </tr> +<tr class="pass"> + <td class="cell c0">EqualComAss</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>1/(R-r)</pre></td> + <td class="cell c3"><pre>1</pre></td> + <td class="cell c4"></td> + <td class="cell c5">0</td> + <td class="cell c6">ATEqualComAss (AlgEquiv-false).</td> +</tr> <tr class="pass"> <td class="cell c0">EqualComAss</td> <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> diff --git a/doc/en/Authoring/Answer_Tests/Results/Equiv.md b/doc/en/Authoring/Answer_Tests/Results/Equiv.md index 7c37f8adb60b2d409c0865062e7e91ace1f3bb32..ca99b10cd0dd0d90f34fb44ffcdab094fdd04786 100644 --- a/doc/en/Authoring/Answer_Tests/Results/Equiv.md +++ b/doc/en/Authoring/Answer_Tests/Results/Equiv.md @@ -311,6 +311,34 @@ This page exposes the results of running answer tests on STACK test cases. This <td class="cell c0"><td colspan="2"></td></td> <td class="cell c1"><td colspan="4">\[\begin{array}{lll} &1=2& \cr \color{green}{\Leftrightarrow}&\left[ \right] & \cr \end{array}\]</td></td> </tr> +<tr class="pass"> + <td class="cell c0">Equiv</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>[3=0,2=sqrt(-5),2=0,2=sqrt(5), +2=0,2=sqrt(-5),3=0]</pre></td> + <td class="cell c3"><pre>[]</pre></td> + <td class="cell c4"></td> + <td class="cell c5">1</td> + <td class="cell c6">(EMPTYCHAR, EQUIVCHAR, EQUIVCHAR, EQUIVCHAR, EQUIVCHAR, EQUIVCHAR, EQUIVCHAR)</td> +</tr> +<tr class="pass"> + <td class="cell c0"><td colspan="2"></td></td> + <td class="cell c1"><td colspan="4">\[\begin{array}{lll} &3=0& \cr \color{green}{\Leftrightarrow}&2=\sqrt{-5}& \cr \color{green}{\Leftrightarrow}&2=0& \cr \color{green}{\Leftrightarrow}&2=\sqrt{5}& \cr \color{green}{\Leftrightarrow}&2=0& \cr \color{green}{\Leftrightarrow}&2=\sqrt{-5}& \cr \color{green}{\Leftrightarrow}&3=0& \cr \end{array}\]</td></td> +</tr> +<tr class="pass"> + <td class="cell c0">Equiv</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>[3=0,2=sqrt(-5),2=0,2=sqrt(5), +2=0,2=sqrt(-5),3=0]</pre></td> + <td class="cell c3"><pre>[]</pre></td> + <td class="cell c4"><pre>[assumereal]</pre></td> + <td class="cell c5">1</td> + <td class="cell c6">(ASSUMEREALVARS, EQUIVCHAR, EQUIVCHAR, EQUIVCHAR, EQUIVCHAR, EQUIVCHAR, EQUIVCHAR)</td> +</tr> +<tr class="pass"> + <td class="cell c0"><td colspan="2"></td></td> + <td class="cell c1"><td colspan="4">\[\begin{array}{lll}\color{blue}{(\mathbb{R})}&3=0& \cr \color{green}{\Leftrightarrow}&2=\sqrt{-5}& \cr \color{green}{\Leftrightarrow}&2=0& \cr \color{green}{\Leftrightarrow}&2=\sqrt{5}& \cr \color{green}{\Leftrightarrow}&2=0& \cr \color{green}{\Leftrightarrow}&2=\sqrt{-5}& \cr \color{green}{\Leftrightarrow}&3=0& \cr \end{array}\]</td></td> +</tr> <tr class="pass"> <td class="cell c0">Equiv</td> <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> @@ -884,11 +912,11 @@ sqrt(91^2-4*14*140))/(2*14),x= <td class="cell c3"><pre>[]</pre></td> <td class="cell c4"></td> <td class="cell c5">1</td> - <td class="cell c6">(EMPTYCHAR, EQUIVCHAR, EQUIVCHAR, EQUIVCHAR)</td> + <td class="cell c6">(EMPTYCHAR,SAMEROOTS, EQUIVCHAR, EQUIVCHAR)</td> </tr> <tr class="pass"> <td class="cell c0"><td colspan="2"></td></td> - <td class="cell c1"><td colspan="4">\[\begin{array}{lll} &2\cdot \left(x-3\right)=5\cdot x-3\cdot \left(x+1\right)& \cr \color{green}{\Leftrightarrow}&2\cdot x-6=2\cdot x-3& \cr \color{green}{\Leftrightarrow}&0=3& \cr \color{green}{\Leftrightarrow}&\left \{ \right \}& \cr \end{array}\]</td></td> + <td class="cell c1"><td colspan="4">\[\begin{array}{lll} &2\cdot \left(x-3\right)=5\cdot x-3\cdot \left(x+1\right)& \cr \color{green}{\text{(Same roots)}}&2\cdot x-6=2\cdot x-3& \cr \color{green}{\Leftrightarrow}&0=3& \cr \color{green}{\Leftrightarrow}&\left \{ \right \}& \cr \end{array}\]</td></td> </tr> <tr class="pass"> <td class="cell c0">Equiv</td> @@ -1091,6 +1119,20 @@ qrt(18)]</pre></td> <td class="cell c0"><td colspan="2"></td></td> <td class="cell c1"><td colspan="4">\[\begin{array}{lll} &\frac{9\cdot x^2}{2}-\frac{81\cdot x}{2}+90=\frac{5\cdot x^2}{2}-5\cdot x-20& \cr \color{green}{\Leftrightarrow}&4\cdot x^2-71\cdot x+220=0& \cr \color{green}{\Leftrightarrow}&x=\frac{{71 \pm 39}}{8}& \cr \color{green}{\Leftrightarrow}&x=\frac{55}{4}\,{\text{ or }}\, x=4& \cr \end{array}\]</td></td> </tr> +<tr class="pass"> + <td class="cell c0">Equiv</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>[(x-4)*(x-7)=-3*(x-4),x-7=-3,x +=4]</pre></td> + <td class="cell c3"><pre>[]</pre></td> + <td class="cell c4"></td> + <td class="cell c5">1</td> + <td class="cell c6">(EMPTYCHAR,SAMEROOTS, EQUIVCHAR)</td> +</tr> +<tr class="pass"> + <td class="cell c0"><td colspan="2"></td></td> + <td class="cell c1"><td colspan="4">\[\begin{array}{lll} &\left(x-4\right)\cdot \left(x-7\right)=-3\cdot \left(x-4\right)& \cr \color{green}{\text{(Same roots)}}&x-7=-3& \cr \color{green}{\Leftrightarrow}&x=4& \cr \end{array}\]</td></td> +</tr> <tr class="pass"> <td class="cell c0">Equiv</td> <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> @@ -1208,11 +1250,11 @@ sqrt(x+2),x^2-2*x+1 = 4*x+8,x^ <td class="cell c3"><pre>[]</pre></td> <td class="cell c4"></td> <td class="cell c5">0</td> - <td class="cell c6">(EMPTYCHAR,IMPLIESCHAR, EQUIVCHAR,IMPLIESCHAR, EQUIVCHAR, EQUIVCHAR, EQUIVCHAR)</td> + <td class="cell c6">(EMPTYCHAR, EQUIVCHAR, EQUIVCHAR,IMPLIESCHAR, EQUIVCHAR, EQUIVCHAR, EQUIVCHAR)</td> </tr> <tr class="pass"> <td class="cell c0"><td colspan="2"></td></td> - <td class="cell c1"><td colspan="4">\[\begin{array}{lll} &\sqrt{3\cdot x+4}=2+\sqrt{x+2}&{\color{blue}{{x \in {\left[ -\frac{4}{3},\, \infty \right)}}}}\cr \color{red}{\Rightarrow}&3\cdot x+4=4+4\cdot \sqrt{x+2}+\left(x+2\right)&{\color{blue}{{x \in {\left[ -2,\, \infty \right)}}}}\cr \color{green}{\Leftrightarrow}&x-1=2\cdot \sqrt{x+2}&{\color{blue}{{x \in {\left[ -2,\, \infty \right)}}}}\cr \color{red}{\Rightarrow}&x^2-2\cdot x+1=4\cdot x+8& \cr \color{green}{\Leftrightarrow}&x^2-6\cdot x-7=0& \cr \color{green}{\Leftrightarrow}&\left(x-7\right)\cdot \left(x+1\right)=0& \cr \color{green}{\Leftrightarrow}&x=7\,{\text{ or }}\, x=-1& \cr \end{array}\]</td></td> + <td class="cell c1"><td colspan="4">\[\begin{array}{lll} &\sqrt{3\cdot x+4}=2+\sqrt{x+2}&{\color{blue}{{x \in {\left[ -\frac{4}{3},\, \infty \right)}}}}\cr \color{green}{\Leftrightarrow}&3\cdot x+4=4+4\cdot \sqrt{x+2}+\left(x+2\right)&{\color{blue}{{x \in {\left[ -2,\, \infty \right)}}}}\cr \color{green}{\Leftrightarrow}&x-1=2\cdot \sqrt{x+2}&{\color{blue}{{x \in {\left[ -2,\, \infty \right)}}}}\cr \color{red}{\Rightarrow}&x^2-2\cdot x+1=4\cdot x+8& \cr \color{green}{\Leftrightarrow}&x^2-6\cdot x-7=0& \cr \color{green}{\Leftrightarrow}&\left(x-7\right)\cdot \left(x+1\right)=0& \cr \color{green}{\Leftrightarrow}&x=7\,{\text{ or }}\, x=-1& \cr \end{array}\]</td></td> </tr> <tr class="pass"> <td class="cell c0">Equiv</td> @@ -1921,7 +1963,7 @@ um(log(x_i),i,1,n))]</pre></td> </tr> <tr class="pass"> <td class="cell c0"><td colspan="2"></td></td> - <td class="cell c1"><td colspan="4">\[\begin{array}{lll} &{{n}\choose{k}}+{{n}\choose{k+1}}& \cr \color{green}{\checkmark}&=\frac{n!}{k!\cdot \left(n-k\right)!}+\frac{n!}{\left(k+1\right)!\cdot \left(n-k-1\right)!}& \cr \color{green}{\checkmark}&=\frac{n!}{k!\cdot \left(n-k\right)\cdot \left(n-k-1\right)!}+\frac{n!}{\left(k+1\right)!\cdot \left(n-k-1\right)!}& \cr \color{green}{\checkmark}&=\frac{n!}{k!\cdot \left(n-k-1\right)!}\cdot \left(\frac{1}{n-k}+\frac{1}{k+1}\right)& \cr \color{green}{\checkmark}&=\frac{n!}{k!\cdot \left(n-k-1\right)!}\cdot \left(\frac{n+1}{\left(n-k\right)\cdot \left(k+1\right)}\right)& \cr \color{green}{\checkmark}&=\frac{\left(n+1\right)\cdot n!}{k!\cdot \left(n-k-1\right)!}\cdot \left(\frac{1}{\left(k+1\right)\cdot \left(n-k\right)}\right)& \cr \color{green}{\checkmark}&=\frac{\left(n+1\right)\cdot n!}{\left(k+1\right)\cdot k!\cdot \left(n-k\right)\cdot \left(n-k-1\right)!}& \cr \color{green}{\checkmark}&=\frac{\left(n+1\right)!}{\left(k+1\right)!}\cdot \left(\frac{1}{\left(n-k\right)\cdot \left(n-k-1\right)!}\right)& \cr \color{green}{\checkmark}&=\frac{\left(n+1\right)!}{\left(k+1\right)!\cdot \left(n-k\right)!}& \cr \color{green}{\checkmark}&={{n+1}\choose{k+1}}& \cr \end{array}\]</td></td> + <td class="cell c1"><td colspan="4">\[\begin{array}{lll} &{{n}\choose{k}}+{{n}\choose{k+1}}& \cr \color{green}{\checkmark}&=\frac{n!}{k!\cdot \left(n-k\right)!}+\frac{n!}{\left(k+1\right)!\cdot \left(n-k-1\right)!}& \cr \color{green}{\checkmark}&=\frac{n!}{k!\cdot \left(n-k\right)\cdot \left(n-k-1\right)!}+\frac{n!}{\left(k+1\right)!\cdot \left(n-k-1\right)!}& \cr \color{green}{\checkmark}&=\frac{n!}{k!\cdot \left(n-k-1\right)!}\cdot \left(\frac{1}{n-k}+\frac{1}{k+1}\right)&{\color{blue}{{n \not\in {\left \{4 \right \}}}}}\cr \color{green}{\checkmark}&=\frac{n!}{k!\cdot \left(n-k-1\right)!}\cdot \left(\frac{n+1}{\left(n-k\right)\cdot \left(k+1\right)}\right)& \cr \color{green}{\checkmark}&=\frac{\left(n+1\right)\cdot n!}{k!\cdot \left(n-k-1\right)!}\cdot \left(\frac{1}{\left(k+1\right)\cdot \left(n-k\right)}\right)& \cr \color{green}{\checkmark}&=\frac{\left(n+1\right)\cdot n!}{\left(k+1\right)\cdot k!\cdot \left(n-k\right)\cdot \left(n-k-1\right)!}& \cr \color{green}{\checkmark}&=\frac{\left(n+1\right)!}{\left(k+1\right)!}\cdot \left(\frac{1}{\left(n-k\right)\cdot \left(n-k-1\right)!}\right)& \cr \color{green}{\checkmark}&=\frac{\left(n+1\right)!}{\left(k+1\right)!\cdot \left(n-k\right)!}& \cr \color{green}{\checkmark}&={{n+1}\choose{k+1}}& \cr \end{array}\]</td></td> </tr> <tr class="pass"> <td class="cell c0">Equiv</td> diff --git a/doc/en/Authoring/Answer_Tests/Results/NumSigFigs.md b/doc/en/Authoring/Answer_Tests/Results/NumSigFigs.md index b7f214d83aca4c42744cf69917a0f266bf053a1c..949ffeacb0a1c877bca83d2d52ebe9c8722feae8 100644 --- a/doc/en/Authoring/Answer_Tests/Results/NumSigFigs.md +++ b/doc/en/Authoring/Answer_Tests/Results/NumSigFigs.md @@ -277,6 +277,41 @@ This page exposes the results of running answer tests on STACK test cases. This <td class="cell c5">0</td> <td class="cell c6">ATNumSigFigs_VeryInaccurate.</td> </tr> +<tr class="pass"> + <td class="cell c0">NumSigFigs</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>9.8</pre></td> + <td class="cell c3"><pre>10</pre></td> + <td class="cell c4"><pre>2</pre></td> + <td class="cell c5">1</td> + <td class="cell c6"></td> +</tr> +<tr class="pass"> + <td class="cell c0">NumSigFigs</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>9.5</pre></td> + <td class="cell c3"><pre>10</pre></td> + <td class="cell c4"><pre>2</pre></td> + <td class="cell c5">0</td> + <td class="cell c6">ATNumSigFigs_Inaccurate.</td> +</tr> +<tr class="pass"> + <td class="cell c0"><td colspan="2"></td></td> + <td class="cell c1"><td colspan="4">The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.</td></td> +</tr> +<tr class="pass"> + <td class="cell c0">NumSigFigs</td> + <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> + <td class="cell c2"><pre>10.0</pre></td> + <td class="cell c3"><pre>10</pre></td> + <td class="cell c4"><pre>2</pre></td> + <td class="cell c5">0</td> + <td class="cell c6">ATNumSigFigs_WrongDigits.</td> +</tr> +<tr class="pass"> + <td class="cell c0"><td colspan="2"></td></td> + <td class="cell c1"><td colspan="4">Your answer contains the wrong number of significant digits.</td></td> +</tr> <tr class="pass"> <td class="cell c0">NumSigFigs</td> <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td> diff --git a/doc/en/Authoring/JSXGraph.md b/doc/en/Authoring/JSXGraph.md index a30f9e1a7767a5efa74a70e74c19405a0cc22a70..c05475abf74dfeec89e5d72e6cbf5b12ff8c1759 100644 --- a/doc/en/Authoring/JSXGraph.md +++ b/doc/en/Authoring/JSXGraph.md @@ -469,4 +469,4 @@ In one of your PRTs, you place an empty span with an id like for example `feedba The function `stack_js.get_content(id)` looks for an element in the DOM of the parent document and returns a promise that will resolve to the content of that element. If the content is not `null`, that means it found the element somewhere in the question. As this operation is async, you will always have to use a callback using `.then()`. -If you want to know more about STACK-JS and the functions provided for interacting with the STACK question content (change inputs, switch content, toggle the visibility of content), then you can have a look at [STACK-JS](../developer/STACK-JS.md). \ No newline at end of file +If you want to know more about STACK-JS and the functions provided for interacting with the STACK question content (change inputs, switch content, toggle the visibility of content), then you can have a look at [STACK-JS](../Developer/STACK-JS.md). \ No newline at end of file diff --git a/doc/en/Developer/Development_track.md b/doc/en/Developer/Development_track.md index b29c359e27aa5494273168b75deb64e6561691e5..af1c625300832c70a8b0bc89f6c721a9139ca365 100644 --- a/doc/en/Developer/Development_track.md +++ b/doc/en/Developer/Development_track.md @@ -3,6 +3,8 @@ Requests for features and ideas for developing STACK are all recorded in [Future plans](Future_plans.md). The past development history is documented on [Development history](Development_history.md). +We use the [github issue tracker](https://github.com/maths/moodle-qtype_stack/issues) to track "milestones". + ## Version 4.6.0 This version will require moodle 4.0+. Moodle 3.x is no longer supported. @@ -14,27 +16,23 @@ This version will require moodle 4.0+. Moodle 3.x is no longer supported. 5. Add in the `CT:...` and `RAW:...` options for test case construction to enable tests of invalid input (e.g. missing stars). 6. STACK now has an [API](../Installation/API.md) to provide STACK questions as a web service. 7. Improve the display of floats. Numbers of decimal places are now respected in all parts of expressions, and floats such as `1.7E-9` are displayed at \(1.7 \times 10^{-9}\). There is a new question option to choose between \(1.7 \times 10^{-9}\) and \(1.7E-9\). +8. Add in support for drag and drop [matching problems](../Authoring/Matching.md). -TODO: - -1. Fix markdown problems. See issue #420. -2. Fix [issue #879](https://github.com/maths/moodle-qtype_stack/issues/879) -3. Fix [issue #406](https://github.com/maths/moodle-qtype_stack/issues/406) (possibly for 4.7.0). ## Version 4.7.0 -TO-DO: +Issues with [github milestone 4.7.0](https://github.com/maths/moodle-qtype_stack/issues?q=is%3Aissue+milestone%3A4.7.0) include -1. Fix issue #1160: Allow configuring the MathJax URL. +1. Fix [issue #1160](https://github.com/maths/moodle-qtype_stack/issues/879) Allow configuring the MathJax URL 2. Release "Adapt" block. [issue #975](https://github.com/maths/moodle-qtype_stack/issues/975) -3. Error messages: use caserror.class more fully to use user information to target error messages. -4. Remove all "cte" code from Maxima - mostly install. -5. Review and fix [issue #1063](https://github.com/maths/moodle-qtype_stack/issues/1063): "Extra options" set to "simp" and number of decimals shown in validation field - +3. Fix [issue #406](https://github.com/maths/moodle-qtype_stack/issues/406) +4. Error messages: use caserror.class more fully to use user information to target error messages. +5. Remove all "cte" code from Maxima - mostly install. +6. Review and fix [issue #1063](https://github.com/maths/moodle-qtype_stack/issues/1063): "Extra options" set to "simp" and number of decimals shown in validation field ## Parson's block development track -Next (v4.7.0) +For v4.7.0: 1. Nested lists (flat list vs. nested/tree) and different proof types -- iff, induction, etc. how do we indicate the different scaffolding for this? 2. Use syntax hint to set up a non-empty starting point. @@ -65,9 +63,4 @@ Later ## Other -* Better install code (see #332). -* Move find_units_synonyms into the parser more fully? -* 1st version of API. -* Enable individual questions to load Maxima libraries. (See issue #305) -* Markdown support? * SBCL on the continuous integration does not seem to have support for unicode. There are examples in the inputs fixtures and walkthrough adapctive tests. Search for SBCL. diff --git a/doc/en/Developer/Extracting_test_questions.md b/doc/en/Developer/Extracting_test_questions.md index 2810754df6681158e36b46e2962aa0607970fb3c..cb9df584b67f8e488182ccfd4f6dc048d7c70761 100644 --- a/doc/en/Developer/Extracting_test_questions.md +++ b/doc/en/Developer/Extracting_test_questions.md @@ -1,5 +1,5 @@ -# Extracting questions to make into test questions +# Extracting questions to make into PHP/BEHAT unit test questions It's easier to create a question within Moodle and export XML than create a question within a test. The question then needs to be converted into a format useable by the tests, however, and put in the helper.php file. diff --git a/doc/en/Developer/Releasing.md b/doc/en/Developer/Releasing.md index 4671c7a2d838e597986439252433bc3feaaff11c..39dd36e40092d538f24a49917a4e0a3bfb09c822 100644 --- a/doc/en/Developer/Releasing.md +++ b/doc/en/Developer/Releasing.md @@ -19,7 +19,7 @@ Unless you want to discuss something confidential with the developers, please do ## 1. Pre-release checks -Check +### Check * Readme.md * Check docs @@ -37,13 +37,17 @@ Check * Run code checker. * If needed re-build the minified Javascript (e.g. `npx grunt --root=question/type/stack`). -Version numbers + +### Version numbers * version.php * stackmaxima.mac * Run `php cli/getversionstring.php` and add output to `doc/en/Installation/STACK_versions.md`. * `MATURITY_STABLE`? * Check both the Moodle versions, and the required number. (https://moodledev.io/general/releases) + * Update version numbers in the API in anticipation of a new Goemaxima image `api/config_samples.txt` + * Update Goemaxima docker image versions in `api/docker/docker-compose.dev.yml` and `api/docker/docker-compose.yml` + E.g. see `https://hub.docker.com/r/mathinstitut/goemaxima` for latest versions. Commit all changes to git, e.g. "Update version number for the 4.6.0 release." @@ -79,9 +83,7 @@ Then check updated information on the form. (don't add "master" to branch info) -## 4. Releasing a new verion of the API to take advantage of the new release +### 4. Releasing a new verion of the API to take advantage of the new release + +Prompt to update Geomaxima image. -1. Update Geomaxima -2. Update version numbers in `api/config_samples.txt` -3. Update Geomaxima docker image versions in `api/docker/docker-compose.dev.yml` and `api/docker/docker-compose.yml` - E.g. see `https://hub.docker.com/r/mathinstitut/goemaxima` for latest versions. diff --git a/doc/meta_en.json b/doc/meta_en.json index c1fbb3fa75fdebe90ea4d723dc7319451d4bac1b..78e7ce179a6223960389a79868d2d5861c4d1071 100644 --- a/doc/meta_en.json +++ b/doc/meta_en.json @@ -454,6 +454,11 @@ "description":"Information on writing STACK questions for several languages." }, { + "file":"Matching.md", + "title":"Matching problems - STACK Documentation", + "description":"Documentation for writing drag and drop matching problems in a STACK question." + }, + { "file":"Multiple_choice_questions.md", "title":"Multiple Choice Questions - STACK Documentation", "description":"Information on creating and manipulating multiple choice questions in STACk." @@ -842,6 +847,11 @@ "description":"Information on STACK's documentation system and how to contribute to the STACK documentation." }, { + "file":"Extracting_test_questions.md", + "title":"Extracting questions to make into PHP/BEHAT unit test questions", + "description":"Notes on how to create a question within Moodle and export XML to create a question within a unit test." + }, + { "file":"Future_input_processing.md", "title":"Description of one possible future input processing pipeline", "description":"Suggestions for re-designing the input processing." @@ -917,6 +927,11 @@ "description":"How to obtain, edit and minify the JSXGraph javascript." }, { + "file":"Optimising_STACK_for_large_Maxima_variables.md", + "title":"Optimising STACK for large Maxima variables", + "description":"Records design efforts to optimise STACK for processing large Maxima variables." + }, + { "file":"Website.md", "title":"Updating the Online Docs", "description":"How to manage the online docs at docs.stack-assessment.org" @@ -1053,6 +1068,11 @@ "description":"Information on working with linear algebra in a STACK question." }, { + "file":"Matching.md", + "title":"Matching problems - STACK Documentation", + "description":"Documentation for writing drag and drop matching problems in a STACK question." + }, + { "file":"Parsons.md", "title":"Parson's problems - STACK Documentation", "description":"Documentation for writing Parson's problems in a STACK question."