It seems the method for "divides" is inherited to a ring_of_integers, but has undesirable behaviour:

`f=CyclotomicField(3)`

`r=f.ring_of_integers()`

`gens=r.gens()`

`x=1+gens[1]`

`r(x).divides(r(gens[1]))`

returns "True". Have I overlooked something here?

1 | initial version |

It seems the method for "divides" is inherited to a ring_of_integers, but has undesirable behaviour:

`f=CyclotomicField(3)`

`r=f.ring_of_integers()`

`gens=r.gens()`

`x=1+gens[1]`

`r(x).divides(r(gens[1]))`

returns "True". Have I overlooked something here?

2 | No.2 Revision |

It seems the method for "divides" is inherited to a ring_of_integers, but has undesirable behaviour:

~~f=CyclotomicField(3)~~f = CyclotomicField(3) r = f.ring_of_integers() gens = r.gens() x = 1 + gens[1] r(x).divides(r(gens[1]))

`r=f.ring_of_integers()`

`gens=r.gens()`

`x=1+gens[1]`

`r(x).divides(r(gens[1]))`

returns "True". Have I overlooked something here?

3 | retagged |

It seems the method for "divides" is inherited to a ring_of_integers, but has undesirable behaviour:

```
f = CyclotomicField(3)
r = f.ring_of_integers()
gens = r.gens()
x = 1 + gens[1]
r(x).divides(r(gens[1]))
```

returns "True". Have I overlooked something here?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.