1
vote
4answers
166 views

Gather lists according to another list

I have a first list of pairs like this one: ...
1
vote
2answers
42 views

How to share numbered variables between kernels

Supose I have two variables v[1] and v[2]. I used: SetSharedVariable[{v[1], v[2]}] Then, ...
0
votes
0answers
47 views

For loop for matrix-vector product [on hold]

Here's what I'm attempting Ax_(k=k-1) = X_(k) such that A = MatrixForm[{{0.6,0.4},{-0.1,1.2}}] and x = MatrixForm[{{50},{150}}] What I want is to compute a FOR iterative loop such that I have k=32. ...
3
votes
0answers
51 views

Rendering a 3D volume with Image3D

I have 2D JPEG images, of 1024 x 1024 pixels, corresponding to a 500 x 500 square micron section. These images are taken from slices of tissue, each slice seperated by 10 microns. I've been trying to ...
0
votes
2answers
51 views

Showing an output without square brackets

Suppose that an output is which could be obtained from, for example, D[f[x, y, z], x] / D[h[x, y, z], x] I'm looking for a way to show it without the square ...
2
votes
1answer
48 views

How can I prevent a package from loading into a notebook run from Workbench?

I have a Workbench project in which I have created two packages: PackageA.m and PackageB.m. In the same project, there is a ...
2
votes
4answers
155 views

PlotRange, polar plots and labelling

I have a dataset (of DNA reads corresponding to the human mitochondrial DNA) which I want to plot on a polar plot, with the distance corresponding to the G-C percentage of the DNA in that segment. ...
3
votes
2answers
146 views

How to save all notebook outputs as pdf file

I have produced a lot of graphs and tables in my notebook. I am trying to save all these outputs as pdf file. As we know form Rodney and form Mr. Wizard , we can not use save as function. I have ...
3
votes
1answer
115 views

Renaming projects in Wolfram Workbench

I write my whole package by using Mathematica front end, and I am currently in the process of writing the documentation using Workbench. I'm about 50% done, but realized I need to change the name of ...
6
votes
1answer
99 views

Long running ToElementMesh with very “large” domains

I'm trying to solve a system of PDE over a large domain. This doesn't means I need to have a huge amount of mesh points and mesh elements to discretize the domain. Just that the domains has a big ...
0
votes
0answers
36 views

Using Jacobi Method [on hold]

