Items tagged with factorization factorization Tagged Items Feed

Hello,

I have trouble in using the function factors. For example, I expect

factor(Pi*(t^2+1), {I});

to output

-Pi*(-t+I)*(t+I)

but instead the result is

Pi*(t^2+1)

This problem does not appear if Pi gets replaced by a general symbol:

factor(pi*(t^2+1), {I});

produces (as I expect it should)

-pi*(-t+I)*(t+I)

The problem seems to be tied to symbols representing constants, as for example replacing Pi by Catalan also results in no factorization being performed. It further seems to be tied to specifying a splitting field, because

factor(Pi*(t^2-1));

results in

Pi*(t-1)*(t+1)

Is this behaviour intended? Probably the reason is that the polynomial does not have algebraic coefficients (as it includes Pi). Indeed,

factor(Pi*(t^2-1),{});

produces the error message

Error, (in factor) expecting a polynomial over an algebraic number field

But why does this error then not appear for the call factor(Pi*(t^2-1))? If this would assume complex coefficients, it should factor using I. Considering coefficients in an algebraic number field, also the original call factor(Pi*(t^2+1), {I}); should raise an error!?

Thanks,

Erik

we use Modern Computer Algebra

let f=x^15-1 belong to Z[x]. take a nontrivial factorization f≡gh mod 2 with g,h belong to Z[x] monic and of degree at least 2. computer g*,h* belong to Z[x] such that   f≡g*h* mod 16 ,deg g*=deg g, g*≡g mod 2.

show your  intermediate. can  you guess some factors of f in Z[x]?

 

Hello all,

I would like to use Maple to simplify an expresion of this form:

How can I use factor in equations?

For example:

x^6+y*x^4+z*x^2-g*x^4-3*x^6====>-2*x^6+(y-g)*x^4+z*x^2

or

a*cn+w*dn+e*cn+f*dn=====>(a+e)*cn+(w+f)*dn

These examples are very simple.

Thank you

How many divisors...

December 01 2012 Eryndis 5

I made a prodecure:

with(numtheory);
divs:=proc(k)
local n,q:
for n from 1 to infinity do
q:=tau(n);
if k=q then break;
end if;
end do;
return [q,n];
end proc;
[seq(divs(i),i=1..20)];
 
I have make it for i from 1 to 100 too, but it should work in five minutes. I think it should be made somehow with the integer factorization, but i can't realize it. Can someone help me?
 
Eryndis

I'd like to take the output of ifactor(n::posint), the prime factorization of n, and index the terms of the product to a list. ie: ifactor(256)=2^8 so [2,2,2,2,2,2,2,2]. or 135 -> (3^3)(5)->[3,3,3,5].
Any suggestions? 

if my eqsn is x^4+x^3+x^2 . i can take a common factor x^2 ,then the eqsn will be x^2(x^2+x+1) ...also i can take a common factor of x ...then the eqsn will be x(x^3+x^2+x) ...how can i direct maple about my common factor ...u think this is useless but i have just made my problem simple to ask a qsn so that everyone can understand what i really want to tell

I have a long expression which I want to factor optimally.  If I can cancel terms in the numerator and denominator, great, and if not, I just want to reduce the size as best possible.  Maybe there will be terms such as

(x12 + x32 + y12 +y32)*(x22 + x42 + y22 + y42)

which I see when factoring the denominator by hand.  Here's the worksheet, the final...

I start with a question, but not an how-to question, because I am puzzled by why such a routine is missing.

Why does Maple not have  generalized Schur (real and complex) factorizations with reordering?  The nice solution of many dynamic equations requires this factorization because the lhs is singular. MatLab does have such a routine. At the moment, it seems, one has to have accessible and connect to MatLab or NAG or LAPACK for such routines.

Is this...

Page 1 of 1