# All Questions

190 views

### How to generate a random, relatively prime number to p?

I'm sorry if this is an obvious question, but I'm a newbie and googling didn't help me much. Is there a way in Mathematica to generate a number q coprime with ...
59 views

### calculate variance of conditional sum of Normals

Let $\quad W \sim N(\mu_0, \sigma_0^2), \quad X_1 \sim N(\mu_1, \sigma_1^2), \quad X_2 \sim N(\mu_2, \sigma_2^2)$ denote independent random variables, and let $c$ denote a constant. I want to find ...
49 views

### 3D scatter plot with labels [on hold]

I am doing 3-D scatter plot with labels and using the following code ...
30 views

### How to export to iwork's numbers format?

I have a matrix with images down its first column and I'm trying to export to a spreadsheet in Apple's Numbers (see the screenshot below). I've never tried this type of export before, any ...
99 views

### Combining memoization and SlotSequence

I found myself writing memoizing code like this: ...
130 views

### How do I plot a filled cylinder in 3D?

All, I'm trying to plot a filled cylinder in 3D using Graphics3D and then take 2D slices of said cylinder. I know that Cylinder is officially 'filled', but the 2D ...
43 views

### Loop over elements of list and output to table [on hold]

I have little experience with flow of control in Mathematica and the following task seems daunting to me. I need to evaluate the same set of expressions to all the elements of a list, and then output ...
46 views

### Help in evidencing a region (circular) of a .tiff image and cropping all the rest of the image

I'm asking for the community help since I have problems in cropping an image. I'm having LEED images which are 576*720p, which are made by a big black region at which middle I have the image I'm ...
24 views

### How to use ScheduleTask in a dynamic module? [duplicate]

I have a little timer widget that times two separate tasks: It is simple enough, but I can't see why it's not working. Am I not understanding the connection between ScheduleTasks and Dynamics? ...
61 views

### What is the purpose of Refresh? [duplicate]

I never quite understood the point of Refresh. Why would I do this: Dynamic[Refresh[DateString[], UpdateInterval -> 1]] when it is the same as ...
62 views

### Why don't products of Dirac deltas integrate correctly?

The integral $\int \int \ \delta(x) \delta(y) \ dx dy=1$ evaluates to 0 in Mathematica ...
46 views

### How can I easily visualize density plots with singularities with the least loss of detail?

I'm trying to visualize electric fields. StreamPlot is helpful: ...
92 views

### Mean duration between two specific data points

I have dataset such as: ...
27 views

### How can I export a notebook into multimarkdown?

Mulitmarkdown (.md filetype) is a very nice document format that supports rendering mathematical expressions like latex or mathml, rendering syntax highlighted code blocks for any language, as well as ...
96 views

### How to combine selected out cells into a list? [on hold]

I have a loop that was printing out results, and now I'm left with many cells in different sections and I need to combine them (the values in them) into a list I can work with. For example, applied to ...
21 views

### Dice expirements and random variable? [migrated]

Suppose I define a random variable X such that it represents the sum on the dice thrown. Now there are two ways to do the experiment 1) I use 2 dice, note their individual Xi (R.V) and then find ...
72 views

### Two bit strings represented as lists – how to color differing bits as red while printing?

Assume the following code generatedMsg = {1, 0, 0, 0, 1, 1, 0}; transmittedMsg = {1, 1, 0, 0, 1, 0, 0}; Now, I want to print out something along these lines:  ...
132 views

### How to plot the graph of the equation F[x,y]=0 if y is real number, x is complex? [on hold]

I have an equation F(x,y;a,b,c,...)=0, where x and y are variables, a,b,c,... - parameters. y is a real number, x - complex. For every given y I need to solve this equation, i.e. to find Im(x) and ...
15 views

### How to monitor parallel mapping a function over a list? [duplicate]

For instance, how to monitor the progress of ParallelMap[function, list]?
50 views

### Is there any faster implementation of DominantColors?

The function DominantColors is a simple function but runs incredibly slow when the number n of dominant colors to find is large - it is currently the biggest bottleneck in my code: ...
31 views

### How do I print multiple slides per page?

I have a Mathematica 10 presentation (not made by me). The slides are very short and very many. I'd like to print it, but printing 100+ pages each with 2 or 3 equations seems like a waste to me. Is ...
39 views

### Define a Mathematica function for f (roots, negative roots, tangent line) Homework questions [on hold]

My real question is part 5. As the exact negative root comes out relatively long with square roots, etc (it is not a simple number), I cannot figure out how to find the y-value for the tangent line at ...
26 views

### Why are the labels twitching vertically in TimelinePlot?

Why are labels jumping up and down here: ...
37 views

### Unable to Solve (for arclength parametrization)

