Page 1 sur 1

approx mode

Publié : mar. sept. 25, 2007 1:32 pm
par frederic han
Bonjour,

je ne sais pas si c'est normal, mais j'ai l'impression que list2mat par exemple ne marche pas en approx_mode:

Press CTRL and D simultaneously to finish session
Type ?commandname for help
0>> maple_mode(0);
"Warning: some commands like subs might change arguments order"

// Time 0
1>> approx_mode:=0;
0

// Time 0
2>> list2mat([1,2,1/3,4,5,6],2)
[[1,2],[1/3,4],[5,6]]

// Time 0
3>> approx_mode:=1;
1

// Time 0
4>> list2mat([1,2,1/3,4,5,6],2)
[[[1.0,2.0,0.333333333333,4.0,5.0,6.0],2.0]]

Publié : mar. sept. 25, 2007 4:07 pm
par parisse
en effet, list2mat attend un entier en 2eme argument, or c'est un flottant. Il faudra que je rajoute une conversion. En attendant tu peux faire
list2mat([1,2,1/3,4,5,6],exact(2))