# All Questions

48 views

### Keyboard shortcut for changing style of selected text (NOT the whole cell)

For many years I have been using Alt+Shift+(number) to quickly change the style of text in a text cell. For example when I write descriptive text and want some of that text to look like input form, ...
38 views

### Fine tuning compiled code that computes dilogarithm function

As an exercise of writing a good Compile function, I want to do the simple task of coding a routine that outputs the real part of the dilogarithm function ...
357 views

### Repeating Digits

I have written ...
273 views

### How to create an hexagonal lattice structure

Given an array of atoms A-B-A-B-A-B in an hexagonal pattern, how can I use Mathematica to create with an hexagonal lattice (infinite) with this array so each atom A is sorrounded only by B atoms and ...
36 views

### Structure of KernelMixtureDistribution and SmoothKernelDistribution

I would like to know more about the structure behind the KernelMixtureDistribution and SmoothKernelDistribution in Mathematica. ...
233 views

### Replacing elements of a nested list by some value

I have a list of list ...
136 views

### Counting the number of instances where items at the same position in two matrices are equal?

Given two matrices having the same dimensions: m1 = {{1, a, 2}, {4, 5, 0}, {g, a, d}} m2 = {{1, b, 2}, {7, 2, 0}, {a, a, a}} Is there a built-in function that ...
53 views

### Stan Wagon ContourPlot [closed]

Reading Stan Wagon's Mathematica in Action, Third Edition and having trouble with these commands. ...
19 views

### game theory subgame perfect equilibria [migrated]

Let s be a strategy pro le in an extensive game with perfect information 􀀀; let h be the current history, i.e. the sequence of actions taken by the players. let P(h) be the player to play next after ...
49 views

### Frame text is cropped while exporting as EPS

I have generated an eps file with using Export["filename.eps", figure, "eps"], but the text on the frame labels and tick numbers are cropped like this: Screenshot ...
64 views

### Bar Graph - Compress/Shorten some elements

I have a bar graph that I'm plotting. Some of the values are very large when compared to others. I want to put more focus on the smaller values, while still showing the larger elements. The reason I ...
49 views

### Export data from NDSolve when they meet a certain condition

I need to export to a txt file the data from the following system of equations: ...
73 views

### Drawing disk with coordinates from NDSolve

I have simple Manipulation expression, but continuously getting error Coordinate {x[0.], y[0.]} should be a pair of numbers, or a Scaled or Offset form. I assume that something is wrong with ...
53 views

### Dynamic interaction with a 3D plot

I have a function: C = 0.0625 + 0.0008*X - 0.0232*Y - 0.0157*Z + 0.0059*X^2 + 0.0112*Y^2 + 0.0160*Z^2 - 0.0063*X*Y - 0.0243*X*Z + 0.0211*Y*Z This equation ...
89 views

### How to make several DateListPlot have the same scale?

I want to plot some weather data series. Unfortunately the series were collected in different episodes, from which some overlap. I would like to plot them as different plots in a column, but with ...
144 views

### QuantilePlot silliness

When I do a quantile plot of two large data sets (in my case, each of them of size around 3 million), the resulting notebook cell is huge, and if you save it as PDF, the resulting PDF is 13MB in size. ...
297 views

### How can I obtain a smooth curve from my data but preserve two inversion points

I have a list of data points, {x, y}, my data. When I plot them, the curve is jagged. I want to smooth the curve and preserve the two sharp corners. This is a plot ...
97 views

### A question about 3D Plot

I am a new user and i would appreciate your help to visualize the 3D of the following function. Also, i need more rep to add a picture. Thank you. For every odd number on the form $n=pq$, where ...
15 views

### Sum of angles of Triangle greater than 180 [migrated]

Can we prove that sum of angles of triangle is greater than 180. -assumptions are allowed. If you have any suggestion please let me know
49 views

114 views

### Using Predict on images

I have a dataset of some (grayscale) images (stored as a list in inputImages) varying in size and content (this is example data from Wolfram, so you can run the ...
51 views

### Vertical direction in images

Mathematica's relatively new Image structure and related functions are very useful, but it is a great disappointment that they adopted the convention that the first row is at the top of the image. ...
57 views

### what to do when NSolve does not solve

f = 696.1125540355472 + 3.9668099604385043 x + LogGamma[1 + x] - LogGamma[169 + x] Plot[f, {x, 0, 10}] Solve[f == 0, x, Reals] NSolve[f == 0, x] I know that the ...
75 views

### Use the value of cell in a table as the argument to a function

I just got mathematica from my school and I'm trying to learn the basics. How could I use the value of a cell in a table (as in Insert->Table) and pass it as an argument to another cell in the table? ...
50 views

### Proper way to run a Mathematica script (-script vs -run vs MathematicaScript vs <)?

Suppose I have a Mathematica script called test.m. There at least 4 ways to run this from the terminal: ...
57 views

### Error when implementing StartProcess[] in loops (Do, While, Table)

I'm using Mathematica to control another program (Surface Evolver) through the terminal (ie using StartProcess[]; and ...
49 views

### How can I set a RadioButton to invoke an action, like a Button can?

In Mathematica one can create a Button which, when clicked, invokes an action. For example... ...
64 views

### Error messages from TensorContract and TensorReduce

I am struggling with a few errors when using symbolic tensors. I am using mathematica 9.0.1.0, linux x86. The following code generates what seems to me an incorrect tensor, this is the smallest ...
33 views

### Why NDSolve With Orthogonal-Projection Method On Orr-Sommerfeld Equation Does Not Work(?)

I am attempting to solve the Orr-Sommerfeld equation for plane Poiseuille flow with the Orthogonal Projection method within NDSolve. The Orr-Sommerfeld equation is (a "stiff" problem); \$\psi''''(x) ...
131 views

### Sublist pattern matching

Is there any way to simplify the following pattern: {p___, {a___, x_, x_, b___}, q___} :> {p, {a, x, b}, q} Ie. where I remove duplicated elements within ...
55 views

### How to work with decimals (e.g. 0.95) instead of fractions (95/100) and get the same result

In my code I have a function, F, that depends on several parameters, say a,b,c: F(a,b,c). I need to give a grid of values to a,b and c to obtain the value of F. My grid of values are decimal ...
121 views

### How to use the same PlotRange and the same PlotLabel size for a sequence of Graphics?

I wish to use ListAnimate to show a sequence of plots with different plot ranges and differently sized plot lables, all unknown in advance, in a way that keeps the ...