<div dir="ltr"><div>The timeout errors that you are observing might be addressed by a recent bug fix (see <a href="http://bugs.lon-capa.org/show_bug.cgi?id=6653">http://bugs.lon-capa.org/show_bug.cgi?id=6653</a>) which I believe will be available in LON-CAPA 2.11.<br>

<br></div><div>As long as there is no timeout, students should receive the feedback "Unable to understand formula" with no tries counted if they submit an expression with unbalanced parentheses.<br><br></div><div>

Indeed, students often have difficulty using a linear syntax to express their answers, with all the parentheses required to indicate the correct order of operations. If the DragMath editor is turned on, students can use it to preview their answers after typing them, even if they did not use the editor to build the expression in the first place. If they do this, it should become apparent that an expression like 2^-1/2 may not be what they had intended. Here are a couple things that I have tried when I anticipate that students may have some difficulty with syntax:<br>

<br></div><div>1) Add a comment next to the pencil icon "<startouttext />"<m>$\leftarrow$</m> Use the formula editor to preview your answers before submitting."<endouttext /> <br><br>

</div><div>2) Include an adaptive hint in the problem where you expect that many students will violate proper syntax: "You submitted <m>$\text{2^-1/2} = \displaystyle \frac{2^{-1}}{2}.$</m> If your answer is <m>$2^{-1/2}$</m>, enter this as 2^(-1/2)." These hints can also be safely added to a live problem within your course for syntax errors that you did not anticipate. <br>

<br></div><div>Justin<br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><br></div><div><br></div><div style="color:rgb(102,102,102)">Justin Gray | Senior Lecturer</div><span style="color:rgb(102,102,102)">Department of Mathematics | Simon Fraser University</span><br style="color:rgb(102,102,102)">

<span style="color:rgb(102,102,102)">8888 University Drive, Burnaby | V5A 1S6 | Canada</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Tel: +1 778.782.4237</span></div></div>
<br><br><div class="gmail_quote">On Mon, Oct 21, 2013 at 8:13 AM, Gerd Kortemeyer <span dir="ltr"><<a href="mailto:korte@lite.msu.edu" target="_blank">korte@lite.msu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<div class="im"><br>
On Oct 21, 2013, at 10:23 AM, Angus Findlay <<a href="mailto:afindlay@mta.ca">afindlay@mta.ca</a>> wrote:<br>
<br>
> When I give students formula response questions some of them don’t submit valid mathematic expressions. The most common problems are:<br>
><br>
> 1) Not having balanced brackets. (i.e. number of left brackets do not match number of right brackets)<br>
> 2) Including invalid characters, such as quotation signs.<br>
> 3) Not including brackets, when necessary. (eg. 2^-1/2 instead of 2^(-1/2))<br>
><br>
> I want to tell them that the expression is invalid, tell them why, and allow them to enter it again, without penalty. (Right now my LON-CAPA server times out on them, and asks them to try again later.)<br>
><br>
> Is there a piece of standard code I can use for this, or if not, what it the easiest to implement a solution to this?<br>
<br>
</div>You can use <customresponse> (available now) and intercept the answer before passing it on to the symbolic algebra system, or you can use the pre-processor before the formulas are passed on to the regular <mathresponse> or <formularesponse> - but I am not sure if the pre-process argument is in 2.10.1, and whether or not it will be in 2.11.<br>


<br>
I have no prefabricated piece of code on hand. I continue to be puzzled by the students' inability to produce valid expressions - it seems like there are very few rules, and they presumably used those $@$!$# graphing calculators for years …<br>


<br>
- Gerd.<br>
_______________________________________________<br>
LON-CAPA-users mailing list<br>
<a href="mailto:LON-CAPA-users@mail.lon-capa.org">LON-CAPA-users@mail.lon-capa.org</a><br>
<a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users" target="_blank">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</a><br>
</blockquote></div><br></div>