Message Boards Message Boards

GROUPS:

[✓] Define a range of values for this recurrent equation?

Posted 10 months ago
1036 Views
|
4 Replies
|
3 Total Likes
|

Hello,

I want to plot the values for n from 0 to 100 for this recurrent equation:

g(0)=0.6 | g(n+1)=g(n)^3 * 4- 3 * g(n) 

How do I do it?

Thank you.

4 Replies

One way is with NestList:

f[x_] = 4 x^3 - 3 x;
values = NestList[f, .6, 100]
values // ListPlot
values // NumberLinePlot
Posted 10 months ago

Thank you Gianluca, but how do you enter a request with multiple lines in Wolfram Alpha?

It's in fact only one line

NumberLinePlot[NestList[(4 #^3 - 3 #) &, .6, 100]]

or another single line

ListPlot[NestList[(4 #^3 - 3 #) &, .6, 100]]
Posted 10 months ago

It works! Thanks a lot, guys!

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