The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
58 views

Index of iteration inside NestList [duplicate]

I have a list of RandomReal: delta = RandomReal[{-0.01, 0.01}, 1000] I want to add each element of the list to the ...
0
votes
1answer
35 views

.NET link - index of property

I have a property in .NET Type, which is actually a generic list of objects. When I try access the property using numeric index e.g. 10, this works. However when I iterate through indices using ...
0
votes
1answer
69 views

How to generically produce iterators (to loop over many variables)

A generalization of, for example: Do[(* stuff *), {x, listx},{y, listy},{z, listz}] I can almost do this with Table, but I need a way to flatten the outer ...
0
votes
1answer
55 views

How do I produce iterative equations and bifurcation diagrams?

I need to produce orbit diagrams for different values of x for the following equation: f[r_][x_]:= r*x - x^3 I'm fairly new to Mathematica, so I haven't had a ...
0
votes
0answers
37 views

Iterate each possible subset

Given a set of integers $S=\{2,5,8,14,18, \dots \}$, does Mathematica have a way to iterate each subset (i.e. all subsets in the power set of $S$) with a loop construct? The purpose is to sum all ...
0
votes
2answers
41 views

Filter through list and lump data [duplicate]

I have a very large data set (around 3000) that looks like: ...
0
votes
1answer
41 views

Slow evaluation of complicated Table

I have a system of recursive equations x[t+1]:=f[x[t],p[t-1],a[t],a[t-1]]; p[t+1]:=g[p[t],x[t-1],a[t],a[t-1]]; a[t+1]:=h[x[t],p[t],a[t],a[t-1]]; I want to ...
1
vote
1answer
120 views

invert system of two parametric ODEs and plot results of do-loop

I can solve this system of parametric ODE (u is the parameter,while g,e and ...
0
votes
0answers
70 views

Iteration of multiple functions that feed into each other

I'm trying to figure out how to iterate through several functions that all "feed" into one-another but am having some trouble. Here are the variables: ...
1
vote
3answers
126 views

Table iteration over two ranges

I am trying to create a Table where the iterator has two ranges with different iteration steps. Let's consider a simple example: I want to find the square of the ...
2
votes
2answers
107 views

Plot with sum and binomial command

A few days ago I asked about a problem with plotting a sum. You advise me to use Evaluate option, and that helped me very. But now I have a very similar problem, but i can't find the mistake. I have a ...
2
votes
1answer
130 views

Reproducing a Plot done with WolframAlpha [duplicate]

I have problem to draw in Mathematica a plot like this: Plot[{Sum[a^10*(-1)^(x-a), {a, 1, x}]}, {x, 1, 10}] The problem is that on the plot there is no graph. As ...
3
votes
2answers
101 views

Why does the iterator index in Table not work here?

I type the following command line Table[D[#1,varx[[i]]] &,{i,3}] where varx is a vector of dummy variables ...
1
vote
1answer
110 views

Convolution of a denstity function having a point mass with itself

My density function is as follows: ...
1
vote
2answers
179 views

How to use Mathematica in my Problem as I would use it in Matlab

I would like to calculate the convolution of a function with itself for $n$ times. Let $n$ be $10$. For $n=1$, I wont make any calculation and $f0$ is my function, when $n=2$, I will convolve $f0$ ...
4
votes
3answers
289 views

Plotting the convolution of the same probability density function with itself

I would like to compute the integral $$q_n(x)=\int_{B}^A q_{n-1} (\omega)f(x-\omega)\mathrm{d} \omega,\quad q_1=f,\quad n\geq 1.$$ for a given density function $f$. Basically it is the convolution ...
1
vote
3answers
359 views

How many iterations of Newton's method are needed to achieve a given precision?

Consider using Newton's method to solve the equation $arctan(x) = 0$. Using an initial guess of $x_0 = 1/2$ produces a sequence that converges rapidly. After $8$, iterations, $x_8$ is accurate to well ...
1
vote
3answers
173 views

How to code the following product?

I am trying to examine the properties of the following product for a given tuple $\vec \lambda = (\lambda_1, \lambda_2, \dots, \lambda_n)$, then the product is as follows: $$ \dim \Gamma_\lambda = ...
0
votes
2answers
113 views

Problem with Looping/Recurrence - Null Results [closed]

I'm trying to create a function that maps over a list of bits, and either returns the original bit or "mis-reads" the bit itself. The idea here is to simulate transcription errors. Here's the ...
0
votes
0answers
44 views

List elements and iterator name collision [duplicate]

Let there be two lists, exp = {{i, i}, {j, j}}; exp2 = {{r, r}, {o, o}}; and there are two Table commands to access them. Then, ...
0
votes
2answers
207 views
0
votes
0answers
37 views

Nested For Loops that result in no output [duplicate]

I am sure that this is not the most elegant code you will have seen, but I am trying to loop through an expression to see if FultonHarrisn] produces any outputs ...
4
votes
2answers
193 views

How can I write a Do loop that iterates over N iterators when N is not known a-priori?

For any positive integer $n$ which is not specified a priori, I can make $n$-tuple vector $v$ by v = Array[a, 1, n]. Now, given that $n$ is a positive integer which ...
2
votes
1answer
193 views

Passing an iterator [duplicate]

The code Table[i, {i, 5}] produces the output {1, 2, 3, 4, 5} whereas the code ...