You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
True, but the default trigsimp algorithm doesn't call the groebner method.
Would adding lambda x: _eapply(cancel, x, trigs), to the tree shown in the code above make trigsimp also try canceling? I'm a little confused how the code to construct the tree works.
greedy tries the functions greedily to minimize the objective function which is defined above that code.
I think a problem that you would run into is that the objective is the number of trig functions (L) and then the total number of operations. But cancel actually increases the number of operations
simplify
does better thantrigsimp
in simplifying the following expression.As @asmeurer suspected, simplify writes the expression as a combined fraction first
It seems that trigsimp should try cancel() first somewhere in here
sympy/sympy/simplify/trigsimp.py
Lines 1132 to 1137 in fed3bb8
The text was updated successfully, but these errors were encountered: