# minpoly() should use PurePoly #5850

Open
opened this Issue Oct 19, 2011 · 2 comments

Projects
None yet
3 participants
Member

### asmeurer commented Oct 19, 2011

 ``````minpoly() used to use Pure, but when this was removed, it was made to use a Dummy instead of PurePoly. This means that the results don't compare equal to each other. In [1]: minpoly(sqrt(2)) Out[1]: 2 x - 2 In [2]: type(minpoly(sqrt(2))) Out[2]: sympy.core.add.Add In [3]: minpoly(sqrt(2)) == minpoly(sqrt(2)) Out[3]: False `````` Original issue for #5850: http://code.google.com/p/sympy/issues/detail?id=2751 Original author: https://code.google.com/u/asmeurer@gmail.com/ Original owner: https://code.google.com/u/asmeurer@gmail.com/
Member

### asmeurer commented Mar 20, 2012

 ``````**Status:** Valid `````` Original comment: http://code.google.com/p/sympy/issues/detail?id=2751#c1 Original author: https://code.google.com/u/asmeurer@gmail.com/
Member

### smichr commented Apr 19, 2013

 ``````Although death of dummy_eq has been called for, it can be used for this: >>> minpoly(sqrt(2)).dummy_eq(minpoly(sqrt(2))) True `````` Original comment: http://code.google.com/p/sympy/issues/detail?id=2751#c2 Original author: https://code.google.com/u/117933771799683895267/

### skirpichev added a commit to skirpichev/diofant that referenced this issue Mar 13, 2018

``` polys: minimal_polynomial/primitive_elements produce PurePoly's ```
`Closes sympy/sympy#5850`
``` 2883353 ```

### skirpichev added a commit to skirpichev/diofant that referenced this issue Mar 14, 2018

``` polys: minimal_polynomial/primitive_elements produce PurePoly's ```
`Closes sympy/sympy#5850`
``` 34e376b ```

### skirpichev added a commit to skirpichev/diofant that referenced this issue Mar 14, 2018

``` polys: minimal_polynomial/primitive_elements produce PurePoly's ```
`Closes sympy/sympy#5850`
``` 406d650 ```