1
vote
1answer
86 views

Manipulate filters in arrayplot with graphical user interface

I have a set of images which need to be filtered by different filters. So I have made an interface in which the user can choose his or her filter. However I now want to manipulate the degree of the ...
2
votes
1answer
141 views

2D Fourier transform of a few (4) disjoint discs on a plane

I'd really appreciate some advice. Short Version I'm trying to calculate the following $$ ...
2
votes
0answers
52 views

Number recognition in Mathematica [closed]

Suppose that I have a number $n$ with many decimal digits of precision. What is the code to use to get Mathematica to recognize possible closed-form expressions for that number?
1
vote
0answers
52 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
111 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 ...
7
votes
3answers
396 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
176 views

Using Cases to get elements in a list

I have the following list: ...
0
votes
1answer
87 views

How to compute an integral with 300 digits accuracy [closed]

I'm new to Mathematica and I would like to ask what is the code to use to calculate numerically an integral with 300 digits precision; also, I would like to know what is the right code to use the ...
2
votes
2answers
126 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
106 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
121 views

DownValue assignment using Apply

Why does assigning a DownValue using Apply, e.g., ...
1
vote
1answer
387 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
48 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
122 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
135 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
33 views

Formatting output aligned automatically

...
7
votes
1answer
143 views

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

Please consider the following, version 10.0.1, OS X Mavericks: ...
1
vote
0answers
53 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
95 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
56 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: ...
9
votes
6answers
370 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
31 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
295 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
111 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?
11
votes
4answers
293 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 ...
5
votes
1answer
175 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
94 views

CoefficientRules for negative powers

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

Mathematica doesn't simplify a simple expression

The question is simple as that. I have: ...
2
votes
0answers
117 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
544 views

Best way to find permutation with specific total

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
66 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
324 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
41 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
209 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: ...
3
votes
1answer
216 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
119 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
99 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 ...
5
votes
1answer
74 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
56 views

Sequence not working as expected [duplicate]

From the help page: f[a, Sequence[b, c], d] No problem at all. ...
6
votes
0answers
91 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 ...
6
votes
0answers
53 views

Foreign Keyboards and Mathematica?

I have a foreign language keyboard (French). All programs are set so that it recognizes this - EXCEPT Mathematica, which behaves as if the keyboard were English. And I can't find any way of changing ...
6
votes
4answers
811 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]]
24
votes
3answers
372 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
78 views

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

I have the following (admittedly artificial) code: ...
5
votes
1answer
176 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
162 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 ...
1
vote
0answers
70 views

Have I found a bug in the built-in function BezierCurve? [closed]

A week ago, I asked a question about bezier curve ubpdqn's solution: ...
0
votes
0answers
70 views

How can I determine the Parameters of URLFetch?

I'm looking for methods to download data from website automatically by mathematica. Then I found that URLFetch might be useful. I'm interested in its "Passing data to the server" option. The example ...
3
votes
2answers
176 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 ...

15 30 50 per page