139 views

### loops in one loop, [closed]

I'm new Mathematica user. I try for loop but it didnt work. I used ...
46 views

### Expressing values from an evaluated If function as a list

For[i = 0, i < 4, i++, Print[i]] gives the result: 0 1 2 3 by the definition of the If[] function. Given a much longer ...
96 views

### FindInstance nonconstant parameter

I am trying to solve multiple instances of the same problem using FindInstance. ...
91 views

### How can I get an array of numbers from the user and show the numbers with formatting?

Suppose that I have to print the following lines: Number 1 is 5 Number 2 is 6 Number 3 is 7 Number 4 is 8 Number 5 is 9 Now, if I were programming in C, I would have run the following code : ...
116 views

### Solve: Replace the “right” rule [closed]

I want to nsolve the Black-Scholes-PDE combined with the uncertain volatility model with the Euler-Backwards-Method. Therefore I created a Table with boundary conditions ...
69 views

### List output as a variable within a forloop function changes

The above image shows my code. The graph plots my results for two different values of the variable "guards" (1000 and 200), having first produced lists of these figures. What I want is for mathematica ...
51 views

### Plotting a family of functions with For [closed]

I'm trying to plot a family of functions differing only by a constant $c$. The function is: $2x^2-5x+c$. In order to plot them I'm using the following code: ...
65 views

### How can I construct a matrix by programming in mathematica?

I want to write a matrix in Mathematica by programming. How can I write it? The matrix is : \$ M= \begin{bmatrix} 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & ...
63 views

### Parallelizing nested for loops

I'm currently computing nested for loops. I count up a few counting variables and compute a value for each set of counting variables, then that value is added to an array. It is a way of adding up ...
71 views

### Incrementally building a list without memory overhead

I have a task, where I have to combine pairs with a function, but the number of pairs I actually need is much smaller than the number of all pairs. The condition to keep the element is some function ...
42 views

### How to sort the “do” output?

So I have function (FindCoefficients) that iterates through some values to find the maximum value for a function. It is much quicker to hold the non-linear values constant and do a find maximum for ...
49 views

### How to save matrices from each iteration of i? [closed]

I am trying to get the transformation matrices from DH parameter table and would like to save each matrix (Ai) getting after each iteration of i. How can I do that? ...
75 views

### For loop generates no output nor errors [duplicate]

I have the below For loop to generate Histograms for 16 values in my dataset but I have no historgam showing. What may I be doing wrong? ...