Questions tagged [iteration]
The iteration tag has no usage guidance.
196
questions
0
votes
1
answer
105
views
How to obtain a solution to a system of equations using the method of successive approximations? [closed]
My question is not offtopic at all! It's about problem of syntax in Mathematica.
It is necessary to obtain an analytical solution to a system of equations using the method of successive approximations ...
2
votes
2
answers
46
views
How to fix parameter locally for iterating recursion equations
The following is a simplified version of a more detailed problem.
I have two coupled recursion equations of two variables, x and y. One equation also depends on a parameter, c:
...
4
votes
2
answers
130
views
How to use functional iteration with changing function?
I recently came across this problem on reddit. The problem is supposed to be read like a snake, and the result of each succesive operation is sent to the next operation:
There are 9 blank boxes and ...
1
vote
1
answer
97
views
Use Mathematica to Implement Blahut–Arimoto Algorithm (Part: Algorithm for Rate-Distortion)
Try to use Mathematica to implement Blahut–Arimoto algorithm (here we just focus on the part of computation of Rate-Distortion).
Here are some reference code snippets:
Python
The algorithm looks ...
1
vote
1
answer
105
views
Use Mathematica to Implement Blahut–Arimoto Algorithm (Part: Algorithm for Channel Capacity)
Try to use Mathematica to implement Blahut–Arimoto algorithm (here we just focus on the part of computation of channel capacity)
Here are some reference code snippets:
MATLAB(a)
MATLAB(b)
Python
The ...
0
votes
0
answers
45
views
Ising Model Simulation Increase Efficiency
I implemented a 2d simulation of Ising Model for zero external magnetic field. Below you can find the function I wrote to calculate the energy (periodic conditions)
...
2
votes
1
answer
150
views
How to Optimize Integro-Differential Equation Solving Time in Mathematica?
I'm trying to solve an integro-differential equation numerically in Mathematica that models the evolution of a physical system . However, the computation takes a very long time and doesn't yield a ...
4
votes
2
answers
237
views
Given two functions, generate all nested applications of the functions to a given order
I have two functions $f$ and $g$. Given some order parameter $n$, I want to created all nested applications of $f$ and $g$ and save them in a list. For example, for order 1 we will have ...
13
votes
4
answers
396
views
Reproduce the annulus fractal
I've made some attempts, but I don't know how to set the color and thickness of the circle.
...
2
votes
1
answer
78
views
Problem designing test for NestWhile?
I am trying to use NestWhile with a custom test as follows:
...
3
votes
3
answers
215
views
How to reuse an iterator in different functions?
How can I reuse iterators?
For example, instead of
Table[i, {i,0,10}]
Table[i^2, {i,0,10}]
Table[f[i], {i,0,10}]
write something like
...
0
votes
1
answer
95
views
Speed up multiple Do loop
I am writing a script to simulate the multi spin system and for that I need to use three successive iterations. The code runs fine but takes a long time. I need the final FID. So, has there a way to ...
0
votes
0
answers
32
views
How to find clear solution for iterative problem by condition $<v_k ,v_n>=0$ If $k!=n$
I want to find x[n] by v[n] values without x[n] in solution by iterative below problem:
<...
1
vote
2
answers
80
views
Can't use iterative variable as part specification [closed]
I've got the following mathematica code:
...
0
votes
0
answers
47
views
FindMinimum with many Sums and NIntegrates is very slow
I want to calculate the global minimum of an equation which has several hundred Sums (I used 300 in this code), but the calculation is very slow.
My code is as ...