# All Questions

135 views

### Whats is the real difference between this two examples of using Dynamic with Grid

the question is relatively simple I think. This is the first example of the code which works: ...
103 views

### Exiting FindMinimum when a condition is met

I want to determine if a function f[x] can take negative values. f is expensive to compute and ...
276 views

### Calculating difference ratios (Δβ/Δρ) from a data set

I am little bit confused about how to calculate δβ/δρ value if I have set of values like this. I have the values of β and ρ like this. ...
178 views

...
179 views

### The guidelines for options or multiple arguments?

Where can I find some references concerning when to use options and when to use multiple arguments in designing and writing functions? Seems most built-in functions have arguments less than 3 and ...
50 views

### Ignoring Indeterminate Results [duplicate]

I am doing some program where I must calculate some numerical integral (the involved function is quite complicated to be solved analytically). The function to be integrated have some parameters which ...
175 views

### Make second argument same as first when only one argument passed to function [duplicate]

Clear[f] f[n_, k_: n] :={n, k} f[x] {x,n} Actually I would like to get: {x,x} The following is one wrong definition, I'm showing that I need the ...
150 views

### Is it possible to use some short form in Postfix

example 1 we can use Information , but can not use ? Sin // Information Sin // ? ...
542 views

### Nonlinear least squares on a GPU with Mathematica 9

