# All Questions

203 views

### How can I get the approximate analytical solution to this simple algebra equation?

Is there a way to get the analytical form to the root of this equation 2 A e (-ArcTanh[smax/s0] + ArcTanh[(smax Cos[w \[Zeta]])/s0]) == F0 ...
185 views

### What are the known differences between Save and DumpSave, and how to account for them?

Edit: I changed the title and (slightly) the wording of this question in order to make it more easily answerable. If I evaluate this in Mathematica 9: ...
132 views

### Can't see dynamic updating when my function is evaluated inside Dynamic [duplicate]

I defined a function, solve, with a free variable n, which changes while solve is running. Therefore, evaluating ...
510 views

### Counting the population of integers

Suppose that myData is a list of sublists. Each sublist has a length of one or greater and contains any number of replicates of the integers 1, 2, 3, and 4. I ...
267 views

### Different highlight for each cluster in DendrogramPlot

Is there any way to have each cluster in the DendrogramPlot highlight in a different color? I've tried the obvious way but it doesn't work: ...
60 views

### get while loop output into a list [duplicate]

I would like to get the output from this while loop and use it as a list so I can count the frequency of the various tuples.. ...
208 views

### Reap and Sow From NDSolve solution

I want to get the answer of my NDSolve in the form of table (the value of each x and y). ...
133 views

### How to get special solutions of this system of equations?

I only want to get all the solutions of this system of the solutions with a value of $k$, we have the same values ​​of $m$ ...
214 views

Assume the following situation: I have a WolframLibrary function which gets as parameter an integer tensor (which is for simplicity of rank 1) and the function should return an integer list through ...
484 views

### Is Table the only functional way to construct nested loops in Mathematica?

