# All Questions

797 views

### Solving cubic equation for real roots

I'm looking to solve the following cubic equation for x: $\beta\, x^3 - \gamma \,x = c$. I have plugged in some sample values ($\beta = 2$, $\gamma = 5$ and $c = 2$). When I try to solve this ...
97 views

### When is Evaluate needed within function arguments? [duplicate]

I'm trying to do a simple variable substitution within a ContourPlot, but it's not working. Here's an example: ...
326 views

### Generating a list of rules [closed]

This is my first time asking a question on this forum. I would like to generate a list with a range of numbers and use this list for a function to read from. Ok, now for the good part, it would look ...
919 views

### How can I define a 3D version of the built-in VoronoiDiagram (VoronoiMesh in V10) function?

Can anybody point me in a direction that will guide me to extend the VoronoiDiagram function in Mathematica to handle 3D (three dimensional) situations (i.e. points in 3D)? Any help will be greatly ...
282 views

### How to change brackets in TraditionalForm output

I'm trying to improve TraditionalForm's output by using different brackets when there are more than one. For instance, instead of $u(v(r(b))))$, I'd like to get ...
141 views

### Implementation of Decompose

I'm curious as to how Decompose works so I decided to use Trace with the option ...
214 views

### Represent Plot Scale with an offset

I want to know how to represent the axis on my 3dplot with a scaled offset. Please see the image below, I just want to show in the plot as {X-Axis*0.1} and {Y-Axis*0.1} ...
302 views

### How to copy/paste an OverHat symbol into Microsoft Word 2010 properly?

I have problem with output traditional form of sign above the constant. When I copy/paste in word it is far away up. Is there solution for this? ...
183 views

### Manipulate: SetterBar with list of functions

From the documentation: Manipulate[Plot[f[x], {x, 0, 2 Pi}], {f, {Sin, Cos, Tan, Cot}}] How do I include a function like $1/x$ or $x^2$, etc. in that list? I ...
227 views

### ListPlot with labels that appear when the pointer goes over the points

I would like to generate a ListPlot with labels that appear when the pointer goes over the individual points. Specifically, I have a table of dimensions ...
449 views

### FullSimplify does not work on this expression with no unknowns

I can't reproduce this simple example from Habrat, 2010 ("Mathematica : a Problem-Centered Approach"). It is supposed to demonstrate the functionality of ...
467 views

### DensityPlot with one log axis

Is there any way of generating a density plot (or something similar) with one of its axes on a log scale? Essentially I'm trying to combine a LogLinearPlot and a ...
1k views

### How to integrate functions of linearly interpolated data?

