WOLFRAM COMMUNITY
Connect with users of Wolfram technologies to learn, solve problems and share ideas
Join
Sign In
Dashboard
Groups
People
Message Boards
Answer
(
Unmark
)
Mark as an Answer
WOLFRAM COMMUNITY
Dashboard
Groups
People
1
|
4382 Views
|
2 Replies
|
4 Total Likes
View groups...
Follow this post
Share
Share this post:
GROUPS:
Mathematics
Mathematica
Double nesting a function?
Bryan Lettner
Bryan Lettner
Posted
11 years ago
I need to write a function of 4 variables [p,x,n,H] that outputs a list of the following list elements:
As you can see, each output contains all previous outputs, but not in the traditional "NestList" way. I'm trying to write a function that describes the above. I've tried NestList, FoldList, and Module to no avail.
POSTED BY:
Bryan Lettner
Reply
|
Flag
2 Replies
Sort By:
Replies
Likes
Recent
1
Bryan Lettner
Bryan Lettner
Posted
11 years ago
Thanks Ilian. Works well
POSTED BY:
Bryan Lettner
Reply
|
Flag
2
Ilian Gachevski
Ilian Gachevski, Wolfram Research
Posted
11 years ago
Perhaps something like
In[1]:= a[k_] := Floor[(p * x)/n^(H - k) - Sum[n^(k - j) a[j], {j, 0, k - 1}]]
In[2]:= a[0]
Out[2]= Floor[n^-H p x]
In[3]:= a[1]
Out[3]= Floor[n^(1 - H) p x - n Floor[n^-H p x]]
POSTED BY:
Ilian Gachevski
Reply
|
Flag
Reply to this discussion
in reply to
Add Notebook
Community posts can be styled and formatted using the
Markdown syntax
.
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Publish anyway
Cancel
Reply Preview
Attachments
Remove
Add a file to this post
Follow this discussion
or
Discard
Group Abstract
Be respectful. Review our
Community Guidelines
to understand your role and responsibilities.
Community Terms of Use
Feedback
Enable JavaScript to interact with content and submit forms on Wolfram websites.
Learn how »