Suppose you have a cubic box containing identical particles and you want to compute the distances between each particle and every other particle in the box without double-counting (i.e., if you've ...
170 views

### Number with no decimal mark

I'm using Mathematica to create some images and labeling them after a simple calculation done previously. As the name of the file depends on the result, I want to show it with no decimal separator ...
120 views

### Differential Equation help

I have a differential equation that looks like this: ...
431 views

### Having problems with importing data in .dat format

I have a .dat file from FORTRAN output and I am trying to plot the results. The dat file is a series of rows with the row number as the first column. Now, every other row is empty, that may be ...
329 views

### Interrupting package evaluation, handling error

I have some packages/scripts that I schedule the execution using Jobs in SQL server. For example, in some of then, I use to create reports and delivery by mail using Mathematica. All done using ...
660 views

### Bug in Solve (Mathematica 9)

Just came across the strangest bug under both Mathematica 9.0.0 and 9.0.1. If one enters: Solve[m == p Sin[x] && -Pi/2 < x < Pi/2, x] ... then ...
227 views

### What algorithm is Mathematica 9 using for “SpectralEmbedding” of graphs?

When I specify that a graph should be realized using the "SpectralEmbedding" procedure, what paper / algorithm for spectral embedding is this based on? I was unable to find any documentation for ...
209 views

### ScalingFunctions not working properly for x-axis

I am trying to make a chart where the x-axis has a log scale and the y-axis is in reverse order. I tried to use LogLinearPlot, and I tried to combine it with ...
280 views

### Solve telling me all my solutions are zero

I'm trying to use Mathematica to solve a complicated system of equations. Here is a screenshot of the equations, and what Mathematica outputs. The variables $v_i$ and $w_i$ act as constants in ...
256 views

### Resetting an animation with a custom button

I have the following code, which accepts a function via an InputField, and then gradually draws that function in a Plot using ...
249 views

### Log function - why is Log[b,b] not being evaluated to 1?

Have been experimenting with the Log function to demonstrate simple Log relationships such as Log[xy], Log[x+y] etc. ...
219 views

### Retaining and reusing a one-to-one mapping from a sort

Imagine I sort the elements of an array $Q$ by some means. Perhaps I sort strictly by the elements in the first column, perhaps I use SortBy[...] to sequentially sort by the elements in successive ...
129 views

### SQL JDBC Zerodatetime

I am trying to query SQL data with MATHEMATICA - however, the MySQL database contains zerodates and that leads to the following error message: e.g. (1) *SQLSelect[conn, "orders", {"time_created"}, ...
313 views

### How can I make a customized InputField for date inputs?

I want to make an InputField that only allows a specific date format to be entered. I want to display a field hint in the format "dd:mm:yyyy". Once the user clicks ...
319 views

### Is there a “GrabHand” and “OpenHand” MouseAppearance in Mathematica?

MouseAppearance[Plot[Sin[x], {x, 0, 5}], "LinkHand"] Unfortunately I cannot get a screen grab to show the link hand but it is a cartoon hand with a finger ...
179 views

### Summing tensors in mathematica

How do I perform the following summation in mathematica? $$\Sigma_{m=1}^5 e_{ijklm}A^{mn}$$ I have the $e_{ijklm}$ tensor of rank 5 in 5 dimension as a array and $A^{mn}$ ...
1k views

### Mathematica Implementations of the Random Forest algorithm

Is anyone aware of Mathematica use/implementation of Random Forest algorithm?
387 views

### How can I get LineLegend to pick up my plot's BaseStyle?

The new legends functionality in version 9 really simplifies creating legends, and it automatically picks up the styles of the lines. ...
149 views

### Repeating the contents of one cell in another, in “real time”

How could I create two Input cells, such that when the first is evaluated, the contents of the first are copied to the second? So for example, there would be two empty cells - let's call them A and B ...
219 views

### Splicing a list of arguments into a function with Sequence

Not sure if this has been asked, but I have a fairly simple operation that I don't know the syntax for. Say I have an array with some values, and a function f that accepts an arbitrary number of ...
179 views

### Strange Behavior with RegionPlot

Consider the following code. RegionPlot[Print[{x, y}], {x, -2, 2}, {y, -2, 2}, PlotPoints -> 2] ...
215 views

### Wavelets: Relative error vs compression ratio

I need to plot the relative error vs compression ratio diagram of a discrete wavelet transform on an image, but no luck so far .. Here's the problem in short: random_image.jpg compress the image ...
69 views

### How do I eliminate the breaks in a 3D plot with a Max or Min function? [duplicate]

Whenever I make a 3D plot using the Max or Min functions, I get breaks in the plot when it switches from one expression in ...
2k views

### Creating a simulation of our Solar System

As the title says, my objective is to create a simulation of the motion of the planets in our Solar System using Mathematica. All the theoretical background regarding the equations of motion of ...
463 views

### Efficient code for tallying entries in very large lists

I am dealing with data sets containing tens of millions of (hashable) entries and simply using the Tally function to count the frequency of each unique list element ...
193 views

### Converting a list of replacement rules into a list of real values [duplicate]

The following command outputs a list of replacement rules. ...
152 views

### Locator Appearance

I am using LocatorPane with LocatorAutoCreate -> True. I would like to have the appearance of each new locator be different. ...
399 views

### Plotting a 3D list causes kernel to crash if x and y axes have vastly different scales

I have access to two versions of Mathematica, version 7.0.1 on Linux and version 8 on Windows. When I try the following two lines on version 7, the kernel quits when it tries to plot. In version 8 ...
166 views

### Using Outer with Compiled functions that accept more than 2 arguments

How does one use Outer with a compiled function that accepts 3 or more arguments. Alternatively, how does one create a compiled function with 3 or more arguments ...
278 views

### Using mesh for a single function inside Plot

Plot[{Sin[x], Cos[x]}, {x, 0, 10}, Mesh -> {{0, \[Pi]}}, MeshShading -> {Black, Red}] In the above, how can I specify that I want the mesh for just, ...
173 views

### Big spaces between legend positions

I am trying to make a legend for my plot. Actually, I made one, but I cannot understand why there are such big spaces between the legend positions. ...
607 views

### Parametric differentiable interpolation of a 2D data set

I have a set of data ...
2k views

### Why does Mathematica struggle with solving this equation?

Consider the evaluation of the following expression In[20]:= Reduce[ 1000 * 1.0609^t == 1500, t] ...
348 views

### ListLinePlot filling for accumulated data

I have 23 variables (energy production units) which take values for each hour of the day (energy dispatch table). Here is a PasteBin example of data. I am trying to represent the distribution of the ...
207 views

### How can I sequentially apply different graph embeddings?

Imagine I have some graph G, and I perform a graph embedding using a command like: ...
249 views

### Convert BSplineFunction into two Interpolating Functions

Is there a way to decompose a BSplineFunction output into two functions x[t], y[t] ...
150 views

### Extending a plot over a secondary variable

Apologies for the vague title; couldn't really think of a better way of putting it. I have a function $F$ of two variables, $\rho\in[0,\infty)$ and $f\in[0,1]$, that I wish to create a plot over ...
374 views

### Quick multiple selections from a list

What is the fastest way to make multiple selections from a list? Compiled methods included. For example, here are two methods for selecting a subset, compared:- ...
425 views

### What is the difference between prefix/postfix notations and map?

I am new to Mathematica and just experimenting with the different programming constructs. I have been looking at Map and how to evaluate a function for a list of ...
I have an equation I want to solve, so I entered the following into Mathematica. (x^(17/6))/(a^(17/6)) - (x^2)/a -1 == 0 where I assume $a>>1$ and $x$ is ...