0
votes
0answers
43 views

Numerical integration with large exponents

To make a long story short, I am doing mostly analytic calculations and therefore do note have good skills in numerical integration. I have to numerical integrate the following integral ...
0
votes
0answers
46 views

How to deal with error ndsdtc and indexss in NDSolve [closed]

I have a quiet complicated PDE and I want to solve it with NDSolve in Mathematica, but the software is giving me these two errors and there is no hint in the help ...
0
votes
2answers
68 views

Getting FerrersDiagram to work

I am trying to generate FerrersDiagram (see http://reference.wolfram.com/language/Combinatorica/ref/FerrersDiagram.html), any clues to getting it to work? I get error message for the following: ...
1
vote
0answers
28 views

No output from Plot3D when run from a script

Running Mathematica 10 on Ubuntu 14.04. When I run the following in the notebook it shows a plot. When I run the same code from a script (math < plot3d.test.m) ...
0
votes
1answer
29 views

Trouble definining a function to use only certain heads

I'm trying to write a function that accepts only a particular Head (for example, prints only Symbols) using pattern matching. However, the following code has me a bit of confused. ...
1
vote
0answers
35 views

SendMail fails to send zipped folder

I have run into a problem sending mail from within Mathematica. I can send attachments of most file types: .jpg, .nb, .xls, etc. I have run into a problem trying to send a zipped folder. I have looked ...
3
votes
2answers
72 views

Suppress extrapolation of interpolating function in a ContourPlot

I have defined an interpolating function, myfcn[x], valid on the domain x = 0 to 1.5. I am then using ...
9
votes
2answers
226 views

SortBy misbehaving?

It maybe a stupid thing in the end but I'm stuck a couple of hours now. I have a list of 2 points on the plane and I want to get the one with the biggest second coordinate. I thought I knew how ...
9
votes
6answers
471 views

a table of rectangles

I have code to generate this image: But my code is awkward and clunky: ...
1
vote
2answers
63 views

How do you (sanely) fix up data in a csv/table?

I have data in a CSV file I've Import[]ed. Some of the data needs fixing up - date formats changed, data normalized, etc. After fixing up I'll insert it into an SQL database. My CSV file has ...
0
votes
1answer
70 views

On plotting the Weibull distribution

First: How can I plot the Weibull distribution with parameters a = 2 and b = 3.5 on the range of ...
0
votes
0answers
22 views

Plot3D and NIntegrate issues

f[x_, y_] := 2*x - y Plot3D[f[x, y], {x, -1*Sqrt[4 - y^2], Sqrt[4 - y^2]}, {y, -2, 2}] NIntegrate[f[x, y], {x, -1*Sqrt[4 - y^2], Sqrt[4 - y^2]}, {y, -2, 2}] I ...
1
vote
3answers
135 views

Plot part of a circle

I want to draw a path of integration and I am facing the following problem. Given 2 point on the unit circle, draw all point of the circle that are left of the line the two points define. This is to ...
1
vote
1answer
41 views

Series expansion for rational function with weird powers of variable?

Consider the following series expression: Series[1/(a+b x^(1/3)+c x^(4/3)),{x,0,1}] The result comes out appropriately: 1/a - b x^(1/3)/a^2 +b^2 x^(2/3)/a^3 ...
0
votes
2answers
71 views

Square root estimation

I happened to read a something online about estimating a square root in a very simple way, known as Heron's method or the Babylonian method for square roots. The following (python?) code was included ...
2
votes
3answers
133 views

Graph showing valid English words obtained by insertion of single characters

I'd like the most efficient Mathematica code for making a formal tree graph whose nodes are valid English word strings (in DictionaryLookup[ ]) and directed links represent the relation 'insertion of ...
3
votes
1answer
57 views

Need some explanation of “Global`*”

When I start a new notebook, I enter Names["Global`*"] I get this {"list", "msgs", "rhs", "z"} Then I enter, ...
2
votes
2answers
79 views

Joining two lists with diverse properties [closed]

I want to make a list from two independent ones. ...
0
votes
0answers
30 views

how to use ParametricPlot with solution of NDSolve and other function?

I need to plot a hysteresis loop. For that purpose I solve corresponding differential equation with NDSolve command and now I need to plot dependence of the this ...
1
vote
0answers
33 views

Matrix clustering in Mathematica?

Suppose I have a square matrix $M$, which you can think of as the weighted adjacency matrix of a graph $G$. I want to order the vertices of $G$ in such a way that the entries of the matrix $M$ are ...
0
votes
0answers
40 views

Faster way to use Solve in a multiple parameters function

I have a complicated function, G, of several arguments: $G[{\lambda1,\lambda2,a,b,c,d,\sigma u,\sigma v,\rho,q}]$. First, I want to fix a=0.5,b=0.7,c=0.4,d=0.35, q=1. Then, I need to find the values ...
1
vote
1answer
62 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
107 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
48 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
35 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
98 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 ...
2
votes
3answers
172 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
157 views

Using Cases to get elements in a list

I have the following list: ...
0
votes
1answer
72 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
94 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 ...
0
votes
0answers
24 views

LinkObject::linkd error when reading PDF file

I'm attempting to import a PDF file into the Wolfram Desktop (though I have also used Mathematica 10 with identical results) on a Mac running OS X 10.9.4. The ...
1
vote
0answers
64 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 ...
0
votes
0answers
36 views

Second order nonlinear differential equation [closed]

I want to solve the following second order nonlinear differential equation in Mathematica, but do'nt know how. Please help. ...
8
votes
2answers
99 views

DownValue assignment using Apply

Why does assigning a DownValue using Apply, e.g., ...
1
vote
1answer
78 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
43 views

No response when try to solve differential equations [closed]

DSolve[y'[x]==x^2,y[x],x] I just tried to solve a simple differential equation by the software, except for a the"Evaluation" blinked once, no response for my ...
0
votes
0answers
41 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
65 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
100 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
29 views
4
votes
0answers
55 views

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

Please consider the following, version 10.0.1, OS X Mavericks: ...
1
vote
0answers
48 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
66 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
0answers
35 views

How was this scaled? [closed]

I have a set of 8 points: [x1, y1, x2, y2, x3, y3, x4, y4] they are x y pairs. We see below that easeIn_right has start point of ...
0
votes
2answers
54 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
7answers
353 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
23 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
225 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
78 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
174 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 ...

15 30 50 per page