Re: [sympy] is_indefinite returns nothing or error: 'simplify' flag is unsupported in roots()

2020-05-14 Thread Oscar Benjamin
On Thu, 14 May 2020 at 14:05, JS wrote: > > Should I report it as a bug on the github? There is currently none for > is_indefinite. > Writing something like > "is_indefinite returns error when it attempts to compute the eigenvalues. > Try to import the improvments `is_positive_definite`, >

Re: [sympy] is_indefinite returns nothing or error: 'simplify' flag is unsupported in roots()

2020-05-14 Thread JS
Should I report it as a bug on the github? There is currently none for is_indefinite. Writing something like "is_indefinite returns error when it attempts to compute the eigenvalues. Try to import the improvments

Re: [sympy] is_indefinite returns nothing or error: 'simplify' flag is unsupported in roots()

2020-05-14 Thread JS
Thank you. This has worked for all matrices that I have tried. : - ) Even M.is_positive_definite and M.is_negative_definite works. On Thursday, May 14, 2020 at 1:54:52 PM UTC+2, Oscar wrote: > > Looking at it seems that the improvements were for `is_positive_definite`, >

Re: [sympy] is_indefinite returns nothing or error: 'simplify' flag is unsupported in roots()

2020-05-14 Thread Oscar Benjamin
Looking at it seems that the improvements were for `is_positive_definite`, `is_positive_semidefinite` etc rather than `is_indefinite`. These cases compute fine: In [*11*]: B1.is_positive_semidefinite Out[*11*]: False In [*12*]: B1.is_negative_semidefinite Out[*12*]: False

Re: [sympy] is_indefinite returns nothing or error: 'simplify' flag is unsupported in roots()

2020-05-14 Thread Oscar Benjamin
There have been some recent improvements to the code handling this which you could try out by installing the pre-release of 1.6 with pip: pip install -U --pre sympy -- Oscar On Thu, 14 May 2020 at 09:07, JS wrote: > > Hello, > I have run into a problem with various matrices. I have read

[sympy] is_indefinite returns nothing or error: 'simplify' flag is unsupported in roots()

2020-05-14 Thread JS
Hello, I have run into a problem with various matrices. I have read Gotchas and Pitfalls and tried to search around, but I was unable to find anything relevant. For some matrices M, the *M.is_indefinite* simply *returns no output*. I have noticed that M.eigenvals() works for on these