262 views

### Chi square minimisation wrt variables within an integration?

I'm trying to fit a model curve to some data by performing a chi square minimisation wrt three parameters $a,b$ and $NN$. The trouble I am having is that the variables with which I want to minimise ...
45 views

### An elementary question about For loop [duplicate]

Assume we have this For loop: For[i=1,i<10,i++, i^2]. How can we put the squared values ...
144 views

...
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 : ...
100 views

### FindInstance nonconstant parameter

I am trying to solve multiple instances of the same problem using FindInstance. ...
78 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? ...
481 views

### ListPlot in a Loop [closed]

I have the following program which generates the plot from a data list(i.e. Data1). However I want to print some plots for some values of the parameter "a". How would I proceed to print the scatter ...
538 views

### Assigning value to an array in nested for loop [duplicate]

I want to write a code like X={}; index=1; max=3; For[i=1,i<=2,i++, For[j=1,j<=2,j++, X[[index]]=i*j; index++ ] ] But I am not getting ...
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 ...
49 views

### Why does my code not work? [closed]

Why does the following code not work? ...
72 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 ...
145 views

### loops in one loop, [closed]

I'm new Mathematica user. I try for loop but it didnt work. I used ...
118 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 ...