<!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>RE: [LON-CAPA-users] Having an equation or a range as a response</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Thank you Gerd! <BR>
<BR>
That worked well. I changed one of the lines to<BR>
if (&cas('maxima',"($left)-($b)-(y-$right)") eq '0') { return 'EXACT_ANS'; }<BR>
<BR>
Just in case someone decides to enter 8=y. =]<BR>
<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: lon-capa-users-bounces@mail.lon-capa.org on behalf of Gerd Kortemeyer<BR>
Sent: Thu 1/19/2012 8:17 PM<BR>
To: Discussion list for LON-CAPA users<BR>
Subject: Re: [LON-CAPA-users] Having an equation or a range as a response<BR>
<BR>
Hi,<BR>
<BR>
On Jan 19, 2012, at 9:51 PM, Gerd Kortemeyer wrote:<BR>
><BR>
><BR>
> On Jan 19, 2012, at 8:39 PM, Seema Ali wrote:<BR>
><BR>
>> An example would be:<BR>
>><BR>
>> State the equation for the asymptote for the graph y=10^(x+7)+8.<BR>
>> Answer:  [answer box]<BR>
>><BR>
><BR>
> So that would be x=7 or y=8, correct?<BR>
<BR>
Not sure anymore how I got to that x-solution, except that I just looked at the Google plot :-) In any case, I hope the sample code is useful, just eliminate the second solution.<BR>
<BR>
For more complex equations, you need to wrap the MAXIMA-code into trigsimp(trigreduce(.)), so MAXIMA bothers simplifying the expression beyond the basics. When I have more time, I'll make a nice template for an "equation problem."<BR>
<BR>
What else?<BR>
<BR>
- Gerd.<BR>
<BR>
<BR>
<BR>
<BR>
_______________________________________________<BR>
LON-CAPA-users mailing list<BR>
LON-CAPA-users@mail.lon-capa.org<BR>
<A HREF="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</A><BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>