Skip to main content

Questions tagged [recursion]

For questions about defining recursive functions, recursive algorithms and solving recursive equations.

2 votes
1 answer
118 views

Consider the following system: ...
user13892's user avatar
  • 10.4k
3 votes
5 answers
788 views

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 ...
user475550's user avatar
5 votes
4 answers
258 views

I would like to define a data representation SomeHead[l, r], where the constructor automatically returns a simplified or normalized form. The simplification process ...
Nick's user avatar
  • 442
2 votes
3 answers
301 views

I am trying to recursively define the following function: ...
FamisherCaterpillar's user avatar
0 votes
0 answers
87 views

I admit I’m a bit desperate for a solution here, I have defined in Mathematica: A basis newBasis (built from a function ...
edoiannu's user avatar
3 votes
1 answer
178 views

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: ...
GioCav's user avatar
  • 31
2 votes
1 answer
224 views

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 ...
user42700's user avatar
  • 2,027
2 votes
1 answer
129 views

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 ...
dmtri's user avatar
  • 634
4 votes
2 answers
287 views

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 ...
Soon's user avatar
  • 1,484
1 vote
3 answers
245 views

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 ...
anecdote's user avatar
  • 153
2 votes
2 answers
364 views

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 ...
Sasha's user avatar
  • 61
3 votes
3 answers
371 views

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 ...
user42700's user avatar
  • 2,027
5 votes
2 answers
214 views

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 ...
ydd's user avatar
  • 8,789
1 vote
1 answer
163 views

Here is the code : Generation of the pulse signal with parameters Vmin, Vmax, Subscript[t, r], Subscript[t, f], Subscript[t, on], T ...
Elie CAMPAGNOLO's user avatar
0 votes
1 answer
140 views

According to Mathematica documentation the following code works: ...
user57467's user avatar
  • 3,150

15 30 50 per page
1
2 3 4 5
46