Instruction sequence display in giac 1.5.0-21

Bugs

Modérateur : xcasadmin

symphorien
Messages : 2
Inscription : mer. oct. 04, 2017 8:02 pm

Instruction sequence display in giac 1.5.0-21

Message par symphorien » ven. déc. 07, 2018 10:50 am

Hello,
I recently tried to upgrade from xcas 1.4.9-59 to xcas 1.5.0-21. It broke sage tests because of a change in the display of instruction sequences:
In giac 1.4.9-59

Code : Tout sélectionner

0>> f(x) := { print(x); 2*x; }
 (x)->{ 
  print(x);  
  2*x;  
}
1>> f(2)
x:2
4
2>> norm(f(2))
x:2
4
instruction sequences are displayed as input, with curly brackets

In giac 1.5.0-21

Code : Tout sélectionner

0>> f(x) := { print(x); 2*x; }
 (x)->[print(x),2*x]
1>> f(2)
x:2
4
2>> norm(f(2))
x:2
4
they are displayed with square brackets. This only affects the display; as usual only the last value is considered for computations.

Is this change intended (in which case sage must be fixed) or is it a "bug" in giac ?

Reproduced on NixOS 19.03-pre 7c73f53d836af32624468e8de7730be1f033667c with the exact same libraries for both versions of xcas.

Thanks in advance

parisse
Messages : 5734
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Instruction sequence display in giac 1.5.0-21

Message par parisse » ven. déc. 07, 2018 7:23 pm

Frankly speaking, I have no idea why this has changed, probably a side effect of some other change. Unless it raises a real bug, I don't want to change something there for sage regression tests.

Répondre