Project

General

Profile

Bug #930

Printing TwinFloat as (rational) coeff without brackets

Added by John Abbott over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Improving
Target version:
Start date:
24 Sep 2016
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

A polynomial with TwinFloat coeffs does not put the coeffs in brackets.

RR := NewRingTwinFloat(32);
use RR[x];
x/3;  --> 1/3*x instead of (1/3)*x


Related issues

Related to CoCoALib - Design #1156: Printing for RingElemNew2018-02-12

History

#1 Updated by John Abbott over 7 years ago

Since we have decided that expressions of the form 1/3*x deserve a warning on input, and since with genuine rational coeffs the printing puts brackets around the coeff, it should do so also with twinfloats which are recognized as rationals.

I expect the function IamPrintAtom needs to be modified...
Should be easy, but not so important ==> low priority.

#2 Updated by John Abbott about 6 years ago

Also available in: Atom PDF