# All Questions

104 views

### How to initialize several elements per iteration with Table?

I would like to initialize this kind of vector : {0,0,1,1,0,1,0,1,1,1,1,1} with Table. I tried ...
51 views

### Mathematica cannot find the c compiler

I installed Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 Then, I installed Mathematica 10 trial version. I did: ...
1k views

### 2D random walk within a bounded area

I want to simulate a random walk on two dimension in a bounded area such as a square or circle. I am thinking of using If statement to define a boundary. Is there a ...
68 views

### Store matched variables

Edit: I am matching and replacing a particular expression. At the same time... I want to store matched variables for later use. I got it to work with messed up code involving ...
232 views

117 views

### Triangle that collapse cells

I'm not very good in English , so is hard to explain but how put the triangle in the left that deploy or collapse a group of cells ?
75 views

### How to build a list of constraints for NMinimize

Let's say I have aset = {-1, 0, 2}. I would like to create a variable Var that takes values from that set, i.e. ...
50 views

### How would I program difference equations in Mathematica? [closed]

I want to program difference equations like $$x_{n} = f(x_{n-1}); x_{0} = a$$ into Mathematica so that it can evaluate by recursive substitution and give me an algebraic expression in $x_0$. How ...
280 views

### How to display operations on list elements

When applying some arithmetic operation on two lists, I'd like to display the actual operations between the elements of each list. For example, {1, 1} + {1, -1} ...
67 views

### Get the function of a scatter plot [closed]

Considering we have a scatter plot and the best linear fit of the data, and also average error of it, how can we get the function from that plot? The plot is I get it with ...
27 views

### Maximizting a system of equations subject to “nested” constraints [closed]

I'm trying to maximize a system of equations subject to some nested constraints. In the n=2 case, I have two objective functions: ...
59 views

### Block diagonal matrix [closed]

Suppose I have 4 matrices: A, B, C, D, and I want to form a block diagonal matrix from these sub-matrices, i.e. it would look like MatrixForm[{{A, B}, {C, D}}] ...
59 views

### Determining the total illumination of a polygon

Is it possible to determine the total illumination of a particular polygon with the given light sources? I truly acknowledge that Mathematica is not supposed to do this modeling, but it is what ...
47 views

### Cannot open WolframAlphaClient` [closed]

When I try to use WolframAlpha, GeoGraphics, etc. in any manner on my Linux machine I receive errors about ...
34 views

### VTK handing in Mathematica [closed]

I have a VTK file of an unstructured grid saved in binary format. The data is a set of points (coordinates) plus a set of values defined on each of the points. In my case I would hope to import a ...
96 views

### Problem with FTP import in V10

Mathematica V10 returns an error when download directory. URLFetch :: invhttp: "FTP: could not retrieve (RETR failed) the specified file." V9 successfully retrieves the same reference. This ...
184 views

### How can I add a tangent arrow at a certain point of a curve in a LogPlot?

How can I add an arrow at a certain point of a curve with the direction of the arrow tangential to that point? (Line are not straight in a log-plot.) ...