Linked Questions

0
votes
1answer
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 ...
0
votes
1answer
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 ...
0
votes
1answer
144 views

Plotting using RandomReal output [closed]

...
0
votes
1answer
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 : ...
0
votes
1answer
100 views

FindInstance nonconstant parameter

I am trying to solve multiple instances of the same problem using FindInstance. ...
0
votes
1answer
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? ...
0
votes
1answer
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 ...
0
votes
1answer
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 ...
0
votes
1answer
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 ...
-5
votes
1answer
49 views

Why does my code not work? [closed]

Why does the following code not work? ...
3
votes
0answers
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 ...
1
vote
0answers
145 views

loops in one loop, [closed]

I'm new Mathematica user. I try for loop but it didnt work. I used ...
1
vote
0answers
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 ...
0
votes
0answers
59 views

For loop to define a Matrix

Suppose I have a matrix, Mat = MatrixForm[{{1.5, 2.83034}, {1.50476, 2.82655}}] I need to define parameters such that in the matrix 'i'th component is 'Lambda' ...
0
votes
0answers
21 views

How can I create a variable named from a concatenation of strings and assign it a value created similarly? [duplicate]

I have got a list of strings, a = {"first","second","third"}. For each of those strings I would like to create a variable called "The" followed by its content, so ...

15 30 50 per page