[sympy] Lambdify performance with repeated subexpressions

2016-10-14 Thread Albert Pető
Hi, I plan to heavily use a function generated with lambdify from a sympy expression which has repeated occurences of some subexpressions. Specifically it will have a lot of cosine and sine expressions with the same arguments. I don't know if lambdify can notice this pattern and evaluate that

[sympy] Lambdify performance with repeated subexpressions

2016-10-14 Thread Albert Pető
Hi, I would like to evaluate certain functions created with lambdify. Those functions would come from rotations and would have a lot of trigonometric function invocations in them with the same parameters. For example, lets suppose that it would contain cos(a) many times. I plan to heavily use