Felipe,
More generally I really like the "format" package by Bruce Miller.
This is more complex, but then when you need to factor the coefficients of
a complex expression it is very neat indeed.
The functions are distributed as, eg
C:\Program Files\Maxima-5.12.0\share\maxima\5.12.0\share\contrib\format
and the help file is format.ps
Regards,
Chris
On Mon, 3 Sep 2007, Felipe Augusto Sviaghin Ferri wrote:
> Thanks Barton, the function worked perfectly. Laurent Couraud also
> answered this question to me, but he suggested using facsum, which also
> worked.
> By the way, do you know any good pdf book about maxima, with some good
> tutorials and examples?
>
> thanks again!
>
> Felipe
>
> Barton Willis wrote:
>> -----maxima-bounces at math.utexas.edu wrote: -----
>>
>>
>>> To: Maxima Mailing List <maxima at math.utexas.edu>
>>> From: Felipe Augusto Sviaghin Ferri <felipe.ferri at gmail.com>
>>> Sent by: maxima-bounces at math.utexas.edu
>>> Date: 09/03/2007 06:53PM
>>> Subject: Doubt about Factoring
>>>
>>> Hello,
>>>
>>> I am having the following problem in Maxima. I have an expression
>>> which has a format like this:
>>> f:a*b+b*c+a*c;
>>> In fact, my expression is waaaay larger than this, this is only to
>>> exemplify.
>>> I would like to tell maxima that "c" is an important variable and i
>>> want it to be "factored out" of the expression, like this:
>>> f:a*b+(a+b)*c;
>>> How can I accomplish this?
>>>
>>> Thanks for your help!
>>>
>>
>>
>> Try this:
>>
>> (%i1) rat(a*b+b*c+a*c,c);
>> (%o1) (b+a)*c+a*b
>>
>> Also, at a command line type "? rat". This will show the user
>> documentation for the function 'rat'. You also might like to
>> read about the function 'facout' and 'factorsum'.
>>
>> BW
>>
>>
>>
>>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>