<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<title>Forcing students to submit valid expressions for formula responses.</title>
</head>
<body>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">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>
Thanks in advance.<br>
<br>
</span></font><font size="2"><font face="Consolas, Courier New, Courier"><span style="font-size:10pt">Respectfully,<br>
----------------------------------------------<br>
Mr. Angus Findlay<br>
Math Department, Mount Allison University<br>
Sackville, New Brunswick<br>
<br>
email: <a href="afindlay@mta.ca">afindlay@mta.ca</a>    tel: 506-364-2592<br>
----------------------------------------------<br>
</span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt"><br>
</span></font>
</body>
</html>