Re: Issue 3970 in sympy: A bug on the degree function

2013-12-22 Thread sympy
Comment #4 on issue 3970 by avichal@gmail.com: A bug on the degree function http://code.google.com/p/sympy/issues/detail?id=3970 Currently the degree() function converts the expression into a polynomial class and then calls the class' degree method. I was thinking of the following

Re: Issue 3970 in sympy: A bug on the degree function

2013-12-22 Thread sympy
Comment #5 on issue 3970 by teddy_bo...@yahoo.fr: A bug on the degree function http://code.google.com/p/sympy/issues/detail?id=3970 Hi, I think that solution 1 is better, constants don't depend on any generator Merry Christmas! -- You received this message because this project is

Re: Issue 3970 in sympy: A bug on the degree function

2013-12-22 Thread sympy
Comment #6 on issue 3970 by asmeu...@gmail.com: A bug on the degree function http://code.google.com/p/sympy/issues/detail?id=3970 degree(0) == -oo has already been fixed. I agree it would be nice for degree to work if there are no symbols in the expression. -- You received this message

Re: Issue 3970 in sympy: A bug on the degree function

2013-12-19 Thread sympy
Comment #3 on issue 3970 by teddy_bo...@yahoo.fr: A bug on the degree function http://code.google.com/p/sympy/issues/detail?id=3970 Hi, indeed, the gen parameter may have caused the error. To my mind, it would be clever that degree works the way you propose. (and maybe with a degree(0) =

Re: Issue 3970 in sympy: A bug on the degree function

2013-12-18 Thread sympy
Comment #2 on issue 3970 by avichal@gmail.com: A bug on the degree function http://code.google.com/p/sympy/issues/detail?id=3970 Is this issue still valid? I get the following result: - In [7]: degree(sympify(1), gens=x) Out[7]: 0 Note that the original poster wrote gen=x instead of

Re: Issue 3970 in sympy: A bug on the degree function

2013-08-11 Thread sympy
Updates: Status: Valid Labels: Polynomial Comment #1 on issue 3970 by asmeu...@gmail.com: A bug on the degree function http://code.google.com/p/sympy/issues/detail?id=3970 It works if you pass a Poly (though we currently have the stupid -1 convention for 0 instead of -oo).

Issue 3970 in sympy: A bug on the degree function

2013-08-10 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 3970 by teddy_bo...@yahoo.fr: A bug on the degree function http://code.google.com/p/sympy/issues/detail?id=3970 The function raises an exception on constants while it should answer 0 (and even -oo on Zero in input)