Design #301
How to obtain an integer from a finite field element? AsINT?
Status:
Closed
Priority:
Normal
Assignee:
Category:
CoCoA-5 function: new
Target version:
Description
Let X
be a ring elem belonging to a finite field.
How can I get an integer value from X
?
At the moment AsINT(X)
gives an error (about characteristic being non-zero); but in CoCoALib IsInteger
succeeds.
What is the right way to do it?
Related issues
History
#1 Updated by Anna Maria Bigatti about 10 years ago
- Target version set to CoCoA-5.1.0 Easter14
#2 Updated by John Abbott about 10 years ago
- Category set to CoCoA-5 function: new
- Status changed from New to Feedback
- Assignee set to John Abbott
- % Done changed from 0 to 90
This has already been done (long ago?): AsINT
and AsRAT
can be applied to RINGELEM
belonging to finite characteristic.
Changing state to feedback
#3 Updated by Anna Maria Bigatti about 10 years ago
- Estimated time set to 2.00 h
#4 Updated by John Abbott almost 10 years ago
- Status changed from Feedback to Closed
- % Done changed from 90 to 100
Closing because it's all been working fine for ages; no point in leaving it in feedback.