HP Forums
Bug: MAKELIST - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Bug: MAKELIST (/thread-5394.html)



Bug: MAKELIST - Tyann - 12-23-2015 06:27 AM

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 : {}


RE: Bug: MAKELIST - Dirk. - 12-23-2015 09:24 AM

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?


RE: Bug: MAKELIST - Tyann - 12-23-2015 11:30 AM

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 ...