Hi,

I'd like to symbolically simplify trigonometric expressions, which may become quite large. In another thread Aaron Meurer pointed out that expand(expand(a.rewrite(exp)).rewrite(cos)) may be a solution.

The result is good for the small example expression (takes reasonable time). But for larger expressions the expand after rewrite(exp) won't finish or take too much memory. I tried to disable caching, to split the expression with e.g. Add.make_args and to disable some of expand's hints (also force=True or using expand_mul). That was rather not successful yet.

Here is example code: http://www.ovgu.de/bargsten/download/simptest.tar.bz2 (8KB)

What would you recommend?

Note that I have problems to run this code with my python3 sympy installation (immediately recursion limit exceeded). This is not a problem with python 2.7 .

Regards,
Vinzenz

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to