I am solving matrix with Jacobi method on Mathematica 5.2 Got problem, It needs to be 40 iterations, Initial approximation is x1=0, x2=0, x3=0 Please help to fix it. In[14]:= !(* RowBox[{( (Q5) ...
1
vote
1answer
72 views

What is “MouseDragged”?

Maybe I'm picky but I don't consider static pressed button: "dragging". EventHandler[Framed[1], {"MouseDragged" :> (Print@RandomReal[])}] neither does ...
4
votes
2answers
84 views

Write GUI to select spheres in a grid

I'd like to generate a code that: 1) starts with a grid of circles (in general, it won't be a square grid) 2) allows the user to choose some of those circles 3) allows the user to choose the type of ...
0
votes
0answers
37 views

Equation Newton Method in matematica [on hold]

The question I have, sin2x=(x/2)-2 should be solved (absolute error should be smaller than e=0.00001) What I have is giving me mistake, Please help ...
1
vote
0answers
23 views

Where can I find documentation for the File->New->Package window?

I'm using 10.0.0 on OS X. When I go File->New->Package a window similar to a notebook appears, but with different coloration and a row of buttons on the top like 'Update' and 'Run Package'. I'm not ...
4
votes
1answer
103 views

What are the arguments supplied to ColorFunction in MandelbrotSetPlot?

On the document of MandelbrotSetPlot, it said: With ColorFunction->f, where f is a function, the argument of f is a real number in proportional to the number of ...
2
votes
1answer
92 views

How can I download images from Instagram and Twitter?

The new function ServiceExecute seems to suggest the ability to download images containing a specific hashtags. Can anyone get this to work?
2
votes
0answers
83 views

Mathematica shift-enter problem

Would really appreciate if someone can help with this problem: When I first open a Mathematica note book, say you do 1+2 and press shift-enter. As expected, I get "3" as the output. Now suppose you ...
1
vote
0answers
46 views

Find the smallest eigenvalue (not absolute value ) for a generalized eigenvalue problem

Related post Find the eigenvector associated with the smallest eigenvalue, not smallest in magnitude I tried to find the smallest eigenvalue for a generalized eigenvalue problem A c= \lambda B c ...
2
votes
1answer
55 views

Simplifying conditional expressions using assumptions does not work

I have a conditional expression f[x_] := x /; x ∈ Reals This works fine for normal numbers and symbols, e.g. ...
0
votes
0answers
70 views

Numerical Integration/Function

I have a problem with a function defined numerically through an integral of the form: ...
8
votes
1answer
235 views

How to simplify -a*z+a*z to 0 where “a” is an expression

Consider the following: a = 1+(x+y+z+u)^10000 (* Out[57]= 1+(u+x+y+z)^10000 *) e = -a*z+a*z (* Out[59]= z (-1-(u+x+y+z)^10000)+z (1+(u+x+y+z)^10000) *) How can ...
0
votes
1answer
180 views

Help solving the following non-linear differential equation

After spending several hours exploring different options, I still couldn't not figure out how to solve the following differential equations. Any suggestions would be highly appreciated. ...
3
votes
1answer
76 views

OutputResponse and RecurrenceFilter failure in WM10 with increased precision datasets

Suppose I import sound from file into data list, like this: (Set file name and path) nFileName = "p:\\TrueOscill250HzLongNoHiss128kSps.wav"; (Importing ...
0
votes
1answer
62 views
1
vote
1answer
65 views

How to find Lagrange multipliers corresponding to constraints?

I have a constrained optimisation problem that I solved using Mathematica's FindMinimum function. I would like to know how to get the dual variables corresponding to the constraints I have. Obviously ...
2
votes
2answers
72 views

KeyMap on a flat Dataset (i.e. Dataset@Association)

How can I go from Dataset[<|"A" -> 1, "B" -> 2, "C" -> 3|>] to ...
2
votes
1answer
70 views

How-to convert real number into List of its digits?

How could I convert a real number into a List of its digits in Mathematica? Example: 8.168643234 Desired output: {8,1,6,8,6,4,3,2,3,4} Many thanks in ...
2
votes
1answer
51 views

RegionBinarize distance parameter has no effect

I'm trying to segment an object from background in noisy micro CT data. The original 3D volume data looks like this: ...
2
votes
0answers
41 views

How do you plot polygons with GeoRegionValuePlot?

How do you plot polygons in GeoRegionValuePlots? I'd like to reproduce what the call (2) (below) does with something like the call to (4). As you can see using GeoDisk(s) (3) works but the call (4) ...
0
votes
0answers
22 views

population of dots with normal distribution of pitch [migrated]

I want to generate a plot that shows a rectangle populated with dots, where the dot-to-dot distance (pitch) distribution is a lognormal (or a gaussian). I want to be able to change the mean dot-to-dot ...
2
votes
1answer
38 views

Epilog does not work as expected with Show [duplicate]

I was trying to answer this question (here) and I found that I can't use Epilog with Show. consider this Example: ...
7
votes
4answers
277 views

Generalization to AllTrue, AnyTrue and NoneTrue

I am wondering if there is a natural Mathematica way to generalize those functions. To be specific, All three functions AllTrue, ...
0
votes
0answers
38 views

Horizontal BoxWhiskerChart [on hold]

How can I make a BoxWhiskerChart with values going left to right instead of bottom to top? Mathematica code and output: ...
3
votes
1answer
69 views

Bug in associated Legendre Polynomials?

Mathematica's definition of the connection of associated Legendre polynomials with $m$ and $-m$ is: $P_l^{-m}=(-1)^m \frac{(l-m)!}{(l+m)!} P_l^m$. We also now that $|m|>l \Rightarrow P_l^m=0$. ...
0
votes
0answers
27 views

How do I add custom deviation when using LinearModelFit?

I have a set of data in the form a list S1={{x,y},{x,y}} etc. I also have a function that calculates a corrected standard deviation in the y direction for ...
193
votes
19answers
21k views

What are the most common pitfalls awaiting new users?

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...
2
votes
3answers
100 views

Custom Grid Lines for ProbabilityScalePlot

I'm plotting up some data using a ProbabilityScalePlot in Mathematica 8. It currently looks like so: Code: ...
3
votes
6answers
101 views

What is the range of values $x$ for which $f(x)$ is higher than $k$ over a given domain?

What is the easiest way to answer the following question in Mathematica: Given a function $f(x)=y$, what is the range of values $x$ for which $y$ is higher than some number $k$ over the domain of $x$ ...
0
votes
1answer
57 views

Export graphic as Pdf gives incorrect font size [duplicate]

In Mathematica 10.0.2 I have this plot: Now, when I export as pdf, I have these huge fonts. Any workaround?
20
votes
3answers
419 views

Real Numbers in the Wolfram Language

Epilog: Much of the discussion in the answers below revolves around the distinction between Real as a data type and real numbers as a domain or class of numbers (irrespective of the form in which ...
0
votes
0answers
37 views

How to recursively check is a graph is a binary search tree?

I'm having trouble using the built in DepthFirstScan[] to see if a tree satisfies the binary search tree property, the documentation is confusing. Motivation: I'm ...
1
vote
1answer
80 views

RSolve works slow and does not give an analytical solution for solving high order linear difference equations

RSolve@@{{a[n]-a[n-10]==101}~Join~Table[a[i+1]==101+10i,{i,0,9}],a[n],n} I want to get the exact form of general formulas, but ...
2
votes
0answers
36 views

How to compute the longest non-contiguous common sequence?

LongestCommonSequence[] works well, but what about finding the longest common sub-sequence (not necessarily contiguous)? Is this function built in to the genome ...
1
vote
0answers
47 views

Version incompability Mathematica 10 CDF Player 9

I have aleady looked at these two questions: Is there a CDF Player for Mathematica 10? and Problem with NDSolve in Mathematica 9 / 10. My problem is as follows. I am simluating neurons, which ...
0
votes
0answers
62 views

CPU usage ~18%, but Mathematica is fully running

I run some very long Mathematica code, and the CPU usage of the kernel is 18% only. Why is not all of the CPU used, can I find the reason easily? Are there known ways to tell Mathematica to use more ...

15 30 50 per page