Page 1 sur 1

Instruction sequence display in giac 1.5.0-21

Publié : ven. déc. 07, 2018 10:50 am
par symphorien
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

Re: Instruction sequence display in giac 1.5.0-21

Publié : ven. déc. 07, 2018 7:23 pm
par parisse
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.