I forgot, FriCAS in march 2020:
)set mess type off
)set output length 45
x : UP(x,INT)
y : UP(y,UP(x,INT))
z : UP(z,UP(y,UP(x,INT)))
t : UP(t,UP(z,UP(y,UP(x,INT))))
f :=  x + y + z + t + 1
p := f^30;
)set mess time on
q := p*(p+1);
Type: 
UnivariatePolynomial(t,UnivariatePolynomial(z,UnivariatePolynomial(y,UnivariatePolynomial(x,Integer))))
                                               Time: 184.01 (EV) = 184.01 sec


f : MPOLY([x,y,z,t],INT) := x + y + z + t + 1
p := f^30;
)set message time on
q := p*(p+1);
(3) -> q := p*(p+1);

                              Type: MultivariatePolynomial([x,y,z,t],Integer)
                                               Time: 283.59 (EV) = 283.59 sec

So an amelioration for nested univariate polynomials.

Today (multivariate):
(2) -> f : MPOLY([x,y,z,t],INT) := x + y + z + t + 1
p := f^30;

   (2)  x + y + z + t + 1
                              Type: MultivariatePolynomial([x,y,z,t],Integer)
(3) -> )set message time on

                              Type: MultivariatePolynomial([x,y,z,t],Integer)
(4) -> (4) -> q := p*(p+1);
(3) -> q := p*(p+1);

                              Type: MultivariatePolynomial([x,y,z,t],Integer)
                             Time: 0 (IN) + 227.10 (EV) + 0 (OT) = 227.10 sec
(5) -> q := p*(p+1);

                              Type: MultivariatePolynomial([x,y,z,t],Integer)
                             Time: 0 (IN) + 227.53 (EV) + 0 (OT) = 227.53 sec
Idem.
That's all.

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/CAHnU2dbPpcnTet6WM3pMma-bWV5uuR-vwj2xEK3KCs6XaA2X6g%40mail.gmail.com.

Reply via email to