1
vote
0answers
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): ...
2
votes
1answer
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 ...
11
votes
3answers
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 ...
4
votes
4answers
181 views

Using Cases to get elements in a list

I have the following list: ...
2
votes
2answers
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 ...
1
vote
0answers
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 ...
9
votes
2answers
129 views

DownValue assignment using Apply

Why does assigning a DownValue using Apply, e.g., ...
1
vote
1answer
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: ...
0
votes
0answers
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 ...
1
vote
1answer
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 ...
2
votes
1answer
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 ...
1
vote
1answer
37 views

Formatting output aligned automatically

...
8
votes
1answer
175 views

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

Please consider the following, version 10.0.1, OS X Mavericks: ...
1
vote
0answers
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 ...
1
vote
1answer
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 ...
0
votes
2answers
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: ...
12
votes
7answers
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 ...
2
votes
0answers
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: ...
4
votes
2answers
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 ...
3
votes
2answers
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?
12
votes
4answers
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 ...
6
votes
1answer
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: ...
4
votes
4answers
113 views

CoefficientRules for negative powers

CoefficientRules acts like the following. ...
4
votes
1answer
290 views

Mathematica doesn't simplify a simple expression

The question is simple as that. I have: ...
2
votes
0answers
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: ...
9
votes
6answers
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 ...
2
votes
1answer
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: ...
4
votes
5answers
351 views

Sequence generation

If I wanted to generate a sequence that follows the pattern $$x_{n}=x_{n-1}+\dfrac{1}{2}\left(\sqrt{1-y_{n-1}\ ^{2}}-x_{n-1}\right)\\ y_{n}=y_{n-1}+\dfrac{1}{2}\left(\sqrt{1-x_{n}\ ...
0
votes
0answers
42 views

How can I mix // with a function of two arguments? [duplicate]

I often find myself using // when playing around with expressions, but it is always cumbersome to have to switch to the full notation just to apply a function of ...
6
votes
2answers
249 views

AxesLabel broken in Version 10 for 3D plots?

In version 10.0.1 (Win7), AxesLabel with arbitrary text strings works as expected in 2D plots: ...
4
votes
1answer
262 views

Package for nonlinear plot coordinates

Is there a package for plotting in nonlinear coordinates? I mean that I provide coordinate transformation functions {xi(x,y), eta(x,y)}, for example ...
1
vote
0answers
33 views

Analog of GeneratingFunction for Newton series [duplicate]

GeneratingFunction gives the generating function for Maclauren series. I wonder if there a similar function for Newton series. If $$g(x)=\sum_{k=0}^{\infty}\frac{x^k}{k!}f(k)$$ Then g(x) is ...
0
votes
0answers
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: ...
1
vote
0answers
140 views

PDE with Integral constraint

I am trying to solve the Non-linear Schrodinger equation $-\Delta \psi(r) + \psi(r) - |\psi(r)|^2\psi(r) = 0$ where $r \in \Omega$ In a square domain ($(x,y) \in \Omega$ where $\Omega=[0,1]\times ...
6
votes
1answer
113 views

how can i make togglable cells in a mathematica presentation?

I'm having trouble understanding how to make togglable cells in presentations in mathematica. In the notebooks I download from the website training, when I click a title or so it toggles the open ...
0
votes
1answer
68 views

Sequence not working as expected [duplicate]

From the help page: f[a, Sequence[b, c], d] No problem at all. ...
8
votes
0answers
160 views

How to export a text into eps without splitting

I want to use MathPSFrag in Mathematica to export graphics to EPS for inclusion in LaTeX files. However, with recent versions of Mathematica this does not seem to work very well anymore. I have fixed ...
9
votes
1answer
86 views

Foreign Keyboards and Mathematica?

I have a foreign language keyboard (French). Most of my programs recognize the my French keyboard, except Mathematica, which behaves as if the keyboard were English. So far I haven't found any way to ...
6
votes
4answers
855 views

Why this gives 0?

fixed in 10.0.2. Why this gives 0? I am in shock, it should be Sinh[x]. FullSimplify[I InverseFourierTransform[FourierTransform[Cosh[t],t,w]/w,w,x]]
28
votes
3answers
432 views

Assign a randomly generated list to variable

Bug introduced in 10.0.0 and fixed in 10.0.2 I don't know if this is a silly question, but it really baffles me. So please help me understand this behavior. ...
0
votes
1answer
151 views

Why does my exported .GIF cut off the bottom of my animation?

I have the following (admittedly artificial) code: ...
7
votes
1answer
227 views

Why does taking advantage of Listable change the results of a numerical computation slightly?

I have two variables: t0, and teta0. The first is computed using several nested sums, the second is computed taking advantage to ...
5
votes
1answer
191 views

Measuring the area of different regions from a picture

Consider the following picture of a phase plane which help us distinguish between regular and chaotic motion. The entire phase plane is divided into two types of regions: (i) the regular domain ...
2
votes
1answer
197 views

How can I determine `Parameters` for use in `URLFetch`?

I'm trying to download data from website automatically using Mathematica, and URLFetch seems like it should be suited to the task. I'm interested in its "passing ...
3
votes
2answers
212 views

Simple Plot of Vector

I have a vector $<x(t),y(t),z(t)>$ constrained to a unit sphere. I am trying to plot what the vector looks like as time progresses. What would be the easiest approach to visualizing this? I ...
0
votes
0answers
101 views

Solution of a set of quadratic congruences (Chinese remainder)

Edit: Please remove this question. I think there are mathematics error in what I am asking. You are welcome to edit the question if you can state the problem correctly. I have a set of quadratic ...
8
votes
1answer
431 views

Calculate inertia tensors

Moments of inertia and inertia tensors are well-known characteristics of rigid bodies in physics and applied mathematics. How to calculate them in Mathematica? Is possible to use regions which was ...
1
vote
1answer
141 views

Graph and table of values of cdf of chi-square

I am doing an assignment and have derived the following function, but I don't know how to graph it. I have a trial of mathematica which I have never used before. $f(x)=a(23.685/x)$ where a is cdf ...
5
votes
4answers
224 views

Signed power set of a list

Given {a, b, c, ...} with $n$ elements generate a list with $2^n$ elements. For example, if the list were {a, b, c}, then the ...
3
votes
0answers
87 views

Function of arguments given in non-fixed order [duplicate]

normally we define functions as f[x_, y_, z_] := ArcSin[x^2*y/z] however when one has many arguments (as I do) I find difficult to remember what is the meaning ...

15 30 50 per page