Project

General

Profile

Feature #1313

Automatic conversion from RINGELEM to INT

Added by John Abbott over 4 years ago. Updated about 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
enhancing/improving
Target version:
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

Related to CoCoA-5 - Design #549: Automatic conversion from RINGELEM to INT or RATClosed2014-05-07

History

#1 Updated by John Abbott over 4 years ago

  • Related to Design #549: Automatic conversion from RINGELEM to INT or RAT added

#2 Updated by Anna Maria Bigatti almost 4 years ago

  • Target version changed from CoCoA-5.?.? to CoCoA-5.4.2

#3 Updated by Anna Maria Bigatti almost 4 years ago

  • Target version changed from CoCoA-5.4.2 to CoCoA-5.4.0

#4 Updated by John Abbott about 2 years ago

  • Target version changed from CoCoA-5.4.0 to CoCoA-5.4.2

Also available in: Atom PDF