Subject: How to help maxima get equation grouped nicely
From: Stavros Macrakis
Date: Sun, 21 Aug 2011 15:04:36 -0400
You can use "box" in Maxima to 'protect' things from default
simplifications. But then you need to remove the box before calling tex,
maybe something like this:
expr: box(a/b)*c$
block([simp:false],tex(rembox(expr)))
On Sun, Aug 21, 2011 at 14:44, dlakelan <dlakelan at street-artists.org> wrote:
> On 08/20/2011 09:38 AM, Stavros Macrakis wrote:
> > Something like this, perhaps?:
> >
> > (%i13) A:a1+a2^2$
> > (%i14) B:b2/(1+b2)$
>
> unfortunately in my problem A and B share two variables and this
> complicates your method. I actually managed to get something roughly
> correct by using factorout
>
> factorout(expression, <all the variables not in A or B go here>)
>
> gave me roughly the expression that i wanted. Now what I'd like to have
> Maxima do is output the expression in TeX as
>
> (numofA/denomofA) (foo+bar+baz) + (numofB/denomofB) (quux)
>
> instead of
>
> numofA (foo+bar+baz) + numofB quux
> -------------------- -----------
> denomofA denomofB
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>