Items tagged with factorization factorization Tagged Items Feed


I would like to ask for help with factorization, collection or decomposition of matricies. If I have the symbolic product of matrices:

A := Matrix(2, 2, {(1, 1) = a[11], (1, 2) = a[12], (2, 1) = a[21], (2, 2) = a[22]})

B := Matrix(2, 2, {(1, 1) = b[11], (1, 2) = b[12], (2, 1) = b[21], (2, 2) = b[22]})

then C:= A*B :

Matrix(2, 2, {(1, 1) = a[11]*b[11]+a[12]*b[21], (1, 2) = a[11]*b[12]+a[12]*b[22], (2, 1) = a[21]*b[11]+a[22]*b[21], (2, 2) = a[21]*b[12]+a[22]*b[22]})

and my question follows:

Can I factor this result C and get the imput matrices A and B ? Is any function for this operation ? I would like to use it for matrices 3 time 3 not only for 2 times 2.

Thank you for your help,




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

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

to output


but instead the result is


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)


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


results in


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


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!?



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:




These examples are very simple.

Thank you

I made a prodecure:

local n,q:
for n from 1 to infinity do
if k=q then break;
end if;
end do;
return [q,n];
end proc;
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?

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) 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