<HTML dir=ltr><HEAD><TITLE>Re: [LON-CAPA-users] Having an equation or a range as a response</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16850" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText73388 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>I'm also super new to Maxima, but can it factor out constants from an expression?  Or could you create a fraction between the left and right side, reduce it and then see if it is the simplified version? Of course being carfeul not to divide by zero.  </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> lon-capa-users-bounces@mail.lon-capa.org on behalf of Gerd Kortemeyer<BR><B>Sent:</B> Fri 1/20/2012 4:10 AM<BR><B>To:</B> Discussion list for LON-CAPA users<BR><B>Subject:</B> Re: [LON-CAPA-users] Having an equation or a range as a response<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hi,<BR><BR>On Jan 20, 2012, at 1:03 AM, Seema Ali wrote:<BR><BR>> 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>It's still not perfect. What if they enter 2y=16? The current algorithm only deals with stuff like y+2=10.<BR><BR>I am very busy at the moment, but at some point in time, I want to look at doing this in a general way. I filed a bug against myself, <A href="http://bugs.lon-capa.org/show_bug.cgi?id=6550">http://bugs.lon-capa.org/show_bug.cgi?id=6550</A> - trivial this is not, unless I am missing something.<BR><BR>- Gerd.<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></FONT></P></DIV></BODY></HTML>