Ok, I've added CSE of Add and Mul arguments (only commutative terms):
http://nbviewer.ipython.org/5986996
It runs faster compared to current sympy.cse, even more if applying it to
large expressions.
However, it still lacks a lot of features, which I'll try to address using
sympy.cse unit tests.
Hi Cristóvão,
Excellent. Let us know if you need help with submitting a PR.
Ondrej
On Fri, Jul 12, 2013 at 1:32 PM, Cristóvão Sousa wrote:
> Ok, I've added CSE of Add and Mul arguments (only commutative terms):
> http://nbviewer.ipython.org/5986996
>
> It runs faster compared to current sympy.c
Ok, thanks :)
On Fri, Jul 12, 2013 at 8:36 PM, Ondřej Čertík wrote:
> Hi Cristóvão,
>
> Excellent. Let us know if you need help with submitting a PR.
>
> Ondrej
>
> On Fri, Jul 12, 2013 at 1:32 PM, Cristóvão Sousa wrote:
>> Ok, I've added CSE of Add and Mul arguments (only commutative terms):
>>
On Thu, Jul 11, 2013 at 5:01 AM, Mateusz Paprocki wrote:
> Hi,
>
> On 11 July 2013 11:14, Thilina Rathnayake wrote:
>
>> Hi,
>>
>> I implemented the extended_euclid() in Diophantine module without
>> knowing that
>> gcdex() existed. However, Chris pointed out that extended_euclid() is
>> much fa
On Thu, Jul 11, 2013 at 3:51 AM, F. B. wrote:
> I noticed some methods of BasicMatrix use a trick to create a zero matrix,
> then compiling its values and returning it, e.g.
>
> newmat = self.zeros(self.rows, self.cols + rhs.cols)
>
> newmat[:, :self.cols] = self
>
> newma
Is it enough to just use collect(evaluate=False), with the second argument
being a list of all the things that your expressions might be coefficients
of?
Aaron Meurer
On Sun, May 26, 2013 at 10:13 AM, Alan Bromborsky wrote:
> I have real scalar expressions I am trying to simplify. The examples
Hi
I am having some trouble lambdifying the dynamicsymbols ..
on doing ..
a = dynamic_symbols('a')
f = lambdify(a,some_expr)
I am getting an invalid syntax error ..
lambda a(t): some_expr
It seems that lambda is unable to process the (t) representation of the
dynamic symbols. Is there any hac