Questions tagged [recursion]
For questions about defining recursive functions, recursive algorithms and solving recursive equations.
681 questions
2
votes
1
answer
118
views
Why is wolfram not able to generate some iterations from this recursive system?
Consider the following system:
...
3
votes
5
answers
788
views
How do I set up a recursive algorithm to repeatedly square root a positive real number?
From real analysis, I was asked the following question:
What happens when you hit the square root key repeatedly on a calculator for any initial positive number $x$? Formulate this question in terms ...
5
votes
4
answers
258
views
How to define a constructor-like simplification for symbolic types without causing recursion?
I would like to define a data representation SomeHead[l, r], where the constructor automatically returns a simplified or normalized form. The simplification process ...
2
votes
3
answers
301
views
Recursive Function with Integral
I am trying to recursively define the following function:
...
0
votes
0
answers
87
views
How can I prevent infinite recursion when using `Table` to multiply symbolic basis elements in Mathematica?
I admit I’m a bit desperate for a solution here, I have defined in Mathematica:
A basis newBasis (built from a function ...
3
votes
1
answer
178
views
How to handle general recursive equation
I am trying to figure out how to implement a Lagrangian where one of the constraints is a recursive function. Let me give a super simplified example:
Consider the following recursive function:
...
2
votes
1
answer
224
views
Generate a Table for the Onset of Period Doubling for the Sine Map
Below is my Mathematica code to generate the bifurcation diagram of the sine map x_n+1 = rsin(Pix_n) or in this form f(x) = rsin(Pix). (How to isolate the bifurcation points from the sine map's ...
2
votes
1
answer
129
views
How to introduce an action between sets and an recursive relation?
I would like some advice - help for the following:
Suppose $A, B$ two subsets of $\mathbb N$, we define the following action "$\cdot$":
$A\cdot B=\{ |a\pm b|,\ \forall a\in A, b\in B$ }. For ...
4
votes
2
answers
287
views
Splitting a list recursively
This may be a simple problem, but the goal is to process the list recursively. I want to call a function that splits a list in half recursively. My function is shown below. Could I get help to call it ...
1
vote
3
answers
245
views
Derive the recursion relation of a power series solution of ODE
Problem:
I want to obtain a recursion relation for the coefficients of the power series, which satisfies an ODE. Note: the purpose here is to get the recursion relation, rather than solving the ODE ...
2
votes
2
answers
364
views
How to draw a graph with recursion
I'd like to draw a graph, using recurrence table, but when I add normalization, the program stops working (it does not draw anything). Can you please help me fix it? For example:
Without ...
3
votes
3
answers
371
views
How to isolate the bifurcation points from the sine map's bifurcation diagram
I have the following code for the bifurcation diagram of the sine map. It works well but I would like to isolate where the onset of period doubling begins (the bifurcation points) along the horizontal ...
5
votes
2
answers
214
views
Expression for a vector-valued recurrence relation
I am trying to find an expression for the x[t+1] in the following recurrence relation
x[t + 1] == x[t]/P . x[t]
Where ...
1
vote
1
answer
163
views
Recurrence problem
Here is the code :
Generation of the pulse signal with parameters Vmin, Vmax, Subscript[t, r], Subscript[t, f], Subscript[t, on], T
...
0
votes
1
answer
140
views
RecurrenceTable - Message text not found
According to Mathematica documentation the following code works:
...