Group Abstract Group Abstract

Message Boards Message Boards

solve a problem with two equations and x[i+1]-x[i] , RecurrenceTable?

Posted 9 years ago
POSTED BY: Matthew Doyon
2 Replies
Posted 9 years ago

Hi I apologize the question was not really clear. I was eventually able to figure it out. Mathematica has a handy built in function RSolve for recurrence equations. Because I need to plot the data, I ended up using RecurrenceTable[], like the following:

RecurrenceTable[ { (x[i + 1] - x[i] == ... ...

ListPlot[%, PlotRange -> All]

POSTED BY: Matthew Doyon

You can define x[i] this way:

x[1] = whatever;
x[i_] := x[i] = x[i - 1] + largeEquation;

I don't quite understand what you want to do with it.

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