Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

# Questions tagged [iteration]

The tag has no usage guidance.

35 questions
Filter by
Sorted by
Tagged with
34 views

147 views

### FixedPoint doesn't work

Do you know why it doesn't print any result?I set intial value is 0.1, h[x_] = Sin[x]; (*Plot[{x,h[x]},{x,1,50}]*) FixedPoint[h[#] &, 0.1];
123 views

### How to iteratively build a list?

I have the following c++ code that I want to translate to Mathematica. ...
39 views

### How to save a all matrices renewed in each iteration?

I have a (n by m) matrix , in which the elements are recalculated and replaced by new ones in each iteration. (In other words I have a loop in which the elements of the mentioned matrix are being ...
92 views

### How can I create loop for this iteration integration [closed]

I have definite integral of the form $$f(x)=\int_{-\pi}^\pi\frac{x^2-1}{(x^2-1)^2+x^2+y^2+f(x)}dxdy$$ I want to make a code to calculate $f(x)$ numerically, starting from $f(x)=0$ and stopping when ...
231 views

### Iterate over deepest values in a nested Association

Is it possible to iterate over the values of the deepest layer of keys in a nested association? For example: ...
128 views

### How do we optimise double Tables?

I have made the following code which I shall explain it in two parts: First Part: ...
38 views

### Function iteration

I wrote a function in Mathematica that applies certain construction steps on the "incidence matrix" of a graph in order to obtain a new graph with certain properties. These construction steps can be ...
120 views

### Efficient way to iterate over large list and check conditions

The problem I am trying to solve is how to assign charges to a number of particles based on some conditions on the charges. It is conceptually very simple but requires processing a very large list. ...
79 views

### Iterating of piecewise function

I have this piecewise function $$f(x)=\begin{cases} x(1.5-0.5x) \quad\text{if x\le0.5},\\ x(0.5+0.5x) \quad\text{if x>0.5}. \end{cases}$$ How can I calculate iterated functions for it?
85 views

59 views

### Is there a way to get values from a set of functions with circular dependencies? [closed]

I am using the following code to find iteratively the functions $\Sigma(r)$, $h(r)$ and $T(r)$ ...
104 views

### How to use a test function correctly to terminate a While loop?

I define a test function in order to stop my While loop: ...
93 views

### How can I make my code containing a For loop more Mathematica-style?

I know there are a lot of questions on this site regarding the use of For loops and how to avoid them in Mathematica. However, in my case I believe it is justified,...
562 views

### Iteration on a matrix

I want to update "matrix1" 100 times. "matrix3" will be new "matrix1" and it will iterate 100 times. Should I use a loop or function? First iteration is: ...