All Questions
14
questions
1
vote
1
answer
41
views
Strange errors of exceeding RecursionLimit in a function with two arguments, one set delayed and one fixed
INTRODUCTION
Hi. I feel a bit embarrased asking this question as the answer may be staring me in the face and there are at least two other stackexchange articles related to it.
MINIMAL WORKING EXAMPLE
...
0
votes
2
answers
40
views
How to obtain terms defined by a recursion relation in terms of the first value without solving the recursion?
I have a set of coefficients $A_{i}^N$ where $i=0,\dots, N$ that obey a recursion relation that takes the form
$$A_i^N = C_i^N-\sum_{M=1}^N\sum_{k=0}^{N-M}A_k^{N-M}\psi_{i,k}^{N,M}$$
The coefficients $...
0
votes
1
answer
67
views
Basics for recursive functions [duplicate]
I am new to Mathematica and try to define a simple recursive formula which is illustrated as below:
...
1
vote
1
answer
166
views
Recursive Calls to a function, how? [closed]
I want to create a function (or anything, really) that is capable of calling its own logic.
The idea is as follows:
...
4
votes
2
answers
169
views
Vector and matrix use in RecurrenceTable
Why is this code snippet that uses matrix and vector elements work?
...
6
votes
2
answers
195
views
Pattern in a product of matrices
I am trying to figure out the elements of the $2\times 2$ matrix
$$B=A_nA_{n-1}A_{n-2}\cdots A_1,\;\; n=1,2,3,\ldots$$
where
$$A_k=\begin{bmatrix}a-2k&-k(k-1)-b\\1&0\end{bmatrix},$$
with $...
2
votes
2
answers
200
views
Two questions: Recurrence and Matrices
We have a recurrence which produces a triangle's row and would like to find an efficient way to produce all rows up to that limit. In addition: Is there a way to do this using matrices? Where we would ...
0
votes
0
answers
114
views
Interactive model for the PageRank Vector
I'm trying to build an interactive model that will allow me to calculate the PageRank vector of small scale web graphs, however I need the model to also display the graph with the first five most ...
7
votes
3
answers
583
views
How do I recursively calculate this equation and generate a list of iteration?
How do I write a recursive equation to compute a list of answers?
I tried NestList, but it didn't work.
...
4
votes
1
answer
239
views
Extending matrix (x,y-axis + data) via Interpolation. Looking for elegant & efficient way to write
Please, feel free to edit the title, if necessary.
Hi, this is my code working, but actually, the size of my real dataset is 100x100. So, this is very inefficient way. What would be the most ...
3
votes
2
answers
2k
views
How do you create matrices using submatrix building blocks?
Here is a conundrum I am facing.
I have $2$ matrix building blocks.
In my problem, I associate integer $2$ with $3\times 3$ matrix $A$ with structure
\begin{bmatrix}
0& a& 0\\
c& 0& ...
2
votes
1
answer
478
views
Usage of Piecewise/RSolve to solve an equation based on condition
I am trying to compute price of call option on a stock using the finite difference method. I have a VBA code for it, and I am trying to find out how I can use Mathematica memoization functions and ...
2
votes
0
answers
176
views
Recursive computation using Piecewise [closed]
I am trying to create an array using a series of equations using Piecewise. I am stuck in one of them. I am just putting a simplified version of code as below.
I ...
1
vote
1
answer
129
views
Calculating a function repetitively without using a For loop
In my programme I have defined all these functions:
...