0
votes
1answer
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, ...
1
vote
0answers
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 ...
9
votes
5answers
357 views

Repeating Digits

I have written ...
7
votes
2answers
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 ...
2
votes
1answer
36 views

Structure of KernelMixtureDistribution and SmoothKernelDistribution

I would like to know more about the structure behind the KernelMixtureDistribution and SmoothKernelDistribution in Mathematica. ...
4
votes
6answers
233 views
4
votes
5answers
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 ...
0
votes
0answers
53 views

Stan Wagon ContourPlot [closed]

Reading Stan Wagon's Mathematica in Action, Third Edition and having trouble with these commands. ...
-1
votes
0answers
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 ...
2
votes
0answers
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 ...
3
votes
2answers
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 ...
1
vote
1answer
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: ...
4
votes
1answer
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 ...
2
votes
1answer
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 ...
6
votes
1answer
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 ...
3
votes
2answers
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. ...
5
votes
3answers
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 ...
0
votes
0answers
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 ...
0
votes
0answers
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
0
votes
1answer
49 views

Algebraic manipulation of closed loop state space system

I have the following equations $$ \begin{align} x(k+1) &= A x(k) + B \tilde{u}(k) \\ y(k) &= C x(k) + D \tilde{u}(k) \\ w(k+1) &= E w(k) + F \tilde{e}(k) \\ u(k) &= G w(k) + H ...
4
votes
3answers
176 views

Contour plot with points and line together

I have drawn a contour plot like attached in the figure. Now, what I want is points along with the contour lines. For example: I have a data set like: ...
3
votes
1answer
129 views

Manipulating list of matrices

I have a list of around 100 matrices, that looks like this ...
0
votes
0answers
21 views

Reasoning about Degree of Polynomial [migrated]

How can you show that f is a polynomial of degree ≤ 2 if and only if its Hessian is constant
4
votes
2answers
83 views

Epilog with text not shown

I use the Epilog option in order to print in the vertical axes a label between 0 and 20 as follows ...
2
votes
1answer
79 views

Convert matrix of strings to matrix of numbers [duplicate]

I have 101 files each with a lot of data. from C output. (.out files) I have imported them to Mathematica 9. However, Mathematica reads the data from each file as an element of a table. So I used ...
1
vote
0answers
36 views

Default starting location of “Save as…” dialog in OS X [duplicate]

In the answer to this previous question, user Szabolcs says On OS X (I'm using 10.9 and Mathematica 9) the file chooser dialogue will remember the last location you used. So if you Save/Open ...
1
vote
1answer
69 views

Generate random nxn matrix with all negative eigenvalues

I need to generate an nxn matrix with random entries, but I also need all of the eigenvalues to be negative (real or complex doesn't matter). I have: ...
2
votes
5answers
168 views

How can I plot a transcendental equation with an arbitrary constant?

I want to find the solutions to $\sqrt{\frac{c^2}{x^2}-1}=-\cot(x)$ graphically. This is how I'm going about doing it: ...
1
vote
2answers
120 views

Rotating a plane about an arbitrary axis

I would like to rotate a plane by $k$ degrees about an arbitrary axis. How should I do it using RotationTransform? hmm i realise if I do the following ...
4
votes
3answers
219 views

Finding volume of a segment

I'm still pretty new to Mathematica, so I would like to seek advice regarding a geometrical problem. I am currently trying to define that as an extra condition in the Mathematica code below. ...
1
vote
1answer
43 views

Unexpected behaviour with GraphIntersection and GraphDifference

I run into some unexpected behaviour of GraphIntersection and GraphDifference. Behaviour is the same for both so the example is only on the GraphIntersection: Suppose I have two lists of directed ...
1
vote
1answer
53 views

Getting unwanted solution from Solve

I am solving the simultaneously equations $\quad \quad x_7=0$ and $\quad \quad 6x_4x_5+6x_3x_5x_6+zx_4x_7^2+zx_5x_7^2=0$ with Solve. Here, $z$ is an unknown ...
1
vote
0answers
24 views

Derive logistic choice probabilities symbolically

More generally, I am interested in learning what the current limitations of Mathematica are when using it for doing pure mathematics. A recent blog post by Stephen Wolfram (see: ...
1
vote
2answers
68 views

How to define a function that counts the exponents

I want to define a function $F$ described as follows: The input of $F$ is a polynomial such as m*u*x^4*y + n*v*x^2*y^3 where $m$ and $n$ are constants, and ...
4
votes
2answers
109 views

Fill curve betwen specified abscissa points [duplicate]

I am plotting the Maxwell-Boltzman distribution of molecular speeds. I want to be able to select a region to integrate using a manipulate function. Then I want to have that same region filled in on ...
1
vote
1answer
22 views

Expand Expression with Nested Special Functions [closed]

I am trying to study the following sequence for $a=1$, $n \ge 1$: $$\alpha_n=(1-aq^{2n})\sum_{j=0}^{n}\frac{(aq;q)_{n+j-1}(-1)^{n-j}q^{\binom{n-j}{2}}}{(q;q)_{n-j}(q;q)_j^3}$$ using Mathematica, where ...
5
votes
1answer
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 ...
2
votes
1answer
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. ...
2
votes
2answers
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 ...
3
votes
2answers
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? ...
1
vote
1answer
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: ...
5
votes
2answers
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 ...
2
votes
1answer
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... ...
5
votes
1answer
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 ...
0
votes
0answers
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) ...
4
votes
4answers
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 ...
0
votes
1answer
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 ...
2
votes
4answers
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 ...
14
votes
3answers
254 views

Applying different functions to different columns of a Dataset

Suppose I have different functions: Total, Mean and Max and the following ...
5
votes
2answers
79 views

Connecting to LeapMotion

Thanks to those who helped me with my previous question. I will help others too where I can. In the meantime I have a general question whether anyone has had success connecting Mathematica to the ...

15 30 50 per page