# All Questions

74 views

### Troubles with ParallelEvaluate

I need to evaluate the same expression on all subkernels just like ParallelEvaluate does. This code distributes perfectly (2 kernels): ...
120 views

### Odd problem with Module

I've been having a strange problem with Module. Oddly it seems to be linked to my use of Import and then applying a function such as Flatten to my Import. I pasted images of my code and output ...
838 views

### How can we plot the complex roots of an equation?

If we'd like to display the $n$ roots of a polynomial on the complex plane as points, how can we do this? For example, if we have the equation $x^3 + x^2 + x + 1$, how can we plot the 3 roots as ...
181 views

### Using Cases to get elements in a list

I have the following list: ...
173 views

### Finding the area bounded by a logspiral curve and two straight lines

I'm facing some trouble with finding the area of a region which is described by x-y coordinates (or line equations) and a curved line represented by logspiral. I tried my best in coming up with the ...
144 views

### Custom plot range cropping

I'd like to plot two functions, say, Plot[{1 + Sin[x]/4, 10 + Cos[x]/4}, {x, 0, 10}, Frame -> True] Since their amplitudes are really small, I'd like to ...
129 views

### DownValue assignment using Apply

Why does assigning a DownValue using Apply, e.g., ...
1k views

### Mathematica output containing the variable name [duplicate]

Is there a way to have Mathematica automatically print the name of the variable during an evaluation when the semi-colon is suppressed. So for instance, Matlab would do this: ...
69 views

### Write output to a file as well as showing it in my notebook

I know this is a bit vague, but I will try to be as specific as I can. Basically, I am looking for a way to save formatted output, like sink in R and ...
221 views

### How to combine TimeSeries of different dimensionality into TemporalData object?

I was wondering if it is possible to combine multiple TimeSeries data objects of values that have different dimensionality into one ...
236 views

### Sort eigenvectors of a list of matrices

I have a list of matrices and want to obtain a list of eigenvectors and eigenvalues for each matrix, both sorted by the size of the eigenvalue. If I write ...
37 views

...
175 views

### Does PrivateFontOptions -> {“OperatorSubstitution” ->False} fail in version 10?

Please consider the following, version 10.0.1, OS X Mavericks: ...
59 views

### creating a lattice using periodicity [duplicate]

i have 2 atoms A and B the coordinates of the A atoms are $r1A= (0,-2d)$ and $r2A= (\sqrt{3}/2 ,-d/2)$ the coordinates of B atoms are $r1B= (0,-d)$ and $r2B= ( \sqrt{3}/2,d/2)$ now i would ...
142 views

### Computer freezes during NIntegrate[]

I have a notebook that freezes the computer every time I run it (I mean the whole computer becomes unresponsive and do not react to ctrl-shift-esc and ctr-alt-delete as well as alt-tab and ...
60 views

### Taking derivatives

This is my code: X := g[P] P = a*t R = t*X FOC = Dt[R, t] This is what I get for the last line: ...
474 views

### Product of elements of a list

Sum is for functions; Total is for a list. Product is for a function; what is the command ...
35 views

### How exactly does ReplaceAll work? [duplicate]

I am not sure if this question has been asked before but anyway, Consider these two examples: ...
407 views

### How can I create a plot like this in mathematica?

I think this is called a caterpillar plot. The dot is the mean and the lines represent a 95% confidence interval. On the x axis there are several different test cycles, the red line is the true ...
136 views

### How can I change the default font size of the Virtual Book?

How can I change the default font size of the Virtual Book?
434 views

### Segmentation of a microscopy image with uneven illumination

I am trying to do a little image segmentation on some cells taken from microscopy images that have uneven illumination. I am having trouble getting the background of the image cleaned up after ...
226 views

### Conditional string replacement

I have a list of text and need to replace an element based on the text that appears in the element before it. Example of my list: ...
113 views

### CoefficientRules for negative powers

CoefficientRules acts like the following. ...
290 views

### Mathematica doesn't simplify a simple expression

The question is simple as that. I have: ...
175 views

### Oddify an even function and vice versa?

I want to know how to construct a function in Mathematica which would produce even analog of odd function and vice versa in closed form? The mathematical definitions are as follows: ...
615 views

### Best way to find permutation with specific total [duplicate]

Can anyone suggest a good way to find permutations of 12 digits, 0 to 4, totalling 24. I.e. two such permutations:- {2, 1, 4, 1, 2, 2, 2, 2, 2, 2, 1, 3} // Total ...
212 views

### Working precision and pure functions in FindMinimum

I have this function: fun = (# - 5.0)^2.0 & Then, I want to find the minimum: ...
351 views

122 views

### How to create a reliable natural integral operator? [duplicate]

Natural integral is one of the antiderivatives of a function, for which the integration conctant is fixed in a natural way. It is defined as follows: ...