<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Response Math unable to understand formula for incorrect responses</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>If the answer is correct, it will accept it as correct but if it is incorrect the Unable To Understand Formula error pops up and I would prefer if it said Incorrect instead.  Is there something that I have set up incorrectly?  Below is the XML for the problem.<BR>
<BR>
The problem creates a simple rational expression and asks the student to find the inverse function of that expression.<BR>
<BR>
Thanks.<BR>
<BR>
<BR>
<problem><BR>
<script type="loncapa/perl">$a = &random(2,6,1) * &random(-1,1,2);<BR>
$b = &random(7,9,1) * &random(-1,1,2);<BR>
$c = &random(7,9,1) * &random(-1,1,2);<BR>
$d = &random(2,6,1) * &random(-1,1,2);<BR>
<BR>
$num1 = "$a * x + $b";<BR>
$den1 = "$c * x + $d";<BR>
<BR>
#simplify the expression<BR>
$numerator=&cas('maxima',"num(trigsimp(($num1) / ($den1)))");<BR>
$denominator=&cas('maxima',"denom(trigsimp(($num1) / ($den1)))");<BR>
<BR>
$function = "($numerator)/($denominator)";<BR>
@args = ($function);<BR>
<BR>
</script><startouttext />Given the function <m eval='on'>f(x) = \Large\frac{$numerator}{$denominator}</m>, determine the equation of the inverse function.<BR>
<BR>
<br /><BR>
Answer: <m>$f^{-1}(x)=$</m><endouttext /><BR>
<mathresponse answerdisplay="Good" cas="maxima" args="@args"><BR>
    <answer>f(x):=RESPONSE[1];<BR>
g(x):=LONCAPALIST[1];<BR>
is(equal(f(g(x)),x));</answer><BR>
    <textline readonly="no" /><BR>
   <BR>
</mathresponse><BR>
<BR>
<BR>
<BR>
<BR>
</problem><BR>
</FONT>
</P>

</BODY>
</HTML>