Skip to content

Commit

Permalink
Added is_unit_ideal property to Ideal.
Browse files Browse the repository at this point in the history
  • Loading branch information
GDeLaurentis committed Feb 26, 2024
1 parent d2f13b8 commit 1abbedb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions syngular/ideal.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ def delete_cached_properties(self):
def generators_eval(self, **kwargs):
return [eval(generator.replace("^", "**"), kwargs) for generator in self.generators]

@property
def is_unit_ideal(self):
return self == Ideal(self.ring, ('1', ))


def reduce(poly, ideal):
return ideal.reduce(poly)
Expand Down

0 comments on commit 1abbedb

Please sign in to comment.