Post Reply 
Bug: MAKELIST
12-23-2015, 06:27 AM (This post was last modified: 12-23-2015 06:29 AM by Tyann.)
Post: #1
Bug: MAKELIST
Bonjour
Je ne sais pas si cela a été déjà signalé :

Hello
I do not know if this has already been reported :

Code:
MAKELIST(10,I,1,2)
---> {10,10} ok
Code:
MAKELIST(10,I,1,1)
---> {10} ok
Code:
MAKELIST(10,I,1,0)
---> {10,10} ???
Cela devrait être :
This should be : {}

Sorry for my english
Find all posts by this user
Quote this message in a reply
12-23-2015, 09:24 AM
Post: #2
RE: Bug: MAKELIST
Bonjour Tyann,
is this really a bug?

Try MAKELIST(I,I,1,0) and similar examples to see what happens.
MAKELIST(I,I,5,0) --> {5,4,3,2,1,0}
with a bit of imagination this can be expected when reading the online-help.

Of course MAKELIST(I,I,5,0,-1) has to give the same result. And it does.

Try MAKELIST(10,I,1,0,1) --> {} which might be what you expected.

Playing a bit around, I noticed MAKELIST(I,I,5,0,1) gave "Error: Insufficient Memory" this might be a bug?
Find all posts by this user
Quote this message in a reply
12-23-2015, 11:30 AM
Post: #3
RE: Bug: MAKELIST
Bonjour
Effectivement vous avez surement raison.
Mais l'aide en ligne est trompeuse.
citer :
Evalue les valeurs expressions, augmentant variable de début à fin ...

Hello
Actually you probably right .
But the online help is misleading.
quote :
Evaluates expressions values ​​, increasing variable beginning to end ...

Sorry for my english
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)