Update: A Mathematica wrapper for (https://github.com/zitmen/cuLM) should allow for us to directly implement the Levenberg-Marquardt algorithm in CUDA for nonlinear least squares fitting. In a ...
146 views

### Plotting data with ListPlot where the coloration of the data depends on its position in an array?

Imagine I have some data in a list I'd like to plot using ListPlot in Mathematica 9, for example: ...
80 views

### Make all new cells have a specific style as a function of the Mathematica installation

I would like all new input and output cells, in fact all new cells including section headers and such, to have a specific stylistic property (...
397 views

### Problem with plotting a function with NIntegrate

Why does the following Plot3D command never terminate? ...
310 views

### ListPlot coloring by density of points

I have a set of points on a circumference: points = Map[Normalize, RandomReal[{-1, 1}, {3000, 2}]] And I want to plot them and color the plot according to the ...
231 views

### Implementing a 100%-Mathematica http server

I would like to dedicate a small machine to exclusively running a Mathematica kernel and use that kernel to read http requests arriving on port 80, treat them and send http responses back without any ...
1k views

### Is it possible to style multiple Plot or ListPlot curves using a color gradient?

I am using Mathematica 8. In Mathematica, there is a default PlotStyle coloring in Plot and ...
132 views

### HTML documentation build issue with Wolfram Workbench 2 and MMA 9

Using the Wolfram Workbench 2 (and Mathematica 9) to build HTML documentation for a package I am developing, I am ending up with HTML pages that contain a lot of text elements that look like this: ...
202 views

### Adding Dynamic functionality to a Graph

I would like to make the edges and vertices of a Graph interactive, a simple demonstration is to change their colors: ...
122 views

### Plotting three-dimensional plot with Interpolating functions

I want to plot my functions, but I can't seem to figure out what's going wrong. I want to be able to animate it as well. ...
220 views

### Generate regularly spaced points from the surface of simplexes

I need to generate regularly spaced samples (points) from the surface of unit simplexes with 2 or greater vertices or end points. I can generate random samples pretty straightforwardly: ...
243 views

### Series expansion for small ratio of variables

I have a messy expression of variables that I would like to simplify under the assumption that certain ratios of the variables are small. For example, consider $\sqrt{x+y}\;$ expanded for small ...
405 views

### How do I draw a credible velocity vs. time graph using Locators?

This is partly a math question, partly a Mathematica question. For educational purposes, I'm making a simple demonstration to create a velocity over time graph from six locators. On the basis of ...
176 views

### How can the evaluation queue be aborted?

While developing, I would sometimes like to stop evaluation of selected cells at a certain point. The following example nearly seems to work, but repeated runs of ...
147 views

At times I'll find myself building a some interface component where I want to have some localized dynamic variables, and while testing I might realize that some bit of the code needs to change, which ...
271 views

### Cissoid of Diocles not smooth plotted by ContourPlot

Table[ContourPlot[y^2 (10-x)==x^3,{x,0,.1},{y,-.1,.1},PlotPoints->5],{k,1,150,10}] How to get the smooth graph? When ...
2k views

### Elegant way of obtaining the envelope of oscillating function [duplicate]

I am solving a differential equation numerically and the output is an oscillating function with the amplitude of the oscillation decaying in time. I would like to extract the power law governing this ...
315 views

### Adding noise to nonlinear control system using NDSolve

I have a nonlinear control system ...
1k views

### Elegant and fast way to join all string sequences

I want to do what title says: {"a","b",1,2,3,4,"a",2,2,2,"edg","?"} => {"ab",1,2,3,4,"a",2,2,2,"edg?"} in the most elegant way. For example one replacement rule for ...
112 views

### Why does saved graphic not look the same as graphic in notebook?

g1 = Plot[(x^2 - 4 x + 3)/(x + 1), {x, -5, 5}]; Rotate[g1, -90 Degree] After saving the output of the rotated graph, I still get the graph of ...
590 views

### Exporting a sequence of graphs as video efficiently

I have a sequence of graphs that are being created within Mathematica which I'm exporting to create an animated plot of the graph, as follows. ...
542 views

### Import Spreadsheet Data and DeleteCases of empty cells &/or choosing a Range to import

I am importing Excel spreadsheet data into Mathematica. Here is what the data looks like, notice the cell Q1 with "sdf": I import this data by specifying the Spreadsheet location, sheet name, top ...
352 views

### Creating a highly customized BarChart

I am trying to create a BarChart visualization for multi-step data filtering. Think of a traditional sales funnel: many leads, fewer prospects, few customers, very few return customers. The only ...
126 views

### Finding a mapping between elements in two lists that satisfy some criterion (such as being less than threshold Euclidean distance apart)?

I have two lists of $d$-dimensional coordinates, for example setting $d=3$ we might write: ...
706 views

### How do you export the result of a RevolutionPlot3D to STL for printing?

How do you export the result of a RevolutionPlot3D to STL (STereoLithography) file format for printing? I am a tyro when it comes to 3D rendering and printing.
362 views

### Graphics3D model of the human body and organs?

Does someone have a 3D model for a man (or woman) that can be displayed in Mathematica using Graphics3D? I have tried importing free .3DS models but they look ...
154 views

### Circle as a function parameter

What I want to do is to find a circle which is tanget to the three big ones. I tried the code below: findSmallCircle[c1_Circle, c2_Circle, c3_Circle] := ...
248 views

### Boundary condition for stochastic differential equation

I have a simple stochastic differential equation (SDE) with white noise: ...
796 views

### Mapping a pure function with multiple slots [duplicate]

Here is a pure function with multiple slots: (#1^2 + #2^2)&[3, 4] 25 But how can I map that pure function over lists of values? For example, say I want ...
111 views

### Notebook output behaving erratically

Normally, when reevaluating a cell, the following output cell is overwritten with the new result. I have a lengthy notebook in which at some point for unknown reasons each reevaluation generates a new ...
453 views

### Why doesn't FindRoot work correctly?

I'm trying to find the roots of the following equation: I need to find λs for different values of ξ. I know that for all ...
127 views

### Techniques Modifying Cells M8.0

What techniques are there for modifying/organizing/selecting/deleting cells? I understand Mathematica 9.0 has a Cells function but what techniques exist in Mathematica 8.0? The documentation for ...
69 views

### SuperscriptBox question

I am trying to define an object type in Mathematica as follows ...
54 views

### SiegelTheta fails to evaluate when given proper arguments

SiegelTheta often returns error messages when I give it arguments that should be of the correct form. For instance, I have a numerical matrix like ...
172 views

### Manipulate Slider over discrete collection. Keyboard control.

I would like to create a Manipulate slider that iterates over a discrete set of items. Something like the following ...
201 views

### How to fix MIDI playback on OS X?

Sometimes sounds specified using SoundNote (i.e. things played using MIDI) don't play properly on OS X. Some notes are missing and some are stuck. At least this ...
643 views

### Solve inhomogeneous Poisson's equation, gives no result at all

I would like to solve the following two-dimensional inhomogeneous Poisson's equation in Mathematica including specific boundary conditions, and I know that an analytical solution exists, but ...
318 views

### Looking for an elegant way to construct this tensor-product-ish list

I would like to make the following matrix: ...
79 views

### Function or script which maxes out the CPUs?

I've been using Mathematica for awhile now and have never come even close to maxing out my CPU cycles. Are there any functions which consume lots of CPU cycles? Right now I am running a script which ...
92 views

### Performing operations on function lists

I am exploring the use of Dynamic variables for the ViewPoint and ViewVertical options in a ...