[LON-CAPA-dev] Can't locate AlgParser.pm in @INC
Guy Albertelli II
lon-capa-dev@mail.lon-capa.org
Thu, 24 Feb 2005 16:25:53 -0500 (EST)
Hi Hon-Kie,
> This is great for the algebraI Lib.
I expect so.
BTW it handles
<algebra>a--b+-c-+d</algebra> converting it to a+b-c-d
> >so 3/4 -> \frac{3}{4}
>
> What about an expression over another? Not as \frac but say {{ x^2 + x}
> \over {y^2 + 2 y}}
<algebra>(x^2+x)/(y^2+2y)</algebra> -> \frac{x^{2}+x}{y^{2}+2 y}
the idea behind algebra is to make things easy to input, if you want
complete control over what it looks like, <m> is for that.
> Presumably, you have
> <algebra eval="on"> to insert variables etc.
Nope.
<m> needs it because $ means someting in LaTeX, but $ doesn;t mean
anything in algebra so I can handle
<algebra>x^$pow+$constant</algebra>
just fine.
BTW almost all of the code doing this was grab from Moodle who got it
from WebWork.
--
guy@albertelli.com LON-CAPA Developer 0-7-3-2-