Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.4K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Make a simulation using NestWhileList- iterating arrays

Posted 5 years ago
POSTED BY: Yoav Kerner
2 Replies
Posted 5 years ago

Hi Yoav,

What are the values of λ, μ and T? I would start with a simpler example that works and adapt it to your problem. e.g.

NestWhileList[If[#[[1]] < 2, #*2, #*3] &, {1, 2, 3}, #[[3]] < 12 &]
(* {{1, 2, 3}, {2, 4, 6}, {6, 12, 18}} *)
POSTED BY: Rohit Namjoshi
Posted 5 years ago

Thanks Rohit

The values were predefined. The mistake was stupid. I put the "&" not after the "T" in the test.
I looked at your example and realized it. Many thanks.

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