I resolved the issue for me: the problem seems to have been caused by me using subst instead of eval and then not simplifying (thus I had some expressions like cos(%pi) and cos(0)).
The manual says that the user is responsible for simplification before calling other functions, so I guess this can't be a Fricas bug. Regards, Neven -- 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/CAL%2BbK4ME3nFtO4Am%3DwKSZo%2BFQTqM78cfNDHLXk3-UOjGgu87Rw%40mail.gmail.com.