# All Questions

127 views

### Using MaxStepFraction as ticks on plot

Is there any way I could use the MaxStepFraction (or grid size) as used in NDSolve in the example below as ticks on the 3d Plot? ...
276 views

### How to get dynamic results of the values in three InputFields

I have three InputField-s which have no initial value. I would like all InputFields to have a value in descending order and for ...
929 views

### Creating a random normal matrix

I would like to create a random matrix with the constraint that the matrix must be normal, i.e. the matrix and its Hermitian conjugate must commute. I would create a random matrix "without ...
337 views

### Toggle visibility of elements in a plot

I have three simple graphs in one Plot. Now I am trying to make a button for each graph so you can hide or show it in the plot. Until now I was just able to make a checkbox with the Manipulate ...
634 views

### Why is my animation so slow?

I have an animated plot of the kind ...
160 views

### How to recover a graph without instructions to produce it?

I have an output graph on a saved notebook that I cannot reproduce with my data (I messed up the instructions). Can I take that graph, insert it in a new notebook and modify it? (I'm thinking about ...
370 views

### hexList[[1]] returns a list of decimal numbers

Sorry for not being clear about this question earlier. I appreciate the answers I got, but the edits I made should make the question more understandable. I have been working with hex in ...
475 views

### Why do some CountryData flags render at low resolution?

This question is related to data analysis introduced here Why do some flag images from the CountryData dataset render at very low resolution both in Front End and ...
209 views

### Combining lists with common elements efficiently [duplicate]

Possible Duplicate: Computing the equivalence classes of the symmetric transitive closure of a relation I am required to process sets consisting of 2-element subsets of integers by ...
441 views

### Overlay : zoom, graphic tools, get coordinates save as etc

I used Jens' legendmaker to Overlay graphics to get a nice legend on my ListPlot. My question is if is there any way to make ...
5k views

### How to find the phase difference of two sampled sine waves?

I'm trying to measure a phase difference between two Sine functions I've acquired with a computer. I'm uploading one of the .txt files with the data I'm working with here: txt file. To remove the ...
271 views

### How to match expressions with a repeating pattern

The expression I want to match obey a simple pattern that repeats it self a number of times. f[a]@f[b]@f[c]@...@f[X] How would you match all expressions of this ...
311 views

### Inputting a big structured matrix in Mathematica

Hi this is my first post and this is a problem that has bothered me a lot. Suppose we have the $2012\times2012$ square matrix: ...
264 views

### Indexed replacement

Is there some equivalence of MapIndexed for rules? Consider a substitution on 3 a + 4 b + 21 c + .... The first integer I want to replace by 1, the second ...
237 views

### can a ColorFunction have side effects?

Can anyone explain this (to me) odd behavior. If I run this code once (fresh kernel) it works as intended. ...
298 views

### Replacing variable in an equation with an Interpolating function polynomial and plotting residual

I was trying to plot the residual for the solution of my PDE. However, I was unsure about a couple of things. I imported the data and created an Interpolation polynomial with ...
76 views

### Combine DistributionChart and ListPlot [duplicate]

Possible Duplicate: Combining and aligning “chart” type graphics with regular plots I have a bunch of data I want to plot a violin plot of, and I want to add the averages (as ...
659 views

### Multi-objective genetic algorithm in Mathematica?

Is there any implementation of a multi-objective genetic algorithm for Mathematica?
569 views

### data clustering

I have some data set which i would like to partition into 3 groups a:set 1 b: set 2 c: background. I use FindClusters[] function but as you can see (after ...
397 views

### Is there a way to solve the Apollonius Circle problem in Mathematica?

Assuming x, a, and b are complex numbers, is there a way to reduce the equation Abs[x - a] == k Abs[x - b] to something like ...
180 views

### Rectangular output for ListContourPlot

The Function ListContourPlot generates by default an output which has a square size. I would like to produce a rectangular output for example {1000,100}. ImageSize doesn't work because it shapes only ...
264 views

### Merging different size, different order table

I'm a beginner in Mathematica, so this may be a simple request. I have generated some columns of names and data. I want to merge them into a single list of names, with a column for each attribute. ...
370 views

### Move variable to one side of the equation

Say if I have a formula like so: a1*a2*a3^(a4 + 1)*(1 - E^(a5*a6/a3^a4/a2)) == 0 How do I move a3 to the right? I've tried to follow other examples here on stack ...
747 views

### How to get data from For loops to plot it?

How can I get data from For loops to use in ListStreamDensityPlot? I tried AppendTo, but it ...
441 views

### Animate the scattering of a Wave Packet

I know mathematica is probably not the best choice for intense numerical integration, but its the only software I know. I would like to create an animation (not real-time, but pre-render the ...
665 views

### How to plot Error Bars in a 3D scatter plot

This is a simple problem which is proving difficult to solve. I want to plot error bars on points in a 3D scatter graph. I plot error bars on points within a 2D scatter by: ...
162 views

### EventLocator with LSODA?

Is the EventLocator option not compatible with LSODA on NDSolve. Below is what I tried to do ...
907 views

### How to join two Style[]d strings

Does anyone know whether it is possible to combine\join two styled strings? That is, while the following code works fine: omega = "text"; omega<>omega ...
1k views

### Solving a trig equation

I am trying to find an explicit solution to a trigonometric equation. It is running for a long time and I didn't get any result, but Maple solves it quickly. Why ? ...
2k views

### Getting the interpolation function from a list plot

I have conducted a chemistry experiment and obtained a list of concentrations of a reactant against time. I plot a graph of this using Mathematica's ListPlot ...
375 views

### Getting all the countries' flags and then using them as chart labels?

What's the code to list all the world's flags? CountryData["G8", "Flag"] works to get those particular flags, but what about all the world's flags? ...
246 views

### Handling Indeterminate Forms

I'm running a sum, the elements of which are calculated by calling functions that I wrote. The only issue is, I've implemented this pretty stupid solution where I have 4 or 5 (nested!) if statements ...
1k views

### Parallelization problem in LinearSolve and Minimize

My CPU has got 8 cores (it is Intel Core i7-2600 3.40 GHz). When I try to solve a linear matrix equation using LinearSolve for large matrices, Mathematica just uses 4 cores to solve the problem (CPU ...
333 views

### Saving a notebook as a $\LaTeX$ file, with syntax highlighting preserved

How can I save a notebook as a $\LaTeX$ file, while preserving the syntax highlighting (such as input/output boxes)?
239 views

### Combining nested lists that meet certain criteria for a permutation

I have the following list representing a permutation on 26 characters: ...
980 views

### How can I delete cells with error messages?

I'm new to Mathematica and am unfamiliar with the notebook interface. I haven't been able to delete cells with error messages. For example, when I try to ask Mathematica to compute something, it ...
488 views

I am trying to solve two equations that take the form: $W_0 \sqrt{1+\left(\dfrac{z}{\lambda\,\pi\, W_{0}^2}\right)}=W_1\;\,\quad \ldots(1)$ $W_0\sqrt{1+\left( \dfrac{z+0.1}{\lambda\, \pi\, ... 1answer 1k views ### How to ask Mathematica to display answer in “$\LaTeX$” form I am not sure how to explain it, but whenever I compute something in Mathematica, the output always spits back the result in a Mathematica language as opposed to easy-to-read equations. It's ... 2answers 961 views ### An efficient circular arc primitive for Graphics3D As many people have noted, the 2D graphics primitive Circle doesn't work in a Graphics3D environment. Several solutions to this ... 0answers 157 views ### Can the toolbar be moved to the code window? [duplicate] Is there any way to move Mathematica's toolbar window so it is just part of the current notebook's window? I usually just work with one notebook at a time and it is pretty annoying to have to have ... 6answers 728 views ### How to clear all variables except one? I have a lot of variables:$a,b,c,d, \ldots $I want to clear the values of all of them except$b$. It's really lengthy to write Clear[a]; Clear[c]; ... Is ... 2answers 776 views ### Implementation of a new Game of Life Rule I need to implement a new "game of life" in Mathematica: I have three states — black, red and white. Black means go forward, red go back and white take no action. I would like to implement the ... 1answer 383 views ### How to extract and replace submatrix of a doubly-periodic matrix? How can I effectively extract and replace a rectangular subpart of a toroidal matrix, i.e. one where boundaries are connected at opposite ends? Since the submatrix can overhang the edges, a simple ... 2answers 214 views ### How to create a list of variable names to some function of that variable For example, for a single variable I can write Print[Unevaluated[a], "=", f[a]] But if I try the next thing I'd think of doing, assuming I want a list, it ... 1answer 258 views ### How to solve a symbolic equation with symbols in powers I am trying to solve$\dfrac{\rho\ ((1-b)\ \lambda _f\ \lambda _s\ P _A)^{\rho }}{b-1}+\dfrac{\rho \left(\dfrac{b\ \text{ps}\ x}{1-\text{ps}}\right)^{\rho }}{b}=0$in terms of$b$, I ... 1answer 233 views ### How to organize and run functions? I am very new to Mathematica. I thought I would try it out for my first assignment in my computer science class. Until now I have only used C-base languages including C#, Java, Objective-C, and ... 1answer 184 views ### How to solve this equation? [closed] The numbers real x and y, are solutions of the following equation system : $$\{x^3 + 3x^2y + 3xy^2 + y^3 2\sqrt2$$ $$\{x^3 - 3x^2 + 3xy^2 -2y^3=0$$ . $$x^2 + y^2$$ How to solve it ? 1answer 590 views ### Reduce an equation by putting a new variable I have the following equation given: $$(26-x)\cdot\sqrt{5x-1} -(13x+14)\cdot\sqrt{5-2x} + 12\sqrt{(5x-1)\cdot(5-2x) }= 18x+32.$$ In order to solve it, I want to substitute$t = \sqrt{5x - ...
Possible Duplicate: Finding real roots of negative numbers (for example, $\sqrt$3${-8}$) I am trying to make Mathematica plot the cube roots of $27i$ and graph them, so that I can include ...