Rules are used for that, see the Fricas Book, e.g., the section "0.8 Pattern Matching".
On Thu, Mar 9, 2023, 03:42 'Nasser M. Abbasi' via FriCAS - computer algebra system <[email protected]> wrote: > How does one tell Fricas to simplify sin(x)/cos(x) to tan(x)? > > simplify(sin(x)/cos(x)) does not do the trick. > > I noticed this when integrating 1/cos(x)^2 > which should return tan(x) but Fricas returned sin(x)/cos(x) > (Ofcourse Fricas answer is correct), but tan(x) is simpler. > > Should not this be an automatic simplification? > Mathematica does it without even calling Simplify. > > --Nasser > > -- > 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/0e8c3035-7081-4145-a367-630b91c604e0n%40googlegroups.com > <https://groups.google.com/d/msgid/fricas-devel/0e8c3035-7081-4145-a367-630b91c604e0n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAL%2BbK4OpYddLxnkf8M-EPxhtmUAhpqjTBtYLZpKxkXViurFbdA%40mail.gmail.com.
