Page 1 sur 1

'index':=1/0;

Publié : mer. sept. 12, 2018 4:17 pm
par compsystems
Hello, in xcas [a, b, c] [1]; always returns b, while in hpprime a or b depending on the index var flag, is it possible to incorporate this in xcas?

'index':=1; returns "[] index start 1"
[a,b,c][1];, returns a // ok

'index':=0; returns "[] index start 0"
[a,b,c][1]; returns b // ok

Re: 'index':=1/0;

Publié : mer. sept. 12, 2018 6:05 pm
par parisse
If you want indexes starting at 1, use [[ ... ]]