# Questions tagged [recursion]

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

601 questions
Filter by
Sorted by
Tagged with
117 views

### Pattern match with "+" sign

Can you pattern match with a "+" sign? Here is the recursion...(which does not work) ...
1 vote
84 views

### Why Mathematica don't set \$RecursionLimit and \$IterationLimit very big by default? [closed]

For my current program in Mathematica, sometimes I will encounter an error regarding \$IterationLimit and \$RecursionLimit. So I always set these two numbers to very large at the starting of every ...
32 views

### Recursive error encountered when updating rules of assignment [closed]

I'm working on a problem which requires associating a single (complex) number with a pair of binary vectors. I'm doing this by creating a set of assignments through a function I call ...
31 views

### Using the recursion index to compare with a value in another list

I am trying to generate an arrivals and departures plot for a signalised junction with the following parameters: lambda: rate of arrival c: cycle length of traffic lights g: length of time signal is ...
148 views

### Solving equation with delay term

I am trying to solve an equation looks like this... x[t] == t^2 + x[t-10] How can I obtain a numerical solution for x[t] in Mathematica? Thanks.
48 views

### Function for probability distribution approximation of a compound random variable

In the book (Klugman et al, 2019) on can see the Example 9.12. The number of claims has a Poisson–ETNB distribution with Poisson parameter 𝜆 = 2 and ETNB parameters 𝛽 = 3 and 𝑟 = 0.2. The claim ...
99 views

59 views

### Add list of vectors to list of vectors recursively

This question relates to Add a vector to a list of vectors whereas here I want to add list of vectors to list of vectors recursively. Given: ...
48 views

### NetChain with LinearLayer before a NetFoldOperator, how do I make the memory work?

I have problems using a recurring network built using the NetFoldOperator in cascade to a LinearLayer. What happens is that the ...
87 views

72 views

### n-dimensional recursion [closed]

I am trying to set up a recursive function that generates n number of differential equations for Subscript[y, n][t] This ...
84 views

### Calculate the Viswanath's constant (Random Fibonacci sequences)

How Can I calculate first few digits of Viswanath's constant? Viswanath’s constant ≈ 1.1319882487943 is a real number whose nth power approximates the absolute value of the nth term of some random ...
1 vote