<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:CMR12;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:CMBX12;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:CMR8;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:CMTI12;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>I don’t see the script, but you need to have a tolerance. When the value is not specified, it defaults to an absolute tolerance of zero. If a floating point calculation is done, it will never be exactly an integer. From the author manual:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:12.0pt;font-family:CMR12'>A </span><span style='font-size:12.0pt;font-family:CMBX12'>tolerance </span><span style='font-size:12.0pt;font-family:CMR12'>parameter determines how closely the system will require the student’s<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:12.0pt;font-family:CMR12'>answer to be in order to count it correct. The tolerance will default to zero if it is not<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:12.0pt;font-family:CMR12'>defined. The tolerance parameter should always be defined for a numerical problem<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:12.0pt;font-family:CMR12'>unless you are certain only integer answers are generated from your script and you<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:12.0pt;font-family:CMR12'>want students to reply with exactly that integer.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:12.0pt;font-family:CMR12'>If the computer answer is a floating point number, the tolerance should not be zero.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:12.0pt;font-family:CMR12'>Computers can only approximate computations involving real numbers. For instance,<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:12.0pt;font-family:CMR12'>a computer’s [decimal] answer to the simple problem </span><span style='font-size:8.0pt;font-family:"CMR8",sans-serif'>1<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"CMR8",sans-serif'>3 </span><span style='font-size:12.0pt;font-family:CMR12'>is “0.33333333333333331”. It<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><i><span style='font-size:12.0pt;font-family:CMTI12'>should </span></i><span style='font-size:12.0pt;font-family:CMR12'>be an infinite series of 3’s, and there certainly shouldn’t be a “1” in the an-<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:12.0pt;font-family:CMR12'>swer, but no computer can represent an infinitely long, infinitely detailed real number.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:12.0pt;font-family:CMR12'>Therefore, for any problem where the answer is not an integer, you </span><i><span style='font-size:12.0pt;font-family:CMTI12'>need </span></i><span style='font-size:12.0pt;font-family:CMR12'>to allow a<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:12.0pt;font-family:CMR12'>tolerance factor, or the students will find it nearly impossible to exactly match the<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:12.0pt;font-family:CMR12'>computer’s idea of the answer. You may find the default tolerance too large for some<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:CMR12'>problems, so adjust as appropriate.</span><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><a name="_MailEndCompose"><span style='color:#1F497D'><o:p> </o:p></span></a></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Hm, I think that last line should say “if you use the colorful editor tolerance template, the default tolerance may be too large...”. I think the template defaults to 5%. <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>the format affects the display, not the calculations.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> lon-capa-users-bounces@mail.lon-capa.org [mailto:lon-capa-users-bounces@mail.lon-capa.org] <b>On Behalf Of </b>Harding, Gene L<br><b>Sent:</b> Tuesday, January 24, 2017 8:23 AM<br><b>To:</b> Discussion list for LON-CAPA users <lon-capa-users@mail.lon-capa.org><br><b>Subject:</b> Re: [LON-CAPA-users] Unordered Response Question Error<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>Hi Carl,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>The ! was commenting out the parameter, something I tried among several permutations of syntax hoping to get something to work. The error message is the same whether it is there or commented out. I originally also had a sig figs param in it, but deleted it. I think that eliminated one error.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I have tried putting the unit= and format= in the answer and value fields, but no luck there, either.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='color:#1F497D'>Gene L. Harding, PE<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Associate Professor of ECET<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>574-520-4190<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Purdue University-South Bend<o:p></o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> <a href="mailto:lon-capa-users-bounces@mail.lon-capa.org">lon-capa-users-bounces@mail.lon-capa.org</a> [<a href="mailto:lon-capa-users-bounces@mail.lon-capa.org">mailto:lon-capa-users-bounces@mail.lon-capa.org</a>] <b>On Behalf Of </b>Carl Lira<br><b>Sent:</b> Monday, January 23, 2017 11:22 PM<br><b>To:</b> 'Discussion list for LON-CAPA users' <<a href="mailto:lon-capa-users@mail.lon-capa.org">lon-capa-users@mail.lon-capa.org</a>><br><b>Subject:</b> Re: [LON-CAPA-users] Unordered Response Question Error<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>not sure of the impact of the ! in the responseparam field. I believe you should have some tolerance if you have a calculated real number, e.g.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><responseparam name="tol" type="tolerance" default="2%" description="Numerical Tolerance" /><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> <a href="mailto:lon-capa-users-bounces@mail.lon-capa.org">lon-capa-users-bounces@mail.lon-capa.org</a> [<a href="mailto:lon-capa-users-bounces@mail.lon-capa.org">mailto:lon-capa-users-bounces@mail.lon-capa.org</a>] <b>On Behalf Of </b>Harding, Gene L<br><b>Sent:</b> Monday, January 23, 2017 10:00 PM<br><b>To:</b> 'lon-capa-users@mail.lon-capa.org' <<a href="mailto:lon-capa-users@mail.lon-capa.org">lon-capa-users@mail.lon-capa.org</a>><br><b>Subject:</b> [LON-CAPA-users] Unordered Response Question Error<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am trying to embed some unordered numericalresponse parameters inside an xml table. I modeled my xml after the example in LON-CAPA, but am having two problems with it. The first problem is an error referring to tolerance range, and the second is incompatible units. This is a screenshot:<o:p></o:p></p><p class=MsoNormal><img border=0 width=751 height=195 id="Picture_x0020_1" src="cid:image002.jpg@01D2767E.A59F67D0"><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This is the code I am using:<o:p></o:p></p><p class=MsoNormal><startouttext /><o:p></o:p></p><p class=MsoNormal>A $Pa dBm, $fa-MHz RF input signal and a $Pb dBm, $fb-MHz LO signal are applied to a nonlinear mixer with $Zin-&Omega; impedance. Complete the table of IF cross products for m,n equal 1,2.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><! Display numeric response inside a table ><o:p></o:p></p><p class=MsoNormal><table style="width:400px" border="1" cellpadding="1" ><o:p></o:p></p><p class=MsoNormal>  <tr><o:p></o:p></p><p class=MsoNormal>    <td> m </td>  <td> n </td>  <td> |mf<sub>a</sub> &plusmn; nf<sub>b</sub>| </td>  <td> Cross Products </td><o:p></o:p></p><p class=MsoNormal>  </tr><o:p></o:p></p><p class=MsoNormal>  <tr><o:p></o:p></p><p class=MsoNormal>    <td>1</td>  <td>1</td>  <o:p></o:p></p><p class=MsoNormal>    <td><o:p></o:p></p><p class=MsoNormal><numericalresponse format="0f" unit="MHz" id="11"><o:p></o:p></p><p class=MsoNormal>    <answergroup type="ordered"><o:p></o:p></p><p class=MsoNormal>        <answer type="unordered"><o:p></o:p></p><p class=MsoNormal>            <value>$fa</value><o:p></o:p></p><p class=MsoNormal>            <value>$fb</value><o:p></o:p></p><p class=MsoNormal>        </answer><o:p></o:p></p><p class=MsoNormal>    </answergroup><o:p></o:p></p><p class=MsoNormal>    <!responseparam name="tol" type="tolerance" default="0" description="Numerical Tolerance" /><o:p></o:p></p><p class=MsoNormal>    <textline size="8" readonly="no" /><o:p></o:p></p><p class=MsoNormal>    <textline size="8" readonly="no" /><o:p></o:p></p><p class=MsoNormal></numericalresponse><o:p></o:p></p><p class=MsoNormal>    </td>  <td>$f11_1 MHz $f11_2 MHz</td><o:p></o:p></p><p class=MsoNormal>  </tr><o:p></o:p></p><p class=MsoNormal>  <tr><o:p></o:p></p><p class=MsoNormal>    <td>1</td>  <td>2</td>  <o:p></o:p></p><p class=MsoNormal>  </tr><o:p></o:p></p><p class=MsoNormal>  <tr><o:p></o:p></p><p class=MsoNormal>    <td>2</td>  <td>1</td>  <o:p></o:p></p><p class=MsoNormal>  </tr><o:p></o:p></p><p class=MsoNormal>  <tr><o:p></o:p></p><p class=MsoNormal>    <td>2</td>  <td>2</td>  <o:p></o:p></p><p class=MsoNormal>  </tr><o:p></o:p></p><p class=MsoNormal></table><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><endouttext /><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any ideas why I am getting these two errors?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks for any advice you can provide.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Best regards,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Gene L. Harding, PE<o:p></o:p></p><p class=MsoNormal>Associate Professor of ECET<o:p></o:p></p><p class=MsoNormal>574-520-4190<o:p></o:p></p><p class=MsoNormal>Purdue University-South Bend<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>