# Questions tagged [iteration]

The tag has no usage guidance.

81 questions
Filter by
Sorted by
Tagged with
27 views

### Force list of colours to have same grayscale value, maintaining hue

A sketch of what I'd like to achieve is given by ...
52 views

### How to do simple list traversal? And how do I insert this in a function?

I want to make a function that takes as input a list of numbers and returns a list of 4 lists; the first returned list holds all positive real; the second returned list all negative real; the third ...
122 views

### How to use NestList for coupled equations?

I have a code that works for a single equation. How to I use NestList for two equation that are coupled? Below is the code for single equation, ...
100 views

### Repeating and Sequencing Procedures with two Do-loops

I have a Do loop where I'm looking for the value of certain parameters that respect the conditions inside an If, and with those values, a run another Do to make another calculation of an expression ...
89 views

### Using the Fold function with multiple parameter inputs [closed]

I want to construct something like: f[a, b, c, f[a, b, c, f[a, b, c, f[a, b, c, f[a, b, c, f[a, b, c, x]]]]]]. I believe this can be done using the Fold or Nest ...
69 views

### Iteration limit exceeded

I am trying to adapt the following piece of code (coming from this answer): ...
160 views

### Heat transfer with functions defined on different domains

I'm attempting to model a situation in which a polymer initially at a higher temperature is sandwiched between two cooler metallic mold pieces with conductive boundary conditions in between the ...
266 views

### How to recreate this complex iteration

I came across this image in a book Im reading: (taken from Rational Iteration Complex Analytic Dynamical Systems from Steinmetz. I hope it is okay to share it here) and I try to recreate it in ...
77 views

### RecurrenceTable and While

Good day. Let's take an example from Help on RecurrenceTable: ...
96 views

### FoldList and Compile [closed]

Let me elaborate my previous question about Foldlist and Composition. ...
90 views

### FoldList with Composition and parameter

Good day to everyone! I have two (just for simple example) functions and they compose a map: ...
107 views

### Generating a lattice by $𝑁^{𝑡ℎ}$ iteration of unit cell

This question is in continuation of the my previous question that was not clearly presented by me at all. I have a unit cell, and I would like to generate a lattice but in iterative order. For ...
49 views

### Functional iteration of list of functions

I'm getting completely stumped on writing a function makeIterate that constructs an iterated structure out of a list of functions e.g. ...
82 views

### How do I correctly iterate using Outer when an argument / slot is a nested list?

I have the following complex nested iteration situation. I begin with a list, data, that comprises 16 TemporalData objects Each TemporalData object contains 2 ...
60 views

### n-dimensional recursion [closed]

I am trying to set up a recursive function that generates n number of differential equations for Subscript[y, n][t] This ...
53 views

### Iterative and recursive approach to generate Fibonacci sequence

I'm new to use Mathematica and using this demo project to understand Mathematic demo example. I modified example code to only plot the runtime of recursive version of Fibonacci sequence runtime: ...
116 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 ...
186 views

### How to code this iterative process?

I am facing difficulty to realize this double iterative process. The equations in question are The flow chart for the iterative process is given as The different parameters are defined as ...
102 views

### Optimizing my code for Broyden's method

The following code is my attempt of employing Broyden's method for root finding on the function $f(x,y)=(e^{xy}-y^2-2,\cos(x+y)+\frac{1}{2})$. Where the first matrix is the Jacobian, then it gets ...
33 views

### Nest not giving desired results

I am trying to use Nest to find result using fixed point iteration method, but when I find $g(x)$ and put it in Nest, it doesn't ...
187 views

50 views

### Recursion depth of 1024 exceeded during evaluation of ... when importing a directory with many files

I'm doing this: Import["/Volumes/Transcend2/images/", "*.jpg"]; And getting these errors: Then, after it's done, when I type "images" and shift+enter, I just ...
73 views

### What is the most efficient way to implement NestPairWhileList[f,expr,test,g]

Question NestWhileList[f,x,test] lets you iterate a function until a condition is satisfied, outputting the list of iterated values ...
37 views

### Get all step values from a while-loop

I did a loop (first of my life) for an iterative calculation. Is it possible to get all step values as a matrix. That means the "xValue" variable should be like {215.108,219.688,...} and not only the ...
93 views

### Iterative comparison between different vectors

I have some soccer outcomes for each league round to import in a data form similar to that: ...
90 views

### Iterative Bisector Method for finding the minimum of a non - differentiable function [closed]

I would like to automate a process to find the minimum of a non-differentiable function, perhaps using a similar system as the bisection method but adapted to finding minima instead of roots. Any ...
36 views

### cannot get EvaluationMonitor to output number of iterations taken to find a root

I was given the following problem: Consider the equation x = exp(-x2). Plot the two curves on the same plot to get a rough idea of the intersection point. Then use a built - in function (e.g. ...
98 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. ...
100 views

### Fixed point of a vector

It seems to me that FixedPoint is designed to work with a particular value, but what if we want it to operate on a vector instead? I start with an nxn matrix mat and the function: ...
86 views

### Nested For Do Table cycle problems

I got England and German soccer data with the following: ...
102 views

### turn infinite loop into finite loop

I am trying to make a table where I can save the stock value with the iterative part, where I should have 100 sequence with 843 entry in each sequence. The loop doesn't run correctly in the sense ...
147 views

### Running a notebook which imports and exports files repeatedly

I am trying to automate the process of running a Mathematica notebook that takes as an input a .txt file and exports another .txt file. This notebook was not written by me, and I don't fully ...