At first, consider integration of pure InterpolatingFunction. Importing some data (works in v.9, for earlier versions one can use this link to download zipped ...
574 views

### Speed up Numerical Integration

EDIT: I need to evaluate a very complicated multi-dimensional Integral. The dimension of the Integral depends on a variable j. Let's make my point clear with the ...
91 views

### ReadList and multiple access of the same file

I have a file containing a large amount of data which can be processed independently. In order to process all data in a reasonable amount of time I distribute the jobs on three different machines. ...
460 views

### Why does this numeric integral fail to converge?

I have an integral over a region (rpp): ...
154 views

### How do I inherit a specific cell option from another style (without copy paste)?

How can I define a style with FontSize from Section and CellFrame from Program?
175 views

### Count items in a list that occur before a date

I have a list of dates that happen throughout 2013. I wish to construct a graph showing a cumulative total of elements that happen before that date. I have a working algorithm, but it seems too slow ...
627 views

### Plot cross sections of a function

I have been learning how to use Mathematica for the past few weeks, and recently I have been trying to recreate something along the lines of this. Given a function, I want to create a 3d plot of ...
264 views

### Make Mathematica wait before replacing?

How can I force Mathematica to completely evaluate a subexpression before using a replacement rule? For example, consider the following definition (for the series of ...
77 views

### How to get a more traditional-looking for protected constants [duplicate]

Is there any solution to make rule to export as a traditional form protected constants. Here is example which doesn't work. ...
87 views

### Using Resolve and ForAll to prove takes a really long time

I've been trying to prove a lemma for my paper using Mathematica... basically that $$\forall \{n, d_i, d_j\} \in \mathbb{Z},\ n \ge d_i > d_j \ge 2$$ it's true that V[1, n, d_i-1, d_j-1] ...
131 views

### Different actions with dragging and clicking points in same graphic

On a graphic (in this example a simple plot), I need two points to move when I drag with the mouse, and these points must move to location {1,1} when I click on them. This is how I got it to work, ...
282 views

### Where is the “Insert > Citation> Bibliographical Reference” Command?

I don't have the command for inserting citations described in the documentation: "Insert > Citation> Bibliographical Reference" is not present in my menus: That's the entire contents of my ...
47 views

### Inverting a matrix [duplicate]

Possible Duplicate: Why does MatrixForm affect calculations? I am facing a strange behaviour from Mathematica when asking it to invert the following matrix: ...
72 views

### Finding real and imaginary parts [duplicate]

Possible Duplicate: Extract real part of a complex expression better than Re does I have an expression and I would like to find its real and imaginary parts. As a simplification, suppose ...
235 views

### MathLink C API: sending a List[] of so far unknown length

I would like to send a set of Mathematica expressions (i.e. not simple types that are easy to represent and temporarily store in C) in a List using the MathLink C ...
223 views

### How to calculate an integral of an expression that is determined numerically (in Mathematica)?

First of all, I am fairly new to Mathematica and Stackoverflow, so please feel free to give me any advice whatsoever. I aim to calculate an integral of an expression that has been determined ...
362 views

### Are plotting markers with inscribed letters possible?

I have large data consisting of values obtained by sweeping across three parameters (e, w, and f). I want to plot all this data on one graph using different shapes for e (e.g., circle, triangle, ...
482 views

### How do I make Reduce yield all solutions explicitly?

Say I want to do the following: Reduce[ x+y+z==1, {x,y,z}, Modulus -> 7 ] then I get a solution with parameters, C[1] : ...
339 views

### Why doesn't my Manipulate work?

I am new to Mathematica and reading my way through a few books. Playing around with Manipulate and I noticed the following does not work: ...
148 views

### CDF player Inputfield list

I want to work with lists within the CDF player. A very simple example, which works inside a notebook is ...
238 views

### Tally repeated evaluation of function

How can I tally the result of repeated evaluation of a function? n=100000; f[]:=RandomInteger[{1, 4}] Tally@Table[f[], {n}] When ...
357 views

### BoxWhiskerChart with logarithmic axes

I would like to make a following chart Ideally I would also like to control the boxes position on a logarithmic x-axis. Some inspiration how to do the latter may be found in the answer to my ...
997 views

### Given x[u,v], y[u,v], and f[x,y] how do I find D[f,x] in terms of u,v?

I have two functions x = x(u,v) and y = y(u,v). The chain rule says that for a function f(x,y), df/dx = df/du du/dx + df/dv dv/dx, and similarly df/dy = df/du du/dy + df/dv dv/dy. How do I get ...
129 views

### How do I avoid the gaps introduced by a frame on a plot?

You can see that there are gaps on all sides of the plot between the frame and the extent of the line that I've plotted. How do I get rid of these? I'd like the frame to cover $[0,1]\times[0,1]$ and ...
157 views

### How can I get the general term of this recurrence equations?

Following is the recurrence relation: a[1] = 1; a[n_] := a[n - a[n - 1]] + 1 Array[a, 28] I tried to use RSolve, but it ...
301 views

179 views

### How to display detailed output in Mathematica [duplicate]

Possible Duplicate: Get a “step by step” evaluation in Mathematica How does Mathematica integrate? I want to display more detailed output from a calculation. The default command for ...
220 views

### Using NDSolve solution as initial condition for another NDSolve

I have solved a PDE numerically using NDSolve, and I now need to be able to use that solution as an initial condition for another ...
559 views

### why I can't define a commutator operator in this way？

I am trying to define some operators I used frequently.For example, I defined a KroneckerProduct operator as $\otimes$ as follows: a_$\otimes$b_:=a.b-b.a and this works fine. Then I want to ...
492 views

### Why does Mathematica fail to solve my equation?

I am trying to solve an equation using Mathematica, but I keep getting the following error Solve::nsmet: This system cannot be solved with the methods available to Solve. More importantly, ...
357 views

### Calculating orbital period for the logistical map [closed]

I have the following MatLab code ...
366 views

### Can a LatticeData image be displayed in a space filled fashion

I'd like a FaceCenteredCubic image as in the in LatticeData docs, but space packed, and cropped on all the boundaries, so that it illustrates the geometry of the calculation that leads to the ...
272 views

### Functions that remember their values

Can someone explain what is going on with the following ... func[y_] := func[y] = (Print["Hello world !!!"];) func[1] Hello world !!! ...
786 views

### Interpolating 2D data [duplicate]

Possible Duplicate: Interpolating 2D data with missing values I am trying to interpolate a 21x21 array of values. The 21x21 array sometimes has zero values and with the help of ...
629 views

### How would I improve this Karaoke machine code?

I was looking at a large collection of Import/Export user suggestions the other day and it dawned on me that we finally have MIDI import in Mathematica 9, which is rather interesting since MIDI ...
97 views

### What is the difference between Block and Module? [duplicate]

Possible Duplicate: What are the use cases for different scoping constructs? I don't understand the difference between the Matheamtica functions Block ...