<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi,</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">Are you actually looking for the fraction to be reduced? Because we can check that very generally.</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">- Gerd.<br><br><div><span style="font-size: 13pt;">--</span></div><div>Gerd Kortemeyer</div><div><a href="http://www.msu.edu/user/kortemey/">http://www.msu.edu/user/kortemey/</a></div></div><div><br>On Dec 4, 2015, at 1:16 PM, Jacob Bond <<a href="mailto:bond13@purdue.edu">bond13@purdue.edu</a>> wrote:<br><br></div><blockquote type="cite"><div><blockquote type="cite"><span>If this is really a static answer format, then it should indeed be a stringresponse. Note that stringresponses also take >regular expressions, so you can do</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>/(2\.5)|(5\/2)/</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>to do “or” - you don’t need a preprocessor. LON-CAPA also has an explicit “or”, I think there’s a template for it. It >may be “or” for numerical, but you can replace numerical by string.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>In general, for things that are numerical (and not “static” like the above), the main decision criterion for >preprocessor versus customresponse is whether you need the luxuries of numericalresponse:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>* significant digits</span><br></blockquote><blockquote type="cite"><span>* tolerances</span><br></blockquote><blockquote type="cite"><span>* automated bubblesheet production</span><br></blockquote><blockquote type="cite"><span>* easy printout of correct solution after answer date</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>If you can benefit from those luxuries, use numericalresponse and preprocessor. If not, or if those things are in the >way, use customresponse.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Sorry, I need to run for a meeting. Hope this helps,</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>- Gerd.</span><br></blockquote><span></span><br><span>It is not a static answer.  I was not aware of the regular expression option, this is promising and I think I could do either substitution ($frac =~ s/\//\\\//;) or split (@fracarray = split('/', $frac);) and concatenate strings into the desired regular expression.</span><br><span></span><br><span>Also, I have attempted using an <answergroup> under a <stringresponse> and it just doesn't recognize it.</span><br><span></span><br><span>Thank you!</span><br><span>Jacob</span><br><span></span><br><span>_______________________________________________</span><br><span>LON-CAPA-users mailing list</span><br><span><a href="mailto:LON-CAPA-users@mail.lon-capa.org">LON-CAPA-users@mail.lon-capa.org</a></span><br><span><a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</a></span><br></div></blockquote></body></html>