Questions tagged [iteration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers
163 views

How can I solve iteratively for $\Sigma(r)$, T(r) and h(r)?

My naive attempt: ...
mattiav27's user avatar
  • 6,637
0 votes
1 answer
155 views

Mathematica does not show anything after running for higher iterations

Consider a BVP: $y^{\prime\prime}=\frac{3}{2}y(t)^{2}$ with the boundary conditions $y(0)=4$ and $y(1)=1$. The exact solution is $y(t)=\frac{4}{(1+t)^{2}}$ and the initial guess is $y(t)=4-3t$. Now I ...
Junaid's user avatar
  • 161
3 votes
3 answers
119 views

Symbolic nest expressions

I'm trying to understand how to use symbolic expressions as arguments. The following example represents my problem: ...
Svetlana's user avatar
  • 153
0 votes
1 answer
132 views

Solve integral equation by iteration

For[{n = 1, y[0][x_] = 1}, n < 4, n++, y[n][x_] = 1 + Integrate[y[n - 1][t]^2 + t^2, {t, 0, x}]; Print[{n, y[n][t]}]] here how can I get table of values ...
Thenmozhi S's user avatar
10 votes
5 answers
1k views

Simple Birth Death Process

I am trying to implement simple birth death process. Why my code does not work? Any suggestion. Thanks. Cross posted http://community.wolfram.com/groups/-/m/t/1205656 ...
OkkesDulgerci's user avatar
7 votes
2 answers
451 views

How can I iterate this process?

a = RandomVariate[UniformDistribution[{0, 1}]]; b = RandomVariate[UniformDistribution[{0, 1}]]; c = RandomVariate[UniformDistribution[{0, 1}]]; a + a b + a b c ...
geoffrey's user avatar
  • 837
5 votes
3 answers
363 views

How to use FoldList / NestList and Pure function for this?

...
Chen Stats Yu's user avatar
4 votes
1 answer
128 views

Iterative comparison between different vectors

I have some soccer outcomes for each league round to import in a data form similar to that: ...
Nate's user avatar
  • 401
3 votes
2 answers
129 views

Solving an integral vectorial equation by iterations

I'm triying to solve a problem like the following: $$ \binom{f(t)}{g(t)}=\binom{f_0(t)}{g_0(t)}+\lambda\int_0^t ds\hat{A}(s)\binom{f(s)}{g(s)}, $$ where $f_0(t),g_0(t)$ and $\hat{A}(t)$ (a $2\times2$ ...
Jorge Castaño's user avatar
3 votes
2 answers
544 views

two tier compound interest problem

I am trying to make sense of how mortgage repayment figures are calculated for two tier mortgages, where you fix your interest rate for a certain period and after that period, you fall back to the SVR ...
Shb's user avatar
  • 701
2 votes
1 answer
203 views

Nesting differential operators

Suppose I define differential operators $d=x\frac{\partial}{\partial x}$ and $L=g(x)d^4$ (so that $L(f)=g(x)(x\frac{\partial}{\partial x})^4f$ ) and I want to expand the differential operator $L=a_0+...
Bernoulli's user avatar
  • 183
1 vote
1 answer
81 views

Plotting iterates of a piecewise defined map

This is a follow up question to the one I asked here. I’ve succeeded in figuring out how to plot the first image of my piecewise defined transformation $T: [-1,1]^2 \to [-1,1]^2$, but now I want to ...
D Ford's user avatar
  • 125
1 vote
2 answers
138 views

Generating a $N^{th}$ iterative line graph from the adjacency matrix $M$. How to generate $M$?

I have a unit cell, and I would like to generate a lattice but in iterative order. For instance, consider the following example-- The unit cell is (zero iteration) This figure is generated by a ...
L.K.'s user avatar
  • 683
1 vote
2 answers
442 views

Chebyshev polynomials

How could I write the Chebyshev polynomial as a function that uses Nest? Also, how could I write it using recursion? Furthermore, how can I show that $T_n(x)=\...
abitofmath's user avatar
1 vote
1 answer
70 views

How do I construct and plot functions properly using NestList?

I am trying to construct a function using NestList and plot the values. Although the individually used and defined functions in my notebook seem to do the right ...
Eldar Sultanow's user avatar
1 vote
0 answers
104 views

FoldList with Composition and parameter

Good day to everyone! I have two (just for simple example) functions and they compose a map: ...
macros's user avatar
  • 99
1 vote
3 answers
134 views

Create a new matrix from an existing matrix and then plot it

I have some code will test an equation and finds values for (n,j,k,l) in which the expression is true and puts them in the matrix - here is the code. ...
Betty's user avatar
  • 101
1 vote
2 answers
162 views

In an iterative process, how does one simply bypass a step producing an error? [closed]

This is undoubtedly rather elementary, but the remedy escapes me presently (and does not, as far as I can see, readily appear in Help). I'm engaged in an iterative process with several computations ...
Paul B. Slater's user avatar
0 votes
0 answers
57 views

Iterating over a list and defining the range accordingly

I have the following list, l = {{"a", "b"}, {"a", "b"}, {"c", "d"}, {"e", "f"}, {"e", "f"}, {"x", "y", "z"}, {"m", "n", "o"}, {"p", "q", "s"}}; for each ...
Wiliam's user avatar
  • 2,946
0 votes
1 answer
51 views

Nest expressions of several arguments

I have the following function: Q[r_, f_, s0_] := Q[r, f, s0] = F[r, s0] D[f[s0], s0] By calling Q[r, Q[r, f, s0], s0] I ...
Svetlana's user avatar
  • 153
-2 votes
1 answer
67 views

How to make faster of a code containing more iteration point? [closed]

I am trying to evaluate a code of the Power Series Solution method to get the results. Also, the time of evaluation depends on the parameters I am using. When the iteration point is 50, 60, or 80, it ...
supragyan priyadarshinee's user avatar
-2 votes
1 answer
113 views

How to plot an iterative function of y(n+1) against y(n) in order to analyze the convergence of real power towers? [closed]

I'm new to mathematica and was wondering how to plot an iterative graph for power towers. If there is a power tower y= x^x^x^x^x^x^... we can rewrite it as an iterative equation in the following way: ...
boii's user avatar
  • 43