Skip to content

Commit 39cee80

Browse files
committed
Document ideal interface
1 parent 8ea17bc commit 39cee80

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/make.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ makedocs(
9090
"field_interface.md",
9191
"fraction_interface.md",
9292
"module_interface.md",
93+
"ideal_inteface.md",
9394
"matrix_interface.md",
9495
"map_interface.md",
9596
"rand.md",

src/Poly.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3398,7 +3398,7 @@ is_separable(::PolyRingElem)
33983398

33993399
function is_separable(f::PolyRingElem{<:RingElement})
34003400
# Ford, Separable Algebras, 4.6.1 and 8.3.8
3401-
return is_one(ideal(base_ring(f), [f, derivative(f)]))
3401+
return gens(Generic.Ideal(parent(f), [f, derivative(f)])) == [1]
34023402
end
34033403

34043404
function is_separable(f::PolyRingElem{<:FieldElement})

0 commit comments

Comments
 (0)