[sympy] collecting common factors in a matrix

2015-11-27 Thread Riccardo Rossi
Dear list, i am a newby to sympy, and i should say that i liked what i found, so ... first of all kudos to the developers. as of now i can succesfully generate my finite element matrices using sympy, which saves me quite a lot of work. the point is that now i would like to optimize a bit what

Re: [sympy] collecting common factors in a matrix

2015-11-28 Thread Riccardo Rossi
UTC+1, Mateusz Paprocki wrote: > > Hi, > > On 27 November 2015 at 19:34, Riccardo Rossi > wrote: > > Dear list, > > > > i am a newby to sympy, and i should say that i liked what i found, so > ... > > first of all kudos to the developers. > > >

Re: [sympy] collecting common factors in a matrix

2015-11-29 Thread Riccardo Rossi
ook at https://github.com/sympy/sympy/pull/7318. I remember that > this PR didn't work for all matrices (I guess matices including expressions > with sqrt(2)). If we find a better way to determine the common factor, I'll > update the PR. > > On Saturday, November 28, 20

Re: [sympy] collecting common factors in a matrix

2015-12-01 Thread Riccardo Rossi
exact same > SymPy symbol object. > > Check out this page for some more info: > http://docs.sympy.org/dev/gotchas.html#variables > > Jason > > > Jason > moorepants.info > +01 530-601-9791 > > On Sun, Nov 29, 2015 at 2:44 AM, Riccardo Rossi > wrote: > &

[sympy] defining a derivative

2016-10-14 Thread Riccardo Rossi
Dear List, i am writing since i would like to define the output of the derivative of a function, and i don't have a clue of how to achieve it to explain what i wish to do, let's consider the following script from sympy import * u = symbols('u') der = symbols('der') e = symbols('e', cls=Functio

Re: [sympy] defining a derivative

2016-10-16 Thread Riccardo Rossi
hould define fdiff, which should return the derivative of the > function without consideration of the chain rule. For example, search > for "fdiff" in this file to see some examples for exp, log, and > LambertW > https://github.com/sympy/sympy/blob/master/sympy/functions/

Re: [sympy] defining a derivative

2016-10-16 Thread Riccardo Rossi
Dear Aaron, your suggestion did work, HOWEVER i had to upgrade sympy to 1.0. It did nothing on 0.7.6 (the default one on ubuntu 16.04) only writing here to "document" this behaviour regards Riccardo -- You received this message because you are subscribed to the Google Groups "sympy" group.

Re: [sympy] defining a derivative

2016-10-17 Thread Riccardo Rossi
('e'), symbols('e'), symbols('DsDe') ) print(diff(s,e).doit()) returns rrossi@PCCB076:~/data/examples$ python3 test_derivatives2.py - in eval -. Looks like here it is not creating the object ... s = s diff(s,e).doit() = 0 *and what is the

Re: [sympy] incorrect output when derivative respect to function, sometimes doit() give the corect answer, sometimes not

2016-10-24 Thread Riccardo Rossi
Could this be the same as the problem I see here? https://groups.google.com/forum/m/#!topic/sympy/ogz52F5Ol5c Regards Riccardo -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an e

[sympy] Re: defining a derivative

2016-11-11 Thread Riccardo Rossi
ping! any more possible feedback on this? thx in advance Riccardo On Friday, October 14, 2016 at 10:53:27 AM UTC+2, Riccardo Rossi wrote: > > Dear List, > > i am writing since i would like to define the output of the derivative of > a function, and i don't have a clue