Message Boards Message Boards

1
|
4861 Views
|
7 Replies
|
10 Total Likes
View groups...
Share
Share this post:

Reason for difference between Nest and NestList

Posted 4 years ago
POSTED BY: Timo Kuchheuser
7 Replies
POSTED BY: Hans Dolhaine
Posted 4 years ago
POSTED BY: Mike Besso
POSTED BY: Ahmed Elbanna
Posted 4 years ago

Timo:

That is a great question. But how is the implementation different? It seems to me they just described the function differently in the documentation.

But, I am still very new to all of this. I would really like to understand as well.

THANK YOU for the great question.

POSTED BY: Mike Besso
Posted 4 years ago

Timo:

From what I can tell, the documentation is perhaps a bit misleading one compared side by side.

Next[f, x, 0]

returns

x

While

Next[f, x, 1]

returns

f[x]

So, I think Nest supports n = 0 and works as expected.

I hope that helps.

Have a great and safe rest of your weekend.

POSTED BY: Mike Besso

Hey Mike,

thank you for your answer! I think i phrased my question wrong.

I was asking about the rational behind the decision to implement the parameter to both functions in different ways?!

All the best, Timo

POSTED BY: Timo Kuchheuser

I was asking about the rational behind the decision to implement the parameter to both functions in different ways?!

There is no difference.

Can you show an example that demonstrates a difference?

POSTED BY: Szabolcs Horvát
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract