Instruction sequence display in giac 1.5.0-21
Publié : 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
instruction sequences are displayed as input, with curly brackets
In giac 1.5.0-21
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
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
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
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