# All Questions

32 views

### Performance of compiled functions (Project Euler No14)

I was playing around with the project euler problem 14. The solution I came up with is listed below as cf1. The solution works fine but I get the compiler warning: ...
17 views

### ErrorListLogPlot gives wrong error bars on log scale

From this and this post I learned how to use ErrorListLogPlot and its family to add error bars on top of a list of mean values. However, consider this simple ...
21 views

### Mathematica 10 hangs in modifying plots/themes

I am using Mathematica 10 on a computer running Windows 7 (64-bit) with all the most recent updates from Microsoft. My problem is as follows: I create a plot using the Plot[] function. When I click ...
11 views

### Does it help to do any preprocessing before FindSequenceFunction?

I am always amazed how smart FindSequenceFunction can be in discovering general term formula for a sequence of rational numbers. The documentation says it can work ...
24 views

### Cannot convert list of associations to dataset for length longer then 4 [duplicate]

Situation: I initialize two ranges: range1 = CharacterRange["a", "d"] range2 = CharacterRange["a", "i"] Create associations: ...
40 views

### Evaluation of a large integral

I have a complicated large integral I want to evaluate (does not have a closed form, need an approximation), but Mathematica seems to keep "Running...". Is there any way to make Mathematica use more ...
49 views

### Plot groups based on unique tag

I have a .csv file that has 12 columns and 511 rows. data = Import["C:\\Users\\Documents\\data\\AllResults\\result1.csv"]; The first two columns are id tags. I ...
46 views

### Speeding Up Image Processing Functions

I am working with stacks of 1024x1024 timelapse microscopy images that I am performing a series of image processing functions on to help segment each image. These functions include Sharpen, Erosion, ...
47 views

### How to make equidistant or split ListPoint [duplicate]

Previous answers were based on functions, here I have list of points. I tried the interpolation of list of points, stuck!!. Here I have attached a simple example. How to split the curve with more ...
30 views

### Display ln instead of log in labels? [on hold]

I want to put ln(x) in a plot label (specifically in a legend label), but when I use LegendLabel->Log[x] it writes log(x). For complete clarity it would be ...
55 views

### Speed up adding Poisson noise to an image

I'm simulating some images corrupted with Poisson noise, but I'm encountering a few problems with performance. According to the documentation on ImageEffect, one ...
40 views

### Random reals according to probability distribution [duplicate]

How do I generate a list a random real numbers that follow a probability distribution? If my pdf is $f(x)$, how do I "force" the random numbers to follow $f(x)$?
37 views

### CreateDocument options needed to suppress the default notebook menu

What are the options needed in Mathematica 10 to suppress the menu on top of any notebook created with CreateDocument? For example, the Messages window as well as the windows generated by ...
149 views

### Speed of curated data calls in Version 10

Curated datasets underwent a significant overhaul in version 10, primarily in the way content is delivered in the form of Objects and Entities. Additionally, it appears that this change in content ...
38 views

### Change the size of a graphic inside a legend [duplicate]

I have this graph: ...
63 views

### How to know at which point of a calculation I am while using Table

If I use a code of this type: Table[foo[i], {i, 0, 10}] Mathematica won't output anything until it is done: is it possible to know at which point of the ...
158 views

### Mathematica 10 Graph issue

Please try to evaluate this code in Mathematica 10. ...
49 views

### Benefit of using Dataset to collect SQLSelect output

Considering a DatabaseExample included with Mathematica: ...
48 views

### Calculating power spectral density

I tried using PowerSpectralDensity, but its usage is very vaguely documented. It produces a sum of cosine functions. I do not know what to use it for. Is there some ...
256 views

### Change the inner color of markers

I would like to have a marker with white as its inner color, to be able to make this kind of graph: If I use PlotMarkers -> Style["\[FilledSquare]", White], ...
31 views

### Can I use in LogitModelFit boolean parameters?

For example, to use '1' as true and '0' as false: LogitModelFit[{{300, 0, 0}, {400, 0, 0}, {450, 1, 0}, {460, 1, 1}}, {x, y}, {x, y}] where ...
89 views

### Annoying window. How to remove it?

How do I remove this window from my Mathematica?
33 views

### Fit convoluted Gaussian and Lorentzian functions to a peak profile

Thanks in advance for anyone who read this. I have a peak profile data like this: ...
47 views

### how to calculate the coordinate of a point which depends on other points on a plane with specific distances [on hold]

I have 8 points on a plane (x1,y1)....(x8,y8) among these 8 points i know the coordinates for 7 points and i have to find the 8th point. Each points has the difference between all other points.i am ...
35 views

### BoxWhiskerChart with logarithmic axes 2

