Opened 9 years ago
Closed 9 years ago
#607 closed bug (fixed)
bug in 'hasRingCoefficientRing()'
Reported by: | Owned by: | somebody | |
---|---|---|---|
Priority: | minor | Milestone: | 4-1-0 and higher |
Component: | singular-libs | Version: | 4-0-0 |
Keywords: | Cc: |
Description
Hello,
due to the documentation hasRingCoefficientRing
checks if the coefficient ring is not a field
Here is a failing example:
LIB("ring.lib"); ring rng = (integer),x,dp; hasRingCoefficientRing(rng); //=1, wrong (coefficient ring is a field)
Also the naming is unfortunate since a field is a ring, too.
Naming proposal:
coefficientRingIsField
or similar
Best,
Jakob
Note: See
TracTickets for help on using
tickets.
coefficients form always a commutative ring with 1. Made documentation more clear: return 0 if they form a field. By the way: integers are NOT a field.