I am having trouble with Mathematica while trying to re-parametrize a curve with respect to its arclength. I need to get the old parameter s written in terms of arclength a so the code is ...
107 views

### Filling graph between lines and plots

I would like to create a filling delineated by the plots and lines as specified below: ...
50 views

### Suppressing tiny imaginary parts in complex numbers [on hold]

How do I extract the real part of a substitution expression from FindRoot or Solve? Or alternately, how do I insist that they ...
163 views

### Create a list of rules built from data set fields

I want to convert a dataset to a list of features and a list of target values, for use in Predict and also more generally. I know ...
69 views

### Solving equations bounded by a region

Straight to the point I have a function ...
25 views

### How to change a direction of a point after stroke the edge

Could you explain me how to made my point moves like enemies in xonix game, when the point strokes the edge? ...
26 views

### How can I get symbolic orthonormal eigenvectors for 3 by 3 hermitian matrix?

Using the following syntax, I can obtain the symbolic eigenvalues and eigenvectors of the following Hermitian matrix (a,b,c,d are all real parameters): ...
32 views

### Strange behaviour of Append [on hold]

I have the following situation and I completely do not understand why the second system can be solved but the first (of the same equations, as it seems) cannot. How is it possible? ...
25 views

### How can I give each section a unique <a> tag when I Export as XHTML?

Exporting a notebook as XHTML allows me to override the default HTML tags that are written for section-header-like cells. For example, a notebook cell whose type is "Section", containing text "The ...
112 views

### Make a program that does union of two lists

I have to make a program that gives as a result the union of two lists using a For loop. I can't figure out how to inspect if the elements of a list are different. ...
35 views

### Bincounting multiple data

I have 5number of single column data files and I imported all of them using data = Table[Import["hist501" <> ToString[i] <> ".txt", "List"], {i, 5}]. Now I want to determine the bincount of ...
22 views

### Is there any way to get more info on an error message?

Many times I receive messages but can't find any documentation on what it means. For instance today I got this error: ...
38 views
+50

### Is there a way to run Wolfram Workbench in batch mode?

I'd like to profile some Mathematica code to figure out why it's running slowly. Since the code takes about a day to run, I can't use the Wolfram Workbench GUI. Is there a way to run Wolfram Workbench ...
26 views

### Problem evaluating function

Hey there I am missing the trick in evaluating following problem so that mathematica first solves the derivative of the legendre polynom and just after that it solves the whole thing for value 1 ...
53 views

### Mathematica: issues storing nested list on disk

having trouble with mathematica using nested lists. I want to save a list like this: l1={{a1,{a,b,c,d,e}},{a2,{f,g,h,i}}} So, the nested components do not have ...
56 views

### Bug with DateListPlot with ToolTip with NumberForm?

Is anyone able to confirm if this is a bug in version 10.1 on Windows 7 Pro? I am attempting to produce a DateListPlot with ...
65 views

### Simple pick up an element from above line [duplicate]

( Did not readily find from Documentation even if used before). NSolve[ 2 x^3 + x ^2 - 5 x + 2 == 0, x] How to collect roots with new labels a,b and c?
31 views

### How to change dimensions of a matrix?

I have two sets of data that I'm working with, both of which should be 1024 x 1024 matrices (they're from the same instrument). However, when I go to manipulate them, the dimensions of one are read as ...
21 views

### Subscripts in variable names: Bug?

In the following plot, one of the two functions {-par, par} defined by ...
87 views

### MinMax function (Mathematica v10.1.0) conflicts with NDSolveFEMMinMax?

Some problem in v10.1.0 (Windows 8.1 x64) and the new MinMax... ...
108 views

### Does RunProcess work on Chinese Windows?

I am asking for feedback from people running Mathematica 10.0.x or 10.1.0 on Chinese versions of Windows. Does the following command work or does it give \$Failed? ...
23 views

### Many NSolves to interpolating function

I have an expression of the form: expr = TerribleNumericalFunction[U[p]] == SimpleFunction[p] The Simple function is a ...
19 views

### Find the point of intersection of A,B,C-plane and D1D2-line

The problem. Five points A,B,C,D1 and D2 in R3 are given. (1) Determine whether three points A,B,C are collinear(i.e. lie on the same line). (2) If A,B,C are not collinear, find the plane that ...
69 views

### Changed appearance of Quantity expressions in v10.1.0

After installing Mathematica v10.1.0 (in Windows 8.1 x64), I noticed a change in appearance of Quantity expressions. For example under Mathematica v10.1.0: while ...
35 views

### Formula to calculate % of dice chance [on hold]

I am really struggling to figure out a formula that will tell me the % of chance a result will come up. Based on the below information can you help? Two dice each having 50 sides with all having an ...