Karim Belabas on Sat, 04 Apr 2026 16:23:46 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: question on qfbsolve(Qfb(1,0,1),[N,F],3) call


* American Citizen [2026-04-04 02:36]:
[...]
> Suppose I have
> 
>    b = 741336
>    c = 362900
> 
>    How can I successfully merge the factor matrices for b and c into the
> final factor matrix for (2*b^2*c^2)^2 or 4*b^4*c^4 ?
[...]

Use matreduce and play directly with exponents.

? B = factor(b); C = factor(c);
? matreduce(matconcat([B,C]~)) == factor(b*c) 
%2 = 1
? B[,2] *= 4; C[,2] *= 4;
? matreduce(matconcat([factor(4), B,C]~)) == factor(4*b^4*c^4)
%3 = 1

Cheers,

    K.B.
-- 
Pr. Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique
Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77
http://www.math.u-bordeaux.fr/~kbelabas/