------- Original Message ------- On Thursday, July 20th, 2023 at 6:53 PM, Waldek Hebisch <de...@fricas.math.uni.wroc.pl> wrote:
> (34) -> lk := kernels(re) > (36) -> ker_l := lk(2) > (37) -> univariate(re, ker_l) > (38) -> nu := numer(%) > (40) -> box(l^2*coefficient(nu, 2)) + box(coefficient(nu, 0)) > This is very general technique: using > 'kernels', 'univariate', 'numer', 'donom' and possibly recursing > on kernels using 'operator' and 'argument' your routine can dissect > expression and transform it in any desirable way. For results you > can use 'box' or 'paren', or if only printing is involved you > could produce an OutputForm. Thank you for the information. Maybe I'll get back to this method if I won't be able to do everything I want with commands that Ralf suggests. -- 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/JnB3UqzRds9FyXn_Olxc_wj3WNFCxVr7wjxH6zaJFNIfalQXXxII2M9sJMdIPHYmmV_nns4FCNbvqsiAtLa2sPK8NFsgGznGRtxJspiMLgY%3D%40proton.me.