"construct" is not slow, it just sorts its argument and scans it once. "construct!" just skips one copy. They are faster than "sortAndAdd" or "+".
On Wed, Jul 24, 2019, 11:32 PM Waldek Hebisch <hebi...@math.uni.wroc.pl> wrote: > oldk1331 wrote: > > > > Isn't "construct" carefully eliminate terms with zero coefficient? > > 'construct' for MonoidRing is should eliminate terms with zero > coefficients, but IIUC it is quite slow. You called 'construct!' > which seem to be defiend only for aggregates. For aggregates > eliminating zero coefficients would be incorrect... > > -- > Waldek Hebisch > > -- > 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 fricas-devel+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/fricas-devel/E1hqJFL-0001SC-NR%40hera.math.uni.wroc.pl > . > -- 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 fricas-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/CAGBJN90t2aTwiB-yArJnCkApg02cSuZXvmGcd%2BMM6jMyyL_T-A%40mail.gmail.com.