Re: [sympy] Re: MatPow bug or inconsistency?

2019-07-11 Thread Jogi Miglani
I might had done work on this in #15712 . But in that case i considered the cases where the determinent of Matrix was zero. Although something can be changed here

Re: [sympy] Re: MatPow bug or inconsistency?

2019-07-11 Thread Gagandeep Singh (B17CS021)
I think for website the issue can be raised at, https://github.com/sympy/sympy.github.com/issues Is it the case that you are not on github? -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from

Re: [sympy] Re: MatPow bug or inconsistency?

2019-07-11 Thread Tomasz Pytel
The point being behavior is inconsistent between ** operator and doit(). -- 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 email to sympy+unsubscr...@googlegroups.com. To post to

Re: [sympy] Re: MatPow bug or inconsistency?

2019-07-11 Thread David Bailey
On 11/07/2019 17:40, Gagandeep Singh (B17CS021) wrote: In my opinion, it shouldn't happen. Feel free to raise an issue on github for this. A while back I was advised to report a SymPy website issue on github. The site said it would email me back (to set up a user name), and no message came.

Re: [sympy] Re: MatPow bug or inconsistency?

2019-07-11 Thread Oscar Benjamin
I don't have a computer to test but what happens if x is declared as an integer? For non-integer (or non-real) x the result doesn't necessarily hold. On Thu, 11 Jul 2019, 19:39 Tomasz Pytel, wrote: > Yes, various, try it with [[0,1],[1,0]] > > On Thursday, July 11, 2019 at 1:30:45 PM UTC-3,

[sympy] Re: MatPow bug or inconsistency?

2019-07-11 Thread Tomasz Pytel
Yes, various, try it with [[0,1],[1,0]] On Thursday, July 11, 2019 at 1:30:45 PM UTC-3, Gagandeep Singh (B17CS021) wrote: > > Ah! I missed that. > Have you tried a matrix other than identity? -- You received this message because you are subscribed to the Google Groups "sympy" group. To

[sympy] Re: MatPow bug or inconsistency?

2019-07-11 Thread Gagandeep Singh (B17CS021)
Ah! I missed that. Have you tried a matrix other than identity? -- 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 email to sympy+unsubscr...@googlegroups.com. To post to this

[sympy] Re: MatPow bug or inconsistency?

2019-07-11 Thread Tomasz Pytel
Expected: Matrix([[1,0],[0,1]])**x == MatPow (Matrix([[1,0],[0,1]]), x).doit () -- 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 email to sympy+unsubscr...@googlegroups.com.

[sympy] MatPow bug or inconsistency?

2019-07-11 Thread Gagandeep Singh (B17CS021)
I believe the results are looking fine. Can you please let us know what you actually expected? -- 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 email to

[sympy] MatPow bug or inconsistency?

2019-07-11 Thread Tomasz Pytel
Matrix([[1,0],[0,1]])**2 = Matrix([ [1, 0], [0, 1]]) Matrix([[1,0],[0,1]])**x = Matrix([ [1, 0], [0, 1]]) MatPow (Matrix([[1,0],[0,1]]), 2).doit () = Matrix([ [1, 0], [0, 1]]) MatPow (Matrix([[1,0],[0,1]]), x).doit () = *Matrix([* *[1, 0],* *[0, 1]])**x* -- You received this message because

Re: [sympy] Algebra for GroupBy statements

2019-07-11 Thread Pauli Rikula
The purpose of the equation should be representation of the sorting pipeline. Maybe the aggregate functions could be nodes on the graph which take list slices as input and give finer slices as output On Thu, 11 Jul 2019, 13:53 'Felix Neutatz' via sympy, < sympy@googlegroups.com> wrote: > Thank

Re: [sympy] Algebra for GroupBy statements

2019-07-11 Thread 'Felix Neutatz' via sympy
Thank you, Pauli, for the fast answer :) I understand that by using categories, we get a grouping, e.g. from sympy.abc import X, Y print((C(X) * C(Y)).evaluate()) However, I do not understand how to incorporate aggregate functions, such as Min, Max, Stddev, ... Furthermore, I assume that I

Re: [sympy] Algebra for GroupBy statements

2019-07-11 Thread Pauli Rikula
See my category equation module. Your 'thengroupby' is the multiplication there. The *-1 has to be done in some other way though. I have to think it a bit. If you can find out how to manipulate those equations with sympy automatically, tell me also.