HP Forums

Full Version: Bug: MAKELIST
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 : {}
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?
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 ...
Reference URL's