Questions tagged [iteration]
For questions about iteration. Use this tag for questions about the repetitive use of processes, functions and or operators.
203 questions
-2
votes
0
answers
73
views
Why iteration fails? [closed]
I'm solving this ODE and it seems that the first iteration (urho[1]) works but when I try to calculate urho[2] it fails. The ...
0
votes
0
answers
157
views
How to syntax products and append each result to a table?
I'm still trying to learn how to code the results of the LHS and RHS of this famous equation into a table:
$$\sum_{n=1}^\infty \frac1n=\prod_{i=1}^\infty\frac{1}{1-\frac{1}{p_i}}\tag{A}$$
I asked this ...
0
votes
2
answers
158
views
How to output results of the sum, $\sum_{a=1}^2\sum_{b=1}^a\sum_{c=1}^b 2^a3^b 5^c$ into a list (table)?
I'm trying to write a code that can approximate the following formula,
$$\sum_{n=1}^\infty \frac1n=\prod_{i=1}^\infty\frac{1}{1-\frac{1}{p_i}}\tag{A}$$
In this M.SE question I was convinced that $(\...
1
vote
2
answers
171
views
How to output each summand of $\sum_{n=1}^k \frac1n$ into a list?
From real analysis, I'm trying to learn more about this famous equation in this post of Mathematics.SE:
$$\sum_{n=1}^\infty \frac1n=\prod_{i=1}^\infty\frac{1}{1-\frac{1}{p_i}}\tag{1}$$
I won't ask ...
3
votes
2
answers
244
views
How to code a recursive algorithm to exponentiate $e^{1/e}$ to itself indefinitely and hence show that this sequence converges to $e$?
I seek help coding an algorithm that shows when $e^{1/e}$ is repeatedly raised to itself it will eventually converge to $e$. The context for this post comes from this same question on M.SE:
What ...
5
votes
1
answer
379
views
Turning the solution from Reduce to a graph
I am trying to make a graph from an arbitrary solution from reduce so that it looks prettier and is more readable.
My question is very similar to the question How can I make the output of Reduce more ...
2
votes
1
answer
282
views
Nested NIntegrate Iterations
I'm working on finding the limit of a function that involves nested integration.
I've written the code, and it's running an iterative procedure.
However, each iteration currently takes about 24 hours ...
0
votes
1
answer
154
views
Problems with iterative process
The origin of this question is described here, but there are many details,
distracting from the main topic.
I did not remove the old question so that the interested ones could see the geometrical ...
0
votes
1
answer
131
views
Exploring iterative process with Mathematica
Playing with Geogebra, I became interested in the iterative process of constructing orthic triangles.
For a right-angled triangle, the orthic triangle is degenerate, it’s a segment.
For any other ...
1
vote
3
answers
255
views
What is the simplest way to write a GeneralizedDo function?
A GeneralizedDo is supposed to thread over multiple iterators:
...
4
votes
1
answer
216
views
Optimizing Iterative Computations with Large Ranges in Mathematica
I have an implementation in Mathematica that involves iteratively generating large ranges of values, performing element-wise operations, and calculating a cumulative product followed by a total. While ...
0
votes
0
answers
166
views
Optimizing a While Loop for High-Precision Computation in Mathematica
Edit: Clarifying the Core Issue
i=x;
While[Abs[p1 - p2] >= p1 tol,
p2 = p1;
p1 += s *= i (mkn + i)/((k1 - i) (n1 - i));
i--;
];
The core of my ...
2
votes
4
answers
432
views
Finding a formula which involves iteration
Suppose I have the following set:
a = {0.338636, 0.422347, 0.449019, 0.477665, 0.533535, 0.541595, 0.573555, 0.578846, 0.601858, 0.609386};
And I need to find $r_i$...
7
votes
2
answers
278
views
Iteration Limit for expression involving Gamma functions
But introduced in 13.0 or earlier and fixed in 14.3.
I am using an old version (13.0.0 Windows) so this might be a bug that has already been fixed, unfortunately I don't have access to a more recent ...
0
votes
1
answer
176
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 ...