Skip to main content

Questions tagged [infinite-loop]

Questions about looping or recursive structures that do not complete. Such structures include While, For, FixedPoint, and NestWhile. Also user defined functions that make recursive calls to themselves.

1 vote
0 answers
104 views

I want to plot the following function: $F(x, \omega) = \sum_{m = - \infty}^{\infty}\sum_{n = 1}^{\infty} \theta(\omega m - \xi_{mn}) \cos(x \xi_{mn})$ Where $\xi_{mn}$ is defined as the BesselJZero[m,...
Santos's user avatar
  • 23
0 votes
2 answers
242 views

Given the hyperbola $C: 4y^2 - x^2 = 3$, point $P1(-1, 1)$ lies on $C$. Points $Pn (n >=2)$ are constructed in the following manner: Draw a line with a slope of $-1$ through point $P(n-1)$ that ...
user avatar
0 votes
1 answer
118 views

I am trying to generate several random numbers according to some conditions, but the way I have it implemented, it won't run. The conditions are: ...
Tpr 19's user avatar
  • 15
0 votes
1 answer
72 views

Why does the j index start from 2 not 1 in this double ...
MMA13's user avatar
  • 5,650
2 votes
1 answer
215 views

I'd like to count loop iterations for some substitution rules. For example: rule = {1 -> {0}, 0 -> {1}} init = {0} maxIter = 10 I'm going to avoid all ...
lesobrod's user avatar
  • 2,590
0 votes
0 answers
110 views

I want to generalise the following algorithm to a loop overall possible subsets of the original set. the algorithm has the following form: ver={X41,X42,X43,X44} and ...
Faktor 2's user avatar
0 votes
1 answer
154 views

I am pretty new to Wolfram Alpha. I want Wolfram Alpha to find the derivative of $\sqrt{1+x^\sqrt{1+x^\sqrt{1+...}}}$. At the moment, I am having trouble with Wolfram Alpha simplifying it incorrectly. ...
Dylan Levine's user avatar
0 votes
3 answers
248 views

I've been trying to create a table that has the % of the cycle of a sample and the module of acceleration for the first 100 values, but I don't know how to create it. Here's the code: I have imported ...
Pamsh's user avatar
  • 1
0 votes
0 answers
121 views

I have a quantity as below, P[k_0,A_]= A Log [k0]. I want to generate data for this for A={0,10^3} and k0=10^{-11} to 10^{-2} using a Do loop but I don't know how to apply a loop on two variables ...
adeela afzal's user avatar
0 votes
1 answer
187 views

let's say ...
user8357568's user avatar
2 votes
1 answer
106 views

I am trying to write a recursive function, toscare1[], that takes as parameter a positive natural number. Then calculate the sum of the squares of its digits, thus creating a new number; then, we ...
SkySystem's user avatar
2 votes
0 answers
189 views

The problem is to find the weights {w1,w2,w3,w4} that satisfy the condition. Which is the fastest and most scalable way (e.g. for 10000 weights) to write this ...
John Matis's user avatar
1 vote
2 answers
160 views

I am trying the following scheme to learn to implement an iteration using Do loop. I tried to implement the same method using for loop but with same errors. I, therefore, turned to the Do loop to ...
Skj's user avatar
  • 19
1 vote
0 answers
62 views

My code to solve a system of nonlinear differential equations are the following: ...
user280016's user avatar
-1 votes
1 answer
99 views

Help me pls write While loop correctly. I have next code: ...
Mam Mam's user avatar
  • 1,933

15 30 50 per page
1
2 3 4 5
9