I actually already found my answer on the question, however it is not working. see BoxWhiskerChart with logarithmic axes I want to create a boxwiskerchart with a logaritmic axes. But when I try ...
58 views

### Why is either Listable or HoldFirst not working?

Starting with a fresh kernel, I evaluate the following: ...
120 views

### Need an efficient way to do this list manipulation

Lets say i have two lists with me as given below: l1 = {4, 6, 8, 9, 10, 12}; l2 = {2, 3, 4, 5, 6, 7}; Now i have a function S2P(details irrelevant) which takes ...
261 views

### Automatically lining up two images that have some common elements

Over on genealogy.SE, I proposed a method of manipulating images to make "bleed through" less visible and the handwriting on the correct side of the page more legible. Here are the original images: ...
48 views

### Show the arrows in a plot [on hold]

I have two plots: ...
33 views

### Simple Choice-Dialog like the auto-completion popup

What I want is pretty simple, nevertheless, after half an hour I have only unsatisfying solutions here. Let me ask you who might work more often with Mathematica's GUI elements: Is there a way to ...
41 views

### Overwriting first line of large file

As mentioned, I wish to read the first line of a file, and if needed, overwrite it with a new string. The aim is to have a CSV with a list of possible elements. Example: ...
36 views

### Export Plot to formatted data file

I would like to export the point drawn on a graphics made with Plot, to a file formatted in such a way to be importable in Mac Grapher. If I use Export, and I specify a .txt, it give me something with ...
50 views

### PlotMarkers problem in ErrorListPlot, Mathematica 10

I recently upgraded to Mathematica 10, very excited about the multiple undo function of course. However I very quickly noticed that if I specify a setting for ...
74 views

### Minimum and maximum values under conditions

Let's create some sample data ...
78 views

### Need help in understanding code [on hold]

I am just beginning with Mathematica. I have received this code to study. I am not able to follow this particular section. I have tried looking it up on many forums, with no answer. Can you help? ...
45 views

### Is it possible to plot a second-order curve by its non-canonical equation?

I have this second-order polynom: $$6xy+8y^2-12x-26y+11=0$$ And I need to reduce it to a canonical form of a second-order curve. I solved this, but is it possible to draw a plot of the original ...
75 views

### How to automatically plot asymptotes? [on hold]

I'm a newbie to Mathematica and I'm reading through "The Student's Introduction to Mathematica, Second Edition" and am on the "Using Mathematica’s Plot Options" section of chapter 3. The examples for ...
149 views

### How do I solve for one variable in terms of other variables in Mathematica?

I'm fairly new to Mathematica, and I'm trying to solve a complicated equation with multiple variables. I've tried the following... ...
46 views

### Elements in Reap and Sow

Can someone help explain it to me: How does here e come out? Why b disappears? ...
63 views

### GUI->Text code conversion

I have to solve about 30 symbolic equations simultaneously. Mathematica is taking more than 24 hours to solve it on a 6 core system and now I have to run that on a cluster. In order to do so I need to ...
61 views

### How do I constrain variables to a user-defined domain in ArgMax?

I am trying to ArgMax a function over x, but x is only defined between ...
282 views

### What is the natural way of using Dataset to get a FittedModel?

The new Dataset in Mathematica 10 is a great addition to the language, potentially reducing the convenience gap with R. Given this, I would like to understand what the equivalent simple or natural ...
61 views

### Express a complex function $f(z)$ as $u(x,y)+iv(x,y)$

How can I write a complex function $f(z)$ in the form $u(x,y)+iv(x,y)$ using Mathematica? Re and Im do not work, because they do it for complex numbers, not functions. For example, if I try ...
80 views

### Integrating Mathematica in Blackboard

I teach Economics at University. I often use Mathematica to generate interactive diagrams with demand and supply curves. We also use Blackboard (blackboard.com) to manage our subjects, including ...
57 views

### Manipulate gives the output as a blank plot, but I'm not sure why [duplicate]

I'm using Mathematica 9 to try to manipulate a 3D plot. My code is: ...
81 views

### How to insert zero counts uniformly with Dataset Counts query

Missing[] is generated when an association does not contain the specified key. ...
118 views

### Creating a new list by dropping sub elements of the original list

Suppose I have a nested listed as follows, {{{1,2},{3,4,5},{2,3}},{{2,3,4},{5,4,1},{1,4,3}},{{3,4,5},{3,4,5}}} Where the elements are, ...
102 views

### Using select to pick out elements of nested lists in an odd way

Suppose I have a nested list such as, {{{A, B}, {A, D}}, {{C, D}, {A, A}, {H, A}}, {{A, H}}} Where the elements of interest are, ...