factor over complex numbers?
- Subject: factor over complex numbers?
- From: Edwin Woollett
- Date: Sat, 26 Jan 2008 16:22:12 -0800
thanks, Richard,
gfactor(expr1) --> exactly what I wanted
--------------
(%i4) display2d:false$
(%i5) gfactor(expr1);
(%o5) (x-%i)^5*(x+%i)^5
--------------
ted
----- Original Message -----
From: "R Fateman" <fateman at cs.berkeley.edu>
To: "Edwin Woollett" <woollett at charter.net>
Sent: Saturday, January 26, 2008 1:52 PM
Subject: Re: [Maxima] factor over complex numbers?
> have you tried gfactor?
>
> Edwin Woollett wrote:
>> Is there any option I can set to get factor(expr1) -> (-%i + x)^5 (%i +
>> x)^5
>> instead of getting (1 + x^2)^5 ?
>>
>> (%i1) display2d:false$
>>
>> (%i2) expr1 : expand( (1+x^2)^5 );
>>
>> (%o2) x^10 + 5*x^8 + 10*x^6 + 10*x^4 + 5*x^2 +
>> 1
>> (%i3) solve(expr1,x);
>>
>> (%o3) [x = -%i,x = %i]
>>
>> (%i4) multiplicities;
>>
>> (%o4) [5,5]
>>
>> (%i5) factor( expr1 );
>>
>> (%o5) (x^2+1)^5
>>
>> I am thinking of something analogous to the Mathematica Factor option
>> GaussianIntegers -> True
>>
>> TIA
>> Ted Woollett