trigonometric simplification
Publié : ven. sept. 29, 2017 10:48 am
Hello Bernard,
I suggest a new function dedicated specifically to trigonometric simplification, called trigsimplify. I attached the code below, it's a Makefile project which tests the function automatically. The function is very simple but effective, combining simplify, texpand, tcollect, tlin, trigtan, trigsin and trigcos in a certain order. The measure of complexity is the number of characters needed for textual representation of an expression (obtained by combining size and cat functions). If there's a better complexity measure within Giac, please let me know.
In many cases trigsimplify gives much more elegant results than the general simplify. I tested it on 25 expressions (see the enclosed PDF) with results in results.txt.
I suggest a new function dedicated specifically to trigonometric simplification, called trigsimplify. I attached the code below, it's a Makefile project which tests the function automatically. The function is very simple but effective, combining simplify, texpand, tcollect, tlin, trigtan, trigsin and trigcos in a certain order. The measure of complexity is the number of characters needed for textual representation of an expression (obtained by combining size and cat functions). If there's a better complexity measure within Giac, please let me know.
In many cases trigsimplify gives much more elegant results than the general simplify. I tested it on 25 expressions (see the enclosed PDF) with results in results.txt.