# All Questions

48 views

### How to create sublists of consecutive elements? [duplicate]

I have a list of elements, for example: myList={5, 12, 16, 18, 19, 24, 28, 29, 31, 32, 35, 42, 43, 47, 50, 53, 60, 61, 62, 64, 79, 82, 84, 92, 105, 128, 136, 153, 154, 155, 156, 158, 159, 160, 164} ...
43 views

### While loop repeats itself using initialization cell

I am running While loops in an initialization cell for the purpose of submitting the notebook to the online cluster. However it appears to me that the While loop in an initialization cell would run ...
143 views

### How can we draw a stencil for discretization of PDEs?

How can we draw some multi-node (e.g. 5-node, 9-node, etc.) stencils that occur in the process of discretization of PDEs, such as the following ones? or As a matter of fact, I would like to ...
93 views

### monochromatic and mesh style of 3d plotting

how to adjust the mesh and monochromatic plot to be same as this
213 views

### Strange behaviour of NotElement in Reduce

Bug introduced in 8.0 or earlier and persisting through 10.4 or later Confirmed, as bug, by WRI: [CASE:3527549] I have observed curious behaviour on domains supplied to ...
370 views

581 views

### Entropy[…] doesn't calculate the entropy of a probability distribution? What does it do?

I know the definition of entropy of a probability distribution: $$H = - \sum_i p_i \log p_i$$ So for example, in a Bernoulli distribution with $p = 0.2$, $1-p=0.8$, the entropy is $0.5$. However, ...
148 views

### Maximizing a recursive functional equation

I would like to maximize a recursive functional equation but I am struggling with setting up the problem correctly. The equation I am interested in captures the nature of a decision process over time ...
66 views

### Multiple functions with shared arguments in Manipulate

I am trying to define multiple functions with the same set of parameters and then put them in a Manipulate to simulate their behavior. Ideally it should be something like that: ...
50 views

### keyboard shortcut to invoke Insert new matrix

I frequently need to type in some matrices, and the menu command Insert>Table/Matrix>New... ...
178 views

### Import vs ReadList CSV file with Currency Values

A testing file with the specified format can be downloaded from here Let's read a few lines from this file ...
129 views

### ParametricPlot3D crashes Kernel when called repeatedly in loop

I have a parametric function surf[u,v]. It can be plotted successfully like this: ...
91 views

### Rasterize and Graphics, size difference

I am writing my own TreeForm function and for this I want to make sure that framed text boxes in Graphics do not overlap. First, ...
199 views

### Evaluation of Alternatives

I recently stumbled upon a few examples that suggest patterns containing Alternatives do not evaluate for individual alternatives. For example: ...
50 views

### How to apply a user-defined function to a list [closed]

I'm using Wolfram | Alpha Pro; I have a function f[n] = 351n^(-0.7); How do I apply it to each element of a list like {2, 9, 22}? f/@{2, 9, 22} just results in ...
141 views

### Getting an explicit representation of the function returned from Interpolation [duplicate]

I am using Interpolation to get an InterpolatingFunction that fits a set of points. For example, ...
109 views

110 views

### Random bipartite graphs?

RandomGraph[{n,m}] generates a random graph with $n$ vertices and $m$ edges. I want to generate a random bipartite graph, like ...
127 views

### Solving a quasi- or nonlinear PDE

Is the following PDE solvable in mathematica 9? When i solve it, the DSolve command does not do anything. ...
66 views

### Manipulate aborts the computation of NDSolve with the Piecewise function after curtain time [closed]

I'm facing the problem with performance: Manipulate is working fine till end time =60 sec, after that it aborts. There is NDSolve inside Manipulate with Piecewise function, and the plot of the ...
99 views

### Interpolate the discrete list into continuous function

I have a data whose list plot shows up following graph I would like to interpolate the missing data and make the function continuous but for particular x-coordinate there is multiple values of $y$ ...
69 views

### NelderMeadMinimize for 2D Gaussian fitting

I would like to fit a large number (10^5-10^6) of small images to 2D gaussians by taking advantage of the NelderMeadMinimize package from Oleksandr: Shaving the last 50 ms off NMinimize. The ...
81 views

### extract data from a graph image

How do I convert the following image graph into data (if possible into function)? I checked this answer and found that my problem is grid and plot have same color.
112 views

### Visualize how a function varies as its parameters vary [closed]

I'm quite new to Mathematica, so maybe i havent figured out the right help file to look or the right function. I apologize if thats the case, but I would like to be pointed in the right direction if ...
66 views

...
114 views

### Prevent Dynamic from behaving dynamically until notebook evaluated

If a notebook containing a = {1, 2}; Dynamic[a[[2]]] (* 2 *) is executed, closed, and then opened in a new session, it yields along with the expected error ...
40 views

### Integration by using NDSolve [duplicate]

I have no idea how to calculate the problems. For example consider following differential equation (DE): ...
36 views

...