# Questions tagged [nest]

The tag has no usage guidance.

48 questions
Filter by
Sorted by
Tagged with
118 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, ...
58 views

### How to use NestWhile to get it to work the way I want?

I have a vector th={0,0,...,1.57}. Now I want to choose the second element and change it by stepsize 0.2 until it is less than 1.57, I need these set of vectors: th={0,0.2,0,...,1.57} th={0,0.4,0,...,...
116 views

### NestList in 12.1/12.2 is 10x slower than 11.3/12.0

Are there any configurations to fix it? Test code: ...
39 views

### Why Mathematica doesn't compute the permutation products in my NestList[]?

I wrote the following: K = DihedralGroup[5]; K = GroupGenerators[K]; y = K[[1]]; x = K[[1]]; l = NestList[PermutationProduct[x, y], x, 4] But Mathematica gives me ...
31 views

### Multiple nested (time ordered) integrals with NIntegrate

I want to construct and calculate multiple (time - ordered) nested integrals of two functions: the "fo" function is applied to the odd and even "fe" to the even times. I have ...
39 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 ...
52 views

### How to write a function returning Chebyshev Polynominals of the first kind using Nest[]? [duplicate]

I want to create a function returning the Chebyshev polynomials of the first kind using the in build Nest[] function, preferably with a pure function. I know there exist an in-build function for the ...
40 views

### Iterating MovingMap with Nest

I am trying to create a background correction inspired by the PyMca strip background method. The data I'm trying to correct is a HPLC chromatogram in the form of a ...
256 views

100 views

### Can I use Nest iteration variable as the variable of Limit?

Can anybody tell me what is wrong with this: Limit[Nest[1/(1 + #) &, x0, n], n -> ∞]
284 views

### nested commutators

I have defined the commutator between two matrices as comm[A_,B_]:=A.B-B.A I have defined the nested commutator as ...
336 views

### Efficient implementation of Non-Maximum Suppression

I would like to know is there is a way to do this: ...
64 views

### NestWhile and infinite loop

Obviously, the following code leads to an infinite loop: ...
121 views

### Reproducing Nest-function with recursive nesting does not work

In general, when I am learning a new programming language, it helps me to understand how builtin functions works. I am trying to reproduce the builtin Nest[f,exp,n] ...
124 views

### How to give a function multiple variables in a mapped and nested list?

I come from python (not advanced tho), and have been learning mathematica. I'm currently struggling with the following code: This is a basic version of what i wanted to implement: ...
266 views

...
320 views

### Using Nest to build continued fraction

To build basic continued fraction one can simply use: Nest[1/(1 + #) &, x, 3] However, it's unclear how using Nest ...
59 views

### Removing from a sublist, inserting into another one

From a list like test = {{1, 3}, {2,7, 8}, {5,6}}; I would like to randomly select k elements, lift them out of their current ...
608 views

### Delete repeating elements across sublists

I have a list like this test = {{1, 3, 5}, {7, 2, 8, 5}, {7, 1, 3}}; The list is guaranteed to have duplicates only across sublists and not within. I would like ...
190 views

### Reducing the computation time used by parallel table when finding a fixed point

I am using Intel Core(™) processor, 32 bit operating system, 4GB RAM, Windows 7. I am running the following code and it is taking hours to obtain the result. Can any one help me in improving the codes ...
135 views

### Join nested lists if first element is within another list

I have a list like: list1={{1, 16}, {1, 14}, {1, 3}, {1, 18}, {1, 2}, {1, 17}, {2, 17}, {2, 18}, {3, 14},{4,10}} I would like to see if the first element of one ...
96 views

### Dummy variable in nested integral operator

I am trying to make a nested integral operator where the output function of one step must be applied to the dummy variable to be integrated in the next step. Here my code: ...
126 views

### nest non pure function

I have a problem to nest a non pure function.The function f has two arguments, i and j, it ...
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 ...