Feature #1313
Automatic conversion from RINGELEM to INT
Start date:
11 Sep 2019
Due date:
% Done:
0%
Estimated time:
Description
CoCoA-5 can be awkward about not "recognising" that a value is an integer.
f := x^2+3; v := subst(f,x,5); v; --> 28 SmoothFactor(v,5); --> ERROR expected INT but found RINGELEM
The "correct" current approach is to call AsINT
explicitly:
SmoothFactor(AsINT(v),5); --> works fine
However this is inconvenient and ugly (= makes the code harder to read).
Related issues
History
#1 Updated by John Abbott almost 5 years ago
- Related to Design #549: Automatic conversion from RINGELEM to INT or RAT added
#2 Updated by Anna Maria Bigatti about 4 years ago
- Target version changed from CoCoA-5.?.? to CoCoA-5.4.2
#3 Updated by Anna Maria Bigatti about 4 years ago
- Target version changed from CoCoA-5.4.2 to CoCoA-5.4.0
#4 Updated by John Abbott over 2 years ago
- Target version changed from CoCoA-5.4.0 to CoCoA-5.4.2